summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI/m_toptoolbar.h
diff options
context:
space:
mode:
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