i am building a dialog based application, am using the same code which id there in PageContainer sample application , but when i run it is not showing me the reziblebar control nor the PageContainer control and nor the dialog boxex. what i am supposed to do?
here is sample code i witen in OnInitDialog function()- for page container
if( !(
m_wndResizableBarV.Create(
NULL,
this,
ID_VIEW_RESIZABLE_BAR_V,
WS_CHILD|WS_VISIBLE|CBRS_LEFT|CBRS_FLYBY|CBRS_SIZE_DYNAMIC
)
&& m_wndPageContainerV.Create( &m_wndResizableBarV )
//’/&& m_dlgV0.Create( IDD_DIALOG_PAGE_0, &m_wndPageContainerV )
//’/&& m_dlgV1.Create( IDD_DIALOG_PAGE_1, &m_wndPageContainerV )
)
)
{
TRACE0("Failed to create page containers\n");
return -1; // fail to create
}
m_dlgV0.ShowSizeGrip( FALSE );
m_dlgV1.ShowSizeGrip( FALSE );
//’/m_wndResizableBarV.EnableDocking(CBRS_ALIGN_LEFT);
HINSTANCE hInstResource = AfxFindResourceHandle( MAKEINTRESOURCE( IDR_MAINFRAME ),RT_GROUP_ICON);
//’/ASSERT( hInstResource != NULL );
HICON hIconForCaption = (HICON)::LoadImage(hInstResource,MAKEINTRESOURCE( IDR_MAINFRAME ),IMAGE_ICON,16,16,0);
m_wndPageContainerV.PageInsert( m_dlgV0.GetSafeHwnd(), -1L, _T("Disabled Dialog"), hIconForCaption, true );
m_wndPageContainerV.PageInsert( m_dlgV1.GetSafeHwnd(), -1L, _T("Dialog"), hIconForCaption, true );
m_wndPageContainerV.PageExpand(0,true,true,true);
//’/pMDIView->SetPageContainerChecksByStyle(m_wndPageContainerV.GetPageContainerStyle());
m_wndResizableBarV.EnableDocking(CBRS_ALIGN_LEFT);