summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TopToolBar/common.h3
-rw-r--r--plugins/TopToolBar/toolbarwnd.cpp3
-rw-r--r--plugins/TopToolBar/ttbopt.cpp3
3 files changed, 6 insertions, 3 deletions
diff --git a/plugins/TopToolBar/common.h b/plugins/TopToolBar/common.h
index 5a189df73b..3a79ff3b59 100644
--- a/plugins/TopToolBar/common.h
+++ b/plugins/TopToolBar/common.h
@@ -36,6 +36,9 @@
#define TTB_BUTTON_CLASS _T("TopToolbarButtonClass")
+#define TTB_REPOSBUTTONS (WM_USER+10)
+#define TTB_UPDATEFRAMEVISIBILITY (WM_USER+11)
+
#define TTBDEFAULT_BKBMPUSE CLB_STRETCH
#define TTBDEFAULT_BKCOLOUR GetSysColor(COLOR_3DFACE)
#define TTBDEFAULT_USEBITMAP 0
diff --git a/plugins/TopToolBar/toolbarwnd.cpp b/plugins/TopToolBar/toolbarwnd.cpp
index 52eff7deac..31cf435935 100644
--- a/plugins/TopToolBar/toolbarwnd.cpp
+++ b/plugins/TopToolBar/toolbarwnd.cpp
@@ -7,9 +7,6 @@ int backgroundBmpUse;
static TCHAR pluginname[] = _T("TopToolBar");
-#define TTB_REPOSBUTTONS (WM_USER+10)
-#define TTB_UPDATEFRAMEVISIBILITY (WM_USER+11)
-
/////////////////////////////////////////////////////////////////////////////////////////
// Toolbar window procedure
diff --git a/plugins/TopToolBar/ttbopt.cpp b/plugins/TopToolBar/ttbopt.cpp
index ed88b054b2..1938a710cd 100644
--- a/plugins/TopToolBar/ttbopt.cpp
+++ b/plugins/TopToolBar/ttbopt.cpp
@@ -127,6 +127,9 @@ void CancelProcess(HWND hwndDlg)
static void RecreateWindows()
{
+ if (g_ctrl->hWnd)
+ PostMessage(g_ctrl->hWnd, TTB_UPDATEFRAMEVISIBILITY, TRUE, 0);
+
mir_cslock lck(csButtonsHook);
for (int i = 0; i < Buttons.getCount(); i++) {
TopButtonInt *b = Buttons[i];