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
|
Go4Expert Founder
|
![]() |
| 6Aug2009,15:22 | #2 |
|
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 ? |
|
Ambitious contributor
|
|
| 6Aug2009,15:40 | #3 |
|
NO its not a dialog based ,its a SDI
|
|
Go4Expert Founder
|
![]() |
| 6Aug2009,16:32 | #4 |
|
Then SDI has a default menu linked. You have to assign the menu to the window as well.
|

