![]() |
pane can not be built |
Post Reply
|
| Author | |
awake
Groupie
Joined: 22 March 2011 Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
Topic: pane can not be builtPosted: 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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
awake
Groupie
Joined: 22 March 2011 Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
awake
Groupie
Joined: 22 March 2011 Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
awake
Groupie
Joined: 22 March 2011 Status: Offline Points: 12 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |