|
-
October 11th, 1999, 08:52 PM
#1
Dialog POPUP ......
Hi,
I have a problem realted to poping window in front of the other applications.
I am using CDialog: oModal() 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
#2
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..
-
October 12th, 1999, 01:50 AM
#3
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
-
October 12th, 1999, 09:32 AM
#4
Re: Dialog POPUP ......
If u can elaborate bit It will be helpfull for me. I am new to windows programming.
-
October 12th, 1999, 09:52 AM
#5
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.
-
October 12th, 1999, 10:19 AM
#6
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|