CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    3

    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

  2. #2
    Join Date
    Apr 1999
    Posts
    23

    Re: Always On Top property for Dialog Applicaton?

    Use SetWindowPos() using the flag HWND_TOPMOST


  3. #3
    Join Date
    Apr 1999
    Posts
    7

    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
  •  





Click Here to Expand Forum to Full Width

Featured