Click to See Complete Forum and Search --> : TopWindow over all
scatcat
September 1st, 1999, 06:43 AM
Hi!
How can I make a CDialog-window that is shown on top of all it's sisters,cousins and sisters-children??
Thanks!
scatcat
September 1st, 1999, 06:46 AM
I forgot to tell: The window I want to create still have to be a child-window to the mainwindow!
Jack Shainsky
September 1st, 1999, 06:50 AM
BOOL CYourWindow::PreCreateWindow(CREATESTRUCT& cs)
{
cs.dwExStyle |= WS_EX_TOPMOST;
return CParentClass::PreCreateWindow(cs);
}
Jack Shainsky
Jerusalem, Israel
jack.shainsky@usa.net
scatcat
September 1st, 1999, 06:59 AM
Thanks, but for some very strange reason, I never
get to PreCreateWindow when I try to debug!!
What can I do wrong?
Jack Shainsky
September 1st, 1999, 07:13 AM
If the window is modal dialog, try call in OnInitDialog ModifyStyleEx(0, WS_EX_TOPMOST, 0);
Jack Shainsky
Jerusalem, Israel
jack.shainsky@usa.net
Younker
September 2nd, 1999, 06:03 AM
In InitDialog use SetWindowPos(&wndTopMost,NULL,NULL,NULL,NULL,SWP_NOSIZE|SWP_NOMOVE)
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.