summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/bandctrldefs.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-04 23:23:45 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-04 23:23:45 +0000
commit15855fa84a09fd1fd486d357c38db0f2bd181e74 (patch)
treec98d1ae74abca41c776522059343eda13a7e0a31 /plugins/HistoryStats/src/bandctrldefs.h
parent819f8efabea6b0d7d971f9e6e4b21bbc18838874 (diff)
HistoryStats compiles ok now
git-svn-id: http://svn.miranda-ng.org/main/trunk@8399 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryStats/src/bandctrldefs.h')
-rw-r--r--plugins/HistoryStats/src/bandctrldefs.h59
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