Are you sure you are including <windows.h>? This works for me
Code:
#include <windows.h>
#include "resource.h"
//My Stuff Ignore :)
mainMenu MENU
{
POPUP "&File"
{
MENUITEM "&New", fileMenuNew
MENUITEM "E&xit", fileMenuExit
}
POPUP "&Help"
{
MENUITEM "&About", helpMenuAbout
}
}
helpDialog DIALOGEX 0, 0, 98, 52
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
EXSTYLE WS_EX_TOOLWINDOW
CAPTION "My Dialog Toolbar"
FONT 8, "MS Sans Serif"
BEGIN
PUSHBUTTON "&Press This Button",IDC_PRESS,7,7,84,14
PUSHBUTTON "&Or This One",IDC_OTHER,7,31,84,14
END
resource.h
Code:
#ifndef resource_h
#define resource_h
#define mainMenu 100
#define fileMenuExit 101
#define fileMenuNew 102
#define helpMenuAbout 103
#define helpDialog 200
#define IDC_PRESS 201
#define IDC_OTHER 202
#endif //resource_h