From 7901de120a26a7c31df43bcf2823d9f8bd0e1c20 Mon Sep 17 00:00:00 2001 From: owomomo Date: Sun, 7 Apr 2019 03:38:13 +0800 Subject: [PATCH] ... --- src/drivers/win/ram_search.cpp | 7 ++----- src/drivers/win/res.rc | 11 ++++++++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/drivers/win/ram_search.cpp b/src/drivers/win/ram_search.cpp index 387b67a7..4fca11da 100644 --- a/src/drivers/win/ram_search.cpp +++ b/src/drivers/win/ram_search.cpp @@ -1534,7 +1534,7 @@ LRESULT CALLBACK RamSearchProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lPara CompactAddrs(); } void init_list_box(HWND Box, const char* Strs[], int numColumns, int *columnWidths); - init_list_box(GetDlgItem(hDlg,IDC_RAMLIST),names,5,widths); + init_list_box(GetDlgItem(hDlg,IDC_RAMLIST),names,4,widths); //ListView_SetItemCount(GetDlgItem(hDlg,IDC_RAMLIST),ResultCount); if (!noMisalign) SendDlgItemMessage(hDlg, IDC_MISALIGN, BM_SETCHECK, BST_CHECKED, 0); //if (littleEndian) SendDlgItemMessage(hDlg, IDC_ENDIAN, BM_SETCHECK, BST_CHECKED, 0); @@ -2183,10 +2183,7 @@ void init_list_box(HWND Box, const char* Strs[], int numColumns, int *columnWidt Col.mask = LVCF_FMT | LVCF_ORDER | LVCF_SUBITEM | LVCF_TEXT | LVCF_WIDTH; for (int i = 0; i < numColumns; i++) { - if (i == 1) - Col.fmt = LVCFMT_RIGHT; - else - Col.fmt = LVCFMT_LEFT; + Col.fmt = !strcmp(Strs[i], "Value") || !strcmp(Strs[i], "Previous") || !strcmp(Strs[i], "Changes") ? LVCFMT_RIGHT : LVCFMT_LEFT; Col.iOrder = i; Col.iSubItem = i; Col.pszText = (LPSTR)(Strs[i]); diff --git a/src/drivers/win/res.rc b/src/drivers/win/res.rc index cae2d8f4..451667fd 100644 --- a/src/drivers/win/res.rc +++ b/src/drivers/win/res.rc @@ -2146,7 +2146,7 @@ CAPTION " RAM Watch" MENU RAMWATCH_MENU FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN - CONTROL "",IDC_WATCHLIST,"SysListView32",LVS_REPORT | LVS_SHOWSELALWAYS | LVS_OWNERDATA | WS_BORDER | WS_TABSTOP,9,9,210,279,WS_EX_CLIENTEDGE + CONTROL "",IDC_WATCHLIST,"SysListView32",LVS_REPORT | LVS_SHOWSELALWAYS | LVS_OWNERDATA | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,9,9,210,279,WS_EX_CLIENTEDGE PUSHBUTTON "Edit",IDC_C_WATCH_EDIT,226,66,34,14 PUSHBUTTON "Remove",IDC_C_WATCH_REMOVE,226,83,34,14 PUSHBUTTON "New",IDC_C_WATCH,226,100,34,14 @@ -2349,6 +2349,10 @@ BEGIN BEGIN END + "GGCONV", DIALOG + BEGIN + END + "MONITOR", DIALOG BEGIN LEFTMARGIN, 7 @@ -2490,6 +2494,11 @@ BEGIN 0 END +GGCONV AFX_DIALOG_LAYOUT +BEGIN + 0 +END + ///////////////////////////////////////////////////////////////////////////// //