mCtrl  0.9.1
defs.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008-2011 Martin Mitas
3  *
4  * This library is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation; either version 2.1 of the License, or
7  * (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; if not, write to the Free Software Foundation,
16  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #ifndef MCTRL_DEFS_H
20 #define MCTRL_DEFS_H
21 
22 #include <windows.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 
43 #define MCTRL_API __stdcall
44 
45 
46 #ifdef UNICODE
47 
48  #define MCTRL_NAME_AW(name) name##W
49 #else
50  #define MCTRL_NAME_AW(name) name##A
51 #endif
52 
53 
58 
65 #define MC_CLR_NONE ((COLORREF)0xffffffffL)
66 
72 #define MC_CLR_DEFAULT ((COLORREF)0xff000000L)
73 
80 #define MC_I_IMAGENONE (-2)
81 
88 #define MC_I_GROUPIDNONE (-2)
89 
97 
98 #define MC_EXM_FIRST (WM_USER+0x4000 + 0)
99 #define MC_EXM_LAST (WM_USER+0x4000 + 49)
100 
101 #define MC_GM_FIRST (WM_USER+0x4000 + 50)
102 #define MC_GM_LAST (WM_USER+0x4000 + 199)
103 
104 #define MC_HM_FIRST (WM_USER+0x4000 + 200)
105 #define MC_HM_LAST (WM_USER+0x4000 + 299)
106 
107 #define MC_MTM_FIRST (WM_USER+0x4000 + 300)
108 #define MC_MTM_LAST (WM_USER+0x4000 + 399)
109 
110 #define MC_MBM_FIRST (WM_USER+0x4000 + 400)
111 #define MC_MBM_LAST (WM_USER+0x4000 + 499)
112 
113 #define MC_PVM_FIRST (WM_USER+0x4000 + 500)
114 #define MC_PVM_LAST (WM_USER+0x4000 + 599)
115 
116 #define MC_CHM_FIRST (WM_USER+0x4000 + 600)
117 #define MC_CHM_LAST (WM_USER+0x4000 + 699)
118 
119 #define MC_TLM_FIRST (WM_USER+0x4000 + 700)
120 #define MC_TLM_LAST (WM_USER+0x4000 + 799)
121 
129 
130 #define MC_EXN_FIRST (0x40000000 + 0)
131 #define MC_EXN_LAST (0x40000000 + 49)
132 
133 #define MC_GN_FIRST (0x40000000 + 100)
134 #define MC_GN_LAST (0x40000000 + 199)
135 
136 #define MC_HN_FIRST (0x40000000 + 200)
137 #define MC_HN_LAST (0x40000000 + 299)
138 
139 #define MC_MTN_FIRST (0x40000000 + 300)
140 #define MC_MTN_LAST (0x40000000 + 349)
141 
142 #define MC_PVN_FIRST (0x40000000 + 400)
143 #define MC_PVN_LAST (0x40000000 + 499)
144 
145 #define MC_CHN_FIRST (0x40000000 + 500)
146 #define MC_CHN_LAST (0x40000000 + 599)
147 
148 #define MC_TLN_FIRST (0x40000000 + 600)
149 #define MC_TLN_LAST (0x40000000 + 699)
150 
155 #ifdef __cplusplus
156 } /* extern "C" */
157 #endif
158 
159 #endif /* MCTRL_DEFS_H */