summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-12-08 18:04:28 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-12-08 18:04:28 +0300
commit6cdf2af0e28710a64d917d981dc8f3fae1bade08 (patch)
tree1f5153b926ae5d83a1c34054d03a2c6809f2b4d7 /plugins/Scriver/src/utils.cpp
parent6813bac6fee9b1ca6b80c700db30f54416782282 (diff)
Scriver: fix for a broken toolbar visibility control
Diffstat (limited to 'plugins/Scriver/src/utils.cpp')
-rw-r--r--plugins/Scriver/src/utils.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Scriver/src/utils.cpp b/plugins/Scriver/src/utils.cpp
index 70e6198234..949dcbd665 100644
--- a/plugins/Scriver/src/utils.cpp
+++ b/plugins/Scriver/src/utils.cpp
@@ -434,7 +434,7 @@ void SetToolTipRect(HWND hwndParent, HWND hwndTT, RECT *rect)
SendMessage(hwndTT, TTM_NEWTOOLRECT, 0, (LPARAM)&ti);
}
-void SetButtonsPos(HWND hwndDlg)
+void SetButtonsPos(HWND hwndDlg, bool bShow)
{
HDWP hdwp = BeginDeferWindowPos(Srmm_GetButtonCount());
@@ -454,6 +454,8 @@ void SetButtonsPos(HWND hwndDlg)
if (hwndButton == NULL)
continue;
+ ShowWindow(hwndButton, bShow ? SW_SHOW : SW_HIDE);
+
int width = iGap + cbd->m_iButtonWidth;
if (cbd->m_bRSided) {
iRightX -= width;