VC++ 6 Menu resource question

This is a discussion on VC++ 6 Menu resource question within the Windows Programming forums, part of the Platform Specific Boards category; When clicking the Menuitem "New" on my IDE, I can choose to create a new Resource File or a new ...

VC++ 6 Menu resource question

When clicking the Menuitem "New" on my IDE, I can choose to create a new Resource File or a new Resource Script.
I have heard one can create Menu Resources this way, and the name of the resource can be used in a codeline like:

WNDCLASSEX wcl;
wcl.lpszMenuName="resourcename";

Here is my problem:
When creating a window of the window class above, I can't see the Menu Resource I built with the resource-editor. Will I have to call a function like ShowMenu or so in case WM_CREATE or WM_PAINT? Maybe I made an error with the Menu Resource creation ? Please help me (maybe with code).

If you gave your menu resource a string identifier then you can associate it with your window class exactly as you have done ie
by setting the lpszMenuName of the WNDCLASSEX struct. If you have given your menu resource a (short) int identifier then you need to use something like MAKEINTRESOURCE on it in order to convert it to a form recognisable to that parameter of WNDLASSEX.

You don't need any additional code; any window created from that registered window class should have the menu attached to it as specified when the window class was registered.

Maybe, but without seeing it, it's impossible to say. Does your code compile and run ok? Does it report any errors/warnings? If you do get any errors/warnings, post them along with any guilty lines of code. If your project isn't too big, strip out all exe and temp files, zip it up and attach it - it may be easier to spot problems.