"failed to create emty document" error msg when creating DialogBar
I'd like to add Diagbar in SDI Document in MFC. (it's basic MFC document , just add to opencascade )
I just added Dialogbar named "IDD_DIALOGBAR_3" in Resouece View.
-- Header File ---
-- Source File---
if ( !m_wndDialogbar.Create( this, IDD_DIALOGBAR_3,
CBRS_RIGHT | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_HIDE_INPLACE, IDD_DIALOGBAR_3 ) )
TRACE0( "Failed to create dialog bar m_wndMyDialogBar\n" );
return -1; // fail to create
m_wndDialogbar.EnableDocking( CBRS_ALIGN_ANY );
EnableDocking( CBRS_ALIGN_ANY );
DockControlBar( &m_wndDialogbar );
Then, I saw the following msg.
"failed to create empty document"
When repeat this again without Opencascade , It's no err msg.
I don't know the way to solve that.
Please let me know how to solve that.
Thank you in advance.