Apr 17, 2002 #1 vitali Technical User Apr 3, 2005 1 IT Hello, How can I make a dialog to be always on top? Thanks.
Apr 17, 2002 #2 TheCrappyProgrammer Programmer Sep 17, 2001 41 US SetWindowPos(&wndTopMost, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE); Upvote 0 Downvote
Apr 18, 2002 #3 Zyrenthian Programmer Mar 30, 2001 1,440 US Oh the irony... I posted this in the Borland forum accidentally on the same question pWnd->SetWindowPos(&CWnd::wndTopMost ,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE | SWP_SHOWWINDOW); I am not sure about all the SWP constants. Also, you may want to look at pWnd->ModifyStyleEx(WS_EX_TOPMOST,0,0); Matt Upvote 0 Downvote
Oh the irony... I posted this in the Borland forum accidentally on the same question pWnd->SetWindowPos(&CWnd::wndTopMost ,0,0,0,0,SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE | SWP_SHOWWINDOW); I am not sure about all the SWP constants. Also, you may want to look at pWnd->ModifyStyleEx(WS_EX_TOPMOST,0,0); Matt