CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Forcing modeless dialog to stay on top of modal one ?

    Dialog_1 is modal
    Dialog_2 is modeless
    Dialog_2 is a data member of Dialog_1
    How to force Dialog_2 to stay always on top of Dialog_1, even when Dialog_1 has focus


  2. #2
    Join Date
    Apr 1999
    Posts
    8

    Re: Forcing modeless dialog to stay on top of modal one ?

    Use SetWindowPos() with the wndTopMost flag for Dialog_2. This function is pretty well documented in the help. This does make it stay on top ALWAYS, though. It can be really annoying when you try to debug (the dialog stays on top and blocks your view!) If you need more help with this, let me know.
    Mindy


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