Setting up a Menu Resource file
I will try to outline how you can set up a resource file for a menu.
1. Go to your WinMain and locate the section where you set up the windows class.
wcl.lpszMenuName = "MyMenu"
You can use your windowclass name in place of the wcl. and what ever
you call your menu will go in place of the "MyMenu".
2. If you have accelerators keys you will need to go to the line
that looks something like this --
hAccel = LoadAccelerators(hThisInst, "MyMenu");
Here you will put the MyMenu or your menu name here.
3. If you have accelerators keys you will most likely have the
following line in your message loop.
if(!TranslateAccelerator(hwnd, hAccel, &msg))
Here you will need to place the handle returned from LoadAccelerators.
4. The Name of the Resource text file does not matter but you
can name it what ever your main source code file is.
The important thing here is the *.rc ending since that is what
the system looks for. The resource file will need to be complied
into a *.res file that can then be linked in with every thing else.
Microsoft Visual C++ 2010 Express and Borland C++ X IDE systems take care of this automatically. If your system is different you will need to find out how to compile the *.rc file and make a *.res file.
You might note that Microsoft Visual C++ 2010 Express does not have
a resource editor so just use a text editor to make *.rc text file.
Inside of the *.rc file you will most likely have a #include "*.h"
and possibly other includes at the top of the file. The next item
WHAT EVERY GOES IN THE *.RC FILE
The important thing is the MyMenu or what ever you called it must
go here because this is what ties it back to the WinMain when linking.
I hope this helps.