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 Tech Support » How to get a reference to my MDI child from OnTabWndSelectionChange Collapse All
Subject Author Date
Thomas Maurer Oct 13, 2005 - 11:03 AM

Hello


I overrode OnTabWndSelectionChange to be notified when the tabbed MDI child changes. This works fine so far. How do I get a reference to my MDI child? I want to notify my MDI child that it is active somehow. In TAB_ITEM_INFO I do not find anything about the corresponding MDI child.


While writing this it came to my mind that good old WM_MDIACTIVATE is what I need.


But now that I started this message I would still like to know how do I get a reference to the MDI child? Maybe I will need the answer some other time.


Thanks in advance


Thomas


 

Technical Support Oct 14, 2005 - 5:30 AM

Yes, you can use the WM_MDIACTIVATE window message: just handle it in the CChildFrame class derived from CMDIChildWnd.