defining IDC_STATIC does save some futures problems. Right now though, I still keep getting syntax error on this line (its highlighted when I try to compile it):
Code:
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
Here is my full resource code:
Code:
#include "main.h"
MAINMENU MENU
{
POPUP "&File"
{
MENUITEM "E&xit", ID_FILE_EXIT
}
POPUP "&Stuff"
{
MENUITEM "&About", ID_ABOUT
MENUITEM "G&o somewhere else", 0, GRAYED
}
}
IDD_ABOUT DIALOG DISCARDABLE 0, 0, 239, 66
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "My About Box"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "&OK",IDOK,174,18,50,14
PUSHBUTTON "&Cancel",IDCANCEL,174,35,50,14
GROUPBOX "About this program...",IDC_STATIC,7,7,225,52
CTEXT "An example program showing how to use Dialog Boxes\r\n\r\nby theForger",
IDC_STATIC,16,18,144,33
END
Here is my main.h code:
Code:
#define ID_FILE_EXIT 9001
#define ID_ABOUT 9002
#define IDOK 9003
#define IDCANCEL 9004
#define IDC_STATIC 9009