From 64d31b8977ef0ca184519a15bf30199e181458eb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 11 Jul 2012 19:51:19 +0000 Subject: forgot to apply changes in TTB options dynamically git-svn-id: http://svn.miranda-ng.org/main/trunk@909 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TopToolBar/common.h | 3 +++ plugins/TopToolBar/toolbarwnd.cpp | 3 --- plugins/TopToolBar/ttbopt.cpp | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'plugins') 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]; -- cgit v1.2.3