Hi
I am creating an application. It has a dialog which is derived from CExtResizableDialog.. I am creating this dialog in my Mainfrm.cpp class.
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
....................
....................
if (!m_wndDialogBar1.MyCreate(this, &m_cDialog, CString("Measurements"), IDD_DIALOG_TOOLS))
{
TRACE0("Failed to create dialogbar\n");
return 0; // fail to create
}
m_wndDialogBar1.SetBarStyle(m_wndDialogBar1.GetBarStyle()|CBRS_TOOLTIPS|CBRS_FLYBY|CBRS_SIZE_DYNAMIC);
//m_wndDialogBar1.EnableDocking(CBRS_NOALIGN);
//DockControlBar(&m_wndDialogBar1,AFX_IDW_DOCKBAR_BOTTOM);
}
where m_wndDialogBar1 is the object of CCoolDialogBar and m_cDialog is the object of MyDialog.
my problem is that i am unable to get handler of m_cDialog. and gettinf Assertion in these lines due to handler
m_wndDialogBar1.EnableDocking(CBRS_NOALIGN);
DockControlBar(&m_wndDialogBar1,AFX_IDW_DOCKBAR_BOTTOM);
plz give me some idea.
thanks.