From 49ea03e3166382caa06436b767cea7de5d9a894e Mon Sep 17 00:00:00 2001 From: henrypp Date: Mon, 30 Sep 2019 22:09:53 +0600 Subject: [PATCH] cosmetics --- src/main.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e2dde8ad..71762c05 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -985,10 +985,7 @@ INT_PTR CALLBACK EditorProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) _app_listviewsort (hwnd, IDC_APPS_LV); // resize column - RECT rc = {0}; - GetClientRect (GetDlgItem (hwnd, IDC_APPS_LV), &rc); - - _r_listview_setcolumn (hwnd, IDC_APPS_LV, 0, nullptr, _R_RECT_WIDTH (&rc)); + _r_listview_setcolumn (hwnd, IDC_APPS_LV, 0, nullptr, -100); } if (ptr_rule->type != DataRuleCustom) @@ -1775,7 +1772,7 @@ INT_PTR CALLBACK SettingsProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam _r_listview_deleteallitems (hwnd, IDC_COLORS); _r_listview_deleteallcolumns (hwnd, IDC_COLORS); - _r_listview_addcolumn (hwnd, IDC_COLORS, 0, app.LocaleString (IDS_NAME, nullptr), 0, LVCFMT_LEFT); + _r_listview_addcolumn (hwnd, IDC_COLORS, 0, nullptr, 0, LVCFMT_LEFT); INT item = 0; @@ -1805,10 +1802,7 @@ INT_PTR CALLBACK SettingsProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam } } - RECT rc = {0}; - GetClientRect (GetDlgItem (hwnd, IDC_COLORS), &rc); - - _r_listview_setcolumn (hwnd, IDC_COLORS, 0, nullptr, _R_RECT_WIDTH (&rc)); + _r_listview_setcolumn (hwnd, IDC_COLORS, 0, nullptr, -100); break; }