mCtrl  0.9.6
button.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008-2012 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_BUTTON_H
20 #define MCTRL_BUTTON_H
21 
22 #include <mCtrl/_defs.h>
23 #include <mCtrl/_common.h>
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
138 
143 BOOL MCTRL_API mcButton_Initialize(void);
144 
148 void MCTRL_API mcButton_Terminate(void);
149 
157 
159 #define MC_WC_BUTTONW L"mCtrl.button"
160 
161 #define MC_WC_BUTTONA "mCtrl.button"
162 
170 
178 #define MC_BS_SPLITBUTTON 0x000C
179 
187 #define MC_BS_DEFSPLITBUTTON 0x000D
188 
196 
205 #define MC_BST_DROPDOWNPUSHED 0x0400
206 
214 
222 typedef struct MC_NMBCDROPDOWN_tag {
224  NMHDR hdr;
226  RECT rcButton;
228 
236 
251 #define MC_BCN_DROPDOWN ((0U-1250U) + 0x0002)
252 
260 
262 #define MC_WC_BUTTON MCTRL_NAME_AW(MC_WC_BUTTON)
263 
267 #ifdef __cplusplus
268 } /* extern "C" */
269 #endif
270 
271 #endif /* MCTRL_BUTTON_H */