mCtrl  0.9.2
mditab.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008-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_MDITAB_H
20 #define MCTRL_MDITAB_H
21 
22 #include <mCtrl/defs.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 
94 
100 
104 void MCTRL_API mcMditab_Terminate(void);
105 
113 
115 #define MC_WC_MDITABW L"mCtrl.mditab"
116 
117 #define MC_WC_MDITABA "mCtrl.mditab"
118 
126 
128 #define MC_MTS_CBONTOOLBAR 0x0000
129 
130 #define MC_MTS_CBONEACHTAB 0x0001
131 
132 #define MC_MTS_CBONACTIVETAB 0x0002
133 
134 #define MC_MTS_CBNONE 0x0003
135 
136 #define MC_MTS_CBMASK 0x0003
137 
139 #define MC_MTS_TLBALWAYS 0x0000
140 
141 #define MC_MTS_TLBONSCROLL 0x0004
142 
143 #define MC_MTS_TLBNEVER 0x0008
144 
145 #define MC_MTS_TLBMASK 0x000C
146 
148 #define MC_MTS_SCROLLALWAYS 0x0010
149 
151 #define MC_MTS_CLOSEONMCLICK 0x0020
152 
154 #define MC_MTS_FOCUSONBUTTONDOWN 0x0040
155 
156 #define MC_MTS_FOCUSNEVER 0x0080
157 
158 #define MC_MTS_FOCUSMASK 0x00C0
159 
163 #define MC_MTS_DOUBLEBUFFER 0x0100
164 
170 #define MC_MTS_ANIMATE 0x0200
171 
180 
182 #define MC_MTIF_TEXT (1 << 0)
183 
184 #define MC_MTIF_IMAGE (1 << 1)
185 
186 #define MC_MTIF_PARAM (1 << 2)
187 
197 #define MC_MTHT_NOWHERE (1 << 0)
198 
199 #define MC_MTHT_ONITEMICON (1 << 1)
200 
201 #define MC_MTHT_ONITEMLABEL (1 << 2)
202 
203 #define MC_MTHT_ONITEMCLOSEBUTTON (1 << 3)
204 
205 #define MC_MTHT_ONITEM \
206  (MC_MTHT_ONITEMICON | MC_MTHT_ONITEMLABEL | MC_MTHT_ONITEMCLOSEBUTTON)
207 
214 
219 typedef struct MC_MTITEMW_tag {
222  DWORD dwMask;
224  LPWSTR pszText;
229  int iImage;
231  LPARAM lParam;
232 } MC_MTITEMW;
233 
238 typedef struct MC_MTITEMA_tag {
241  DWORD dwMask;
243  LPSTR pszText;
248  int iImage;
250  LPARAM lParam;
251 } MC_MTITEMA;
252 
263 typedef struct MC_MTITEMWIDTH_tag {
267  DWORD dwDefWidth;
271  DWORD dwMinWidth;
273 
277 typedef struct MC_MTHITTESTINFO_tag {
279  POINT pt;
281  UINT flags;
283 
287 typedef struct MC_NMMTSELCHANGE_tag {
289  NMHDR hdr;
291  int iItemOld;
293  LPARAM lParamOld;
295  int iItemNew;
297  LPARAM lParamNew;
299 
303 typedef struct MC_NMMTDELETEITEM_tag {
305  NMHDR hdr;
307  int iItem;
309  LPARAM lParam;
311 
312 
316 typedef struct MC_NMMTCLOSEITEM_tag {
318  NMHDR hdr;
320  int iItem;
322  LPARAM lParam;
324 
332 
339 #define MC_MTM_GETITEMCOUNT (MC_MTM_FIRST + 0)
340 
349 #define MC_MTM_GETIMAGELIST (MC_MTM_FIRST + 1)
350 
361 #define MC_MTM_SETIMAGELIST (MC_MTM_FIRST + 2)
362 
375 #define MC_MTM_DELETEALLITEMS (MC_MTM_FIRST + 3)
376 
385 #define MC_MTM_INSERTITEMW (MC_MTM_FIRST + 4)
386 
394 #define MC_MTM_INSERTITEMA (MC_MTM_FIRST + 5)
395 
402 #define MC_MTM_SETITEMW (MC_MTM_FIRST + 6)
403 
410 #define MC_MTM_SETITEMA (MC_MTM_FIRST + 7)
411 
426 #define MC_MTM_GETITEMW (MC_MTM_FIRST + 8)
427 
442 #define MC_MTM_GETITEMA (MC_MTM_FIRST + 9)
443 
452 #define MC_MTM_DELETEITEM (MC_MTM_FIRST + 10)
453 
461 #define MC_MTM_HITTEST (MC_MTM_FIRST + 11)
462 
469 #define MC_MTM_SETCURSEL (MC_MTM_FIRST + 12)
470 
477 #define MC_MTM_GETCURSEL (MC_MTM_FIRST + 13)
478 
488 #define MC_MTM_CLOSEITEM (MC_MTM_FIRST + 14)
489 
503 #define MC_MTM_SETITEMWIDTH (MC_MTM_FIRST + 15)
504 
513 #define MC_MTM_GETITEMWIDTH (MC_MTM_FIRST + 16)
514 
524 #define MC_MTM_INITSTORAGE (MC_MTM_FIRST + 17)
525 
535 #define MC_MTM_GETITEMRECT (MC_MTM_FIRST + 18)
536 
544 #define MC_MTM_ENSUREVISIBLE (MC_MTM_FIRST + 19)
545 
553 
561 #define MC_MTN_SELCHANGE (MC_MTN_FIRST + 0)
562 
570 #define MC_MTN_DELETEITEM (MC_MTN_FIRST + 1)
571 
583 #define MC_MTN_DELETEALLITEMS (MC_MTN_FIRST + 2)
584 
594 #define MC_MTN_CLOSEITEM (MC_MTN_FIRST + 3)
595 
603 
605 #define MC_WC_MDITAB MCTRL_NAME_AW(MC_WC_MDITAB)
606 
607 #define MC_MTITEM MCTRL_NAME_AW(MC_MTITEM)
608 
609 #define MC_MTM_INSERTITEM MCTRL_NAME_AW(MC_MTM_INSERTITEM)
610 
611 #define MC_MTM_SETITEM MCTRL_NAME_AW(MC_MTM_SETITEM)
612 
613 #define MC_MTM_GETITEM MCTRL_NAME_AW(MC_MTM_GETITEM)
614 
618 #ifdef __cplusplus
619 } /* extern "C" */
620 #endif
621 
622 #endif /* MCTRL_MDITAB_H */