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 access serialize data from dialog attached to CExtDynamicControlBar ? Collapse All
Subject Author Date
Darius Mikalauskas Nov 10, 2007 - 4:32 AM

Hello,

I would like to use CExtDynamicControlBar::OnSerializeDynamicProps override function to store parameters from dialog window placed inside this bar. How properly to get pointer to this CExtResizableDialog object?

Thank you in advance.
Darius

Technical Support Nov 10, 2007 - 1:05 PM

We would recommend that you be careful with your implementation of CExtDynamicControlBar::OnSerializeDynamicProps(). It should load and save exactly the same count of bytes from/to the archive. Otherwise, the code that loads the state of the dynamic bar site will fail. Please also note that the control bars are designed to contain only one child window. So, you can get it any time

CExtDynamicControlBar * pBar = . . .
CWnd * pWnd = pBar->GetWindow( GW_CHILD );
      ASSERT_VALID( pWnd );
      ASSERT( pWnd->GetSafeHwnd() != NULL );
CExtResizableDialog * pDialog = STATIC_DOWNCAST( CExtResizableDialog, pWnd );