Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - pane can not be built
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

pane can not be built

 Post Reply Post Reply
Author
Message
awake View Drop Down
Groupie
Groupie


Joined: 22 March 2011
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote awake Quote  Post ReplyReply Direct Link To This Post Topic: pane can not be built
    Posted: 08 June 2011 at 5:19am
my code is
CXTPDockingPane* pwndPane1 = m_paneManager.CreatePane(
  IDR_PANE_OPTIONS, CRect(0, 0,200, 120), xtpPaneDockLeft);
 CXTPDockingPane* pwndPane2 = m_paneManager.CreatePane(
  IDR_PANE_PROPERTIES, CRect(0, 0,200, 120), xtpPaneDockBottom, pwndPane1);
  m_paneManager.CreatePane(
  IDR_PANE_DIALOG, CRect(0, 0,200, 120), xtpPaneDockBottom, pwndPane2);
 
 
LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)
{
 if (wParam == XTP_DPN_SHOWWINDOW)
 {
  CXTPDockingPane* pPane = (CXTPDockingPane*)lParam;
  if (!pPane->IsValid())
  {
   switch (pPane->GetID())
   {
   case IDR_PANE_DIALOG:
    if (!::IsWindow(m_dlgPane.m_hWnd))
    {
     m_dlgPane.Create(IDD_PANEDIALOG, this);
    }
    pPane->Attach(&m_dlgPane);
    break;.......
 
the program can not go to the code of"case IDR_PANE_DIALOG"
 
why ?
please tell me
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: 08 June 2011 at 5:42am
Check what value has IDR_PANE_DIALOG. Maybe its same as  IDR_PANE_PROPERTIES or IDR_PANE_OPTIONS.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
awake View Drop Down
Groupie
Groupie


Joined: 22 March 2011
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote awake Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2011 at 5:57am
unfortunately!!!
the value of IDR_PANE_DIALOG is 101
the value of IDR_PANE_OPTIONS IS 4000
the value of IDR_PANE_PROPERTIES is 4001
 
Back to Top
awake View Drop Down
Groupie
Groupie


Joined: 22 March 2011
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote awake Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2011 at 6:10am
I just want to learn the program of ActivePane.the view of the PaneDialog can not be built.other views are all right.
 
why????????????????????????
 
please tell me.
Back to Top
awake View Drop Down
Groupie
Groupie


Joined: 22 March 2011
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote awake Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2011 at 2:46am
the question has be solved.
 
the solution is that :I annotate the code
 
int nIDIcons[]={....}
......
until
return 0;
 
 
the pane I wanted is built.
 
but why?
 
after cancel the annotations,the pane  I wanted still exist.
 
it is too odd.
 
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.156 seconds.