MFCApplication/MFCApplication.cpp
void CMFCApplicationApp::PreLoadState()
{
	BOOL bNameValid;
	CString strName;
	bNameValid = strName.LoadString(IDS_EDIT_MENU);
	ASSERT(bNameValid);
	GetContextMenuManager()->AddMenu(strName, IDR_POPUP_EDIT);
	bNameValid = strName.LoadString(IDS_EXPLORER);
	ASSERT(bNameValid);
	GetContextMenuManager()->AddMenu(strName, IDR_POPUP_EXPLORER);
}
// CMFCApplicationApp customization load/save methods
CMFCApplicationApp customization load/save methods
CMFCApplicationApp customization load / save methods
void CMFCApplicationApp::PreLoadState()
{
	BOOL bNameValid;
	CString strName;
	bNameValid = strName.LoadString(IDS_EDIT_MENU);
	ASSERT(bNameValid);
	GetContextMenuManager()->AddMenu(strName, IDR_POPUP_EDIT);
	bNameValid = strName.LoadString(IDS_EXPLORER);
	ASSERT(bNameValid);
	GetContextMenuManager()->AddMenu(strName, IDR_POPUP_EXPLORER);
}
void CMFCApplicationApp :: PreLoadState ( ) { BOOL bNameValid ; CString strName ; bNameValid = strName . LoadString ( IDS_EDIT_MENU ) ; ASSERT ( bNameValid ) ; GetContextMenuManager ( ) -> AddMenu ( strName , IDR_POPUP_EDIT ) ; bNameValid = strName . LoadString ( IDS_EXPLORER ) ; ASSERT ( bNameValid ) ; GetContextMenuManager ( ) -> AddMenu ( strName , IDR_POPUP_EXPLORER ) ; }
CMFCApplicationApp customization load/save methods
CMFCApplicationApp customization load / save methods