From ceca2626dbff2f0045ed275394f4f29e14d563ea Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 8 Jul 2012 14:57:45 +0000 Subject: - added tooltips to TTBButton; - added TTB_WINDOW_HANDLE constant for the global window hook git-svn-id: http://svn.miranda-ng.org/main/trunk@850 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ExternalAPI/m_toptoolbar.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/plugins/ExternalAPI/m_toptoolbar.h b/plugins/ExternalAPI/m_toptoolbar.h index bdbe35057f..6b5f6abd15 100644 --- a/plugins/ExternalAPI/m_toptoolbar.h +++ b/plugins/ExternalAPI/m_toptoolbar.h @@ -32,6 +32,14 @@ typedef struct { HICON hIconDn; HANDLE hIconHandleDn; }; + union { + char *pszTooltipDn; + TCHAR *ptszTooltipDn; + }; + union { + char *pszTooltipUp; + TCHAR *ptszTooltipUp; + }; } TTBButton, * lpTTBButton; @@ -116,10 +124,12 @@ lparam = procedure parameter returns: always returns 0. */ +#define TTB_WINDOW_HANDLE ((HANDLE)-1) + 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 +#endif -- cgit v1.2.3