|
-
April 20th, 1999, 06:07 AM
#1
Change menu in view
Hello ,
I tried to change menu in view but it fail
I want to change menu in view
///
void CMainFrame::ChangMenu()
{
CMenu* mOld;
CMenu* mNew;
mOld = GetMenu();
if (mOld->DestroyMenu())
AfxMessageBox("Destroyed");
if (mNew->LoadMenu(IDR_MENU1))
AfxMessageBox("Loaded");
SetMenu(mNew);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|