|
-
April 23rd, 1999, 08:53 AM
#1
Always On Top property for Dialog Applicaton?
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
-
April 23rd, 1999, 09:37 AM
#2
Re: Always On Top property for Dialog Applicaton?
Use SetWindowPos() using the flag HWND_TOPMOST
-
April 23rd, 1999, 09:40 AM
#3
Re: Always On Top property for Dialog Applicaton?
BOOL CTestDlg::OnInitDialog()
{
CDialog::OnInitDialog();
::SetWindowPos (this->GetSafeHwnd(), HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); //activate
return TRUE;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|