From a0555dd6870ff3c4fbc998440e8a8f0cf78a24de Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 7 Jul 2003 03:52:08 +0000 Subject: [PATCH] add OK dialog with "stop bothering me" checkbox --- stepmania/src/StepMania.RC | 22 ++++++++++++++++++++++ stepmania/src/resource.h | 8 ++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/stepmania/src/StepMania.RC b/stepmania/src/StepMania.RC index 09617e9568..fc1368ecab 100644 --- a/stepmania/src/StepMania.RC +++ b/stepmania/src/StepMania.RC @@ -80,6 +80,20 @@ BEGIN LTEXT "Estimated call stack",IDC_STATIC,7,184,64,8 END +IDD_OK DIALOGEX 0, 0, 318, 74 +STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | + WS_CAPTION +CAPTION "StepMania" +FONT 8, "MS Shell Dlg", 400, 0, 0x1 +BEGIN + DEFPUSHBUTTON "OK",IDOK,131,53,50,14 + CONTROL "&Don't display this message",IDC_HUSH,"Button", + BS_AUTOCHECKBOX | WS_TABSTOP,211,56,100,10 + EDITTEXT IDC_MESSAGE,7,7,304,40,ES_CENTER | ES_MULTILINE | + ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER | + WS_VSCROLL +END + ///////////////////////////////////////////////////////////////////////////// // @@ -104,6 +118,14 @@ BEGIN VERTGUIDE, 286 BOTTOMMARGIN, 270 END + + IDD_OK, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 311 + TOPMARGIN, 7 + BOTTOMMARGIN, 67 + END END #endif // APSTUDIO_INVOKED diff --git a/stepmania/src/resource.h b/stepmania/src/resource.h index dc21dc16e0..347f60041f 100644 --- a/stepmania/src/resource.h +++ b/stepmania/src/resource.h @@ -8,6 +8,7 @@ #define BITMAP_LOADING 117 #define BITMAP_CRASH 121 #define BITMAP_ERROR 129 +#define IDD_OK 129 #define IDD_DISASM_CRASH 199 #define IDC_SHOCKWAVEFLASH1 1000 #define IDC_BUTTON_RESTART 1001 @@ -28,6 +29,9 @@ #define IDC_VIEW_LOG 1012 #define IDC_STATIC_MESSAGE3 1013 #define IDC_PROGRESS1 1014 +#define IDC_HUSH 1016 +#define IDC_MESSAGE 1017 +#define IDC_CHECK2 1019 #define IDC_ASMBOX 1133 #define IDC_REGDUMP 1283 #define IDC_STATIC_BOMBREASON 1284 @@ -38,9 +42,9 @@ // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_RESOURCE_VALUE 130 #define _APS_NEXT_COMMAND_VALUE 40009 -#define _APS_NEXT_CONTROL_VALUE 1015 +#define _APS_NEXT_CONTROL_VALUE 1020 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif