Click to See Complete Forum and Search --> : Dialog POPUP ......
October 11th, 1999, 08:52 PM
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.
October 11th, 1999, 09:06 PM
I have not tried this, but I believe you can check off the "system modal" box in the resource-view for your dialog..
Tufail Khan
October 12th, 1999, 01:50 AM
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
October 12th, 1999, 09:32 AM
If u can elaborate bit It will be helpfull for me. I am new to windows programming.
srini_raghav
October 12th, 1999, 09:52 AM
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.
October 12th, 1999, 10:19 AM
thanx
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.