View Full Version : SprintfBox appears behind the main dialog when activated by a pushbutton

11-16-2004, 01:06 AM
Hi All,

I have a custom dialog which appears during the installation. This dialog has an "OK" and a "CANCEL" button. Upon Clicking the "OK" button, a message box (SPrintfBox) is displayed asking the user to restart.

The problem here is, as soon as the "OK" button is clicked, the message box appears behind the main dialog. It appears as if the message box is hidden behind the main dialog. The message box has to appear in front of the main dialog.

To display the message box, I have used SPrintfBox....

SprintfBox(MB_ICONINFORMATION | MB_YESNO, "INFORMATION", "Click Yes to restart now or click "NO" if you plan to restart later")

Kindly help to solve the above problem.

Thanks & regards,