diff --git a/Dialogs.aps b/Dialogs.aps index 499e801..02bfebf 100644 Binary files a/Dialogs.aps and b/Dialogs.aps differ diff --git a/Dialogs.rc b/Dialogs.rc index 43ccb1a..5514479 100644 --- a/Dialogs.rc +++ b/Dialogs.rc @@ -59,6 +59,16 @@ BEGIN CONTROL "",IDC_AXBROWSER1,"{A8F8E829-06DA-11D2-8D70-00A0C98B28E2}",WS_TABSTOP,7,7,354,63 END +IDD_PROPPAGE_SMALL DIALOGEX 0, 0, 81, 56 +STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION +CAPTION "File" +FONT 8, "MS Shell Dlg", 0, 0, 0x0 +BEGIN + PUSHBUTTON "Save",IDC_SAVE,7,7,67,14,BS_LEFT | BS_VCENTER | BS_FLAT + PUSHBUTTON "Load",IDC_LOAD,7,21,67,14,BS_LEFT | BS_VCENTER | BS_FLAT + PUSHBUTTON "Cancel",IDC_LOAD2,7,35,67,14,BS_LEFT | BS_VCENTER | BS_FLAT +END + ///////////////////////////////////////////////////////////////////////////// // @@ -75,6 +85,14 @@ BEGIN TOPMARGIN, 7 BOTTOMMARGIN, 70 END + + IDD_PROPPAGE_SMALL, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 74 + TOPMARGIN, 7 + BOTTOMMARGIN, 49 + END END #endif // APSTUDIO_INVOKED @@ -141,6 +159,21 @@ BEGIN END #endif // APSTUDIO_INVOKED + +///////////////////////////////////////////////////////////////////////////// +// +// Menu +// + +IDR_MENU1 MENU +BEGIN + POPUP "File" + BEGIN + MENUITEM "Save", ID_FILE_SAVE40004 + MENUITEM "Quit", ID_FILE_QUIT + END +END + #endif // English (Canada) resources ///////////////////////////////////////////////////////////////////////////// diff --git a/main.cpp b/main.cpp index 741388b..d8329e8 100644 --- a/main.cpp +++ b/main.cpp @@ -43,6 +43,7 @@ static int go_id = 0; static int go_ovr_id = 0; static int go_dn_id = 0; static bool mouseButton1Down = false; +static bool running = true; /** This simple demo applet uses the debug mode as the regular rendering mode so you can fly around the scene. diff --git a/resource.h b/resource.h index edbb9ef..2612c21 100644 --- a/resource.h +++ b/resource.h @@ -4,16 +4,22 @@ // #define IDD_TOOLBOX 101 #define IDD_ABOUT_DIALOG 102 +#define IDR_MENU1 107 +#define IDD_PROPPAGE_SMALL 108 #define IDC_AXBROWSER1 1001 -#define IDC_BUTTON1 1002 +#define IDC_SAVE 1004 +#define IDC_LOAD 1005 +#define IDC_LOAD2 1006 +#define ID_FILE_SAVE40004 40004 +#define ID_FILE_QUIT 40005 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 106 -#define _APS_NEXT_COMMAND_VALUE 40004 -#define _APS_NEXT_CONTROL_VALUE 1003 +#define _APS_NEXT_RESOURCE_VALUE 109 +#define _APS_NEXT_COMMAND_VALUE 40006 +#define _APS_NEXT_CONTROL_VALUE 1005 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif