-
November 3rd, 2000, 08:48 PM
#1
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!
-
November 4th, 2000, 07:34 PM
#2
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.
-
November 4th, 2000, 08:00 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|