diff options
Diffstat (limited to 'plugins/ExternalAPI')
-rw-r--r-- | plugins/ExternalAPI/m_toptoolbar.h | 12 |
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 |