From 08bf3a1d71edaaba3bc82283e92b118b1d0be0de Mon Sep 17 00:00:00 2001 From: Alexey Kulakov Date: Tue, 19 Jun 2012 20:31:00 +0000 Subject: TopToolBar processing git-svn-id: http://svn.miranda-ng.org/main/trunk@489 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ExternalAPI/m_toptoolbar.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'plugins/ExternalAPI') diff --git a/plugins/ExternalAPI/m_toptoolbar.h b/plugins/ExternalAPI/m_toptoolbar.h index c366c05169..dba10dea61 100644 --- a/plugins/ExternalAPI/m_toptoolbar.h +++ b/plugins/ExternalAPI/m_toptoolbar.h @@ -2,24 +2,24 @@ #define M_TOPTOOLBAR_H //button flags -#define TTBBF_DISABLED 1 -#define TTBBF_VISIBLE 2 -#define TTBBF_PUSHED 4 -#define TTBBF_SHOWTOOLTIP 8 -#define TTBBF_DRAWBORDER 16 -#define TTBBF_ISSEPARATOR 32 -#define TTBBF_ISLBUTTON 64 -#define TTBBF_ICONBYHANDLE 128 -#define TTBBF_ISSBUTTON 256 +#define TTBBF_DISABLED 0x0001 +#define TTBBF_VISIBLE 0x0002 +#define TTBBF_PUSHED 0x0004 +#define TTBBF_SHOWTOOLTIP 0x0008 +#define TTBBF_ISSEPARATOR 0x0020 +#define TTBBF_ISLBUTTON 0x0040 +#define TTBBF_ICONBYHANDLE 0x0080 +#define TTBBF_ISSBUTTON 0x0100 +#define TTBBF_ASPUSHBUTTON 0x0200 typedef struct { int cbSize; - char *pszService; - DWORD dwFlags; union { - LPARAM lParamUp; + char *pszService; TCHAR *program; }; + DWORD dwFlags; + LPARAM lParamUp; WPARAM wParamUp; LPARAM lParamDown; WPARAM wParamDown; @@ -72,7 +72,7 @@ lparam = (LPARAM) state returns: 0 on success, -1 on failure. */ #define TTBST_PUSHED 1 -#define TTBST_RELEASED 2 +#define TTBST_RELEASED 2 #define MS_TTB_SETBUTTONSTATE "TopToolBar/SetState" @@ -92,7 +92,7 @@ lparam = 0,or lparam=lpTTBButton if flag=TTBO_ALLDATA returns: value on success, -1 on failure. */ #define TTBO_FLAGS 0 //get/set all flags -#define TTBO_POS 1 //position +#define TTBO_POS 1 //position #define TTBO_WIDTH 2 //not impemented #define TTBO_HEIGHT 3 //not impemented #define TTBO_TIPNAME 4 //tool tip name -- cgit v1.2.3