Document order
-
In an MFC MDI app, I need to determine the ordering of open documents, based on the z-order of the associated views. I tried using GetFirstDocPosition() and it's associates, but it turns out that only gives me the order in which the documents were opened (which is the same as the order typically displayed in the "Window" menu). What I need though is the order in which the documents are in the z-order (like if you cycle through them with CTRL-TAB). I know this is possible, the VC.NET 2003 IDE shows the "Window" menu in this order, I just can't figure out how it's done. :confused: Any ideas or directions I can look? ----- In the land of the blind, the one eyed man is king.
-
In an MFC MDI app, I need to determine the ordering of open documents, based on the z-order of the associated views. I tried using GetFirstDocPosition() and it's associates, but it turns out that only gives me the order in which the documents were opened (which is the same as the order typically displayed in the "Window" menu). What I need though is the order in which the documents are in the z-order (like if you cycle through them with CTRL-TAB). I know this is possible, the VC.NET 2003 IDE shows the "Window" menu in this order, I just can't figure out how it's done. :confused: Any ideas or directions I can look? ----- In the land of the blind, the one eyed man is king.
You'll need to enumerate the MDI child windows. Have a look at GetWindow( GW_HWNDFIRST / GW_HWNDNEXT ) and GetNextWindow() and also EnumChildWindows (). Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
-
You'll need to enumerate the MDI child windows. Have a look at GetWindow( GW_HWNDFIRST / GW_HWNDNEXT ) and GetNextWindow() and also EnumChildWindows (). Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"