Click to See Complete Forum and Search --> : MFC Dialog: How to set the dialog window always on top?


Sonu Kapoor
February 13th, 2003, 02:38 PM
Q: How to set the dialog window always on top?

A: Add the following to your dialog's 'OnInitDialog()':


// TODO: Add extra initialization here
SetWindowPos(&wndTopMost, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);

<br><br>