Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » How to serialize the window placements and Z-order in MDI children created using CExtDynamicControlB Collapse All
Subject Author Date
Shiu Chan Aug 10, 2006 - 9:11 AM

Hello,

In the Skinable example, the states of the windows and controls are serialized to and from the Registry in CMainFrame::OnCreate and CMainFrame::DestroyWindow, respectively. How can I also serialize the locations, sizes, display states (minimized, maximized, normal, etc., basically information that would be in a WINDOWPLACEMENT struture) as well as the Z-order of the MDI children? I am using Prof-UIS library v 2.54 freeware.

Thanks!

Technical Support Aug 10, 2006 - 9:48 AM

You can save/restore the state of the following UI elements:

1) Any UI element that is a single per application instance and that does not require exact identification. For example, the main frame or dialog window.

2) Any UI element that has its unique identifier. For example, all the control bars have unique dialog control identifiers and that is why its sate can be saved/restored.

MDI child frame windows cannot be identified generally. In some particular cases, for example when the Document/View architecture is applied, an MDI child frames can be identified by its title or path of the document object but this will not help if one document can be open with multiple frames/views.

The following article may be helpful with this: http://www.codeproject.com/docview/smartframes.asp