mCtrl 0.8.0
|
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 #ifdef UNICODE 00156 00160 #define MC_WC_BUTTON MC_WC_BUTTONW 00161 #else 00162 #define MC_WC_BUTTON MC_WC_BUTTONA 00163 #endif 00164 00171 00179 #define MC_BS_SPLITBUTTON (0x0000000CL) 00180 00188 #define MC_BS_DEFSPLITBUTTON (0x0000000DL) 00189 00197 00206 #define MC_BST_DROPDOWNPUSHED 0x0400 00207 00218 typedef struct MC_NMBCDROPDOWN_tag { 00220 NMHDR hdr; 00222 RECT rcButton; 00223 } MC_NMBCDROPDOWN; 00224 00225 00230 00245 #define MC_BCN_DROPDOWN ((0U-1250U) + 0x0002) 00246 00250 #ifdef __cplusplus 00251 } /* extern "C" */ 00252 #endif 00253 00254 #endif /* MCTRL_BUTTON_H */