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

Thread: Z-Order of MDI Child Windows

  1. #1
    Join Date
    Aug 2000
    Posts
    138

    Z-Order of MDI Child Windows

    I need to store and restore the positions of the MDI child windows. However, I can't figure out how to get the relative Z-orders of the MDI child windows to each other so that I can restore the positions back again at a later time.

    Any ideas? Thanks!


  2. #2
    Join Date
    May 1999
    Location
    Southern California
    Posts
    12,266

    Re: Z-Order of MDI Child Windows

    http://msdn.microsoft.com/library/ps...ndows_4khe.htm



    ****************************************************************************************************
    Ratings are unimportant but feedback is. Let the helper and the worldwide community know what works, perhaps with ratings.
    "Signature":
    My web site is Simple Samples.
    C# Corner Editor

  3. #3
    Join Date
    Nov 1999
    Location
    Dresden / Germoney
    Posts
    1,402

    Re: Z-Order of MDI Child Windows

    Hi,
    For correct window positioning (save&restore), it is higly recommended to use GetWindowPlacement / SetWindowPlacement. These functions take care of various problematic issues (like Z order, and desktop- vs. screen-positon for top level windows)

    The only problem is the WindowPlacement data cannot be used when the MDI child is created - you need to set the position after the window is created.

    I have this working in two of my apps... unfortunately, it's company code, so I can't give you code.

    Peter


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)