summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_toolbar.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-09-27 19:35:36 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-09-27 19:35:36 +0000
commitc23145643c47428677da6a42f3185b94968fddf1 (patch)
tree12a03568f3b2f0ce8f2756801c9b781dd4df978a /plugins/Clist_modern/src/modern_toolbar.cpp
parentc94b07138f148a4ee92313e8a57e5725d51fe1b4 (diff)
clutch for TopToolBar not to destroy buttons on Apply in options
git-svn-id: http://svn.miranda-ng.org/main/trunk@1691 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_toolbar.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_toolbar.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/Clist_modern/src/modern_toolbar.cpp b/plugins/Clist_modern/src/modern_toolbar.cpp
index ce407edc96..0390e39949 100644
--- a/plugins/Clist_modern/src/modern_toolbar.cpp
+++ b/plugins/Clist_modern/src/modern_toolbar.cpp
@@ -100,11 +100,6 @@ struct ModernToolbarCtrl : public TTBCtrl
XPTHANDLE mtbXPTheme;
};
-struct MTB_BUTTONINFO
-{
- HWND hWindow;
-};
-
struct
{
HBITMAP mtb_hBmpBackground;
@@ -304,6 +299,7 @@ void CustomizeToolbar(HWND hwnd)
CallService(MS_SKINENG_REGISTERPAINTSUB,(WPARAM)hwnd,(LPARAM)ToolBar_LayeredPaintProc);
pMTBInfo->mtbXPTheme = xpt_AddThemeHandle(hwnd, L"TOOLBAR");
+ pMTBInfo->bHardUpdate = TRUE;
}
#define TTB_OPTDIR "TopToolBar"