Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Pane manager inside pane?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Pane manager inside pane?

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Pane manager inside pane?
    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!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 26 March 2008 at 6:15am
Man, I was looking through its code, but didn't notice that part :/
 
Thanks!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.