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 |
|
Jan Kooi
|
Nov 19, 2004 - 12:44 PM
|
Hallo, I try to create a CDialog in a CExtControlbar and using version 2.26 (downloaded 3 day’s ago) and VC++6. This is the code i’m using in oncreate: (it mainly copied from SDIDOCVIEW_600 to my own program. ) m_wndResizableBarEdit.SetInitDesiredSizeVertical( CSize( 100, 400 ) ); m_wndResizableBarEdit.SetInitDesiredSizeHorizontal( CSize( 300, 200 ) ); if( !m_wndResizableBarEdit.Create( NULL, // _T("Optional control bar caption"), this, ID_VIEW_RESIZABLEBAR_EDIT ) ) { TRACE0("Failed to create m_wndResizableBarEdit\n"); return -1; // fail to create } m_wndMenuBar.EnableDocking( CBRS_ALIGN_ANY ); pNwAscan=new CNwAscan; // pNwAscan->ShowWindow(SW_SHOW); if( ! pNwAscan->Create( IDD_DIALOG_NW_ASCAN, //this &m_wndResizableBarEdit ) ) { TRACE0("Failed to create m_wndDockedCtrlEdit\n"); return -1; // fail to create } it fails at the create when I use &m_wndResizableBarEdit as a parent but not on this. I changed the create part from CNwAscan back to original. can you help me. Regards J Kooi
|
|
Technical Support
|
Nov 22, 2004 - 2:34 AM
|
There is not enough information in your message, so we cannot say what’s wrong with your application. What is CNwAscan exactly? Please make sure that your dialog’s resource is a child dialog (rather than popup dialog). Please also check whether you create only a single window inside each resizable control bar. Of course, feel free to send us a test application so that we can help you quicker
|
|