My menu will not show up in my win32 application

I just defined my own resource file (.rc) and a header that contains all the #defines for the menu items.. but once i include the header file in my .cpp file, the window will now show the menu i specified in the resource file.. (in codeblocks)

Can anyone help me?

here is my header file
1
2
3
4
5
//ResourceMenu.h
#define ID_Menu 100
#define ID_Save 1
#define ID_Open 2
#define ID_SaveAs 3 




here is my resource file
1
2
3
4
5
6
7
8
9
10
11
12
//ResourceMenu.rc
#include "ResourceMenu.h"

ID_Menu MENU
BEGIN
   POPUP "File"
		BEGIN
		   MENUITEM "Open", ID_Open
		   MENUITEM "Save", ID_Save
		   MENUITEM "Save As", ID_SaveAs
		END
END



and here is my .cpp
1
2
3
4
5
6
#include <windows.h>        /* Used for the windows API */
#include <Richedit.h>       /* Used for RICHEDIT_CLASS */
#include "ResourceMenu.h"       /* Resource file that contain information about the windows pop up menu and it's items */

windowclass.lpszMenuName = MAKEINTRESOURCE(ID_Menu);      
//more code here 
Last edited on
Nevermind I figures it out.

Turns out that i was supposed to add the resource file to the project. :P
Topic archived. No new replies allowed.