Print Page | Close Window

pane can not be built

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=18515
Printed Date: 29 March 2024 at 5:11am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: pane can not be built
Posted By: awake
Subject: pane can not be built
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: awake
Date 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
 


Posted By: awake
Date 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.


Posted By: awake
Date 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.
 



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