SetTilte Error after calling SetLayout |
Post Reply |
Author | |
9rap
Newbie Joined: 07 March 2005 Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 07 August 2005 at 4:48am |
I found CXTPDockingPane's SetTitle error after calling paneManager SetLayout.The Error is in CString's GetData(). ASSERT(m_pchData != NULL); the pchData ==NULL. How can I do? My code like the following: int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) ... m_pPaneChat = m_paneManager.CreatePane(IDR_PANE_CHAT, CRect(0, 0,150, 120), xtpPaneDockBottom); CXTPDockingPaneLayout layoutNormal(&m_paneManager); m_pPaneChat->SetTitle(_T("Title2")); ... } Edited by 9rap |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Don't use global pointers. After SetLayout m_pPaneChat already invalid pointer. call FindPane to find it. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |