mCtrl  0.8.4
button.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_BUTTON_H
20 #define MCTRL_BUTTON_H
21 
22 #include <mCtrl/defs.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 
138 BOOL MCTRL_API mcButton_Initialize(void);
139 
144 void MCTRL_API mcButton_Terminate(void);
145 
146 
152 #define MC_WC_BUTTONW L"mCtrl.button"
153 
154 #define MC_WC_BUTTONA "mCtrl.button"
155 
162 
170 #define MC_BS_SPLITBUTTON 0x000C
171 
179 #define MC_BS_DEFSPLITBUTTON 0x000D
180 
188 
197 #define MC_BST_DROPDOWNPUSHED 0x0400
198 
209 typedef struct MC_NMBCDROPDOWN_tag {
211  NMHDR hdr;
213  RECT rcButton;
215 
216 
221 
236 #define MC_BCN_DROPDOWN ((0U-1250U) + 0x0002)
237 
245 
246 #ifdef UNICODE
247 
248  #define MC_WC_BUTTON MC_WC_BUTTONW
249 #else
250  #define MC_WC_BUTTON MC_WC_BUTTONA
251 #endif
252 
256 #ifdef __cplusplus
257 } /* extern "C" */
258 #endif
259 
260 #endif /* MCTRL_BUTTON_H */