I converted my project from eMBedded VC++ 4.0 to Visual Studio 2005 and I
made the necessary changes to CCeDocList, and renamed it to CDocList. (as per
suggestion of
http://msdn.microsoft.com/mobility/default.aspx?pull=/library/en-us/dnppcgen/html/migrating_evc_vs2005.asp).
ANyway, when I compile, I get the following error: error C2039:
'GetCommandBar' : is not a member of 'CDocList'. It used to be part of
CCeDocList, but it is now gone. What do I need to change to make use of this
code below? Thanks.
void CMyApp::OnCreateDocList( DLNHDR* pNotifyStruct, LRESULT* result )
{
//CCeDocList* pDocList = (CCeDocList*) FromHandle(
pNotifyStruct->nmhdr.hwndFrom );
CDocList* pDocList = (CDocList*) FromHandle( pNotifyStruct->nmhdr.hwndFrom );
//ASSERT_KINDOF( CCeDocList, pDocList );
ASSERT_KINDOF( CDocList, pDocList );
CCeCommandBar* pDocListCB = pDocList->GetCommandBar();
ASSERT( pDocListCB != NULL );
pDocListCB->InsertMenuBar( IDM_DOCLIST );
CFrameWnd::OnCreateDocList( pNotifyStruct, result );
}
Joe