1 | /*
|
---|
2 | * Copyright (C) 2008 Vijay Kiran Kamuju
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (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 GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | /* Header Control */
|
---|
29 | #define HDS_HORZ 0x0000
|
---|
30 | #define HDS_BUTTONS 0x0002
|
---|
31 | #define HDS_HOTTRACK 0x0004
|
---|
32 | #define HDS_HIDDEN 0x0008
|
---|
33 | #define HDS_DRAGDROP 0x0040
|
---|
34 | #define HDS_FULLDRAG 0x0080
|
---|
35 | #define HDS_FILTERBAR 0x0100
|
---|
36 | #define HDS_FLAT 0x0200
|
---|
37 |
|
---|
38 | /* Rebar Control */
|
---|
39 | #define RBS_TOOLTIPS 0x0100
|
---|
40 | #define RBS_VARHEIGHT 0x0200
|
---|
41 | #define RBS_BANDBORDERS 0x0400
|
---|
42 | #define RBS_FIXEDORDER 0x0800
|
---|
43 | #define RBS_REGISTERDROP 0x1000
|
---|
44 | #define RBS_AUTOSIZE 0x2000
|
---|
45 | #define RBS_VERTICALGRIPPER 0x4000
|
---|
46 | #define RBS_DBLCLKTOGGLE 0x8000
|
---|
47 |
|
---|
48 | /*Tool tips */
|
---|
49 | #define TTS_ALWAYSTIP 0x01
|
---|
50 | #define TTS_NOPREFIX 0x02
|
---|
51 | #define TTS_NOANIMATE 0x10
|
---|
52 | #define TTS_NOFADE 0x20
|
---|
53 | #define TTS_BALLOON 0x40
|
---|
54 | #define TTS_CLOSE 0x80
|
---|
55 |
|
---|
56 | /* Statusbar Control */
|
---|
57 | #define SBARS_SIZEGRIP 0x0100
|
---|
58 | #define SBARS_TOOLTIPS 0x0800
|
---|
59 | #define SBT_TOOLTIPS 0x0800
|
---|
60 |
|
---|
61 | /* Toolbar Control */
|
---|
62 | #define TBS_BOTTOM 0x0000
|
---|
63 | #define TBS_HORZ 0x0000
|
---|
64 | #define TBS_RIGHT 0x0000
|
---|
65 | #define TBS_AUTOTICKS 0x0001
|
---|
66 | #define TBS_VERT 0x0002
|
---|
67 | #define TBS_LEFT 0x0004
|
---|
68 | #define TBS_TOP 0x0004
|
---|
69 | #define TBS_BOTH 0x0008
|
---|
70 | #define TBS_NOTICKS 0x0010
|
---|
71 | #define TBS_ENABLESELRANGE 0x0020
|
---|
72 | #define TBS_FIXEDLENGTH 0x0040
|
---|
73 | #define TBS_NOTHUMB 0x0080
|
---|
74 | #define TBS_TOOLTIPS 0x0100
|
---|
75 | #define TBS_REVERSED 0x0200
|
---|
76 | #define TBS_DOWNISLEFT 0x0400
|
---|
77 |
|
---|
78 | /* UpDown Control */
|
---|
79 | #define UDS_WRAP 0x0001
|
---|
80 | #define UDS_SETBUDDYINT 0x0002
|
---|
81 | #define UDS_ALIGNRIGHT 0x0004
|
---|
82 | #define UDS_ALIGNLEFT 0x0008
|
---|
83 | #define UDS_AUTOBUDDY 0x0010
|
---|
84 | #define UDS_ARROWKEYS 0x0020
|
---|
85 | #define UDS_HORZ 0x0040
|
---|
86 | #define UDS_NOTHOUSANDS 0x0080
|
---|
87 | #define UDS_HOTTRACK 0x0100
|
---|
88 |
|
---|
89 | /* Progressbar Control */
|
---|
90 | #define PBS_SMOOTH 0x01
|
---|
91 | #define PBS_VERTICAL 0x04
|
---|
92 |
|
---|
93 | /* Common Control Styles */
|
---|
94 | #define CCS_TOP 0x00000001L
|
---|
95 | #define CCS_NOMOVE 0x00000002L
|
---|
96 | #define CCS_BOTTOM 0x00000003L
|
---|
97 | #define CCS_NORESIZE 0x00000004L
|
---|
98 | #define CCS_NOPARENTALIGN 0x00000008L
|
---|
99 | #define CCS_ADJUSTABLE 0x00000020L
|
---|
100 | #define CCS_NODIVIDER 0x00000040L
|
---|
101 | #define CCS_VERT 0x00000080L
|
---|
102 | #define CCS_LEFT (CCS_VERT | CCS_TOP)
|
---|
103 | #define CCS_RIGHT (CCS_VERT | CCS_BOTTOM)
|
---|
104 | #define CCS_NOMOVEX (CCS_VERT | CCS_NOMOVEY)
|
---|
105 |
|
---|
106 | /* Listview Control */
|
---|
107 | #define LVS_ALIGNTOP 0x0000
|
---|
108 | #define LVS_ICON 0x0000
|
---|
109 | #define LVS_REPORT 0x0001
|
---|
110 | #define LVS_SMALLICON 0x0002
|
---|
111 | #define LVS_LIST 0x0003
|
---|
112 | #define LVS_TYPEMASK 0x0003
|
---|
113 | #define LVS_SINGLESEL 0x0004
|
---|
114 | #define LVS_SHOWSELALWAYS 0x0008
|
---|
115 | #define LVS_SORTASCENDING 0x0010
|
---|
116 | #define LVS_SORTDESCENDING 0x0020
|
---|
117 | #define LVS_SHAREIMAGELISTS 0x0040
|
---|
118 | #define LVS_NOLABELWRAP 0x0080
|
---|
119 | #define LVS_AUTOARRANGE 0x0100
|
---|
120 | #define LVS_EDITLABELS 0x0200
|
---|
121 | #define LVS_OWNERDRAWFIXED 0x0400
|
---|
122 | #define LVS_ALIGNLEFT 0x0800
|
---|
123 | #define LVS_ALIGNMASK 0x0c00
|
---|
124 | #define LVS_OWNERDATA 0x1000
|
---|
125 | #define LVS_NOSCROLL 0x2000
|
---|
126 | #define LVS_NOCOLUMNHEADER 0x4000
|
---|
127 | #define LVS_NOSORTHEADER 0x8000
|
---|
128 | #define LVS_TYPESTYLEMASK 0xfc00
|
---|
129 |
|
---|
130 | /* Treeview Control */
|
---|
131 | #define TVS_HASBUTTONS 0x0001
|
---|
132 | #define TVS_HASLINES 0x0002
|
---|
133 | #define TVS_LINESATROOT 0x0004
|
---|
134 | #define TVS_EDITLABELS 0x0008
|
---|
135 | #define TVS_DISABLEDRAGDROP 0x0010
|
---|
136 | #define TVS_SHOWSELALWAYS 0x0020
|
---|
137 | #define TVS_RTLREADING 0x0040
|
---|
138 | #define TVS_NOTOOLTIPS 0x0080
|
---|
139 | #define TVS_CHECKBOXES 0x0100
|
---|
140 | #define TVS_TRACKSELECT 0x0200
|
---|
141 | #define TVS_SINGLEEXPAND 0x0400
|
---|
142 | #define TVS_INFOTIP 0x0800
|
---|
143 | #define TVS_FULLROWSELECT 0x1000
|
---|
144 | #define TVS_NOSCROLL 0x2000
|
---|
145 | #define TVS_NONEVENHEIGHT 0x4000
|
---|
146 | #define TVS_NOHSCROLL 0x8000
|
---|
147 |
|
---|
148 | /* Tab Control */
|
---|
149 | #define TCS_RIGHTJUSTIFY 0x0000
|
---|
150 | #define TCS_SINGLELINE 0x0000
|
---|
151 | #define TCS_TABS 0x0000
|
---|
152 | #define TCS_SCROLLOPPOSITE 0x0001
|
---|
153 | #define TCS_BOTTOM 0x0002
|
---|
154 | #define TCS_RIGHT 0x0002
|
---|
155 | #define TCS_MULTISELECT 0x0004
|
---|
156 | #define TCS_FLATBUTTONS 0x0008
|
---|
157 | #define TCS_FORCEICONLEFT 0x0010
|
---|
158 | #define TCS_FORCELABELLEFT 0x0020
|
---|
159 | #define TCS_HOTTRACK 0x0040
|
---|
160 | #define TCS_VERTICAL 0x0080
|
---|
161 | #define TCS_BUTTONS 0x0100
|
---|
162 | #define TCS_MULTILINE 0x0200
|
---|
163 | #define TCS_FIXEDWIDTH 0x0400
|
---|
164 | #define TCS_RAGGEDRIGHT 0x0800
|
---|
165 | #define TCS_FOCUSONBUTTONDOWN 0x1000
|
---|
166 | #define TCS_OWNERDRAWFIXED 0x2000
|
---|
167 | #define TCS_TOOLTIPS 0x4000
|
---|
168 | #define TCS_FOCUSNEVER 0x8000
|
---|
169 |
|
---|
170 | /* Animate Control */
|
---|
171 | #define ACS_CENTER 0x0001
|
---|
172 | #define ACS_TRANSPARENT 0x0002
|
---|
173 | #define ACS_AUTOPLAY 0x0004
|
---|
174 | #define ACS_TIMER 0x0008
|
---|
175 |
|
---|
176 | /* Month Calendar Control */
|
---|
177 | #define MCS_DAYSTATE 0x0001
|
---|
178 | #define MCS_MULTISELECT 0x0002
|
---|
179 | #define MCS_WEEKNUMBERS 0x0004
|
---|
180 | #define MCS_NOTODAYCIRCLE 0x0008
|
---|
181 | #define MCS_NOTODAY 0x0010
|
---|
182 |
|
---|
183 | /* Datetime Control */
|
---|
184 | #define DTS_SHORTDATEFORMAT 0x0000
|
---|
185 | #define DTS_UPDOWN 0x0001
|
---|
186 | #define DTS_SHOWNONE 0x0002
|
---|
187 | #define DTS_LONGDATEFORMAT 0x0004
|
---|
188 | #define DTS_TIMEFORMAT 0x0009
|
---|
189 | #define DTS_SHORTDATECENTURYFORMAT 0x000C
|
---|
190 | #define DTS_APPCANPARSE 0x0010
|
---|
191 | #define DTS_RIGHTALIGN 0x0020
|
---|
192 |
|
---|
193 | /* Pager Control */
|
---|
194 | #define PGS_VERT 0x00000000
|
---|
195 | #define PGS_HORZ 0x00000001
|
---|
196 | #define PGS_AUTOSCROLL 0x00000002
|
---|
197 | #define PGS_DRAGNDROP 0x00000004
|
---|
198 |
|
---|
199 | /* Native Font Control */
|
---|
200 | #define NFS_EDIT 0x0001
|
---|
201 | #define NFS_STATIC 0x0002
|
---|
202 | #define NFS_LISTCOMBO 0x0004
|
---|
203 | #define NFS_BUTTON 0x0008
|
---|
204 | #define NFS_ALL 0x0010
|
---|
205 | #define NFS_USEFONTASSOC 0x0020
|
---|