Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Pane that initially floats....
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Pane that initially floats....

 Post Reply Post Reply
Author
Message
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Topic: Pane that initially floats....
    Posted: 02 September 2004 at 3:32pm

I want to create a pane that is initially floating.  When I call FloatPane() in the XTP_DPN_SHOWWINDOW handler, the pane does float, but the frame has already resized and shrunk the view.  The only way I can seem to get it to work is to Toggle it twice.

Any ideas?  Anybody?  This is driving me nuts....

 

- David

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: 05 September 2004 at 3:36am

You must Float it after create (not in XTP_DPN_SHOWWINDOW handler):

CXTPDockingPane* pwndPane2 = m_paneManager.CreatePane(
  IDR_PANE_PROPERTIES, CRect(0, 0,200, 120), dockBottomOf, pwndPane1);

 m_paneManager.FloatPane(pwndPane2, CRect(10, 20, 400, 400));

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Posted: 07 September 2004 at 5:43pm

Thanks... That makes the window float, but it also seems to bypass XTP_DPN_SHOWWINDOW, so its child is never attached.  When I tried to move the attach code immediately preceding the FloatPane call, the dialog creates, but attaches itself to the desktop or something.  anyway, whenever I move the now-floating pane, its content remains behind.  Here's the code:

 CXTPDockingPane* pPane3 = m_paneManager.CreatePane(IDR_EDITPIPESIZES,r,dockRightOf,NUL L);
 if(!m_pEditPipeSizes)
 {
    m_pEditPipeSizes = new CEditPipeSizes;
 }
 if(!m_pEditPipeSizes->GetSafeHwnd())
 {
    m_pEditPipeSizes->m_auxInput = auxInput; // do this before creating the window... you need it later for WM_INITDIALOG
  m_pEditPipeSizes->Create(MAKEINTRESOURCE(IDD_ EDITPIPESIZES),NULL);
  
 } 
 pPane3->Attach(m_pEditPipeSizes);
 
 m_paneManager.FloatPane(pPane3,r);
 return;

Thanks!

- David

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: 10 September 2004 at 2:42am

bypass?

See my sample. I create it floated and XTP_DPN_SHOWWINDOW is called.

 

2004-09-10_024249_DockingFormView.zip

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.