|
-
April 8th, 1999, 01:24 PM
#1
How to make modeless dialog NOT the topmost?
I created a modeless dialog box but it remains the topmost window even when I select other windows in my application. How can make it behave like a normal window?
-
April 8th, 1999, 01:33 PM
#2
Re: How to make modeless dialog NOT the topmost?
Hello,
Well, obviously this is all a speculation, since it's hard to implement every advice and see it working, but:
Did You try? :
CWnd::SetWindowPos(CWnd::wndNoTopMost, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE );
A CDialog as You know inherits CWnd.
good luck
Rem.
-
April 8th, 1999, 02:25 PM
#3
Re: How to make modeless dialog NOT the topmost?
Yep, I tried
GridDlg->SetWindowPos(&GridDlg->wndNoTopMost, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE );
and
GridDlg->ModifyStyleEx(WS_EX_TOPMOST,SWP_NOSIZE);
without success.
The dialog just refuses to go behind the main application window even though the application window has focus!
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
|