mCtrl  0.11.0
_common.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 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_COMMON_H
20 #define MCTRL_COMMON_H
21 
22 #include <mCtrl/_defs.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 
62 
64 #define MC_CLR_NONE ((COLORREF) 0xFFFFFFFF)
65 
66 #define MC_CLR_DEFAULT ((COLORREF) 0xFF000000)
67 
69 #define MC_I_IMAGECALLBACK (-1)
70 
71 #define MC_I_IMAGENONE (-2)
72 
74 #define MC_I_CHILDRENCALLBACK (-1)
75 
77 #define MC_LPSTR_TEXTCALLBACKW ((LPWSTR)(INT_PTR) -1)
78 
79 #define MC_LPSTR_TEXTCALLBACKA ((LPSTR)(INT_PTR) -1)
80 
88 
92 #define MC_LPSTR_TEXTCALLBACK MCTRL_NAME_AW(MC_LPSTR_TEXTCALLBACK)
93 
101 
108 typedef struct MC_NMCUSTOMDRAWINFO_tag {
109  NMHDR hdr;
110  DWORD dwDrawStage;
111  HDC hdc;
112  RECT rc;
113  DWORD_PTR dwItemSpec;
114  UINT uItemState;
115  LPARAM lItemlParam;
117 
125 
126 #define MC_EXM_FIRST (WM_USER+0x4000 + 0)
127 #define MC_EXM_LAST (WM_USER+0x4000 + 49)
128 
129 #define MC_GM_FIRST (WM_USER+0x4000 + 50)
130 #define MC_GM_LAST (WM_USER+0x4000 + 199)
131 
132 #define MC_HM_FIRST (WM_USER+0x4000 + 200)
133 #define MC_HM_LAST (WM_USER+0x4000 + 299)
134 
135 #define MC_MTM_FIRST (WM_USER+0x4000 + 300)
136 #define MC_MTM_LAST (WM_USER+0x4000 + 399)
137 
138 #define MC_MBM_FIRST (WM_USER+0x4000 + 400)
139 #define MC_MBM_LAST (WM_USER+0x4000 + 499)
140 
141 #define MC_PVM_FIRST (WM_USER+0x4000 + 500)
142 #define MC_PVM_LAST (WM_USER+0x4000 + 599)
143 
144 #define MC_CHM_FIRST (WM_USER+0x4000 + 600)
145 #define MC_CHM_LAST (WM_USER+0x4000 + 699)
146 
147 #define MC_TLM_FIRST (WM_USER+0x4000 + 700)
148 #define MC_TLM_LAST (WM_USER+0x4000 + 799)
149 
150 #define MC_IVM_FIRST (WM_USER+0x4000 + 800)
151 #define MC_IVM_LAST (WM_USER+0x4000 + 849)
152 
160 
161 #define MC_EXN_FIRST (0x40000000 + 0)
162 #define MC_EXN_LAST (0x40000000 + 49)
163 
164 #define MC_GN_FIRST (0x40000000 + 100)
165 #define MC_GN_LAST (0x40000000 + 199)
166 
167 #define MC_HN_FIRST (0x40000000 + 200)
168 #define MC_HN_LAST (0x40000000 + 299)
169 
170 #define MC_MTN_FIRST (0x40000000 + 300)
171 #define MC_MTN_LAST (0x40000000 + 349)
172 
173 #define MC_PVN_FIRST (0x40000000 + 400)
174 #define MC_PVN_LAST (0x40000000 + 499)
175 
176 #define MC_CHN_FIRST (0x40000000 + 500)
177 #define MC_CHN_LAST (0x40000000 + 599)
178 
179 #define MC_TLN_FIRST (0x40000000 + 600)
180 #define MC_TLN_LAST (0x40000000 + 699)
181 
185 #ifdef __cplusplus
186 } /* extern "C" */
187 #endif
188 
189 #endif /* MCTRL_COMMON_H */
Equivalent of NMCUSTOMDRAWINFO from .
Definition: _common.h:108
Common definitions.