How can you set the dialog window of a dialog application, to be always on top of all other windows on the desktop?
Burk Royer
Printable View
How can you set the dialog window of a dialog application, to be always on top of all other windows on the desktop?
Burk Royer
Use SetWindowPos() using the flag HWND_TOPMOST
BOOL CTestDlg::OnInitDialog()
{
CDialog::OnInitDialog();
::SetWindowPos (this->GetSafeHwnd(), HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); //activate
return TRUE;
}