if (modal) {\r
MessageBox(NULL, errorMessage, errorTitle, MB_OK|MB_ICONEXCLAMATION);\r
} else {\r
+ int i, n = 0;\r
+ for(i=0; errorMessage[i]; i++) n += (errorMessage[i] == '\n');\r
lpProc = MakeProcInstance((FARPROC)ErrorDialog, hInst);\r
- CreateDialog(hInst, MAKEINTRESOURCE(DLG_Error),\r
+ CreateDialog(hInst, MAKEINTRESOURCE(n > 4 ? DLG_Big : DLG_Error),\r
hwndMain, (DLGPROC)lpProc);\r
FreeProcInstance(lpProc);\r
}\r
DEFPUSHBUTTON "OK",IDOK,84,48,50,14\r
END\r
\r
+DLG_Big DIALOG DISCARDABLE 0, 0, 220, 121\r
+STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU\r
+CAPTION "Error"\r
+FONT 8, "MS Sans Serif"\r
+BEGIN\r
+ ICON 32515,IDC_STATIC,4,4,21,20\r
+ LTEXT "Sorry Charlie",OPT_ErrorText,28,4,193,96\r
+ DEFPUSHBUTTON "OK",IDOK,84,103,50,14\r
+END\r
+\r
DLG_Colorize DIALOGEX 0, 0, 174, 61\r
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU\r
CAPTION "I C S Interaction Colors"\r
CONTROL "",OPT_EngineVariant+4,"Button",BS_AUTORADIOBUTTON,80,144,70,10\r
CONTROL "",OPT_EngineVariant+5,"Button",BS_AUTORADIOBUTTON,154,144,70,10\r
CONTROL "",OPT_EngineVariant+6,"Button",BS_AUTORADIOBUTTON,9,154,70,10\r
-\r
-\r
-\r
-\r
CONTROL "",OPT_EngineVariant+7,"Button",BS_AUTORADIOBUTTON,80,154,70,10\r
CONTROL "",OPT_EngineVariant+8,"Button",BS_AUTORADIOBUTTON,154,154,70,10\r
CONTROL "",OPT_EngineVariant+9,"Button",BS_AUTORADIOBUTTON,9,164,70,10\r