summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-08 14:57:45 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-08 14:57:45 +0000
commitceca2626dbff2f0045ed275394f4f29e14d563ea (patch)
treecb79be72e788ea0da088340d996263b650f06e80 /plugins
parent6d22869470306be0c2fec2a6d344f6aaafc4b0af (diff)
- 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
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ExternalAPI/m_toptoolbar.h12
1 files changed, 11 insertions, 1 deletions
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