mCtrl 0.8.2

mCtrl/button.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2008-2011 Martin Mitas
00003  *
00004  * This library is free software; you can redistribute it and/or modify it
00005  * under the terms of the GNU Lesser General Public License as published by
00006  * the Free Software Foundation; either version 2.1 of the License, or
00007  * (at your option) any later version.
00008  * 
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU Lesser General Public License for more details.
00013  * 
00014  * You should have received a copy of the GNU Lesser General Public License
00015  * along with this library; if not, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00017  */
00018 
00019 #ifndef MCTRL_BUTTON_H
00020 #define MCTRL_BUTTON_H
00021 
00022 #include <mCtrl/defs.h>
00023 
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027 
00028 
00138 BOOL MCTRL_API mcButton_Initialize(void);
00139 
00144 void MCTRL_API mcButton_Terminate(void);
00145 
00146 
00152 #define MC_WC_BUTTONW          L"mCtrl.button"
00153 
00154 #define MC_WC_BUTTONA           "mCtrl.button"
00155 
00162 
00170 #define MC_BS_SPLITBUTTON        (0x0000000CL)
00171 
00179 #define MC_BS_DEFSPLITBUTTON     (0x0000000DL)
00180 
00188 
00197 #define MC_BST_DROPDOWNPUSHED    0x0400
00198 
00209 typedef struct MC_NMBCDROPDOWN_tag {
00211     NMHDR hdr;
00213     RECT rcButton;
00214 } MC_NMBCDROPDOWN;
00215 
00216 
00221 
00236 #define MC_BCN_DROPDOWN          ((0U-1250U) + 0x0002)
00237 
00245 
00246 #ifdef UNICODE
00247 
00248     #define MC_WC_BUTTON        MC_WC_BUTTONW
00249 #else
00250     #define MC_WC_BUTTON        MC_WC_BUTTONA
00251 #endif
00252 
00256 #ifdef __cplusplus
00257 }  /* extern "C" */
00258 #endif
00259 
00260 #endif  /* MCTRL_BUTTON_H */