Print Page | Close Window

Pane manager inside pane?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=9961
Printed Date: 05 May 2024 at 2:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Pane manager inside pane?
Posted By: znakeeye
Subject: Pane manager inside pane?
Date 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!



Replies:
Posted By: Oleg
Date Posted: 26 March 2008 at 5:21am
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


Posted By: znakeeye
Date Posted: 26 March 2008 at 6:15am
Man, I was looking through its code, but didn't notice that part :/
 
Thanks!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net