Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   MENU Creation PROBLEM (http://www.go4expert.com/forums/menu-creation-problem-t18843/)

answerme 6Aug2009 11:11

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

shabbir 6Aug2009 15:22

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 ?

answerme 6Aug2009 15:40

Re: MENU Creation PROBLEM
 
NO its not a dialog based ,its a SDI

shabbir 6Aug2009 16:32

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 06:36.