|
-
September 1st, 1999, 06:43 AM
#1
TopWindow over all
Hi!
How can I make a CDialog-window that is shown on top of all it's sisters,cousins and sisters-children??
Thanks!
-
September 1st, 1999, 06:46 AM
#2
Re: TopWindow over all
I forgot to tell: The window I want to create still have to be a child-window to the mainwindow!
-
September 1st, 1999, 06:50 AM
#3
Re: TopWindow over all
BOOL CYourWindow::PreCreateWindow(CREATESTRUCT& cs)
{
cs.dwExStyle |= WS_EX_TOPMOST;
return CParentClass::PreCreateWindow(cs);
}
Jack Shainsky
Jerusalem, Israel
[email protected]
-
September 1st, 1999, 06:59 AM
#4
Re: TopWindow over all
Thanks, but for some very strange reason, I never
get to PreCreateWindow when I try to debug!!
What can I do wrong?
-
September 1st, 1999, 07:13 AM
#5
Re: TopWindow over all
If the window is modal dialog, try call in OnInitDialog ModifyStyleEx(0, WS_EX_TOPMOST, 0);
Jack Shainsky
Jerusalem, Israel
[email protected]
-
September 2nd, 1999, 06:03 AM
#6
Re: TopWindow over all
In InitDialog use SetWindowPos(&wndTopMost,NULL,NULL,NULL,NULL,SWP_NOSIZE|SWP_NOMOVE)
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
|