mCtrl  0.9.6
grid.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2010-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_GRID_H
20 #define MCTRL_GRID_H
21 
22 #include <mCtrl/_defs.h>
23 #include <mCtrl/_common.h>
24 #include <mCtrl/value.h>
25 #include <mCtrl/table.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 
69 
74 BOOL MCTRL_API mcGrid_Initialize(void);
75 
79 void MCTRL_API mcGrid_Terminate(void);
80 
88 
90 #define MC_WC_GRIDW L"mCtrl.grid"
91 
92 #define MC_WC_GRIDA "mCtrl.grid"
93 
101 
103 #define MC_GS_NOTABLECREATE 0x0001
104 
106 #define MC_GS_NOGRIDLINES 0x0002
107 
109 #define MC_GS_COLUMNHEADERNONE 0x0000
110 
111 #define MC_GS_COLUMNHEADERNUMBERED 0x1000
112 
113 #define MC_GS_COLUMNHEADERALPHABETIC 0x2000
114 
115 #define MC_GS_COLUMNHEADERCUSTOM 0x3000
116 
118 #define MC_GS_ROWHEADERNONE 0x0000
119 
120 #define MC_GS_ROWHEADERNUMBERED 0x4000
121 
122 #define MC_GS_ROWHEADERALPHABETIC 0x8000
123 
124 #define MC_GS_ROWHEADERCUSTOM 0xC000
125 
134 
136 #define MC_GGF_COLUMNHEADERHEIGHT (1 << 0)
137 
138 #define MC_GGF_ROWHEADERWIDTH (1 << 1)
139 
140 #define MC_GGF_COLUMNWIDTH (1 << 2)
141 
142 #define MC_GGF_ROWHEIGHT (1 << 3)
143 
144 #define MC_GGF_PADDINGHORZ (1 << 4)
145 
146 #define MC_GGF_PADDINGVERT (1 << 5)
147 
155 
160 typedef struct MC_GGEOMETRY_tag {
162  DWORD fMask;
175 } MC_GGEOMETRY;
176 
184 
198 #define MC_GM_GETTABLE (MC_GM_FIRST + 0)
199 
213 #define MC_GM_SETTABLE (MC_GM_FIRST + 1)
214 
222 #define MC_GM_GETCOLUMNCOUNT (MC_GM_FIRST + 2)
223 
231 #define MC_GM_GETROWCOUNT (MC_GM_FIRST + 3)
232 
241 #define MC_GM_RESIZE (MC_GM_FIRST + 4)
242 
250 #define MC_GM_CLEAR (MC_GM_FIRST + 5)
251 
261 #define MC_GM_SETCELL (MC_GM_FIRST + 6)
262 
275 #define MC_GM_GETCELL (MC_GM_FIRST + 7)
276 
286 #define MC_GM_SETGEOMETRY (MC_GM_FIRST + 8)
287 
296 #define MC_GM_GETGEOMETRY (MC_GM_FIRST + 9)
297 
306 #define MC_GM_SETVALUE (MC_GM_FIRST + 10)
307 
319 #define MC_GM_GETVALUE (MC_GM_FIRST + 11)
320 
328 
330 #define MC_WC_GRID MCTRL_NAME_AW(MC_WC_GRID)
331 
335 #ifdef __cplusplus
336 } /* extern "C" */
337 #endif
338 
339 #endif /* MCTRL_GRID_H */