DockingPaneManager inside a CWnd |
Post Reply |
Author | |
adrien
Senior Member Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
Posted: 20 January 2008 at 10:16pm |
For some reason we want to be able to dock panes inside a CWnd object (this is because this CWnd is the container for the client part of a frame window provided in another DLL module).
So, we added a CXTPDockingPaneManager member to the CWnd, and we call CreatePane on it.
However, there is no message XTP_DPN_SHOWWINDOW called.
I believe this is because CXTPDockingPane::ShowWindow is not called, and I believe this is called because m_bLayoutCreated is not TRUE yet, because WM_SIZEPARENT is not sent by default to a CWnd.
Is there any recommended steps to take to get a docking pane manager to work inside any generic CWnd?
Thanks
Adrien
PS CJ 11.2.2
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Add OnSize handler and add this code:
(from Samples\DockingPane\DialogPanes sample)
void CDialogPanesDlg::OnSize(UINT nType, int cx, int cy)
{ CDialog::OnSize(nType, cx, cy); CRect rcClient(0, 0, cx, cy); RepositionBars(0, 0xffff, AFX_IDW_PANE_FIRST, 0, 0, &rcClient); RepositionBars(0, 0xffff, AFX_IDW_PANE_FIRST, reposQuery, &rcClient, &rcClient);
if (m_wndView.GetSafeHwnd())
{ m_wndView.MoveWindow(rcClient); } } |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |