summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-07 20:38:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-07 20:38:34 +0000
commit37690f6a83f2935292f28cdec8340c206a2f3aac (patch)
treebbd87013cecd8dc3aa06cf5a7cfe707de657cde7 /plugins/ExternalAPI
parent990064649ebc7b3df17b3784b6c38d6a09df39ec (diff)
fix for top toolbar drawing in Clist Nicer & Clist Modern
git-svn-id: http://svn.miranda-ng.org/main/trunk@838 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ExternalAPI')
-rw-r--r--plugins/ExternalAPI/m_toptoolbar.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/ExternalAPI/m_toptoolbar.h b/plugins/ExternalAPI/m_toptoolbar.h
index 576daf944b..bdbe35057f 100644
--- a/plugins/ExternalAPI/m_toptoolbar.h
+++ b/plugins/ExternalAPI/m_toptoolbar.h
@@ -109,5 +109,17 @@ returns: 1 on success, -1 on failure.
*/
#define MS_TTB_SETBUTTONOPTIONS "TopToolBar/SetOptions"
+/*
+toptoolbar/setcustomproc service
+wparam = pfnCustomproc
+lparam = procedure parameter
+returns: always returns 0.
+*/
+
+typedef void (__cdecl *pfnCustomProc)(HANDLE hTTButton, HWND hwndBtn, LPARAM userInfo);
+
+__forceinline void TopToolbar_SetCustomProc(pfnCustomProc pFunc, LPARAM lParam)
+{ CallService("TopToolBar/SetCustomProc", (WPARAM)pFunc, lParam);
+}
#endif \ No newline at end of file