summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-03-23 03:05:13 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-03-23 03:05:13 +0300
commit9006db713888054bda241e14dc6c0524860f3b30 (patch)
tree6f8cb129eeb5ac671c4b856fb857a5af6611211d /plugins
parent0a776b6ba6632a16a6db773f8fbf0e2362940e7f (diff)
fixes #2794 (listbox resizer doesn't consider scrollbar's width)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NotesAndReminders/src/reminders.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/NotesAndReminders/src/reminders.cpp b/plugins/NotesAndReminders/src/reminders.cpp
index f608a509dd..4ad33022d1 100644
--- a/plugins/NotesAndReminders/src/reminders.cpp
+++ b/plugins/NotesAndReminders/src/reminders.cpp
@@ -1743,7 +1743,10 @@ public:
CDlgBase::DlgProc(msg, wParam, lParam);
GetWindowRect(m_list.GetHwnd(), &rc);
- m_list.SetColumnWidth(1, rc.right - rc.left - m_list.GetColumnWidth(0) - 4);
+ int nWidth = rc.right - rc.left - m_list.GetColumnWidth(0) - 4;
+ if (GetWindowLong(m_list.GetHwnd(), GWL_STYLE) & WS_VSCROLL)
+ nWidth -= GetSystemMetrics(SM_CXVSCROLL);
+ m_list.SetColumnWidth(1, nWidth);
return 0;
}