diff options
Diffstat (limited to 'plugins/HistoryStats/src/bandctrldefs.h')
-rw-r--r-- | plugins/HistoryStats/src/bandctrldefs.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/plugins/HistoryStats/src/bandctrldefs.h b/plugins/HistoryStats/src/bandctrldefs.h new file mode 100644 index 0000000000..2109696a77 --- /dev/null +++ b/plugins/HistoryStats/src/bandctrldefs.h @@ -0,0 +1,59 @@ +#if !defined(HISTORYSTATS_GUARD_BANDCTRLDEFS_H)
+#define HISTORYSTATS_GUARD_BANDCTRLDEFS_H
+
+#include "_globals.h"
+
+/*
+ * BandCtrlDefs
+ */
+
+class BandCtrlDefs
+{
+public:
+ enum Message {
+ BCM_SETLAYOUT = WM_USER + 0, // (int nLayout, #) -> #
+ BCM_ADDBUTTON = WM_USER + 1, // (#, BCBUTTON* pButton) -> HANDLE hButton
+ BCM_ISBUTTONCHECKED = WM_USER + 2, // (HANDLE hButton, #) -> BOOL bChecked
+ BCM_CHECKBUTTON = WM_USER + 3, // (HANDLE hButton, BOOL bCheck) -> #
+ BCM_GETBUTTONDATA = WM_USER + 4, // (HANDLE hButton, #) -> DWORD dwData
+ BCM_SETBUTTONDATA = WM_USER + 5, // (HANDLE hButton, DWORD dwData) -> #
+ BCM_ISBUTTONVISIBLE = WM_USER + 6, // (HANDLE hButton, #) -> BOOL bVisible
+ BCM_SHOWBUTTON = WM_USER + 7, // (HANDLE hButton, BOOL bShow) -> #
+ BCM_GETBUTTONRECT = WM_USER + 8, // (HANDLE hButton, RECT* pRect) -> #
+ BCM_ISBUTTONENABLED = WM_USER + 9, // (HANDLE hButton, #) -> BOOL bEnabled
+ BCM_ENABLEBUTTON = WM_USER + 10, // (HANDLE hButton, BOOL bEnable) -> #
+ };
+
+ enum Notification {
+ BCN_CLICKED = NM_LAST - 1, // -> NMBANDCTRL
+ BCN_DROPDOWN = NM_LAST - 2, // -> NMBANDCTRL
+ };
+
+ enum ButtonFlags {
+ BCF_RIGHT = 0x001,
+ BCF_CHECKED = 0x002,
+ BCF_HIDDEN = 0x004,
+ BCF_TOOLTIP = 0x008,
+ BCF_TEXT = 0x010,
+ BCF_ICON = 0x020,
+ BCF_DATA = 0x040,
+ BCF_DROPDOWN = 0x080,
+ BCF_DISABLED = 0x100,
+ };
+
+ struct BCBUTTON {
+ DWORD dwFlags;
+ HICON hIcon;
+ mu_text* szText;
+ mu_text* szTooltip;
+ DWORD dwData;
+ };
+
+ struct NMBANDCTRL {
+ NMHDR hdr;
+ HANDLE hButton;
+ DWORD dwData;
+ };
+};
+
+#endif // HISTORYSTATS_GUARD_BANDCTRLDEFS_H
|