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 » MDI - CMyTaskAreaBar Collapse All
Subject Author Date
Timo Koponen Mar 18, 2004 - 7:28 PM

Hi,,,

I have been trying to figure is it possible to assign several dialogs to one window and switch between them by back/forw buttons.

BTW: Creat library!

/Timo

Technical Support Mar 22, 2004 - 9:18 AM

Dear Timo,

You need to create your dialog windows as child windows of CMyTaskAreaBar::m_wndTaskArea. The latter should be redefined as public. CMyTaskAreaBar::CTaskAreaWnd::SyncPage() should show only one of your dialogs, which corresponds to CMyTaskAreaBar::CTaskAreaWnd::m_nPageNo. The CMyTaskAreaBar::CTaskAreaWnd::WindowProc() virtual method should handle the WM_SIZE message to resize all the child dialogs and should not handle the WM_PAINT message.