![]() |
MENU Creation PROBLEM
Hye All
Iam facing problem regarding MENU creation in MFC visual studio 2008 .I have created a menu properly but not able to map . The Steps that i am following 1: In resource file ->menu file ->IDR_MYTYPE 2:there creating new menu 3:IN ADD Event Handler adding putting the function name(or deafult it will have its own name) & selecting the class list then click on to ADD & EDIT BUTTON. 4:On that CPP file IN BEGIN MESSAGE MAP { ON_COMMAND(ID_MYTYPE, &CScenGenView::OnMYTYPEXYZ) 5: GIVING a meesagebox ,when i run that application it is not displaying messagebox BUT if i do the same process in mainframe.cpp ,messagebox getting displayed. ANy IDea how to solve it |
Re: MENU Creation PROBLEM
If you are using the Wizard then it would be difficult to get the idea as to what goes wrong.
first what is your project type ? Is it Dialog Based ? |
Re: MENU Creation PROBLEM
NO its not a dialog based ,its a SDI
|
Re: MENU Creation PROBLEM
Then SDI has a default menu linked. You have to assign the menu to the window as well.
|
| All times are GMT +5.5. The time now is 16:02. |