Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS General Discussion » page container in dialog based application Collapse All
Subject Author Date
parikshit nangre Mar 25, 2008 - 3:52 AM

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);


 

parikshit nangre Mar 27, 2008 - 5:10 AM

i managed to solve this problem.