diff options
Diffstat (limited to 'plugins/Scriver/src/utils.cpp')
-rw-r--r-- | plugins/Scriver/src/utils.cpp | 4 |
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;
|