-
Dialog POPUP ......
Hi,
I have a problem realted to poping window in front of the other applications.
I am using CDialog::DoModal() to pop the new dialog. If some other application is opened infront of my vc++ application the dialog popped up will not be visible to user.
How do I make dialog to pop up infront of all applications.
Thanx.
-
Re: Dialog POPUP ......
I have not tried this, but I believe you can check off the "system modal" box in the resource-view for your dialog..
-
Re: Dialog POPUP ......
hello friend,
use ::GetForegroundWindow()to get the handle of the foreground window, attach it to a CWnd object and pass pointer to that object as second parameter to the constructor of the Dialog.
Regards,
Tufail Khan
-
Re: Dialog POPUP ......
If u can elaborate bit It will be helpfull for me. I am new to windows programming.
-
Re: Dialog POPUP ......
Hi,
Once u pop up the dialog by DoModal, in the next line u make the dialog to be in the front of all other remaining dialogs, by using the member function of CWnd, SetForegroundWindow.
Suppose dlg is the instance of ur dialog, then call
dlg.SetForegroundWindow();
Thanks,
Srini.
-
Re: Dialog POPUP ......