Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I make the dialog to be always on top?

Status
Not open for further replies.

vitali

Technical User
Apr 3, 2005
1
IT
Hello,

How can I make a dialog to be always on top?

Thanks.
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top