Hi!
How can I make a CDialog-window that is shown on top of all it's sisters,cousins and sisters-children??
Thanks!
Printable View
Hi!
How can I make a CDialog-window that is shown on top of all it's sisters,cousins and sisters-children??
Thanks!
I forgot to tell: The window I want to create still have to be a child-window to the mainwindow!
BOOL CYourWindow::PreCreateWindow(CREATESTRUCT& cs)
{
cs.dwExStyle |= WS_EX_TOPMOST;
return CParentClass::PreCreateWindow(cs);
}
Jack Shainsky
Jerusalem, Israel
[email protected]
Thanks, but for some very strange reason, I never
get to PreCreateWindow when I try to debug!!
What can I do wrong?
If the window is modal dialog, try call in OnInitDialog ModifyStyleEx(0, WS_EX_TOPMOST, 0);
Jack Shainsky
Jerusalem, Israel
[email protected]
In InitDialog use SetWindowPos(&wndTopMost,NULL,NULL,NULL,NULL,SWP_NOSIZE|SWP_NOMOVE)