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

    How to make modeless dialog NOT the topmost?

    I created a modeless dialog box but it remains the topmost window even when I select other windows in my application. How can make it behave like a normal window?


  2. #2
    Join Date
    Apr 1999
    Posts
    11

    Re: How to make modeless dialog NOT the topmost?

    Hello,

    Well, obviously this is all a speculation, since it's hard to implement every advice and see it working, but:

    Did You try? :
    CWnd::SetWindowPos(CWnd::wndNoTopMost, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE );

    A CDialog as You know inherits CWnd.

    good luck
    Rem.


  3. #3
    Join Date
    Apr 1999
    Posts
    3

    Re: How to make modeless dialog NOT the topmost?

    Yep, I tried
    GridDlg->SetWindowPos(&GridDlg->wndNoTopMost, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE );

    and
    GridDlg->ModifyStyleEx(WS_EX_TOPMOST,SWP_NOSIZE);
    without success.

    The dialog just refuses to go behind the main application window even though the application window has focus!



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