diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-11 19:51:19 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-11 19:51:19 +0000 |
commit | 64d31b8977ef0ca184519a15bf30199e181458eb (patch) | |
tree | 7cb1b6ffb1be6a54d3fa4719f46d03e2d93f1aae /plugins | |
parent | b32056e3b0a762489026eb39d54d7cdaf05b37f2 (diff) |
forgot to apply changes in TTB options dynamically
git-svn-id: http://svn.miranda-ng.org/main/trunk@909 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/TopToolBar/common.h | 3 | ||||
-rw-r--r-- | plugins/TopToolBar/toolbarwnd.cpp | 3 | ||||
-rw-r--r-- | plugins/TopToolBar/ttbopt.cpp | 3 |
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];
|