summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI/m_toptoolbar.h
diff options
context:
space:
mode:
authorAlexey Kulakov <panda75@bk.ru>2012-06-19 20:31:00 +0000
committerAlexey Kulakov <panda75@bk.ru>2012-06-19 20:31:00 +0000
commit08bf3a1d71edaaba3bc82283e92b118b1d0be0de (patch)
tree7d056e1560938978d38e6c0da80208c4348b6910 /plugins/ExternalAPI/m_toptoolbar.h
parent1a9e2f536e35d52aba452f6f29a81de719c5aaf8 (diff)
TopToolBar processing
git-svn-id: http://svn.miranda-ng.org/main/trunk@489 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ExternalAPI/m_toptoolbar.h')
-rw-r--r--plugins/ExternalAPI/m_toptoolbar.h28
1 files changed, 14 insertions, 14 deletions
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