|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
John Ritzenthaler
|
Jan 30, 2009 - 1:44 PM
|
As a simple example of this, I have an SDI application with two toolbars. In MainFrm.f I add the following member to CMainFrame: CExtNCSB<CTreeCtrl> m_treeTest; At the end of CMainFrame::OnCreate(), I have the following: ::SetRect(&rectWork, 0, 0, 100,100);
VERIFY(m_treeTest.Create(WS_CHILD, rectWork, this, 3000)); It crashes so badly the stack is lost.
|
|
John Ritzenthaler
|
Jan 30, 2009 - 2:29 PM
|
I tried constructing it with: bool bNcsbDelayedInitialization = true
bool bNcsbForceMiddleContainerMode = false That worked. Can you explain these two arguments?
|
|
John Ritzenthaler
|
Jan 30, 2009 - 2:07 PM
|
I tried adding contructor arguments: bool bNcsbDelayedInitialization = true
bool bNcsbForceMiddleContainerMode = true Then it doesn’t crash during construction but it crashes as soon as I set the focus to it. (This is in my actual application, not in the example sited above).
|
|
Technical Support
|
Feb 1, 2009 - 11:41 AM
|
We explained you details about the CExtNCSB template class in other thread. Please check how and where you are using the tree control.
|
|
John Ritzenthaler
|
Jan 30, 2009 - 1:47 PM
|
BTW, It works fine with CTreeCtrl instead of CExtNCSB<TreeCtrl>. It still crashes without the VERIFY() wrapper.
|
|