Pane manager inside pane? |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 26 March 2008 at 4:44am |
This might sound strange, but is it possible to have a pane manager inside a CWnd-derived pane? My pane must have a "auto-hide" pane-like window, so this is the reason I'm trying to do this:
Main Frame -> Pane Manager -> Main Pane 1
Pane1 -> MyWindow -> Pane Manager -> Pane A
I've tried this, but I cannot see my window. InstallDockingPanes, CreatePane and AttachPane succeed. Also, I do not get any notifications, such as XTP_DPN_SHOWWINDOW.
What am I doing wrong? Thanks!
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
See DialogSample..
Think you need handle OnSize of your window:
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 |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Man, I was looking through its code, but didn't notice that part :/
Thanks!
|
|
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 |