diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-10 17:54:52 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-10 17:54:52 +0000 |
commit | e4ff24d8abc2af58b91585bc3ce221214d5a148b (patch) | |
tree | fe4a92abacb1a5f399b5a3dc80e9b83bbab0246e /plugins/Clist_modern/modern_tbbutton.cpp | |
parent | 8374f9abfa2da0acea6bc14000f90d2085af945a (diff) |
fixes for Clist Modern's skinned toolbar
git-svn-id: http://svn.miranda-ng.org/main/trunk@890 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/modern_tbbutton.cpp')
-rw-r--r-- | plugins/Clist_modern/modern_tbbutton.cpp | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/plugins/Clist_modern/modern_tbbutton.cpp b/plugins/Clist_modern/modern_tbbutton.cpp index e6c75614ad..8421785765 100644 --- a/plugins/Clist_modern/modern_tbbutton.cpp +++ b/plugins/Clist_modern/modern_tbbutton.cpp @@ -507,9 +507,28 @@ static LRESULT CALLBACK ToolbarButtonProc(HWND hwndDlg, UINT msg, WPARAM wParam return 0;
}
+static BOOL CALLBACK BroadcastEnumChildProc(HWND hwndChild, LPARAM lParam)
+{
+ MSG * pMsg=(MSG*)lParam;
+ SendNotifyMessage( hwndChild, pMsg->message, pMsg->wParam, pMsg->lParam );
+ EnumChildWindows( hwndChild, BroadcastEnumChildProc, lParam );
+ return TRUE;
+}
+
+static LRESULT BroadCastMessageToChild(HWND hwnd, int message, WPARAM wParam, LPARAM lParam )
+{
+ MSG msg={0};
+ msg.hwnd=hwnd;
+ msg.lParam=lParam;
+ msg.wParam=wParam;
+ msg.message=message;
+ EnumChildWindows(hwnd, BroadcastEnumChildProc, (LPARAM) &msg);
+ return 1;
+}
+
static void CustomizeButton(HANDLE ttbid, HWND hWnd, LPARAM lParam)
{
- if (ttbid == (HANDLE)-1) {
+ if (ttbid == TTB_WINDOW_HANDLE) {
CustomizeToolbar(hWnd);
return;
}
@@ -526,6 +545,8 @@ static void CustomizeButton(HANDLE ttbid, HWND hWnd, LPARAM lParam) p->hThemeButton = xpt_AddThemeHandle(p->hwnd, L"BUTTON");
p->hThemeToolbar = xpt_AddThemeHandle(p->hwnd, L"TOOLBAR");
WindowList_Add(hButtonWindowList, hWnd, NULL);
+
+ SendMessage(hWnd, MBM_UPDATETRANSPARENTFLAG, 0, 2);
}
/////////////////////////////////////////////////////////////////////////////////////////
|