Slightly widen the Cheat Search dialog.

This commit is contained in:
owomomo 2020-09-10 00:53:44 +08:00
parent a3a0e3e543
commit 6dbac1304a
2 changed files with 46 additions and 45 deletions

View File

@ -282,7 +282,7 @@ HWND InitializeCheatList(HWND hwnd)
SendMessage(hwndChtList, LVM_INSERTCOLUMN, 0, (LPARAM)&lv); SendMessage(hwndChtList, LVM_INSERTCOLUMN, 0, (LPARAM)&lv);
lv.pszText = "Name"; lv.pszText = "Name";
lv.cx = 132; lv.cx = 152;
SendMessage(hwndChtList, LVM_INSERTCOLUMN, 1, (LPARAM)&lv); SendMessage(hwndChtList, LVM_INSERTCOLUMN, 1, (LPARAM)&lv);
// Add a checkbox to indicate if the cheat is activated // Add a checkbox to indicate if the cheat is activated

View File

@ -12,7 +12,7 @@
#undef APSTUDIO_READONLY_SYMBOLS #undef APSTUDIO_READONLY_SYMBOLS
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// English (United States) resources // Ó¢Óï(ÃÀ¹ú) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
@ -1374,53 +1374,54 @@ BEGIN
LTEXT "New Selection Name:",-1,5,240,68,8 LTEXT "New Selection Name:",-1,5,240,68,8
END END
CHEATCONSOLE DIALOGEX 0, 0, 387, 226 CHEATCONSOLE DIALOGEX 0, 0, 417, 227
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Cheat Search" CAPTION "Cheat Search"
FONT 8, "MS Shell Dlg", 400, 0, 0x1 FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN BEGIN
GROUPBOX "Active Cheats",IDC_GROUPBOX_CHEATLIST,5,2,169,219,WS_TABSTOP GROUPBOX "Active Cheats",IDC_GROUPBOX_CHEATLIST,5,2,199,219,WS_TABSTOP
CONTROL "Enable",IDC_CHEAT_GLOBAL_SWITCH,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,11,12,38,10 CONTROL "Enable",IDC_CHEAT_GLOBAL_SWITCH,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,11,12,35,10
CONTROL "Auto load / save",IDC_CHEAT_AUTOLOADSAVE,"Button",BS_AUTO3STATE | WS_TABSTOP,59,12,66,10 CONTROL "Auto load / save with game",IDC_CHEAT_AUTOLOADSAVE,
CONTROL "Show GG", IDC_CHEAT_SHOWGG, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 127, 12, 42, 10 "Button",BS_AUTO3STATE | WS_TABSTOP,50,12,102,10
CONTROL "",IDC_LIST_CHEATS,"SysListView32",LVS_REPORT | LVS_SHOWSELALWAYS | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,11,24,157,133 CONTROL "Show GG",IDC_CHEAT_SHOWGG,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,156,12,42,10
LTEXT "Name:",IDC_STATIC,12,162,22,10 CONTROL "",IDC_LIST_CHEATS,"SysListView32",LVS_REPORT | LVS_SHOWSELALWAYS | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,11,24,187,133
EDITTEXT IDC_CHEAT_NAME,37,160,131,12,ES_AUTOHSCROLL | ES_WANTRETURN LTEXT "Name:",IDC_STATIC,12,162,23,8
EDITTEXT IDC_CHEAT_NAME,40,160,158,12,ES_AUTOHSCROLL | ES_WANTRETURN
LTEXT "Address:",IDC_CHEAT_ADDRESS_LABEL,12,176,30,8 LTEXT "Address:",IDC_CHEAT_ADDRESS_LABEL,12,176,30,8
EDITTEXT IDC_CHEAT_ADDR,44,174,25,12,ES_UPPERCASE | ES_WANTRETURN EDITTEXT IDC_CHEAT_ADDR,46,174,25,12,ES_UPPERCASE | ES_WANTRETURN
LTEXT "Value:",IDC_CHEAT_VAL_LABEL,73,176,22,8 LTEXT "Value:",IDC_CHEAT_VAL_LABEL,89,176,22,8
EDITTEXT IDC_CHEAT_VAL,97,174,16,12,ES_UPPERCASE | ES_WANTRETURN EDITTEXT IDC_CHEAT_VAL,115,174,16,12,ES_UPPERCASE | ES_WANTRETURN
LTEXT "Compare:",IDC_CHEAT_COM_LABEL,117,176,34,8 LTEXT "Compare:",IDC_CHEAT_COM_LABEL,145,176,34,8
EDITTEXT IDC_CHEAT_COM,152,174,16,12,ES_UPPERCASE | ES_WANTRETURN EDITTEXT IDC_CHEAT_COM,182,174,16,12,ES_UPPERCASE | ES_WANTRETURN
LTEXT "Cheat Code:",IDC_CHEAT_CODE_LABEL,12,190,42,8 LTEXT "Cheat Code:",IDC_CHEAT_CODE_LABEL,12,190,42,8
EDITTEXT IDC_CHEAT_TEXT,55,188,47,12,ES_UPPERCASE | ES_AUTOHSCROLL EDITTEXT IDC_CHEAT_TEXT,56,188,47,12,ES_UPPERCASE | ES_AUTOHSCROLL
LTEXT "GG:",IDC_GAME_GENIE_LABEL,106,191,13,8 LTEXT "Game Genie:",IDC_GAME_GENIE_LABEL,107,190,43,8
EDITTEXT IDC_CHEAT_GAME_GENIE_TEXT,120,188,47,12,ES_UPPERCASE | ES_AUTOHSCROLL EDITTEXT IDC_CHEAT_GAME_GENIE_TEXT,151,188,47,12,ES_UPPERCASE | ES_AUTOHSCROLL
DEFPUSHBUTTON "Add",IDC_BTN_CHEAT_ADD,7,202,30,16 DEFPUSHBUTTON "Add",IDC_BTN_CHEAT_ADD,10,202,32,16
PUSHBUTTON "Delete",IDC_BTN_CHEAT_DEL,37,202,30,16 PUSHBUTTON "Delete",IDC_BTN_CHEAT_DEL,43,202,32,16
PUSHBUTTON "Update",IDC_BTN_CHEAT_UPD,67,202,30,16 PUSHBUTTON "Update",IDC_BTN_CHEAT_UPD,76,202,32,16
PUSHBUTTON "Import...",IDC_BTN_CHEAT_ADDFROMFILE,100,202,36,16 PUSHBUTTON "Import...",IDC_BTN_CHEAT_ADDFROMFILE,117,202,40,16
PUSHBUTTON "Export...",IDC_BTN_CHEAT_EXPORTTOFILE,136,202,36,16 PUSHBUTTON "Export...",IDC_BTN_CHEAT_EXPORTTOFILE,157,202,40,16
GROUPBOX "Cheat Search",IDC_GROUPBOX_CHEATSEARCH,180,2,201,206,WS_TABSTOP GROUPBOX "Cheat Search",IDC_GROUPBOX_CHEATSEARCH,209,2,201,206,WS_TABSTOP
PUSHBUTTON "Reset",IDC_BTN_CHEAT_RESET,192,12,55,15 PUSHBUTTON "Reset",IDC_BTN_CHEAT_RESET,221,12,55,15
PUSHBUTTON "Known Value:",IDC_BTN_CHEAT_KNOWN,192,36,55,15 PUSHBUTTON "Known Value:",IDC_BTN_CHEAT_KNOWN,221,36,55,15
LTEXT "0x",IDC_CHEAT_LABEL_KNOWN,217,55,9,8 LTEXT "0x",IDC_CHEAT_LABEL_KNOWN,246,55,9,8
EDITTEXT IDC_CHEAT_VAL_KNOWN,228,53,18,12,ES_UPPERCASE EDITTEXT IDC_CHEAT_VAL_KNOWN,257,53,18,12,ES_UPPERCASE
GROUPBOX "Previous Compare",IDC_GROUP_PREV_COM,185,68,69,135 GROUPBOX "Previous Compare",IDC_GROUP_PREV_COM,214,68,69,135
PUSHBUTTON "Equal",IDC_BTN_CHEAT_EQ,192,79,55,15,WS_GROUP PUSHBUTTON "Equal",IDC_BTN_CHEAT_EQ,221,79,55,15,WS_GROUP
PUSHBUTTON "Not Equal",IDC_BTN_CHEAT_NE,192,99,55,15 PUSHBUTTON "Not Equal",IDC_BTN_CHEAT_NE,221,99,55,15
CONTROL "By:",IDC_CHEAT_CHECK_NE_BY,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,204,117,22,10 CONTROL "By:",IDC_CHEAT_CHECK_NE_BY,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,233,117,22,10
EDITTEXT IDC_CHEAT_VAL_NE_BY,228,116,18,12,ES_UPPERCASE | ES_WANTRETURN EDITTEXT IDC_CHEAT_VAL_NE_BY,257,116,18,12,ES_UPPERCASE | ES_WANTRETURN
PUSHBUTTON "Greater Than",IDC_BTN_CHEAT_GT,192,134,55,15 PUSHBUTTON "Greater Than",IDC_BTN_CHEAT_GT,221,134,55,15
CONTROL "By:",IDC_CHEAT_CHECK_GT_BY,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,204,152,22,10 CONTROL "By:",IDC_CHEAT_CHECK_GT_BY,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,233,152,22,10
EDITTEXT IDC_CHEAT_VAL_GT_BY,228,151,18,12,ES_UPPERCASE | ES_WANTRETURN EDITTEXT IDC_CHEAT_VAL_GT_BY,257,151,18,12,ES_UPPERCASE | ES_WANTRETURN
PUSHBUTTON "Less Than",IDC_BTN_CHEAT_LT,192,169,55,15 PUSHBUTTON "Less Than",IDC_BTN_CHEAT_LT,221,169,55,15
CONTROL "By:",IDC_CHEAT_CHECK_LT_BY,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,204,187,22,10 CONTROL "By:",IDC_CHEAT_CHECK_LT_BY,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,233,187,22,10
EDITTEXT IDC_CHEAT_VAL_LT_BY,228,186,18,12,ES_UPPERCASE | ES_WANTRETURN EDITTEXT IDC_CHEAT_VAL_LT_BY,257,186,18,12,ES_UPPERCASE | ES_WANTRETURN
GROUPBOX "Possibilities",IDC_CHEAT_BOX_POSSIBILITIES,258,8,117,195,WS_TABSTOP GROUPBOX "Possibilities",IDC_CHEAT_BOX_POSSIBILITIES,287,8,117,195,WS_TABSTOP
CONTROL "",IDC_CHEAT_LIST_POSSIBILITIES,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_OWNERDATA | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,264,18,106,179 CONTROL "",IDC_CHEAT_LIST_POSSIBILITIES,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_OWNERDATA | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,293,18,106,179
CONTROL "Pause emulation when this window is active",IDC_CHEAT_PAUSEWHENACTIVE, CONTROL "Pause emulation when this window is active",IDC_CHEAT_PAUSEWHENACTIVE,
"Button",BS_AUTOCHECKBOX,180,211,157,10 "Button",BS_AUTOCHECKBOX,209,211,157,10
END END
IDD_LUA DIALOGEX 0, 0, 270, 150 IDD_LUA DIALOGEX 0, 0, 270, 150
@ -1977,8 +1978,8 @@ BEGIN
"CHEATCONSOLE", DIALOG "CHEATCONSOLE", DIALOG
BEGIN BEGIN
RIGHTMARGIN, 386 RIGHTMARGIN, 416
BOTTOMMARGIN, 225 BOTTOMMARGIN, 226
END END
IDD_LUA, DIALOG IDD_LUA, DIALOG
@ -2997,7 +2998,7 @@ IDB_BITMAP_SELECTED17 BITMAP "res\\te_17_selected.bmp"
IDB_BITMAP_SELECTED18 BITMAP "res\\te_18_selected.bmp" IDB_BITMAP_SELECTED18 BITMAP "res\\te_18_selected.bmp"
IDB_BITMAP_SELECTED19 BITMAP "res\\te_19_selected.bmp" IDB_BITMAP_SELECTED19 BITMAP "res\\te_19_selected.bmp"
IDB_BRANCH_SPRITESHEET BITMAP "res\\branch_spritesheet.bmp" IDB_BRANCH_SPRITESHEET BITMAP "res\\branch_spritesheet.bmp"
#endif // English (United States) resources #endif // Ó¢Óï(ÃÀ¹ú) resources
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////