Install curl-7.28.1.tar.bz2
[msysgit.git] / mingw / include / commctrl.h
blob46c5ff572cd0e772dbc6e3ac0bf5cbd71183435f
1 #ifndef _COMMCTRL_H
2 #define _COMMCTRL_H
3 #if __GNUC__ >= 3
4 #pragma GCC system_header
5 #endif
7 #include <prsht.h>
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 #ifndef _WIN32_IE
12 /* define _WIN32_IE if you really want it */
13 #if 0
14 #define _WIN32_IE 0x0300
15 #endif
16 #endif
18 #ifndef COMMCTRLAPI
19 #ifdef __W32API_USE_DLLIMPORT__
20 #define COMMCTRLAPI DECLSPEC_IMPORT
21 #else
22 #define COMMCTRLAPI
23 #endif
24 #endif
27 #ifndef SNDMSG
28 #ifdef __cplusplus
29 #define SNDMSG ::SendMessage
30 #else
31 #define SNDMSG SendMessage
32 #endif
33 #endif /* ifndef SNDMSG */
35 #define DRAGLISTMSGSTRING TEXT("commctrl_DragListMsg")
36 #define HOTKEY_CLASSA "msctls_hotkey32"
37 #define HOTKEY_CLASSW L"msctls_hotkey32"
38 #define PROGRESS_CLASSA "msctls_progress32"
39 #define PROGRESS_CLASSW L"msctls_progress32"
40 #define STATUSCLASSNAMEA "msctls_statusbar32"
41 #define STATUSCLASSNAMEW L"msctls_statusbar32"
42 #define TOOLBARCLASSNAMEA "ToolbarWindow32"
43 #define TOOLBARCLASSNAMEW L"ToolbarWindow32"
44 #define TOOLTIPS_CLASSA "tooltips_class32"
45 #define TOOLTIPS_CLASSW L"tooltips_class32"
46 #define TRACKBAR_CLASSA "msctls_trackbar32"
47 #define TRACKBAR_CLASSW L"msctls_trackbar32"
48 #define UPDOWN_CLASSA "msctls_updown32"
49 #define UPDOWN_CLASSW L"msctls_updown32"
50 #define ANIMATE_CLASSA "SysAnimate32"
51 #define ANIMATE_CLASSW L"SysAnimate32"
52 #define DATETIMEPICK_CLASSW L"SysDateTimePick32"
53 #define DATETIMEPICK_CLASSA "SysDateTimePick32"
54 #define MONTHCAL_CLASSW L"SysMonthCal32"
55 #define MONTHCAL_CLASSA "SysMonthCal32"
56 #define REBARCLASSNAMEW L"ReBarWindow32"
57 #define REBARCLASSNAMEA "ReBarWindow32"
58 #define WC_COMBOBOXEXW L"ComboBoxEx32"
59 #define WC_COMBOBOXEXA "ComboBoxEx32"
60 #define WC_IPADDRESSW L"SysIPAddress32"
61 #define WC_IPADDRESSA "SysIPAddress32"
62 #define WC_LISTVIEWA "SysListView32"
63 #define WC_LISTVIEWW L"SysListView32"
64 #define WC_TABCONTROLA "SysTabControl32"
65 #define WC_TABCONTROLW L"SysTabControl32"
66 #define WC_TREEVIEWA "SysTreeView32"
67 #define WC_TREEVIEWW L"SysTreeView32"
68 #define WC_HEADERA "SysHeader32"
69 #define WC_HEADERW L"SysHeader32"
70 #define WC_PAGESCROLLERW L"SysPager"
71 #define WC_PAGESCROLLERA "SysPager"
72 #define WC_NATIVEFONTCTLW L"NativeFontCtl"
73 #define WC_NATIVEFONTCTLA "NativeFontCtl"
74 #define WC_BUTTONA "Button"
75 #define WC_BUTTONW L"Button"
76 #define WC_STATICA "Static"
77 #define WC_STATICW L"Static"
78 #define WC_EDITA "Edit"
79 #define WC_EDITW L"Edit"
80 #define WC_LISTBOXA "ListBox"
81 #define WC_LISTBOXW L"ListBox"
82 #define WC_COMBOBOXA "ComboBox"
83 #define WC_COMBOBOXW L"ComboBox"
84 #define WC_SCROLLBARA "ScrollBar"
85 #define WC_SCROLLBARW L"ScrollBar"
86 #define WC_LINKA "SysLink"
87 #define WC_LINKW L"SysLink"
89 #ifdef UNICODE
90 #define HOTKEY_CLASS HOTKEY_CLASSW
91 #define PROGRESS_CLASS PROGRESS_CLASSW
92 #define STATUSCLASSNAME STATUSCLASSNAMEW
93 #define TOOLBARCLASSNAME TOOLBARCLASSNAMEW
94 #define TOOLTIPS_CLASS TOOLTIPS_CLASSW
95 #define TRACKBAR_CLASS TRACKBAR_CLASSW
96 #define UPDOWN_CLASS UPDOWN_CLASSW
97 #define ANIMATE_CLASS ANIMATE_CLASSW
98 #define DATETIMEPICK_CLASS DATETIMEPICK_CLASSW
99 #define MONTHCAL_CLASS MONTHCAL_CLASSW
100 #define REBARCLASSNAME REBARCLASSNAMEW
101 #define WC_COMBOBOXEX WC_COMBOBOXEXW
102 #define WC_HEADER WC_HEADERW
103 #define WC_IPADDRESS WC_IPADDRESSW
104 #define WC_LISTVIEW WC_LISTVIEWW
105 #define WC_TABCONTROL WC_TABCONTROLW
106 #define WC_TREEVIEW WC_TREEVIEWW
107 #define WC_PAGESCROLLER WC_PAGESCROLLERW
108 #define WC_NATIVEFONTCTL WC_NATIVEFONTCTLW
109 #define WC_BUTTON WC_BUTTONW
110 #define WC_STATIC WC_STATICW
111 #define WC_EDIT WC_EDITW
112 #define WC_LISTBOX WC_LISTBOXW
113 #define WC_COMBOBOX WC_COMBOBOXW
114 #define WC_SCROLLBAR WC_SCROLLBARW
115 #define WC_LINK WC_LINKW
116 #else
117 #define ANIMATE_CLASS ANIMATE_CLASSA
118 #define HOTKEY_CLASS HOTKEY_CLASSA
119 #define PROGRESS_CLASS PROGRESS_CLASSA
120 #define STATUSCLASSNAME STATUSCLASSNAMEA
121 #define TOOLBARCLASSNAME TOOLBARCLASSNAMEA
122 #define TOOLTIPS_CLASS TOOLTIPS_CLASSA
123 #define TRACKBAR_CLASS TRACKBAR_CLASSA
124 #define UPDOWN_CLASS UPDOWN_CLASSA
125 #define DATETIMEPICK_CLASS DATETIMEPICK_CLASSA
126 #define MONTHCAL_CLASS MONTHCAL_CLASSA
127 #define REBARCLASSNAME REBARCLASSNAMEA
128 #define WC_COMBOBOXEX WC_COMBOBOXEXA
129 #define WC_HEADER WC_HEADERA
130 #define WC_IPADDRESS WC_IPADDRESSA
131 #define WC_LISTVIEW WC_LISTVIEWA
132 #define WC_TABCONTROL WC_TABCONTROLA
133 #define WC_TREEVIEW WC_TREEVIEWA
134 #define WC_PAGESCROLLER WC_PAGESCROLLERA
135 #define WC_NATIVEFONTCTL WC_NATIVEFONTCTLA
136 #define WC_BUTTON WC_BUTTONA
137 #define WC_STATIC WC_STATICA
138 #define WC_EDIT WC_EDITA
139 #define WC_LISTBOX WC_LISTBOXA
140 #define WC_COMBOBOX WC_COMBOBOXA
141 #define WC_SCROLLBAR WC_SCROLLBARA
142 #define WC_LINK WC_LINKA
143 #endif
145 #if (_WIN32_IE >= 0x0500)
146 #if (_WIN32_WINNT >= 0x0501)
147 #define COMCTL32_VERSION 6
148 #else
149 #define COMCTL32_VERSION 5
150 #endif
151 #endif
153 #define LVM_FIRST 0x1000
154 #define TV_FIRST 0x1100
155 #define HDM_FIRST 0x1200
156 #define ACM_OPENA (WM_USER+100)
157 #define ACM_PLAY (WM_USER+101)
158 #define ACM_STOP (WM_USER+102)
159 #define ACM_OPENW (WM_USER+103)
160 #define ACN_START 1
161 #define ACN_STOP 2
162 #define CBEIF_TEXT 0x00000001
163 #define CBEIF_IMAGE 0x00000002
164 #define CBEIF_SELECTEDIMAGE 0x00000004
165 #define CBEIF_OVERLAY 0x00000008
166 #define CBEIF_INDENT 0x00000010
167 #define CBEIF_LPARAM 0x00000020
168 #define CBEIF_DI_SETITEM 0x10000000
169 #define CBEN_INSERTITEM (CBEN_FIRST - 1)
170 #define CBEN_DELETEITEM (CBEN_FIRST - 2)
171 #define CBEN_BEGINEDIT (CBEN_FIRST - 4)
172 #define CBEN_ENDEDITA (CBEN_FIRST - 5)
173 #define CBEN_ENDEDITW (CBEN_FIRST - 6)
174 #define CBENF_KILLFOCUS 1
175 #define CBENF_RETURN 2
176 #define CBENF_ESCAPE 3
177 #define CBENF_DROPDOWN 4
178 #define CBEMAXSTRLEN 260
179 #define DL_BEGINDRAG 1157
180 #define DL_CANCELDRAG 1160
181 #define DL_DRAGGING 1158
182 #define DL_DROPPED 1159
183 #define DL_CURSORSET 0
184 #define DL_STOPCURSOR 1
185 #define DL_COPYCURSOR 2
186 #define DL_MOVECURSOR 3
187 #define CCS_TOP 1
188 #define CCS_NOMOVEY 2
189 #define CCS_BOTTOM 3
190 #define CCS_NORESIZE 4
191 #define CCS_NOPARENTALIGN 8
192 #define CCS_ADJUSTABLE 32
193 #define CCS_NODIVIDER 64
194 #if (_WIN32_IE >= 0x0300)
195 #define CCS_VERT 128
196 #define CCS_LEFT 129
197 #define CCS_NOMOVEX 130
198 #define CCS_RIGHT 131
199 #endif
200 #define ACS_CENTER 0x0001
201 #define ACS_TRANSPARENT 0x0002
202 #define ACS_AUTOPLAY 0x0004
203 #define ACS_TIMER 0x0008
204 #define PGS_VERT 0x00000000
205 #define PGS_HORZ 0x00000001
206 #define PGS_AUTOSCROLL 0x00000002
207 #define PGS_DRAGNDROP 0x00000004
208 #define CMB_MASKED 2
209 #define MINSYSCOMMAND SC_SIZE
210 #define SBT_OWNERDRAW 0x1000
211 #define SBT_NOBORDERS 256
212 #define SBT_POPOUT 512
213 #define SBT_RTLREADING 1024
214 #define SB_SETTEXTA (WM_USER+1)
215 #define SB_SETTEXTW (WM_USER+11)
216 #define SB_GETTEXTA (WM_USER+2)
217 #define SB_GETTEXTW (WM_USER+13)
218 #define SB_GETTEXTLENGTHA (WM_USER+3)
219 #define SB_GETTEXTLENGTHW (WM_USER+12)
220 #define SB_SETPARTS (WM_USER+4)
221 #define SB_GETPARTS (WM_USER+6)
222 #define SB_GETBORDERS (WM_USER+7)
223 #define SB_SETMINHEIGHT (WM_USER+8)
224 #define SB_SIMPLE (WM_USER+9)
225 #define SB_GETRECT (WM_USER+10)
226 #define MSGF_COMMCTRL_BEGINDRAG 0x4200
227 #define MSGF_COMMCTRL_SIZEHEADER 0x4201
228 #define MSGF_COMMCTRL_DRAGSELECT 0x4202
229 #define MSGF_COMMCTRL_TOOLBARCUST 0x4203
230 #define ILC_COLOR 0
231 #define ILC_COLOR4 4
232 #define ILC_COLOR8 8
233 #define ILC_COLOR16 16
234 #define ILC_COLOR24 24
235 #define ILC_COLOR32 32
236 #define ILC_COLORDDB 254
237 #define ILC_MASK 1
238 #define ILC_PALETTE 2048
239 #define ILCF_MOVE 0
240 #define ILCF_SWAP 1
241 #define ILS_NORMAL 0
242 #define ILS_GLOW 1
243 #define ILS_SHADOW 2
244 #define ILS_SATURATE 4
245 #define ILS_ALPHA 8
246 #define ILD_BLEND25 2
247 #define ILD_BLEND50 4
248 #define ILD_SELECTED 4
249 #define ILD_BLEND 4
250 #define ILD_FOCUS 2
251 #define ILD_MASK 16
252 #define ILD_NORMAL 0
253 #define ILD_TRANSPARENT 1
254 #define ILD_IMAGE 0x0020
255 #define ILD_ROP 0x0040
256 #define ILD_OVERLAYMASK 0x0F00
257 #define ILD_PRESERVEALPHA 0x1000
258 #define ILD_SCALE 0x2000
259 #define ILD_DPISCALE 0x4000
260 #define HDS_HORZ 0
261 #define HDS_BUTTONS 2
262 #define HDS_HIDDEN 8
263 #if (_WIN32_IE > 0x0300)
264 #define HDS_HOTTRACK 4
265 #define HDS_DRAGDROP 0x0040
266 #define HDS_FULLDRAG 0x0080
267 #endif /* _WIN32_IE > 0x0300 */
268 #if (_WIN32_IE >= 0x0500)
269 #define HDS_FILTERBAR 0x0100
270 #endif /* _WIN32_IE >= 0x0500 */
271 #define NM_FIRST 0
272 #define NM_LAST ((UINT)-99)
273 #define LVN_FIRST ((UINT)-100)
274 #define LVN_LAST ((UINT)-199)
275 #define HDN_FIRST ((UINT)-300)
276 #define HDN_LAST ((UINT)-399)
277 #define TVN_FIRST ((UINT)-400)
278 #define TVN_LAST ((UINT)-499)
279 #define TTN_FIRST ((UINT)-520)
280 #define TTN_LAST ((UINT)-549)
281 #define TCN_FIRST ((UINT)-550)
282 #define TCN_LAST ((UINT)-580)
283 #ifndef CDN_FIRST
284 #define CDN_FIRST ((UINT)-601) /* also in commdlg.h */
285 #define CDN_LAST ((UINT)-699)
286 #endif
287 #define TBN_FIRST ((UINT)-700)
288 #define TBN_LAST ((UINT)-720)
289 #define UDN_FIRST ((UINT)-721)
290 #define UDN_LAST ((UINT)-740)
291 #if (_WIN32_IE >= 0x0300)
292 #define RBN_FIRST ((UINT)-831)
293 #define RBN_LAST ((UINT)-859)
294 #define MCN_FIRST ((UINT)-750)
295 #define MCN_LAST ((UINT)-759)
296 #define DTN_FIRST ((UINT)-760)
297 #define DTN_LAST ((UINT)-799)
298 #define CBEN_FIRST ((UINT)-800)
299 #define CBEN_LAST ((UINT)-830)
300 #endif /* _WIN32_IE */
301 #if (_WIN32_IE >= 0x0400)
302 #define IPN_FIRST ((UINT)-860)
303 #define IPN_LAST ((UINT)-879)
304 #define IPN_FIELDCHANGED (IPN_FIRST-0)
305 #define SBN_FIRST ((UINT)-880U)
306 #define SBN_LAST ((UINT)-899U)
307 #define PGN_FIRST ((UINT)-900U)
308 #define PGN_LAST ((UINT)-950U)
309 #define PGN_SCROLL (PGN_FIRST-1)
310 #define PGN_CALCSIZE (PGN_FIRST-2)
311 #endif /* _WIN32_IE >= 0x0400 */
312 #define HDI_WIDTH 1
313 #define HDI_HEIGHT 1
314 #define HDI_TEXT 2
315 #define HDI_FORMAT 4
316 #define HDI_LPARAM 8
317 #define HDI_BITMAP 16
318 #if (_WIN32_IE >= 0x0300)
319 #define HDI_IMAGE 32
320 #define HDI_DI_SETITEM 64
321 #define HDI_ORDER 128
322 #endif
323 #define CBES_EX_NOEDITIMAGE 0x00000001
324 #define CBES_EX_NOEDITIMAGEINDENT 0x00000002
325 #define CBES_EX_PATHWORDBREAKPROC 0x00000004
326 #if (_WIN32_IE >= 0x0400)
327 #define CBES_EX_NOSIZELIMIT 0x00000008
328 #define CBES_EX_CASESENSITIVE 0x00000010
329 #define CBEN_GETDISPINFOA (CBEN_FIRST - 0)
330 #define CBEN_GETDISPINFOW (CBEN_FIRST - 7)
331 #define CBEN_DRAGBEGINA (CBEN_FIRST - 8)
332 #define CBEN_DRAGBEGINW (CBEN_FIRST - 9)
333 #endif /* _WIN32_IE >= 0x0400 */
334 #if (_WIN32_IE >= 0x0500)
335 #define HDI_FILTER 256
336 #endif
337 #define HDF_LEFT 0
338 #define HDF_RIGHT 1
339 #define HDF_CENTER 2
340 #define HDF_JUSTIFYMASK 3
341 #define HDF_RTLREADING 4
342 #define HDF_OWNERDRAW 0x8000
343 #define HDF_STRING 0x4000
344 #define HDF_BITMAP 0x2000
345 #if (_WIN32_IE >= 0x0300)
346 #define HDF_BITMAP_ON_RIGHT 0x1000
347 #define HDF_IMAGE 0x0800
348 #endif
349 #define HDM_GETITEMCOUNT HDM_FIRST
350 #define HDM_INSERTITEMA (HDM_FIRST+1)
351 #define HDM_INSERTITEMW (HDM_FIRST+10)
352 #define HDM_DELETEITEM (HDM_FIRST+2)
353 #define HDM_GETITEMA (HDM_FIRST+3)
354 #define HDM_GETITEMW (HDM_FIRST+11)
355 #define HDM_SETITEMA (HDM_FIRST+4)
356 #define HDM_SETITEMW (HDM_FIRST+12)
357 #define HDM_LAYOUT (HDM_FIRST+5)
358 #if (_WIN32_IE >= 0x0300)
359 #define HDM_GETITEMRECT (HDM_FIRST+7)
360 #define HDM_SETIMAGELIST (HDM_FIRST+8)
361 #define HDM_GETIMAGELIST (HDM_FIRST+9)
362 #define HDM_ORDERTOINDEX (HDM_FIRST+15)
363 #define HDM_CREATEDRAGIMAGE (HDM_FIRST+16)
364 #define HDM_GETORDERARRAY (HDM_FIRST+17)
365 #define HDM_SETORDERARRAY (HDM_FIRST+18)
366 #define HDM_SETHOTDIVIDER (HDM_FIRST+19)
367 #endif
368 #if (_WIN32_IE >= 0x0400)
369 #define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
370 #define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
371 #endif
372 #define HHT_NOWHERE 1
373 #define HHT_ONHEADER 2
374 #define HHT_ONDIVIDER 4
375 #define HHT_ONDIVOPEN 8
376 #define HHT_ABOVE 256
377 #define HHT_BELOW 512
378 #define HHT_TORIGHT 1024
379 #define HHT_TOLEFT 2048
380 #define HDM_HITTEST (HDM_FIRST+6)
381 #define HDN_ITEMCHANGINGA (HDN_FIRST-0)
382 #define HDN_ITEMCHANGINGW (HDN_FIRST-20)
383 #define HDN_ITEMCHANGEDA (HDN_FIRST-1)
384 #define HDN_ITEMCHANGEDW (HDN_FIRST-21)
385 #define HDN_ITEMCLICKA (HDN_FIRST-2)
386 #define HDN_ITEMCLICKW (HDN_FIRST-22)
387 #define HDN_ITEMDBLCLICKA (HDN_FIRST-3)
388 #define HDN_ITEMDBLCLICKW (HDN_FIRST-23)
389 #define HDN_DIVIDERDBLCLICKA (HDN_FIRST-5)
390 #define HDN_DIVIDERDBLCLICKW (HDN_FIRST-25)
391 #define HDN_BEGINTRACKA (HDN_FIRST-6)
392 #define HDN_BEGINTRACKW (HDN_FIRST-26)
393 #define HDN_ENDTRACKA (HDN_FIRST-7)
394 #define HDN_ENDTRACKW (HDN_FIRST-27)
395 #define HDN_TRACKA (HDN_FIRST-8)
396 #define HDN_TRACKW (HDN_FIRST-28)
397 #if _WIN32_IE >= 0x0300
398 #define HDN_ENDDRAG (HDN_FIRST-11)
399 #define HDN_BEGINDRAG (HDN_FIRST-10)
400 #define HDN_GETDISPINFOA (HDN_FIRST-9)
401 #define HDN_GETDISPINFOW (HDN_FIRST-29)
402 #endif
403 #if (_WIN32_IE >= 0x0400)
404 #define HICF_OTHER 0x00
405 #define HICF_MOUSE 0x01
406 #define HICF_ARROWKEYS 0x02
407 #define HICF_ACCELERATOR 0x04
408 #define HICF_DUPACCEL 0x08
409 #define HICF_ENTERING 0x10
410 #define HICF_LEAVING 0x20
411 #define HICF_RESELECT 0x40
412 #define HICF_LMOUSE 0x80
413 #define HICF_TOGGLEDROPDOWN 0x100
414 #endif /* _WIN32_IE >= 0x0400 */
415 #define IPM_CLEARADDRESS (WM_USER+100)
416 #define IPM_SETADDRESS (WM_USER+101)
417 #define IPM_GETADDRESS (WM_USER+102)
418 #define IPM_SETRANGE (WM_USER+103)
419 #define IPM_SETFOCUS (WM_USER+104)
420 #define IPM_ISBLANK (WM_USER+105)
421 #if (_WIN32_IE >= 0x0500)
422 #define I_INDENTCALLBACK (-1)
423 #define I_IMAGENONE (-2)
424 #endif
425 #define CMB_MASKED 2
426 #define TBSTATE_CHECKED 1
427 #define TBSTATE_PRESSED 2
428 #define TBSTATE_ENABLED 4
429 #define TBSTATE_HIDDEN 8
430 #define TBSTATE_INDETERMINATE 16
431 #define TBSTATE_WRAP 32
432 #if (_WIN32_IE >= 0x0300)
433 #define TBSTATE_ELLIPSES 0x40
434 #endif
435 #if (_WIN32_IE >= 0x0400)
436 #define TBSTATE_MARKED 0x0080
437 #endif
438 #define TBSTYLE_BUTTON 0
439 #define TBSTYLE_SEP 1
440 #define TBSTYLE_CHECK 2
441 #define TBSTYLE_GROUP 4
442 #define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP|TBSTYLE_CHECK)
443 #if (_WIN32_IE >= 0x0300)
444 #define TBSTYLE_DROPDOWN 8
445 #endif
446 #if (_WIN32_IE >= 0x0400)
447 #define TBSTYLE_AUTOSIZE 16
448 #define TBSTYLE_NOPREFIX 32
449 #endif
450 #define TBSTYLE_TOOLTIPS 256
451 #define TBSTYLE_WRAPABLE 512
452 #define TBSTYLE_ALTDRAG 1024
453 #if (_WIN32_IE >= 0x0300)
454 #define TBSTYLE_FLAT 2048
455 #define TBSTYLE_LIST 4096
456 #define TBSTYLE_CUSTOMERASE 8192
457 #endif
458 #if (_WIN32_IE >= 0x0400)
459 #define TBSTYLE_REGISTERDROP 0x4000
460 #define TBSTYLE_TRANSPARENT 0x8000
461 #define TBSTYLE_EX_DRAWDDARROWS 0x00000001
462 #endif /* _WIN32_IE >= 0x0400 */
463 #if (_WIN32_IE >= 0x0501)
464 #define TBSTYLE_EX_MIXEDBUTTONS 8
465 #define TBSTYLE_EX_HIDECLIPPEDBUTTONS 16
466 #endif /* _WIN32_IE >= 0x0501 */
467 #if (_WIN32_WINNT >= 0x0501)
468 #define TBSTYLE_EX_DOUBLEBUFFER 0x80
469 #endif /* _WIN32_WINNT >= 0x0501 */
470 #if (_WIN32_IE >= 0x0500)
471 #define BTNS_BUTTON TBSTYLE_BUTTON
472 #define BTNS_SEP TBSTYLE_SEP
473 #define BTNS_CHECK TBSTYLE_CHECK
474 #define BTNS_GROUP TBSTYLE_GROUP
475 #define BTNS_CHECKGROUP TBSTYLE_CHECKGROUP
476 #define BTNS_DROPDOWN TBSTYLE_DROPDOWN
477 #define BTNS_AUTOSIZE TBSTYLE_AUTOSIZE
478 #define BTNS_NOPREFIX TBSTYLE_NOPREFIX
479 #define BTNS_WHOLEDROPDOWN 0x0080
480 #endif /* _WIN32_IE >= 0x0500 */
481 #if _WIN32_IE >= 0x0501
482 #define BTNS_SHOWTEXT 0x0040
483 #endif
484 #if (_WIN32_IE >= 0x0400)
485 #define TBCDRF_NOEDGES 0x10000
486 #define TBCDRF_HILITEHOTTRACK 0x20000
487 #define TBCDRF_NOOFFSET 0x40000
488 #define TBCDRF_NOMARK 0x80000
489 #define TBCDRF_NOETCHEDEFFECT 0x100000
490 #endif /* _WIN32_IE >= 0x0400 */
491 #define HINST_COMMCTRL ((HINSTANCE)-1)
492 #define IDB_STD_SMALL_COLOR 0
493 #define IDB_STD_LARGE_COLOR 1
494 #define IDB_VIEW_SMALL_COLOR 4
495 #define IDB_VIEW_LARGE_COLOR 5
496 #if (_WIN32_IE >= 0x0300)
497 #define IDB_HIST_SMALL_COLOR 8
498 #define IDB_HIST_LARGE_COLOR 9
499 #endif
500 #define STD_CUT 0
501 #define STD_COPY 1
502 #define STD_PASTE 2
503 #define STD_UNDO 3
504 #define STD_REDOW 4
505 #define STD_DELETE 5
506 #define STD_FILENEW 6
507 #define STD_FILEOPEN 7
508 #define STD_FILESAVE 8
509 #define STD_PRINTPRE 9
510 #define STD_PROPERTIES 10
511 #define STD_HELP 11
512 #define STD_FIND 12
513 #define STD_REPLACE 13
514 #define STD_PRINT 14
515 #define VIEW_LARGEICONS 0
516 #define VIEW_SMALLICONS 1
517 #define VIEW_LIST 2
518 #define VIEW_DETAILS 3
519 #define VIEW_SORTNAME 4
520 #define VIEW_SORTSIZE 5
521 #define VIEW_SORTDATE 6
522 #define VIEW_SORTTYPE 7
523 #define VIEW_PARENTFOLDER 8
524 #define VIEW_NETCONNECT 9
525 #define VIEW_NETDISCONNECT 10
526 #define VIEW_NEWFOLDER 11
527 #define TB_ENABLEBUTTON (WM_USER+1)
528 #define TB_CHECKBUTTON (WM_USER+2)
529 #define TB_PRESSBUTTON (WM_USER+3)
530 #define TB_HIDEBUTTON (WM_USER+4)
531 #define TB_INDETERMINATE (WM_USER+5)
532 #if (_WIN32_IE >= 0x0400)
533 #define TB_MARKBUTTON (WM_USER+6)
534 #endif
535 #define TB_ISBUTTONENABLED (WM_USER+9)
536 #define TB_ISBUTTONCHECKED (WM_USER+10)
537 #define TB_ISBUTTONPRESSED (WM_USER+11)
538 #define TB_ISBUTTONHIDDEN (WM_USER+12)
539 #define TB_ISBUTTONINDETERMINATE (WM_USER+13)
540 #if (_WIN32_IE >= 0x0400)
541 #define TB_ISBUTTONHIGHLIGHTED (WM_USER+14)
542 #endif
543 #define TB_SETSTATE (WM_USER+17)
544 #define TB_GETSTATE (WM_USER+18)
545 #define TB_ADDBITMAP (WM_USER+19)
546 #if (_WIN32_IE >= 0x0400)
547 #define TB_ADDBUTTONSA (WM_USER+20)
548 #define TB_INSERTBUTTONA (WM_USER+21)
549 #else
550 #define TB_ADDBUTTONS (WM_USER+20)
551 #define TB_INSERTBUTTON (WM_USER+21)
552 #endif
553 #define TB_DELETEBUTTON (WM_USER+22)
554 #define TB_GETBUTTON (WM_USER+23)
555 #define TB_BUTTONCOUNT (WM_USER+24)
556 #define TB_COMMANDTOINDEX (WM_USER+25)
557 #define TB_SAVERESTOREA (WM_USER+26)
558 #define TB_SAVERESTOREW (WM_USER+76)
559 #define TB_CUSTOMIZE (WM_USER+27)
560 #define TB_ADDSTRINGA (WM_USER+28)
561 #define TB_ADDSTRINGW (WM_USER+77)
562 #define TB_GETITEMRECT (WM_USER+29)
563 #define TB_BUTTONSTRUCTSIZE (WM_USER+30)
564 #define TB_SETBUTTONSIZE (WM_USER+31)
565 #define TB_SETBITMAPSIZE (WM_USER+32)
566 #define TB_AUTOSIZE (WM_USER+33)
567 #define TB_GETTOOLTIPS (WM_USER+35)
568 #define TB_SETTOOLTIPS (WM_USER+36)
569 #define TB_SETPARENT (WM_USER+37)
570 #define TB_SETROWS (WM_USER+39)
571 #define TB_GETROWS (WM_USER+40)
572 #define TB_GETBITMAPFLAGS (WM_USER+41)
573 #define TB_SETCMDID (WM_USER+42)
574 #define TB_CHANGEBITMAP (WM_USER+43)
575 #define TB_GETBITMAP (WM_USER+44)
576 #define TB_GETBUTTONTEXTA (WM_USER+45)
577 #define TB_GETBUTTONTEXTW (WM_USER+75)
578 #define TB_REPLACEBITMAP (WM_USER+46)
579 #define TB_GETBUTTONSIZE (WM_USER+58)
580 #define TB_SETBUTTONWIDTH (WM_USER+59)
581 #if (_WIN32_IE >= 0x0300)
582 #define TB_SETINDENT (WM_USER+47)
583 #define TB_SETIMAGELIST (WM_USER+48)
584 #define TB_GETIMAGELIST (WM_USER+49)
585 #define TB_LOADIMAGES (WM_USER+50)
586 #define TB_GETRECT (WM_USER+51)
587 #define TB_SETHOTIMAGELIST (WM_USER+52)
588 #define TB_GETHOTIMAGELIST (WM_USER+53)
589 #define TB_SETDISABLEDIMAGELIST (WM_USER+54)
590 #define TB_GETDISABLEDIMAGELIST (WM_USER+55)
591 #define TB_SETSTYLE (WM_USER+56)
592 #define TB_GETSTYLE (WM_USER+57)
593 #define TB_GETBUTTONSIZE (WM_USER+58)
594 #define TB_SETBUTTONWIDTH (WM_USER+59)
595 #define TB_SETMAXTEXTROWS (WM_USER+60)
596 #define TB_GETTEXTROWS (WM_USER+61)
597 #endif
598 #if _WIN32_IE >= 0x400
599 #define TB_GETOBJECT (WM_USER+62)
600 #define TB_GETBUTTONINFOW (WM_USER+63)
601 #define TB_SETBUTTONINFOW (WM_USER+64)
602 #define TB_GETBUTTONINFOA (WM_USER+65)
603 #define TB_SETBUTTONINFOA (WM_USER+66)
604 #define TB_INSERTBUTTONW (WM_USER+67)
605 #define TB_ADDBUTTONSW (WM_USER+68)
606 #define TB_HITTEST (WM_USER+69)
607 #define TB_SETEXTENDEDSTYLE (WM_USER+84)
608 #define TB_GETEXTENDEDSTYLE (WM_USER+85)
609 #define TB_SETDRAWTEXTFLAGS (WM_USER+70)
610 #define TB_GETHOTITEM (WM_USER+71)
611 #define TB_SETHOTITEM (WM_USER+72)
612 #define TB_SETANCHORHIGHLIGHT (WM_USER+73)
613 #define TB_GETANCHORHIGHLIGHT (WM_USER+74)
614 #define TB_MAPACCELERATORA (WM_USER+78)
615 #define TB_GETINSERTMARK (WM_USER+79)
616 #define TB_SETINSERTMARK (WM_USER+80)
617 #define TB_INSERTMARKHITTEST (WM_USER+81)
618 #define TB_MOVEBUTTON (WM_USER+82)
619 #define TB_GETMAXSIZE (WM_USER+83)
620 #define TB_SETEXTENDEDSTYLE (WM_USER+84)
621 #define TB_GETEXTENDEDSTYLE (WM_USER+85)
622 #define TB_GETPADDING (WM_USER+86)
623 #define TB_SETPADDING (WM_USER+87)
624 #define TB_SETINSERTMARKCOLOR (WM_USER+88)
625 #define TB_GETINSERTMARKCOLOR (WM_USER+89)
626 #define TB_MAPACCELERATORW (WM_USER+90)
627 #define TB_GETSTRINGW (WM_USER+91)
628 #define TB_GETSTRINGA (WM_USER+92)
629 #define TB_SETCOLORSCHEME CCM_SETCOLORSCHEME
630 #define TB_GETCOLORSCHEME CCM_GETCOLORSCHEME
631 #define TB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
632 #define TB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
633 #endif
634 #define TBBF_LARGE 1
635 #define TBN_GETBUTTONINFOA (TBN_FIRST-0)
636 #define TBN_BEGINDRAG (TBN_FIRST-1)
637 #define TBN_ENDDRAG (TBN_FIRST-2)
638 #define TBN_BEGINADJUST (TBN_FIRST-3)
639 #define TBN_ENDADJUST (TBN_FIRST-4)
640 #define TBN_RESET (TBN_FIRST-5)
641 #define TBN_QUERYINSERT (TBN_FIRST-6)
642 #define TBN_QUERYDELETE (TBN_FIRST-7)
643 #define TBN_TOOLBARCHANGE (TBN_FIRST-8)
644 #define TBN_CUSTHELP (TBN_FIRST-9)
645 #if (_WIN32_IE >= 0x0300)
646 #define TBN_DROPDOWN (TBN_FIRST-10)
647 #endif
648 #if (_WIN32_IE >= 0x0400)
649 #define TBN_HOTITEMCHANGE (TBN_FIRST-13)
650 #define TBN_DRAGOUT (TBN_FIRST-14)
651 #define TBN_DELETINGBUTTON (TBN_FIRST-15)
652 #define TBN_GETDISPINFOA (TBN_FIRST-16)
653 #define TBN_GETDISPINFOW (TBN_FIRST-17)
654 #define TBN_GETINFOTIPA (TBN_FIRST-18)
655 #define TBN_GETINFOTIPW (TBN_FIRST-19)
656 #define TBN_GETBUTTONINFOW (TBN_FIRST-20)
657 #endif
658 #if (_WIN32_IE >= 0x0500)
659 #define TBN_RESTORE (TBN_FIRST-21)
660 #define TBN_SAVE (TBN_FIRST-22)
661 #define TBN_INITCUSTOMIZE (TBN_FIRST-23)
662 #define TBNRF_HIDEHELP 1
663 #define TBNRF_ENDCUSTOMIZE 2
664 #define TBNF_IMAGE 1
665 #define TBNF_TEXT 2
666 #define TBNF_DI_SETITEM 0x10000000
667 #endif /* _WIN32_IE >= 0x0500 */
668 #define TTS_ALWAYSTIP 1
669 #define TTS_NOPREFIX 2
670 #if( _WIN32_IE >= 0x0500 )
671 #define TTS_NOANIMATE 0x10
672 #define TTS_NOFADE 0x20
673 #define TTS_BALLOON 0x40
674 #define TTS_CLOSE 0x80
675 #endif /* _WIN32_IE >= 0x0500 */
676 #define TTF_IDISHWND 1
677 #define TTF_CENTERTIP 2
678 #define TTF_RTLREADING 4
679 #define TTF_SUBCLASS 16
680 #if (_WIN32_IE >= 0x0300)
681 #define TTF_TRACK 0x0020
682 #define TTF_ABSOLUTE 0x0080
683 #define TTF_TRANSPARENT 0x0100
684 #if (_WIN32_IE >= 0x0501)
685 #define TTF_PARSELINKS 0x1000
686 #endif
687 #define TTF_DI_SETITEM 0x8000
688 #define TBCD_TICS 1
689 #define TBCD_THUMB 2
690 #define TBCD_CHANNEL 3
691 #endif /* _WIN32_IE >= 0x0300 */
692 #if (_WIN32_IE >= 0x0400)
693 #define TBDDRET_DEFAULT 0
694 #define TBDDRET_NODEFAULT 1
695 #define TBDDRET_TREATPRESSED 2
696 #define TBIMHT_AFTER 1
697 #define TBIMHT_BACKGROUND 2
698 #endif
699 #define TTDT_AUTOMATIC 0
700 #define TTDT_RESHOW 1
701 #define TTDT_AUTOPOP 2
702 #define TTDT_INITIAL 3
703 #define TTM_ACTIVATE (WM_USER+1)
704 #define TTM_SETDELAYTIME (WM_USER+3)
705 #define TTM_ADDTOOLA (WM_USER+4)
706 #define TTM_ADDTOOLW (WM_USER+50)
707 #define TTM_DELTOOLA (WM_USER+5)
708 #define TTM_DELTOOLW (WM_USER+51)
709 #define TTM_NEWTOOLRECTA (WM_USER+6)
710 #define TTM_NEWTOOLRECTW (WM_USER+52)
711 #define TTM_RELAYEVENT (WM_USER+7)
712 #define TTM_GETTOOLINFOA (WM_USER+8)
713 #define TTM_GETTOOLINFOW (WM_USER+53)
714 #define TTM_SETTOOLINFOA (WM_USER+9)
715 #define TTM_SETTOOLINFOW (WM_USER+54)
716 #define TTM_HITTESTA (WM_USER+10)
717 #define TTM_HITTESTW (WM_USER+55)
718 #define TTM_GETTEXTA (WM_USER+11)
719 #define TTM_GETTEXTW (WM_USER+56)
720 #define TTM_UPDATETIPTEXTA (WM_USER+12)
721 #define TTM_UPDATETIPTEXTW (WM_USER+57)
722 #define TTM_GETTOOLCOUNT (WM_USER+13)
723 #define TTM_ENUMTOOLSA (WM_USER+14)
724 #define TTM_ENUMTOOLSW (WM_USER+58)
725 #define TTM_GETCURRENTTOOLA (WM_USER+15)
726 #define TTM_GETCURRENTTOOLW (WM_USER+59)
727 #define TTM_WINDOWFROMPOINT (WM_USER+16)
728 #if (_WIN32_IE >= 0x0300)
729 #define TTM_TRACKACTIVATE (WM_USER+17)
730 #define TTM_TRACKPOSITION (WM_USER+18)
731 #define TTM_SETTIPBKCOLOR (WM_USER+19)
732 #define TTM_SETTIPTEXTCOLOR (WM_USER+20)
733 #define TTM_GETDELAYTIME (WM_USER+21)
734 #define TTM_GETTIPBKCOLOR (WM_USER+22)
735 #define TTM_GETTIPTEXTCOLOR (WM_USER+23)
736 #define TTM_SETMAXTIPWIDTH (WM_USER+24)
737 #define TTM_GETMAXTIPWIDTH (WM_USER+25)
738 #define TTM_SETMARGIN (WM_USER+26)
739 #define TTM_GETMARGIN (WM_USER+27)
740 #define TTM_POP (WM_USER+28)
741 #endif /* _WIN32_IE */
742 #if (_WIN32_IE >= 0x0400) /* IE4.0 ??? */
743 #define TTM_UPDATE (WM_USER+29)
744 #define TTM_GETBUBBLESIZE (WM_USER+30)
745 #define TTM_ADJUSTRECT (WM_USER+31)
746 #define TTM_SETTITLEA (WM_USER+32)
747 #define TTM_SETTITLEW (WM_USER+33)
748 #endif
749 #define TTN_GETDISPINFOA (TTN_FIRST - 0)
750 #define TTN_GETDISPINFOW (TTN_FIRST - 10)
751 #define TTN_NEEDTEXTA TTN_GETDISPINFOA
752 #define TTN_NEEDTEXTW TTN_GETDISPINFOW
753 #define TTN_SHOW (TTN_FIRST-1)
754 #define TTN_POP (TTN_FIRST-2)
755 #define UD_MAXVAL 0x7fff
756 #define UD_MINVAL (-UD_MAXVAL)
757 #define UDN_DELTAPOS (UDN_FIRST-1)
758 #define UDS_WRAP 1
759 #define UDS_SETBUDDYINT 2
760 #define UDS_ALIGNRIGHT 4
761 #define UDS_ALIGNLEFT 8
762 #define UDS_AUTOBUDDY 16
763 #define UDS_ARROWKEYS 32
764 #define UDS_HORZ 64
765 #define UDS_NOTHOUSANDS 128
766 #if ( _WIN32_IE >= 0x0300 )
767 #define UDS_HOTTRACK 0x0100
768 #endif /* _WIN32_IE >= 0x0300 */
769 #define UDM_SETRANGE (WM_USER+101)
770 #define UDM_GETRANGE (WM_USER+102)
771 #define UDM_SETPOS (WM_USER+103)
772 #define UDM_GETPOS (WM_USER+104)
773 #define UDM_SETBUDDY (WM_USER+105)
774 #define UDM_GETBUDDY (WM_USER+106)
775 #define UDM_SETACCEL (WM_USER+107)
776 #define UDM_GETACCEL (WM_USER+108)
777 #define UDM_SETBASE (WM_USER+109)
778 #define UDM_GETBASE (WM_USER+110)
779 #if (_WIN32_IE >= 0x0400)
780 #define UDM_SETRANGE32 (WM_USER+111)
781 #define UDM_GETRANGE32 (WM_USER+112)
782 #define UDM_SETPOS32 (WM_USER+113)
783 #define UDM_GETPOS32 (WM_USER+114)
784 #endif
785 #if (_WIN32_IE >= 0x0500)
786 #define UDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
787 #define UDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
788 #endif
789 #define SB_SETTEXTA (WM_USER+1)
790 #define SB_SETTEXTW (WM_USER+11)
791 #define SB_GETTEXTA (WM_USER+2)
792 #define SB_GETTEXTW (WM_USER+13)
793 #define SB_GETTEXTLENGTHA (WM_USER+3)
794 #define SB_GETTEXTLENGTHW (WM_USER+12)
795 #define SB_SETPARTS (WM_USER+4)
796 #define SB_GETPARTS (WM_USER+6)
797 #define SB_GETBORDERS (WM_USER+7)
798 #define SB_SETMINHEIGHT (WM_USER+8)
799 #define SB_SIMPLE (WM_USER+9)
800 #define SB_GETRECT (WM_USER+10)
801 #define SBT_OWNERDRAW 0x1000
802 #define SBT_NOBORDERS 256
803 #define SBT_POPOUT 512
804 #define SBT_RTLREADING 1024
805 #if( _WIN32_IE >= 0x0400 )
806 #define SBT_TOOLTIPS 0x0800
807 #define SBN_SIMPLEMODECHANGE (SBN_FIRST)
808 #endif /* _WIN32_IE >= 0x0400 */
809 #define TBS_AUTOTICKS 1
810 #define TBS_VERT 2
811 #define TBS_HORZ 0
812 #define TBS_TOP 4
813 #define TBS_BOTTOM 0
814 #define TBS_LEFT 4
815 #define TBS_RIGHT 0
816 #define TBS_BOTH 8
817 #define TBS_NOTICKS 16
818 #define TBS_ENABLESELRANGE 32
819 #define TBS_FIXEDLENGTH 64
820 #define TBS_NOTHUMB 128
821 #if (_WIN32_IE >= 0x0300)
822 #define TBS_TOOLTIPS 0x0100
823 #define TBTS_TOP 0
824 #define TBTS_LEFT 1
825 #define TBTS_BOTTOM 2
826 #define TBTS_RIGHT 3
827 #endif
828 #if (_WIN32_IE >= 0x0500)
829 #define TBS_REVERSED 0x0200
830 #endif
831 #if (_WIN32_IE >= 0x0501)
832 #define TBS_DOWNISLEFT 0x0400
833 #endif
834 #if _WIN32_IE >= 0x400
835 #define TBIF_BYINDEX 0x80000000
836 #define TBIF_COMMAND 32
837 #define TBIF_IMAGE 1
838 #define TBIF_LPARAM 16
839 #define TBIF_SIZE 64
840 #define TBIF_STATE 4
841 #define TBIF_STYLE 8
842 #define TBIF_TEXT 2
843 #endif
844 #define TBM_GETPOS (WM_USER)
845 #define TBM_GETRANGEMIN (WM_USER+1)
846 #define TBM_GETRANGEMAX (WM_USER+2)
847 #define TBM_GETTIC (WM_USER+3)
848 #define TBM_SETTIC (WM_USER+4)
849 #define TBM_SETPOS (WM_USER+5)
850 #define TBM_SETRANGE (WM_USER+6)
851 #define TBM_SETRANGEMIN (WM_USER+7)
852 #define TBM_SETRANGEMAX (WM_USER+8)
853 #define TBM_CLEARTICS (WM_USER+9)
854 #define TBM_SETSEL (WM_USER+10)
855 #define TBM_SETSELSTART (WM_USER+11)
856 #define TBM_SETSELEND (WM_USER+12)
857 #define TBM_GETPTICS (WM_USER+14)
858 #define TBM_GETTICPOS (WM_USER+15)
859 #define TBM_GETNUMTICS (WM_USER+16)
860 #define TBM_GETSELSTART (WM_USER+17)
861 #define TBM_GETSELEND (WM_USER+18)
862 #define TBM_CLEARSEL (WM_USER+19)
863 #define TBM_SETTICFREQ (WM_USER+20)
864 #define TBM_SETPAGESIZE (WM_USER+21)
865 #define TBM_GETPAGESIZE (WM_USER+22)
866 #define TBM_SETLINESIZE (WM_USER+23)
867 #define TBM_GETLINESIZE (WM_USER+24)
868 #define TBM_GETTHUMBRECT (WM_USER+25)
869 #define TBM_GETCHANNELRECT (WM_USER+26)
870 #define TBM_SETTHUMBLENGTH (WM_USER+27)
871 #define TBM_GETTHUMBLENGTH (WM_USER+28)
872 #define TBM_SETTOOLTIPS (WM_USER+29)
873 #define TBM_GETTOOLTIPS (WM_USER+30)
874 #define TBM_SETTIPSIDE (WM_USER+31)
875 #define TBM_SETBUDDY (WM_USER+32)
876 #define TBM_GETBUDDY (WM_USER+33)
877 #define TBM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
878 #define TBM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
879 #define TB_LINEUP 0
880 #define TB_LINEDOWN 1
881 #define TB_PAGEUP 2
882 #define TB_PAGEDOWN 3
883 #define TB_THUMBPOSITION 4
884 #define TB_THUMBTRACK 5
885 #define TB_TOP 6
886 #define TB_BOTTOM 7
887 #define TB_ENDTRACK 8
888 #define HOTKEYF_SHIFT 1
889 #define HOTKEYF_CONTROL 2
890 #define HOTKEYF_ALT 4
891 #define HOTKEYF_EXT 8
892 #define HKCOMB_NONE 1
893 #define HKCOMB_S 2
894 #define HKCOMB_C 4
895 #define HKCOMB_A 8
896 #define HKCOMB_SC 16
897 #define HKCOMB_SA 32
898 #define HKCOMB_CA 64
899 #define HKCOMB_SCA 128
900 #define HKM_SETHOTKEY (WM_USER+1)
901 #define HKM_GETHOTKEY (WM_USER+2)
902 #define HKM_SETRULES (WM_USER+3)
903 #define PBM_SETRANGE (WM_USER+1)
904 #define PBM_SETPOS (WM_USER+2)
905 #define PBM_DELTAPOS (WM_USER+3)
906 #define PBM_SETSTEP (WM_USER+4)
907 #define PBM_STEPIT (WM_USER+5)
908 #define PBM_SETRANGE32 1030
909 #define PBM_GETRANGE 1031
910 #define PBM_GETPOS 1032
911 #define PBM_SETBARCOLOR 1033
912 #define PBM_SETBKCOLOR CCM_SETBKCOLOR
913 #define PBS_SMOOTH 1
914 #define PBS_VERTICAL 4
915 #define LVS_ICON 0
916 #define LVS_REPORT 1
917 #define LVS_SMALLICON 2
918 #define LVS_LIST 3
919 #define LVS_TYPEMASK 3
920 #define LVS_SINGLESEL 4
921 #define LVS_SHOWSELALWAYS 8
922 #define LVS_SORTASCENDING 16
923 #define LVS_SORTDESCENDING 32
924 #define LVS_SHAREIMAGELISTS 64
925 #define LVS_NOLABELWRAP 128
926 #define LVS_AUTOARRANGE 256
927 #define LVS_EDITLABELS 512
928 #define LVS_NOSCROLL 0x2000
929 #define LVS_TYPESTYLEMASK 0xfc00
930 #define LVS_ALIGNTOP 0
931 #define LVS_ALIGNLEFT 0x800
932 #define LVS_ALIGNMASK 0xc00
933 #define LVS_OWNERDRAWFIXED 0x400
934 #define LVS_NOCOLUMNHEADER 0x4000
935 #define LVS_NOSORTHEADER 0x8000
936 #if (_WIN32_IE >= 0x0300)
937 #define CDIS_CHECKED 8
938 #define CDIS_DEFAULT 32
939 #define CDIS_DISABLED 4
940 #define CDIS_FOCUS 16
941 #define CDIS_GRAYED 2
942 #define CDIS_HOT 64
943 #define CDIS_SELECTED 1
944 #define CDIS_MARKED 128
945 #define CDIS_INDETERMINATE 256
946 #if (_WIN32_WINNT >= 0x0501)
947 #define CDIS_SHOWKEYBOARDCUES 512
948 #endif
949 #define CDDS_POSTERASE 4
950 #define CDDS_POSTPAINT 2
951 #define CDDS_PREERASE 3
952 #define CDDS_PREPAINT 1
953 #define CDDS_ITEM 65536
954 #define CDDS_ITEMPOSTERASE 65540
955 #define CDDS_ITEMPOSTPAINT 65538
956 #define CDDS_ITEMPREERASE 65539
957 #define CDDS_ITEMPREPAINT 65537
958 #if (_WIN32_IE >= 0x0400)
959 #define CDDS_SUBITEM 0x20000
960 #endif
961 #define CDRF_DODEFAULT 0x00
962 #define CDRF_NOTIFYITEMDRAW 0x20
963 #define CDRF_NOTIFYSUBITEMDRAW 0x20
964 #define CDRF_NOTIFYITEMERASE 0x80
965 #define CDRF_NOTIFYPOSTERASE 0x40
966 #define CDRF_NOTIFYPOSTPAINT 0x10
967 #define CDRF_NEWFONT 0x02
968 #define CDRF_SKIPDEFAULT 0x04
969 #if (_WIN32_IE >= 0x0400)
970 #define LVBKIF_SOURCE_NONE 0x00000000
971 #define LVBKIF_SOURCE_HBITMAP 0x00000001
972 #define LVBKIF_SOURCE_URL 0x00000002
973 #define LVBKIF_SOURCE_MASK 0x00000003
974 #define LVBKIF_STYLE_NORMAL 0x00000000
975 #define LVBKIF_STYLE_TILE 0x00000010
976 #define LVBKIF_STYLE_MASK 0x00000010
977 #endif /* _WIN32_IE >=0x0400 */
978 #if (_WIN32_WINNT >= 0x501)
979 #define LVBKIF_FLAG_TILEOFFSET 0x00000100
980 #define LVBKIF_TYPE_WATERMARK 0x10000000
981 #endif /* _WIN32_WINNT >= 0x501 */
982 #define LVS_OWNERDATA 4096
983 #define LVS_EX_CHECKBOXES 4
984 #define LVS_EX_FULLROWSELECT 32
985 #define LVS_EX_GRIDLINES 1
986 #define LVS_EX_HEADERDRAGDROP 16
987 #define LVS_EX_ONECLICKACTIVATE 64
988 #define LVS_EX_SUBITEMIMAGES 2
989 #define LVS_EX_TRACKSELECT 8
990 #define LVS_EX_TWOCLICKACTIVATE 128
991 #define LVSICF_NOINVALIDATEALL 0x00000001
992 #define LVSICF_NOSCROLL 0x00000002
993 #if( _WIN32_IE >= 0x0400 )
994 #define LVS_EX_FLATSB 0x00000100
995 #define LVS_EX_REGIONAL 0x00000200
996 #define LVS_EX_INFOTIP 0x00000400
997 #define LVS_EX_UNDERLINEHOT 0x00000800
998 #define LVS_EX_UNDERLINECOLD 0x00001000
999 #define LVS_EX_MULTIWORKAREAS 0x00002000
1000 #endif /* _WIN32_IE >=0x0400 */
1001 #if( _WIN32_IE >= 0x0500 )
1002 #define LVS_EX_LABELTIP 0x00004000
1003 #define LVS_EX_BORDERSELECT 0x00008000
1004 #endif /* _WIN32_IE >= 0x0500 */
1005 #endif /* _WIN32_IE >= 0x0300 */
1006 #define LVSIL_NORMAL 0
1007 #define LVSIL_SMALL 1
1008 #define LVSIL_STATE 2
1009 #define LVM_GETBKCOLOR LVM_FIRST
1010 #define LVM_SETBKCOLOR (LVM_FIRST+1)
1011 #define LVM_GETIMAGELIST (LVM_FIRST+2)
1012 #define LVM_SETIMAGELIST (LVM_FIRST+3)
1013 #define LVM_GETITEMCOUNT (LVM_FIRST+4)
1014 #define LVM_SORTITEMSEX (LVM_FIRST+81)
1015 #if (_WIN32_WINNT >= 0x501)
1016 #define LVM_SETSELECTEDCOLUMN (LVM_FIRST+140)
1017 #endif
1018 #define LVM_SETVIEW (LVM_FIRST+142)
1019 #define LVM_GETVIEW (LVM_FIRST+143)
1020 #define LVM_INSERTGROUP (LVM_FIRST+145)
1021 #define LVM_SETGROUPINFO (LVM_FIRST+147)
1022 #define LVM_GETGROUPINFO (LVM_FIRST+149)
1023 #define LVM_REMOVEGROUP (LVM_FIRST+150)
1024 #define LVM_MOVEGROUP (LVM_FIRST+151)
1025 #define LVM_SETGROUPMETRICS (LVM_FIRST+155)
1026 #define LVM_GETGROUPMETRICS (LVM_FIRST+156)
1027 #define LVM_ENABLEGROUPVIEW (LVM_FIRST+157)
1028 #define LVM_SORTGROUPS (LVM_FIRST+158)
1029 #define LVM_INSERTGROUPSORTED (LVM_FIRST+159)
1030 #define LVM_REMOVEALLGROUPS (LVM_FIRST+160)
1031 #define LVM_HASGROUP (LVM_FIRST+161)
1032 #define LVM_SETTILEVIEWINFO (LVM_FIRST+162)
1033 #define LVM_GETTILEVIEWINFO (LVM_FIRST+163)
1034 #define LVM_SETTILEINFO (LVM_FIRST+164)
1035 #define LVM_GETTILEINFO (LVM_FIRST+165)
1036 #define LVM_SETINSERTMARK (LVM_FIRST+166)
1037 #define LVM_GETINSERTMARK (LVM_FIRST+167)
1038 #define LVM_INSERTMARKHITTEST (LVM_FIRST+168)
1039 #define LVM_GETINSERTMARKRECT (LVM_FIRST+169)
1040 #define LVM_SETINSERTMARKCOLOR (LVM_FIRST+170)
1041 #define LVM_GETINSERTMARKCOLOR (LVM_FIRST+171)
1042 #define LVM_SETINFOTIP (LVM_FIRST+173)
1043 #define LVM_GETSELECTEDCOLUMN (LVM_FIRST+174)
1044 #define LVM_ISGROUPVIEWENABLED (LVM_FIRST+175)
1045 #define LVM_GETOUTLINECOLOR (LVM_FIRST+176)
1046 #define LVM_SETOUTLINECOLOR (LVM_FIRST+177)
1047 #define LVM_CANCELEDITLABEL (LVM_FIRST+179)
1048 #define LVM_MAPIDTOINDEX (LVM_FIRST+181)
1049 #define LVIF_TEXT 1
1050 #define LVIF_IMAGE 2
1051 #define LVIF_PARAM 4
1052 #define LVIF_STATE 8
1053 #if (_WIN32_IE >= 0x0300)
1054 #define LVIF_INDENT 16
1055 #define LVIF_NORECOMPUTE 2048
1056 #endif
1057 #if (_WIN32_WINNT >= 0x0501)
1058 #define LVIF_GROUPID 128
1059 #define LVIF_COLUMNS 256
1060 #endif
1061 #define LVIS_FOCUSED 1
1062 #define LVIS_SELECTED 2
1063 #define LVIS_CUT 4
1064 #define LVIS_DROPHILITED 8
1065 #define LVIS_OVERLAYMASK 0xF00
1066 #define LVIS_STATEIMAGEMASK 0xF000
1067 #define LPSTR_TEXTCALLBACKW ((LPWSTR)-1)
1068 #define LPSTR_TEXTCALLBACKA ((LPSTR)-1)
1069 #define I_IMAGECALLBACK (-1)
1070 #define LVM_GETITEMA (LVM_FIRST+5)
1071 #define LVM_GETITEMW (LVM_FIRST+75)
1072 #define LVM_SETITEMA (LVM_FIRST+6)
1073 #define LVM_SETITEMW (LVM_FIRST+76)
1074 #define LVM_INSERTITEMA (LVM_FIRST+7)
1075 #define LVM_INSERTITEMW (LVM_FIRST+77)
1076 #define LVM_DELETEITEM (LVM_FIRST+8)
1077 #define LVM_DELETEALLITEMS (LVM_FIRST+9)
1078 #define LVM_GETCALLBACKMASK (LVM_FIRST+10)
1079 #define LVM_SETCALLBACKMASK (LVM_FIRST+11)
1080 #if( _WIN32_IE >= 0x0400 )
1081 #define LVM_SETBKIMAGEA (LVM_FIRST + 68)
1082 #define LVM_SETBKIMAGEW (LVM_FIRST + 138)
1083 #define LVM_GETBKIMAGEA (LVM_FIRST + 69)
1084 #define LVM_GETBKIMAGEW (LVM_FIRST + 139)
1085 #define LV_MAX_WORKAREAS 16
1086 #define LVM_SETWORKAREAS (LVM_FIRST+65)
1087 #define LVM_GETWORKAREAS (LVM_FIRST+70)
1088 #define LVM_GETNUMBEROFWORKAREAS (LVM_FIRST+73)
1089 #define LVM_GETSELECTIONMARK (LVM_FIRST+66)
1090 #define LVM_SETSELECTIONMARK (LVM_FIRST+67)
1091 #define LVM_SETHOVERTIME (LVM_FIRST+71)
1092 #define LVM_GETHOVERTIME (LVM_FIRST+72)
1093 #define LVM_SETTOOLTIPS (LVM_FIRST+74)
1094 #define LVM_GETTOOLTIPS (LVM_FIRST+78)
1095 #define LVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1096 #define LVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1097 #endif /* _WIN32_IE >= 0x0400 */
1098 #define LVNI_ALL 0
1099 #define LVNI_FOCUSED 1
1100 #define LVNI_SELECTED 2
1101 #define LVNI_CUT 4
1102 #define LVNI_DROPHILITED 8
1103 #define LVNI_ABOVE 256
1104 #define LVNI_BELOW 512
1105 #define LVNI_TOLEFT 1024
1106 #define LVNI_TORIGHT 2048
1107 #define LVM_GETNEXTITEM (LVM_FIRST+12)
1108 #define LVFI_PARAM 1
1109 #define LVFI_STRING 2
1110 #define LVFI_PARTIAL 8
1111 #define LVFI_WRAP 32
1112 #define LVFI_NEARESTXY 64
1113 #define LVIF_DI_SETITEM 0x1000
1114 #define LVM_FINDITEMA (LVM_FIRST+13)
1115 #define LVM_FINDITEMW (LVM_FIRST+83)
1116 #define LVIR_BOUNDS 0
1117 #define LVIR_ICON 1
1118 #define LVIR_LABEL 2
1119 #define LVIR_SELECTBOUNDS 3
1120 #define LVM_GETITEMRECT (LVM_FIRST+14)
1121 #define LVM_SETITEMPOSITION (LVM_FIRST+15)
1122 #define LVM_GETITEMPOSITION (LVM_FIRST+16)
1123 #define LVM_GETSTRINGWIDTHA (LVM_FIRST+17)
1124 #define LVM_GETSTRINGWIDTHW (LVM_FIRST+87)
1125 #define LVHT_NOWHERE 1
1126 #define LVHT_ONITEMICON 2
1127 #define LVHT_ONITEMLABEL 4
1128 #define LVHT_ONITEMSTATEICON 8
1129 #define LVHT_ONITEM (LVHT_ONITEMICON|LVHT_ONITEMLABEL|LVHT_ONITEMSTATEICON)
1130 #define LVHT_ABOVE 8
1131 #define LVHT_BELOW 16
1132 #define LVHT_TORIGHT 32
1133 #define LVHT_TOLEFT 64
1134 #define LVM_HITTEST (LVM_FIRST+18)
1135 #define LVM_ENSUREVISIBLE (LVM_FIRST+19)
1136 #define LVM_SCROLL (LVM_FIRST+20)
1137 #define LVM_REDRAWITEMS (LVM_FIRST+21)
1138 #define LVA_DEFAULT 0
1139 #define LVA_ALIGNLEFT 1
1140 #define LVA_ALIGNTOP 2
1141 #define LVA_SNAPTOGRID 5
1142 #define LVM_ARRANGE (LVM_FIRST+22)
1143 #define LVM_EDITLABELA (LVM_FIRST+23)
1144 #define LVM_EDITLABELW (LVM_FIRST+118)
1145 #define LVM_GETEDITCONTROL (LVM_FIRST+24)
1146 #define LVCF_FMT 1
1147 #define LVCF_WIDTH 2
1148 #define LVCF_TEXT 4
1149 #define LVCF_SUBITEM 8
1150 #if (_WIN32_IE >= 0x0300)
1151 #define LVCF_IMAGE 16
1152 #define LVCF_ORDER 32
1153 #endif
1154 #define LVCFMT_LEFT 0
1155 #define LVCFMT_RIGHT 1
1156 #define LVCFMT_CENTER 2
1157 #define LVCFMT_JUSTIFYMASK 3
1158 #if (_WIN32_IE >= 0x0300)
1159 #define LVCFMT_BITMAP_ON_RIGHT 4096
1160 #define LVCFMT_COL_HAS_IMAGES 32768
1161 #define LVCFMT_IMAGE 2048
1162 #endif
1163 #define LVM_GETCOLUMNA (LVM_FIRST+25)
1164 #define LVM_GETCOLUMNW (LVM_FIRST+95)
1165 #define LVM_SETCOLUMNA (LVM_FIRST+26)
1166 #define LVM_SETCOLUMNW (LVM_FIRST+96)
1167 #define LVM_INSERTCOLUMNA (LVM_FIRST+27)
1168 #define LVM_INSERTCOLUMNW (LVM_FIRST+97)
1169 #define LVM_DELETECOLUMN (LVM_FIRST+28)
1170 #define LVM_GETCOLUMNWIDTH (LVM_FIRST+29)
1171 #define LVSCW_AUTOSIZE (-1)
1172 #define LVSCW_AUTOSIZE_USEHEADER (-2)
1173 #define LVM_SETCOLUMNWIDTH (LVM_FIRST+30)
1174 #define LVM_CREATEDRAGIMAGE (LVM_FIRST+33)
1175 #define LVM_GETVIEWRECT (LVM_FIRST+34)
1176 #define LVM_GETTEXTCOLOR (LVM_FIRST+35)
1177 #define LVM_SETTEXTCOLOR (LVM_FIRST+36)
1178 #define LVM_GETTEXTBKCOLOR (LVM_FIRST+37)
1179 #define LVM_SETTEXTBKCOLOR (LVM_FIRST+38)
1180 #define LVM_GETTOPINDEX (LVM_FIRST+39)
1181 #define LVM_GETCOUNTPERPAGE (LVM_FIRST+40)
1182 #define LVM_GETORIGIN (LVM_FIRST+41)
1183 #define LVM_GETORIGIN (LVM_FIRST+41)
1184 #define LVM_UPDATE (LVM_FIRST+42)
1185 #define LVM_SETITEMSTATE (LVM_FIRST+43)
1186 #define LVM_GETITEMSTATE (LVM_FIRST+44)
1187 #define LVM_GETITEMTEXTA (LVM_FIRST+45)
1188 #define LVM_GETITEMTEXTW (LVM_FIRST+115)
1189 #define LVM_SETITEMTEXTA (LVM_FIRST+46)
1190 #define LVM_SETITEMTEXTW (LVM_FIRST+116)
1191 #define LVM_SETITEMCOUNT (LVM_FIRST+47)
1192 #define LVM_SORTITEMS (LVM_FIRST+48)
1193 #define LVM_SETITEMPOSITION32 (LVM_FIRST+49)
1194 #define LVM_GETSELECTEDCOUNT (LVM_FIRST+50)
1195 #define LVM_GETITEMSPACING (LVM_FIRST+51)
1196 #define LVM_GETISEARCHSTRINGA (LVM_FIRST+52)
1197 #define LVM_GETISEARCHSTRINGW (LVM_FIRST+117)
1198 #if (_WIN32_IE >= 0x0300)
1199 #define LVM_APPROXIMATEVIEWRECT (LVM_FIRST+64)
1200 #define LVM_SETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+54)
1201 #define LVM_GETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+55)
1202 #define LVM_SETCOLUMNORDERARRAY (LVM_FIRST+58)
1203 #define LVM_GETCOLUMNORDERARRAY (LVM_FIRST+59)
1204 #define LVM_GETHEADER (LVM_FIRST+31)
1205 #define LVM_GETHOTCURSOR (LVM_FIRST+63)
1206 #define LVM_GETHOTITEM (LVM_FIRST+61)
1207 #define LVM_GETSUBITEMRECT (LVM_FIRST+56)
1208 #define LVM_SETHOTCURSOR (LVM_FIRST+62)
1209 #define LVM_SETHOTITEM (LVM_FIRST+60)
1210 #define LVM_SETICONSPACING (LVM_FIRST+53)
1211 #define LVM_SUBITEMHITTEST (LVM_FIRST+57)
1212 #endif
1213 #define LVN_ITEMCHANGING LVN_FIRST
1214 #define LVN_ITEMCHANGED (LVN_FIRST-1)
1215 #define LVN_INSERTITEM (LVN_FIRST-2)
1216 #define LVN_DELETEITEM (LVN_FIRST-3)
1217 #define LVN_DELETEALLITEMS (LVN_FIRST-4)
1218 #define LVN_BEGINLABELEDITA (LVN_FIRST-5)
1219 #define LVN_BEGINLABELEDITW (LVN_FIRST-75)
1220 #define LVN_ENDLABELEDITA (LVN_FIRST-6)
1221 #define LVN_ENDLABELEDITW (LVN_FIRST-76)
1222 #define LVN_COLUMNCLICK (LVN_FIRST-8)
1223 #define LVN_BEGINDRAG (LVN_FIRST-9)
1224 #define LVN_BEGINRDRAG (LVN_FIRST-11)
1225 #define LVN_GETDISPINFOA (LVN_FIRST-50)
1226 #define LVN_GETDISPINFOW (LVN_FIRST-77)
1227 #define LVN_SETDISPINFOA (LVN_FIRST-51)
1228 #define LVN_SETDISPINFOW (LVN_FIRST-78)
1229 #define LVN_KEYDOWN (LVN_FIRST-55)
1230 #if (_WIN32_IE >= 0x0400)
1231 #define LVN_MARQUEEBEGIN (LVN_FIRST-56)
1232 #define LVN_GETINFOTIPA (LVN_FIRST-57)
1233 #define LVN_GETINFOTIPW (LVN_FIRST-58)
1234 #define LVKF_ALT 0x0001
1235 #define LVKF_CONTROL 0x0002
1236 #define LVKF_SHIFT 0x0004
1237 #define LVGIT_UNFOLDED 1
1238 #endif
1239 #define TVS_HASBUTTONS 1
1240 #define TVS_HASLINES 2
1241 #define TVS_LINESATROOT 4
1242 #define TVS_EDITLABELS 8
1243 #define TVS_DISABLEDRAGDROP 16
1244 #define TVS_SHOWSELALWAYS 32
1245 #if (_WIN32_IE >= 0x0300)
1246 #define TVS_CHECKBOXES 256
1247 #define TVS_NOTOOLTIPS 128
1248 #define TVS_RTLREADING 64
1249 #define TVS_TRACKSELECT 512
1250 #endif
1251 #if (_WIN32_IE >= 0x0400)
1252 #define TVS_FULLROWSELECT 4096
1253 #define TVS_INFOTIP 2048
1254 #define TVS_NONEVENHEIGHT 16384
1255 #define TVS_NOSCROLL 8192
1256 #define TVS_SINGLEEXPAND 1024
1257 #endif
1258 #if( _WIN32_IE >= 0x0500 )
1259 #define TVS_NOHSCROLL 0x8000
1260 #endif /* _WIN32_IE >= 0x0500 */
1261 #define TVIF_TEXT 1
1262 #define TVIF_IMAGE 2
1263 #define TVIF_PARAM 4
1264 #define TVIF_STATE 8
1265 #define TVIF_HANDLE 16
1266 #define TVIF_SELECTEDIMAGE 32
1267 #define TVIF_CHILDREN 64
1268 #if (_WIN32_IE >= 0x0400)
1269 #define TVIF_INTEGRAL 0x0080
1270 #endif /* _WIN32_IE >= 0x0400 */
1271 #define TVIS_FOCUSED 1
1272 #define TVIS_SELECTED 2
1273 #define TVIS_CUT 4
1274 #define TVIS_DROPHILITED 8
1275 #define TVIS_BOLD 16
1276 #define TVIS_EXPANDED 32
1277 #define TVIS_EXPANDEDONCE 64
1278 #define TVIS_OVERLAYMASK 0xF00
1279 #define TVIS_STATEIMAGEMASK 0xF000
1280 #define TVIS_USERMASK 0xF000
1281 #define I_CHILDRENCALLBACK (-1)
1282 #define TVI_ROOT ((HTREEITEM)0xFFFF0000)
1283 #define TVI_FIRST ((HTREEITEM)0xFFFF0001)
1284 #define TVI_LAST ((HTREEITEM)0xFFFF0002)
1285 #define TVI_SORT ((HTREEITEM)0xFFFF0003)
1286 #define TVSIL_NORMAL 0
1287 #define TVSIL_STATE 2
1288 #define TVM_INSERTITEMA TV_FIRST
1289 #define TVM_INSERTITEMW (TV_FIRST+50)
1290 #define TVM_DELETEITEM (TV_FIRST+1)
1291 #define TVM_EXPAND (TV_FIRST+2)
1292 #define TVM_GETITEMRECT (TV_FIRST+4)
1293 #define TVM_GETCOUNT (TV_FIRST+5)
1294 #define TVM_GETINDENT (TV_FIRST+6)
1295 #define TVM_SETINDENT (TV_FIRST+7)
1296 #define TVM_GETIMAGELIST (TV_FIRST+8)
1297 #define TVM_SETIMAGELIST (TV_FIRST+9)
1298 #define TVM_GETNEXTITEM (TV_FIRST+10)
1299 #define TVM_SELECTITEM (TV_FIRST+11)
1300 #define TVM_GETITEMA (TV_FIRST+12)
1301 #define TVM_GETITEMW (TV_FIRST+62)
1302 #define TVM_SETITEMA (TV_FIRST+13)
1303 #define TVM_SETITEMW (TV_FIRST+63)
1304 #define TVM_EDITLABELA (TV_FIRST+14)
1305 #define TVM_EDITLABELW (TV_FIRST+65)
1306 #define TVM_GETEDITCONTROL (TV_FIRST+15)
1307 #define TVM_GETVISIBLECOUNT (TV_FIRST+16)
1308 #define TVM_HITTEST (TV_FIRST+17)
1309 #define TVM_CREATEDRAGIMAGE (TV_FIRST+18)
1310 #define TVM_SORTCHILDREN (TV_FIRST+19)
1311 #define TVM_ENSUREVISIBLE (TV_FIRST+20)
1312 #define TVM_SORTCHILDRENCB (TV_FIRST+21)
1313 #define TVM_ENDEDITLABELNOW (TV_FIRST+22)
1314 #define TVM_GETISEARCHSTRINGA (TV_FIRST+23)
1315 #define TVM_GETISEARCHSTRINGW (TV_FIRST+64)
1316 #if (_WIN32_IE >= 0x0300)
1317 #define TVM_GETTOOLTIPS (TV_FIRST+25)
1318 #define TVM_SETTOOLTIPS (TV_FIRST+24)
1319 #endif
1320 #if (_WIN32_IE >= 0x0400)
1321 #define TVM_GETBKCOLOR (TV_FIRST+31)
1322 #define TVM_GETINSERTMARKCOLOR (TV_FIRST+38)
1323 #define TVM_GETITEMHEIGHT (TV_FIRST+28)
1324 #define TVM_GETSCROLLTIME (TV_FIRST+34)
1325 #define TVM_GETTEXTCOLOR (TV_FIRST+32)
1326 #define TVM_SETBKCOLOR (TV_FIRST+29)
1327 #define TVM_SETINSERTMARK (TV_FIRST+26)
1328 #define TVM_SETINSERTMARKCOLOR (TV_FIRST+37)
1329 #define TVM_SETITEMHEIGHT (TV_FIRST+27)
1330 #define TVM_SETSCROLLTIME (TV_FIRST+33)
1331 #define TVM_SETTEXTCOLOR (TV_FIRST+30)
1332 #define TVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1333 #define TVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1334 #endif
1335 #if (_WIN32_IE >= 0x0500)
1336 #define TVM_GETITEMSTATE (TV_FIRST+39)
1337 #define TVM_SETLINECOLOR (TV_FIRST+40)
1338 #define TVM_GETLINECOLOR (TV_FIRST+41)
1339 #endif
1340 #define TVE_COLLAPSE 1
1341 #define TVE_EXPAND 2
1342 #define TVE_TOGGLE 3
1343 #define TVE_COLLAPSERESET 0x8000
1344 #if (_WIN32_IE >= 0x0300)
1345 #define TVE_EXPANDPARTIAL 0x4000
1346 #endif
1347 #define TVC_UNKNOWN 0
1348 #define TVC_BYMOUSE 1
1349 #define TVC_BYKEYBOARD 2
1350 #define TVGN_ROOT 0
1351 #define TVGN_NEXT 1
1352 #define TVGN_PREVIOUS 2
1353 #define TVGN_PARENT 3
1354 #define TVGN_CHILD 4
1355 #define TVGN_FIRSTVISIBLE 5
1356 #define TVGN_NEXTVISIBLE 6
1357 #define TVGN_PREVIOUSVISIBLE 7
1358 #define TVGN_DROPHILITE 8
1359 #define TVGN_CARET 9
1360 #if (_WIN32_IE >= 0x0400)
1361 #define TVGN_LASTVISIBLE 10
1362 #endif
1363 #define TVN_SELCHANGINGA (TVN_FIRST-1)
1364 #define TVN_SELCHANGINGW (TVN_FIRST-50)
1365 #define TVN_SELCHANGEDA (TVN_FIRST-2)
1366 #define TVN_SELCHANGEDW (TVN_FIRST-51)
1367 #define TVN_GETDISPINFOA (TVN_FIRST-3)
1368 #define TVN_GETDISPINFOW (TVN_FIRST-52)
1369 #define TVN_SETDISPINFOA (TVN_FIRST-4)
1370 #define TVN_SETDISPINFOW (TVN_FIRST-53)
1371 #define TVN_ITEMEXPANDINGA (TVN_FIRST-5)
1372 #define TVN_ITEMEXPANDINGW (TVN_FIRST-54)
1373 #define TVN_ITEMEXPANDEDA (TVN_FIRST-6)
1374 #define TVN_ITEMEXPANDEDW (TVN_FIRST-55)
1375 #define TVN_BEGINDRAGA (TVN_FIRST-7)
1376 #define TVN_BEGINDRAGW (TVN_FIRST-56)
1377 #define TVN_BEGINRDRAGA (TVN_FIRST-8)
1378 #define TVN_BEGINRDRAGW (TVN_FIRST-57)
1379 #define TVN_DELETEITEMA (TVN_FIRST-9)
1380 #define TVN_DELETEITEMW (TVN_FIRST-58)
1381 #define TVN_BEGINLABELEDITA (TVN_FIRST-10)
1382 #define TVN_BEGINLABELEDITW (TVN_FIRST-59)
1383 #define TVN_ENDLABELEDITA (TVN_FIRST-11)
1384 #define TVN_ENDLABELEDITW (TVN_FIRST-60)
1385 #define TVN_KEYDOWN (TVN_FIRST-12)
1386 #if (_WIN32_IE >= 0x0400)
1387 #define TVN_GETINFOTIPA (TVN_FIRST-13)
1388 #define TVN_GETINFOTIPW (TVN_FIRST-14)
1389 #define TVN_SINGLEEXPAND (TVN_FIRST-15)
1390 #define TVNRET_DEFAULT 0
1391 #define TVNRET_SKIPOLD 1
1392 #define TVNRET_SKIPNEW 2
1393 #endif /* _WIN32_IE >= 0x0400 */
1394 #define TVIF_DI_SETITEM 0x1000
1395 #define TVHT_NOWHERE 1
1396 #define TVHT_ONITEMICON 2
1397 #define TVHT_ONITEMLABEL 4
1398 #define TVHT_ONITEM (TVHT_ONITEMICON|TVHT_ONITEMLABEL|TVHT_ONITEMSTATEICON)
1399 #define TVHT_ONITEMINDENT 8
1400 #define TVHT_ONITEMBUTTON 16
1401 #define TVHT_ONITEMRIGHT 32
1402 #define TVHT_ONITEMSTATEICON 64
1403 #define TVHT_ABOVE 256
1404 #define TVHT_BELOW 512
1405 #define TVHT_TORIGHT 1024
1406 #define TVHT_TOLEFT 2048
1407 #define TCHT_NOWHERE 1
1408 #define TCHT_ONITEMICON 2
1409 #define TCHT_ONITEMLABEL 4
1410 #define TCHT_ONITEM (TCHT_ONITEMICON|TCHT_ONITEMLABEL)
1411 #define TCS_FORCEICONLEFT 16
1412 #define TCS_FORCELABELLEFT 32
1413 #define TCS_TABS 0
1414 #define TCS_BUTTONS 256
1415 #define TCS_SINGLELINE 0
1416 #define TCS_MULTILINE 512
1417 #define TCS_RIGHTJUSTIFY 0
1418 #define TCS_FIXEDWIDTH 1024
1419 #define TCS_RAGGEDRIGHT 2048
1420 #define TCS_FOCUSONBUTTONDOWN 0x1000
1421 #define TCS_OWNERDRAWFIXED 0x2000
1422 #define TCS_TOOLTIPS 0x4000
1423 #define TCS_FOCUSNEVER 0x8000
1424 #if (_WIN32_IE >= 0x0300)
1425 #define TCS_BOTTOM 2
1426 #define TCS_RIGHT 2
1427 #define TCS_VERTICAL 128
1428 #define TCS_SCROLLOPPOSITE 0x0001
1429 #define TCS_HOTTRACK 0x0040
1430 #define TCS_MULTISELECT 0x0004
1431 #endif
1432 #if( _WIN32_IE >= 0x0400 )
1433 #define TCS_FLATBUTTONS 0x0008
1434 #define TCS_EX_FLATSEPARATORS 0x00000001
1435 #define TCS_EX_REGISTERDROP 0x00000002
1436 #endif /* _WIN32_IE >= 0x0400 */
1437 #define TCIF_TEXT 1
1438 #define TCIF_IMAGE 2
1439 #define TCIF_RTLREADING 4
1440 #define TCIF_PARAM 8
1441 #if (_WIN32_IE >= 0x0400)
1442 #define TCIF_STATE 16
1443 #endif
1444 #define TCIS_BUTTONPRESSED 1
1445 #if (_WIN32_IE >= 0x0400)
1446 #define TCIS_HIGHLIGHTED 2
1447 #endif
1448 #define TCM_FIRST 0x1300
1449 #define TCM_GETIMAGELIST (TCM_FIRST+2)
1450 #define TCM_SETIMAGELIST (TCM_FIRST+3)
1451 #define TCM_GETITEMCOUNT (TCM_FIRST+4)
1452 #define TCM_GETITEMA (TCM_FIRST+5)
1453 #define TCM_GETITEMW (TCM_FIRST+60)
1454 #define TCM_SETITEMA (TCM_FIRST+6)
1455 #define TCM_SETITEMW (TCM_FIRST+61)
1456 #define TCM_INSERTITEMA (TCM_FIRST+7)
1457 #define TCM_INSERTITEMW (TCM_FIRST+62)
1458 #define TCM_DELETEITEM (TCM_FIRST+8)
1459 #define TCM_DELETEALLITEMS (TCM_FIRST+9)
1460 #define TCM_GETITEMRECT (TCM_FIRST+10)
1461 #define TCM_GETCURSEL (TCM_FIRST+11)
1462 #define TCM_SETCURSEL (TCM_FIRST+12)
1463 #define TCM_HITTEST (TCM_FIRST+13)
1464 #define TCM_SETITEMEXTRA (TCM_FIRST+14)
1466 #define TCM_ADJUSTRECT (TCM_FIRST+40)
1467 #define TCM_SETITEMSIZE (TCM_FIRST+41)
1468 #define TCM_REMOVEIMAGE (TCM_FIRST+42)
1469 #define TCM_SETPADDING (TCM_FIRST+43)
1470 #define TCM_GETROWCOUNT (TCM_FIRST+44)
1471 #define TCM_GETTOOLTIPS (TCM_FIRST+45)
1472 #define TCM_SETTOOLTIPS (TCM_FIRST+46)
1473 #define TCM_GETCURFOCUS (TCM_FIRST+47)
1474 #define TCM_SETCURFOCUS (TCM_FIRST+48)
1475 #define TCM_SETMINTABWIDTH (TCM_FIRST + 49)
1476 #define TCM_DESELECTALL (TCM_FIRST + 50)
1477 #if (_WIN32_IE >=0x0400)
1478 #define TCM_HIGHLIGHTITEM (TCM_FIRST + 51)
1479 #define TCM_SETEXTENDEDSTYLE (TCM_FIRST + 52)
1480 #define TCM_GETEXTENDEDSTYLE (TCM_FIRST + 53)
1481 #define TCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1482 #define TCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1483 #endif /* _WIN32_IE >=0x0400 */
1484 #define TCN_KEYDOWN TCN_FIRST
1485 #define TCN_SELCHANGE (TCN_FIRST-1)
1486 #define TCN_SELCHANGING (TCN_FIRST-2)
1487 #define NM_OUTOFMEMORY (NM_FIRST-1)
1488 #define NM_CLICK (NM_FIRST-2)
1489 #define NM_DBLCLK (NM_FIRST-3)
1490 #define NM_RETURN (NM_FIRST-4)
1491 #define NM_RCLICK (NM_FIRST-5)
1492 #define NM_RDBLCLK (NM_FIRST-6)
1493 #define NM_SETFOCUS (NM_FIRST-7)
1494 #define NM_KILLFOCUS (NM_FIRST-8)
1495 #define NM_CUSTOMDRAW (NM_FIRST-12)
1496 #define NM_HOVER (NM_FIRST-13)
1497 #define NM_NCHITTEST (NM_FIRST-14)
1498 #define NM_KEYDOWN (NM_FIRST-15)
1499 #define NM_RELEASEDCAPTURE (NM_FIRST-16)
1500 #define NM_SETCURSOR (NM_FIRST-17)
1501 #define NM_CHAR (NM_FIRST-18)
1502 #define NM_TOOLTIPSCREATED (NM_FIRST-19)
1503 #define SBARS_SIZEGRIP 256
1504 #define CCM_FIRST 0x2000
1505 #define CCM_LAST (CCM_FIRST+0x200)
1506 #define CCM_SETBKCOLOR 8193
1507 #define CCM_SETCOLORSCHEME 8194
1508 #define CCM_GETCOLORSCHEME 8195
1509 #define CCM_GETDROPTARGET 8196
1510 #define CCM_SETUNICODEFORMAT 8197
1511 #define CCM_GETUNICODEFORMAT 8198
1512 #define CCM_SETVERSION 0x2007
1513 #define CCM_GETVERSION 0x2008
1514 #define CCM_SETNOTIFYWINDOW 0x2009
1515 #if (_WIN32_WINNT >= 0x0501)
1516 #define CCM_SETWINDOWTHEME 0x200b
1517 #define CCM_DPISCALE 0x200c
1518 #endif
1519 #define ICC_LISTVIEW_CLASSES 1
1520 #define ICC_TREEVIEW_CLASSES 2
1521 #define ICC_BAR_CLASSES 4
1522 #define ICC_TAB_CLASSES 8
1523 #define ICC_UPDOWN_CLASS 16
1524 #define ICC_PROGRESS_CLASS 32
1525 #define ICC_HOTKEY_CLASS 64
1526 #define ICC_ANIMATE_CLASS 128
1527 #define ICC_WIN95_CLASSES 255
1528 #define ICC_DATE_CLASSES 256
1529 #define ICC_USEREX_CLASSES 512
1530 #define ICC_COOL_CLASSES 1024
1531 #if (_WIN32_IE >= 0x0400)
1532 #define ICC_INTERNET_CLASSES 2048
1533 #define ICC_PAGESCROLLER_CLASS 4096
1534 #define ICC_NATIVEFNTCTL_CLASS 8192
1535 #define INFOTIPSIZE 1024
1536 #endif /* _WIN32_IE */
1537 #if (_WIN32_WINNT >= 0x501)
1538 #define ICC_STANDARD_CLASSES 0x00004000
1539 #define ICC_LINK_CLASS 0x00008000
1540 #endif
1541 #define GDTR_MIN 1
1542 #define GDTR_MAX 2
1543 #define GMR_VISIBLE 0
1544 #define GMR_DAYSTATE 1
1545 #define GDT_ERROR -1
1546 #define GDT_VALID 0
1547 #define GDT_NONE 1
1548 #define DTS_UPDOWN 1
1549 #define DTS_SHOWNONE 2
1550 #define DTS_SHORTDATEFORMAT 0
1551 #define DTS_LONGDATEFORMAT 4
1552 #define DTS_TIMEFORMAT 9
1553 #define DTS_APPCANPARSE 16
1554 #define DTS_RIGHTALIGN 32
1555 #if ( _WIN32_IE >= 0x500 )
1556 #define DTS_SHORTDATECENTURYFORMAT 0x000C
1557 #endif /* _WIN32_IE >= 0x500 */
1558 #define MCS_DAYSTATE 1
1559 #define MCS_MULTISELECT 2
1560 #define MCS_WEEKNUMBERS 4
1561 #if (_WIN32_IE >= 0x0400)
1562 #define MCS_NOTODAYCIRCLE 0x0008
1563 #define MCS_NOTODAY 0x0010
1564 #else /* _WIN32_IE >= 0x0400 */
1565 #define MCS_NOTODAY 0x0008
1566 #endif /* _WIN32_IE >= 0x0400 */
1567 #define DTM_GETSYSTEMTIME 0x1001
1568 #define DTM_SETSYSTEMTIME 0x1002
1569 #define DTM_GETRANGE 0x1003
1570 #define DTM_SETRANGE 0x1004
1571 #define DTM_SETFORMATA 0x1005
1572 #define DTM_SETFORMATW 0x1050
1573 #define DTM_SETMCCOLOR 0x1006
1574 #define DTM_GETMCCOLOR 0x1007
1575 #define DTM_GETMONTHCAL 0x1008
1576 #define DTM_SETMCFONT 0x1009
1577 #define DTM_GETMCFONT 0x100a
1578 #define DTN_USERSTRINGA ((UINT)-758)
1579 #define DTN_USERSTRINGW ((UINT)-745)
1580 #define DTN_WMKEYDOWNA ((UINT)-757)
1581 #define DTN_WMKEYDOWNW ((UINT)-744)
1582 #define DTN_FORMATA ((UINT)-756)
1583 #define DTN_FORMATW ((UINT)-743)
1584 #define DTN_FORMATQUERYA ((UINT)-755)
1585 #define DTN_FORMATQUERYW ((UINT)-742)
1586 #define DTN_DROPDOWN ((UINT)-754)
1587 #define DTN_CLOSEUP ((UINT)-753)
1588 #define DTN_DATETIMECHANGE ((UINT)-759)
1589 #define MCM_GETCURSEL 0x1001
1590 #define MCM_SETCURSEL 0x1002
1591 #define MCM_GETMAXSELCOUNT 0x1003
1592 #define MCM_SETMAXSELCOUNT 0x1004
1593 #define MCM_GETSELRANGE 0x1005
1594 #define MCM_SETSELRANGE 0x1006
1595 #define MCM_GETMONTHRANGE 0x1007
1596 #define MCM_SETDAYSTATE 0x1008
1597 #define MCM_GETMINREQRECT 0x1009
1598 #define MCM_SETCOLOR 0x100a
1599 #define MCM_GETCOLOR 0x100b
1600 #define MCM_SETTODAY 0x100c
1601 #define MCM_GETTODAY 0x100d
1602 #define MCM_HITTEST 0x100e
1603 #define MCM_SETFIRSTDAYOFWEEK 0x100f
1604 #define MCM_GETFIRSTDAYOFWEEK 0x1010
1605 #define MCM_GETRANGE 0x1011
1606 #define MCM_SETRANGE 0x1012
1607 #define MCM_GETMONTHDELTA 0x1013
1608 #define MCM_SETMONTHDELTA 0x1014
1609 #define MCM_GETMAXTODAYWIDTH 0x1015
1610 #define MCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1611 #define MCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1612 #define MCN_SELCHANGE ((UINT)-749)
1613 #define MCN_GETDAYSTATE ((UINT)-747)
1614 #define MCN_SELECT ((UINT)-746)
1615 #define ODT_HEADER 100
1616 #define ODT_TAB 101
1617 #define ODT_LISTVIEW 102
1618 #define SB_SETBKCOLOR 0x2001
1619 #if (_WIN32_IE >= 0x0300)
1620 #define SB_ISSIMPLE 1038
1621 #define MCSC_BACKGROUND 0
1622 #define MCSC_TEXT 1
1623 #define MCSC_TITLEBK 2
1624 #define MCSC_TITLETEXT 3
1625 #define MCSC_MONTHBK 4
1626 #define MCSC_TRAILINGTEXT 5
1627 #endif
1628 #if (_WIN32_IE >= 0x0400)
1629 #define MCHT_TITLE 0x10000
1630 #define MCHT_CALENDAR 0x20000
1631 #define MCHT_TODAYLINK 0x30000
1632 #define MCHT_NEXT 0x1000000
1633 #define MCHT_PREV 0x2000000
1634 #define MCHT_NOWHERE 0x00
1635 #define MCHT_TITLEBK (MCHT_TITLE)
1636 #define MCHT_TITLEMONTH (MCHT_TITLE | 0x0001)
1637 #define MCHT_TITLEYEAR (MCHT_TITLE | 0x0002)
1638 #define MCHT_TITLEBTNNEXT (MCHT_TITLE | MCHT_NEXT | 0x0003)
1639 #define MCHT_TITLEBTNPREV (MCHT_TITLE | MCHT_PREV | 0x0003)
1640 #define MCHT_CALENDARBK (MCHT_CALENDAR)
1641 #define MCHT_CALENDARDATE (MCHT_CALENDAR | 0x0001)
1642 #define MCHT_CALENDARDATENEXT (MCHT_CALENDARDATE | MCHT_NEXT)
1643 #define MCHT_CALENDARDATEPREV (MCHT_CALENDARDATE | MCHT_PREV)
1644 #define MCHT_CALENDARDAY (MCHT_CALENDAR | 0x0002)
1645 #define MCHT_CALENDARWEEKNUM (MCHT_CALENDAR | 0x0003)
1646 #endif /* _WIN32_IE >= 0x0400 */
1647 #define RBS_TOOLTIPS 256
1648 #define RBS_VARHEIGHT 512
1649 #define RBS_BANDBORDERS 1024
1650 #define RBS_FIXEDORDER 2048
1651 #define RBIM_IMAGELIST 1
1652 #define RB_SETCOLORSCHEME CCM_SETCOLORSCHEME
1653 #define RB_GETCOLORSCHEME CCM_GETCOLORSCHEME
1654 #define RBBS_BREAK 0x0001
1655 #define RBBS_FIXEDSIZE 0x0002
1656 #define RBBS_CHILDEDGE 0x0004
1657 #define RBBS_HIDDEN 0x0008
1658 #define RBBS_NOVERT 0x0010
1659 #define RBBS_FIXEDBMP 0x0020
1660 #define RBBS_VARIABLEHEIGHT 0x0040
1661 #define RBBS_GRIPPERALWAYS 0x0080
1662 #define RBBS_NOGRIPPER 0x0100
1663 #if (_WIN32_IE >= 0x0500)
1664 #define RBBS_USECHEVRON 0x0200
1665 #if (_WIN32_IE >= 0x0501)
1666 #define RBBS_HIDETITLE 0x0400
1667 #define RBBS_TOPALIGN 0x0800
1668 #endif /* _WIN32_IE >= 0x0501 */
1669 #endif /* _WIN32_IE >= 0x0500 */
1670 #define RBBIM_STYLE 1
1671 #define RBBIM_COLORS 2
1672 #define RBBIM_TEXT 4
1673 #define RBBIM_IMAGE 8
1674 #define RBBIM_CHILD 16
1675 #define RBBIM_CHILDSIZE 32
1676 #define RBBIM_SIZE 64
1677 #define RBBIM_BACKGROUND 128
1678 #define RBBIM_ID 256
1679 #define RB_INSERTBANDA (WM_USER+1)
1680 #define RB_INSERTBANDW (WM_USER+10)
1681 #define RB_DELETEBAND (WM_USER+2)
1682 #define RB_GETBARINFO (WM_USER+3)
1683 #define RB_SETBARINFO (WM_USER+4)
1684 #define RB_GETBANDCOUNT (WM_USER+12)
1685 #define RB_GETROWCOUNT (WM_USER+13)
1686 #define RB_GETROWHEIGHT (WM_USER+14)
1687 #define RB_SETBANDINFOA (WM_USER+6)
1688 #define RB_SETBANDINFOW (WM_USER+11)
1689 #define RB_SETPARENT (WM_USER+7)
1690 #define RBN_HEIGHTCHANGE RBN_FIRST
1691 #if (_WIN32_IE >= 0x0300)
1692 #define LVN_ODCACHEHINT (LVN_FIRST-13)
1693 #define LVN_ODFINDITEMA (LVN_FIRST-52)
1694 #define LVN_ODFINDITEMW (LVN_FIRST-79)
1695 #define LVN_ITEMACTIVATE (LVN_FIRST-14)
1696 #define LVN_ODSTATECHANGED (LVN_FIRST-15)
1697 #ifdef UNICODE
1698 #define LVN_ODFINDITEM LVN_ODFINDITEMW
1699 #else
1700 #define LVN_ODFINDITEM LVN_ODFINDITEMA
1701 #endif
1702 #endif /* _WIN32_IE */
1703 #if (_WIN32_IE >= 0x0400)
1704 #define SB_SETICON 1039
1705 #define SB_SETTIPTEXTA 1040
1706 #define SB_SETTIPTEXTW 1041
1707 #define SB_GETTIPTEXTA 1042
1708 #define SB_GETTIPTEXTW 1043
1709 #define SB_GETICON 1044
1710 #define SB_SETUNICODEFORMAT 0x2005
1711 #define SB_GETUNICODEFORMAT 0x2006
1712 #define PGF_INVISIBLE 0
1713 #define PGF_NORMAL 1
1714 #define PGF_GRAYED 2
1715 #define PGF_DEPRESSED 4
1716 #define PGF_HOT 8
1717 #define PGB_TOPORLEFT 0
1718 #define PGB_BOTTOMORRIGHT 1
1719 #define PGF_SCROLLUP 1
1720 #define PGF_SCROLLDOWN 2
1721 #define PGF_SCROLLLEFT 4
1722 #define PGF_SCROLLRIGHT 8
1723 #define PGK_SHIFT 1
1724 #define PGK_CONTROL 2
1725 #define PGK_MENU 4
1726 #define PGF_CALCWIDTH 1
1727 #define PGF_CALCHEIGHT 2
1728 #define PGM_FIRST 0x1400
1729 #define PGM_SETCHILD (PGM_FIRST+1)
1730 #define PGM_RECALCSIZE (PGM_FIRST+2)
1731 #define PGM_FORWARDMOUSE (PGM_FIRST+3)
1732 #define PGM_SETBKCOLOR (PGM_FIRST+4)
1733 #define PGM_GETBKCOLOR (PGM_FIRST+5)
1734 #define PGM_SETBORDER (PGM_FIRST+6)
1735 #define PGM_GETBORDER (PGM_FIRST+7)
1736 #define PGM_SETPOS (PGM_FIRST+8)
1737 #define PGM_GETPOS (PGM_FIRST+9)
1738 #define PGM_SETBUTTONSIZE (PGM_FIRST+10)
1739 #define PGM_GETBUTTONSIZE (PGM_FIRST+11)
1740 #define PGM_GETBUTTONSTATE (PGM_FIRST+12)
1741 #define PGM_GETDROPTARGET CCM_GETDROPTARGET
1742 #define RBS_REGISTERDROP 4096
1743 #define RBS_AUTOSIZE 8192
1744 #define RBS_VERTICALGRIPPER 16384
1745 #define RBS_DBLCLKTOGGLE 32768
1746 #define RBBIM_IDEALSIZE 512
1747 #define RBBIM_LPARAM 1024
1748 #define RBBIM_HEADERSIZE 2048
1749 #define RB_HITTEST (WM_USER+8)
1750 #define RB_GETRECT (WM_USER+9)
1751 #define RB_IDTOINDEX (WM_USER+16)
1752 #define RB_GETTOOLTIPS (WM_USER+17)
1753 #define RB_SETTOOLTIPS (WM_USER+18)
1754 #define RB_SETBKCOLOR (WM_USER+19)
1755 #define RB_GETBKCOLOR (WM_USER+20)
1756 #define RB_SETTEXTCOLOR (WM_USER+21)
1757 #define RB_GETTEXTCOLOR (WM_USER+22)
1758 #define RB_SIZETORECT (WM_USER+23)
1759 #define RB_BEGINDRAG (WM_USER+24)
1760 #define RB_ENDDRAG (WM_USER+25)
1761 #define RB_DRAGMOVE (WM_USER+26)
1762 #define RB_GETBARHEIGHT (WM_USER+27)
1763 #define RB_GETBANDINFOW (WM_USER+28)
1764 #define RB_GETBANDINFOA (WM_USER+29)
1765 #define RB_MINIMIZEBAND (WM_USER+30)
1766 #define RB_MAXIMIZEBAND (WM_USER+31)
1767 #define RB_GETDROPTARGET CCM_GETDROPTARGET
1768 #define RB_GETBANDBORDERS (WM_USER+34)
1769 #define RB_SHOWBAND (WM_USER+35)
1770 #define RB_SETPALETTE (WM_USER+37)
1771 #define RB_GETPALETTE (WM_USER+38)
1772 #define RB_MOVEBAND (WM_USER+39)
1773 #define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1774 #define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1775 #define RBN_GETOBJECT (RBN_FIRST-1)
1776 #define RBN_LAYOUTCHANGED (RBN_FIRST-2)
1777 #define RBN_AUTOSIZE (RBN_FIRST-3)
1778 #define RBN_BEGINDRAG (RBN_FIRST-4)
1779 #define RBN_ENDDRAG (RBN_FIRST-5)
1780 #define RBN_DELETINGBAND (RBN_FIRST-6)
1781 #define RBN_DELETEDBAND (RBN_FIRST-7)
1782 #define RBN_CHILDSIZE (RBN_FIRST-8)
1783 #define RBNM_ID 1
1784 #define RBNM_STYLE 2
1785 #define RBNM_LPARAM 4
1786 #define RBHT_NOWHERE 1
1787 #define RBHT_CAPTION 2
1788 #define RBHT_CLIENT 3
1789 #define RBHT_GRABBER 4
1790 #ifdef UNICODE
1791 #define SB_SETTIPTEXT SB_SETTIPTEXTW
1792 #define SB_GETTIPTEXT SB_GETTIPTEXTW
1793 #define RB_GETBANDINFO RB_GETBANDINFOW
1794 #else
1795 #define SB_SETTIPTEXT SB_SETTIPTEXTA
1796 #define SB_GETTIPTEXT SB_GETTIPTEXTA
1797 #define RB_GETBANDINFO RB_GETBANDINFOA
1798 #endif
1799 #else
1800 #define RB_GETBANDINFO (WM_USER+5)
1801 #endif /* _WIN32_IE >= 0x0400 */
1802 #define CBEM_INSERTITEMA (WM_USER + 1)
1803 #define CBEM_SETIMAGELIST (WM_USER + 2)
1804 #define CBEM_GETIMAGELIST (WM_USER + 3)
1805 #define CBEM_GETITEMA (WM_USER + 4)
1806 #define CBEM_SETITEMA (WM_USER + 5)
1807 #define CBEM_DELETEITEM CB_DELETESTRING
1808 #define CBEM_GETCOMBOCONTROL (WM_USER + 6)
1809 #define CBEM_GETEDITCONTROL (WM_USER + 7)
1810 #define CBEM_SETEXSTYLE (WM_USER + 8)
1811 #define CBEM_GETEXSTYLE (WM_USER + 9)
1812 #if (_WIN32_IE >= 0x0400)
1813 #define CBEM_SETEXTENDEDSTYLE (WM_USER + 14)
1814 #define CBEM_GETEXTENDEDSTYLE (WM_USER + 9)
1815 #define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1816 #define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1817 #endif /* _WIN32_IE >= 0x0400 */
1818 #define CBEM_HASEDITCHANGED (WM_USER + 10)
1819 #define CBEM_INSERTITEMW (WM_USER + 11)
1820 #define CBEM_SETITEMW (WM_USER + 12)
1821 #define CBEM_GETITEMW (WM_USER + 13)
1822 #define DA_LAST 0x7fffffff
1823 #define DPA_APPEND 0x7fffffff
1824 #define DPA_ERR -1
1825 #define DSA_APPEND 0x7fffffff
1826 #define DSA_ERR -1
1827 #define DPAS_SORTED 1
1828 #define DPAS_INSERTBEFORE 2
1829 #define DPAS_INSERTAFTER 4
1830 #if (_WIN32_IE >= 0x400)
1831 #define WSB_PROP_CYVSCROLL 1
1832 #define WSB_PROP_CXHSCROLL 2
1833 #define WSB_PROP_CYHSCROLL 4
1834 #define WSB_PROP_CXVSCROLL 8
1835 #define WSB_PROP_CXHTHUMB 16
1836 #define WSB_PROP_CYVTHUMB 32
1837 #define WSB_PROP_VBKGCOLOR 64
1838 #define WSB_PROP_HBKGCOLOR 128
1839 #define WSB_PROP_VSTYLE 256
1840 #define WSB_PROP_HSTYLE 512
1841 #define WSB_PROP_WINSTYLE 1024
1842 #define WSB_PROP_PALETTE 2048
1843 #define WSB_PROP_MASK 0xfff
1844 #define FSB_FLAT_MODE 2
1845 #define FSB_ENCARTA_MODE 1
1846 #define FSB_REGULAR_MODE 0
1847 #endif /* _WIN32_IE >= 0x400 */
1848 #if (_WIN32_WINNT >= 0x0501)
1849 #define LIF_ITEMINDEX 0x00000001
1850 #define LIF_STATE 0x00000002
1851 #define LIF_ITEMID 0x00000004
1852 #define LIF_URL 0x00000008
1853 #define LIS_FOCUSED 0x00000001
1854 #define LIS_ENABLED 0x00000002
1855 #define LIS_VISITED 0x00000004
1856 #define LM_HITTEST (WM_USER + 768)
1857 #define LM_GETIDEALHEIGHT (WM_USER + 769)
1858 #define LM_SETITEM (WM_USER + 770)
1859 #define LM_GETITEM (WM_USER + 771)
1860 #define MAX_LINKID_TEXT 48
1861 #define L_MAX_URL_LENGTH 2084
1862 #endif
1864 #ifndef RC_INVOKED
1865 typedef struct tagCOMBOBOXEXITEMA{
1866 UINT mask;
1867 int iItem;
1868 LPSTR pszText;
1869 int cchTextMax;
1870 int iImage;
1871 int iSelectedImage;
1872 int iOverlay;
1873 int iIndent;
1874 LPARAM lParam;
1875 } COMBOBOXEXITEMA, *PCOMBOBOXEXITEMA;
1876 typedef COMBOBOXEXITEMA CONST *PCCOMBOEXITEMA;
1877 typedef struct tagCOMBOBOXEXITEMW{
1878 UINT mask;
1879 int iItem;
1880 LPWSTR pszText;
1881 int cchTextMax;
1882 int iImage;
1883 int iSelectedImage;
1884 int iOverlay;
1885 int iIndent;
1886 LPARAM lParam;
1887 } COMBOBOXEXITEMW, *PCOMBOBOXEXITEMW;
1888 typedef COMBOBOXEXITEMW CONST *PCCOMBOEXITEMW;
1889 #if (_WIN32_IE >= 0x0400)
1890 typedef struct {
1891 NMHDR hdr;
1892 COMBOBOXEXITEMA ceItem;
1893 } NMCOMBOBOXEXA, *PNMCOMBOBOXEXA;
1894 typedef struct {
1895 NMHDR hdr;
1896 COMBOBOXEXITEMW ceItem;
1897 } NMCOMBOBOXEXW, *PNMCOMBOBOXEXW;
1898 typedef struct {
1899 NMHDR hdr;
1900 int iItemid;
1901 WCHAR szText[CBEMAXSTRLEN];
1902 }NMCBEDRAGBEGINW, *LPNMCBEDRAGBEGINW, *PNMCBEDRAGBEGINW;
1903 typedef struct {
1904 NMHDR hdr;
1905 int iItemid;
1906 char szText[CBEMAXSTRLEN];
1907 }NMCBEDRAGBEGINA, *LPNMCBEDRAGBEGINA, *PNMCBEDRAGBEGINA;
1908 typedef struct tagNMIPADDRESS{
1909 NMHDR hdr;
1910 int iField;
1911 int iValue;
1912 } NMIPADDRESS, *LPNMIPADDRESS;
1913 typedef struct tagLVKEYDOWN {
1914 NMHDR hdr;
1915 WORD wVKey;
1916 UINT flags;
1917 } NMLVKEYDOWN, *LPNMLVKEYDOWN;
1918 typedef struct {
1919 NMHDR hdr;
1920 DWORD dwFlag;
1921 int iWidth;
1922 int iHeight;
1923 } NMPGCALCSIZE, *LPNMPGCALCSIZE;
1924 typedef struct {
1925 NMHDR hdr;
1926 BOOL fwKeys;
1927 RECT rcParent;
1928 int iDir;
1929 int iXpos;
1930 int iYpos;
1931 int iScroll;
1932 } NMPGSCROLL, *LPNMPGSCROLL;
1933 typedef struct tagNMSELCHANGE {
1934 NMHDR nmhdr;
1935 SYSTEMTIME stSelStart;
1936 SYSTEMTIME stSelEnd;
1937 } NMSELCHANGE, *LPNMSELCHANGE;
1938 typedef struct tagNMTBHOTITEM {
1939 NMHDR hdr;
1940 int idOld;
1941 int idNew;
1942 DWORD dwFlags;
1943 } NMTBHOTITEM, *LPNMTBHOTITEM;
1944 typedef struct {
1945 NMHDR hdr;
1946 DWORD dwMask;
1947 int idCommand;
1948 DWORD_PTR lParam;
1949 int iImage;
1950 LPSTR pszText;
1951 int cchText;
1952 } NMTBDISPINFOA, *LPNMTBDISPINFOA;
1953 typedef struct {
1954 NMHDR hdr;
1955 DWORD dwMask;
1956 int idCommand;
1957 DWORD_PTR lParam;
1958 int iImage;
1959 LPWSTR pszText;
1960 int cchText;
1961 } NMTBDISPINFOW, *LPNMTBDISPINFOW;
1962 typedef struct tagNMTBGETINFOTIPA
1964 NMHDR hdr;
1965 LPSTR pszText;
1966 int cchTextMax;
1967 int iItem;
1968 LPARAM lParam;
1969 } NMTBGETINFOTIPA, *LPNMTBGETINFOTIPA;
1970 typedef struct tagNMTBGETINFOTIPW
1972 NMHDR hdr;
1973 LPWSTR pszText;
1974 int cchTextMax;
1975 int iItem;
1976 LPARAM lParam;
1977 } NMTBGETINFOTIPW, *LPNMTBGETINFOTIPW;
1978 typedef struct tagNMMOUSE {
1979 NMHDR hdr;
1980 DWORD_PTR dwItemSpec;
1981 DWORD_PTR dwItemData;
1982 POINT pt;
1983 LPARAM dwHitInfo;
1984 } NMMOUSE, *LPNMMOUSE;
1985 #endif /*_WIN32_IE >= 0x0400 */
1986 #if (_WIN32_IE >= 0x0401)
1987 typedef struct tagNMTOOLTIPSCREATED
1989 NMHDR hdr;
1990 HWND hwndToolTips;
1991 } NMTOOLTIPSCREATED, *LPNMTOOLTIPSCREATED;
1992 #endif
1993 typedef struct tagNMDATETIMECHANGE
1995 NMHDR nmhdr;
1996 DWORD dwFlags;
1997 SYSTEMTIME st;
1998 } NMDATETIMECHANGE, *LPNMDATETIMECHANGE;
1999 typedef struct {
2000 NMHDR hdr;
2001 BOOL fChanged;
2002 int iNewSelection;
2003 WCHAR szText[CBEMAXSTRLEN];
2004 int iWhy;
2005 } NMCBEENDEDITW, *LPNMCBEENDEDITW, *PNMCBEENDEDITW;
2006 typedef struct {
2007 NMHDR hdr;
2008 BOOL fChanged;
2009 int iNewSelection;
2010 char szText[CBEMAXSTRLEN];
2011 int iWhy;
2012 } NMCBEENDEDITA, *LPNMCBEENDEDITA,*PNMCBEENDEDITA;
2013 typedef struct _COLORMAP {
2014 COLORREF from;
2015 COLORREF to;
2016 } COLORMAP,*LPCOLORMAP;
2017 typedef struct {
2018 UINT uNotification;
2019 HWND hWnd;
2020 POINT ptCursor;
2021 } DRAGLISTINFO,*LPDRAGLISTINFO;
2022 typedef struct _TBBUTTON {
2023 int iBitmap;
2024 int idCommand;
2025 BYTE fsState;
2026 BYTE fsStyle;
2027 BYTE bReserved[2];
2028 DWORD dwData;
2029 int iString;
2030 } TBBUTTON,*PTBBUTTON,*LPTBBUTTON;
2031 typedef const TBBUTTON *LPCTBBUTTON;
2032 #if _WIN32_IE >= 0x400
2033 typedef struct {
2034 UINT cbSize;
2035 DWORD dwMask;
2036 int idCommand;
2037 int iImage;
2038 BYTE fsState;
2039 BYTE fsStyle;
2040 WORD cx;
2041 DWORD lParam;
2042 LPSTR pszText;
2043 int cchText;
2044 } TBBUTTONINFOA, *LPTBBUTTONINFOA;
2045 typedef struct {
2046 UINT cbSize;
2047 DWORD dwMask;
2048 int idCommand;
2049 int iImage;
2050 BYTE fsState;
2051 BYTE fsStyle;
2052 WORD cx;
2053 DWORD lParam;
2054 LPWSTR pszText;
2055 int cchText;
2056 } TBBUTTONINFOW, *LPTBBUTTONINFOW;
2057 typedef struct {
2058 int iButton;
2059 DWORD dwFlags;
2060 } TBINSERTMARK, *LPTBINSERTMARK;
2061 typedef struct tagLVBKIMAGEA {
2062 ULONG ulFlags;
2063 HBITMAP hbm;
2064 LPSTR pszImage;
2065 UINT cchImageMax;
2066 int xOffsetPercent;
2067 int yOffsetPercent;
2068 } LVBKIMAGEA, *LPLVBKIMAGEA;
2069 typedef struct tagLVBKIMAGEW {
2070 ULONG ulFlags;
2071 HBITMAP hbm;
2072 LPWSTR pszImage;
2073 UINT cchImageMax;
2074 int xOffsetPercent;
2075 int yOffsetPercent;
2076 } LVBKIMAGEW, *LPLVBKIMAGEW;
2077 #endif /* _WIN32_IE >= 0x400 */
2078 typedef struct {
2079 NMHDR hdr;
2080 int iItem;
2081 TBBUTTON tbButton;
2082 int cchText;
2083 LPTSTR pszText;
2084 } TBNOTIFY,*LPTBNOTIFY;
2085 typedef struct {
2086 HKEY hkr;
2087 LPCTSTR pszSubKey;
2088 LPCTSTR pszValueName;
2089 } TBSAVEPARAMS;
2090 typedef struct _IMAGEINFO {
2091 HBITMAP hbmImage;
2092 HBITMAP hbmMask;
2093 int Unused1;
2094 int Unused2;
2095 RECT rcImage;
2096 } IMAGEINFO, *LPIMAGEINFO;
2097 typedef struct _IMAGELIST *HIMAGELIST;
2098 typedef struct _HDITEMA {
2099 UINT mask;
2100 int cxy;
2101 LPSTR pszText;
2102 HBITMAP hbm;
2103 int cchTextMax;
2104 int fmt;
2105 LPARAM lParam;
2106 #if (_WIN32_IE >= 0x0300)
2107 int iImage;
2108 int iOrder;
2109 #endif
2110 #if (_WIN32_IE >= 0x0500)
2111 UINT type;
2112 LPVOID pvFilter;
2113 #endif
2114 } HDITEMA, * LPHDITEMA;
2115 typedef struct _HDITEMW {
2116 UINT mask;
2117 int cxy;
2118 LPWSTR pszText;
2119 HBITMAP hbm;
2120 int cchTextMax;
2121 int fmt;
2122 LPARAM lParam;
2123 #if (_WIN32_IE >= 0x0300)
2124 int iImage;
2125 int iOrder;
2126 #endif
2127 #if (_WIN32_IE >= 0x0500)
2128 UINT type;
2129 LPVOID pvFilter;
2130 #endif
2131 } HDITEMW, * LPHDITEMW;
2132 /* for backward compatibility */
2133 #define HD_ITEMA HDITEMA
2134 #define HD_ITEMW HDITEMW
2135 #define HD_ITEM HDITEM
2136 typedef struct _HD_LAYOUT {
2137 RECT *prc;
2138 WINDOWPOS *pwpos;
2139 } HDLAYOUT, *LPHDLAYOUT;
2140 #define HD_LAYOUT HDLAYOUT /* backward compatibility */
2141 typedef struct _HD_HITTESTINFO {
2142 POINT pt;
2143 UINT flags;
2144 int iItem;
2145 } HD_HITTESTINFO, *LPHDHITTESTINFO;
2146 typedef struct _HD_NOTIFYA {
2147 NMHDR hdr;
2148 int iItem;
2149 int iButton;
2150 HD_ITEMA *pitem;
2151 } HD_NOTIFYA;
2152 typedef struct _HD_NOTIFYW {
2153 NMHDR hdr;
2154 int iItem;
2155 int iButton;
2156 HD_ITEMW *pitem;
2157 } HD_NOTIFYW;
2158 /* FIXME: NMHEADER structure (base for all events of the comctl controls)
2159 is the same as HD_NOTIFY depending on the value of _WIN32_IE macro.
2160 I'm defining both for now. */
2161 typedef struct _NMHEADERA {
2162 NMHDR hdr;
2163 int iItem;
2164 int iButton;
2165 HD_ITEMA* pitem;
2166 } NMHEADERA, *LPNMHEADERA;
2168 typedef struct _NMHEADERW {
2169 NMHDR hdr;
2170 int iItem;
2171 int iButton;
2172 HD_ITEMW* pitem;
2173 } NMHEADERW, *LPNMHEADERW;
2174 #ifdef UNICODE
2175 #define NMHEADER NMHEADERW
2176 #define LPNMHEADER LPNMHEADERW
2177 #else
2178 #define NMHEADER NMHEADERA
2179 #define LPNMHEADER LPNMHEADERA
2180 #endif
2181 /* End FIXME. */
2182 typedef struct tagNMHDDISPINFOA {
2183 NMHDR hdr;
2184 int iItem;
2185 UINT mask;
2186 LPSTR pszText;
2187 int cchTextMax;
2188 int iImage;
2189 LPARAM lParam;
2190 } NMHDDISPINFOA, *LPNMHDDISPINFOA;
2191 typedef struct tagNMHDDISPINFOW {
2192 NMHDR hdr;
2193 int iItem;
2194 UINT mask;
2195 LPWSTR pszText;
2196 int cchTextMax;
2197 int iImage;
2198 LPARAM lParam;
2199 } NMHDDISPINFOW, *LPNMHDDISPINFOW;
2200 typedef struct tagNMCUSTOMDRAWINFO {
2201 NMHDR hdr;
2202 DWORD dwDrawStage;
2203 HDC hdc;
2204 RECT rc;
2205 DWORD dwItemSpec;
2206 UINT uItemState;
2207 LPARAM lItemlParam;
2208 } NMCUSTOMDRAW, *LPNMCUSTOMDRAW;
2209 typedef struct tagNMLVCUSTOMDRAW {
2210 NMCUSTOMDRAW nmcd;
2211 COLORREF clrText;
2212 COLORREF clrTextBk;
2213 #if _WIN32_IE >= 0x0400
2214 int iSubItem;
2215 #endif
2216 } NMLVCUSTOMDRAW, *LPNMLVCUSTOMDRAW;
2217 #if (_WIN32_IE >= 0x0400)
2218 typedef struct tagNMLVGETINFOTIPA
2220 NMHDR hdr;
2221 DWORD dwFlags;
2222 LPSTR pszText;
2223 int cchTextMax;
2224 int iItem;
2225 int iSubItem;
2226 LPARAM lParam;
2227 } NMLVGETINFOTIPA, *LPNMLVGETINFOTIPA;
2228 typedef struct tagNMLVGETINFOTIPW
2230 NMHDR hdr;
2231 DWORD dwFlags;
2232 LPWSTR pszText;
2233 int cchTextMax;
2234 int iItem;
2235 int iSubItem;
2236 LPARAM lParam;
2237 } NMLVGETINFOTIPW, *LPNMLVGETINFOTIPW;
2238 #endif /* _WIN32_IE >= 0x0400 */
2239 typedef struct tagNMTVCUSTOMDRAW {
2240 NMCUSTOMDRAW nmcd;
2241 COLORREF clrText;
2242 COLORREF clrTextBk;
2243 #if _WIN32_IE >= 0x0400
2244 int iLevel;
2245 #endif
2246 } NMTVCUSTOMDRAW, *LPNMTVCUSTOMDRAW;
2247 #if (_WIN32_IE >= 0x400)
2248 typedef struct _NMTBCUSTOMDRAW {
2249 NMCUSTOMDRAW nmcd;
2250 HBRUSH hbrMonoDither;
2251 HBRUSH hbrLines;
2252 HPEN hpenLines;
2253 COLORREF clrText;
2254 COLORREF clrMark;
2255 COLORREF clrTextHighlight;
2256 COLORREF clrBtnFace;
2257 COLORREF clrBtnHighlight;
2258 COLORREF clrHighlightHotTrack;
2259 RECT rcText;
2260 int nStringBkMode;
2261 int nHLStringBkMode;
2262 #if (_WIN32_WINNT >= 0x0501)
2263 int iListGap;
2264 #endif
2265 } NMTBCUSTOMDRAW, * LPNMTBCUSTOMDRAW;
2266 typedef struct tagNMITEMACTIVATE {
2267 NMHDR hdr;
2268 int iItem;
2269 int iSubItem;
2270 UINT uNewState;
2271 UINT uOldState;
2272 UINT uChanged;
2273 POINT ptAction;
2274 LPARAM lParam;
2275 UINT uKeyFlags;
2276 } NMITEMACTIVATE, *LPNMITEMACTIVATE;
2277 #endif /* _WIN32_IE >= 0x0400 */
2278 typedef struct tagTBADDBITMAP {
2279 HINSTANCE hInst;
2280 UINT nID;
2281 } TBADDBITMAP,*LPTBADDBITMAP;
2282 typedef struct tagTBSAVEPARAMSA {
2283 HKEY hkr;
2284 LPCSTR pszSubKey;
2285 LPCSTR pszValueName;
2286 } TBSAVEPARAMSA;
2287 typedef struct tagTBSAVEPARAMSW {
2288 HKEY hkr;
2289 LPCWSTR pszSubKey;
2290 LPCWSTR pszValueName;
2291 } TBSAVEPARAMSW;
2292 typedef struct {
2293 HINSTANCE hInstOld;
2294 UINT nIDOld;
2295 HINSTANCE hInstNew;
2296 UINT nIDNew;
2297 int nButtons;
2298 } TBREPLACEBITMAP,*LPTBREPLACEBITMAP;
2299 typedef struct tagNMTOOLBARA {
2300 NMHDR hdr;
2301 int iItem;
2302 TBBUTTON tbButton;
2303 int cchText;
2304 LPSTR pszText;
2305 #if (_WIN32_IE >= 0x500)
2306 RECT rcButton;
2307 #endif
2308 } NMTOOLBARA, *LPNMTOOLBARA;
2309 #define TBNOTIFYA NMTOOLBARA
2310 #define LPTBNOTIFYA LPNMTOOLBARA
2311 typedef struct tagNMTOOLBARW {
2312 NMHDR hdr;
2313 int iItem;
2314 TBBUTTON tbButton;
2315 int cchText;
2316 LPWSTR pszText;
2317 #if (_WIN32_IE >= 0x500)
2318 RECT rcButton;
2319 #endif
2320 } NMTOOLBARW, *LPNMTOOLBARW;
2321 #define TBNOTIFYW NMTOOLBARW
2322 #define LPTBNOTIFYW LPNMTOOLBARW
2323 typedef struct tagTOOLINFOA {
2324 UINT cbSize;
2325 UINT uFlags;
2326 HWND hwnd;
2327 UINT uId;
2328 RECT rect;
2329 HINSTANCE hinst;
2330 LPSTR lpszText;
2331 #if (_WIN32_IE >= 0x0300)
2332 LPARAM lParam;
2333 #endif
2334 } TTTOOLINFOA,*LPTTTOOLINFOA,*PTOOLINFOA;
2335 #define TOOLINFOA TTTOOLINFOA
2336 #define LPTOOLINFOA LPTTTOOLINFOA
2337 #define TTTOOLINFOA_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lpszText)
2338 #define TTTOOLINFOA_V2_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lParam)
2339 #define TTTOOLINFOA_V3_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lpReserved)
2340 typedef struct tagTOOLINFOW {
2341 UINT cbSize;
2342 UINT uFlags;
2343 HWND hwnd;
2344 UINT uId;
2345 RECT rect;
2346 HINSTANCE hinst;
2347 LPWSTR lpszText;
2348 #if (_WIN32_IE >= 0x0300)
2349 LPARAM lParam;
2350 #endif
2351 } TTTOOLINFOW,*LPTTTOOLINFOW,*PTOOLINFOW;
2352 #define TOOLINFOW TTTOOLINFOW
2353 #define LPTOOLINFOW LPTTTOOLINFOW
2354 #define TTTOOLINFOW_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lpszText)
2355 #define TTTOOLINFOW_V2_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lParam)
2356 #define TTTOOLINFOW_V3_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lpReserved)
2357 typedef struct _TT_HITTESTINFOA {
2358 HWND hwnd;
2359 POINT pt;
2360 TOOLINFOA ti;
2361 } TTHITTESTINFOA,*LPTTHITTESTINFOA;
2362 #define LPHITTESTINFOA LPTTHITTESTINFOA
2363 typedef struct _TT_HITTESTINFOW {
2364 HWND hwnd;
2365 POINT pt;
2366 TOOLINFOW ti;
2367 } TTHITTESTINFOW,*LPTTHITTESTINFOW;
2368 #define LPHITTESTINFOW LPTTHITTESTINFOW
2369 typedef struct tagNMTTDISPINFOA {
2370 NMHDR hdr;
2371 LPSTR lpszText;
2372 char szText[80];
2373 HINSTANCE hinst;
2374 UINT uFlags;
2375 #if (_WIN32_IE >= 0x0300)
2376 LPARAM lParam;
2377 #endif
2378 } NMTTDISPINFOA, *LPNMTTDISPINFOA;
2379 #define TOOLTIPTEXTA NMTTDISPINFOA
2380 #define LPTOOLTIPTEXTA LPNMTTDISPINFOA
2381 typedef struct tagNMTTDISPINFOW {
2382 NMHDR hdr;
2383 LPWSTR lpszText;
2384 WCHAR szText[80];
2385 HINSTANCE hinst;
2386 UINT uFlags;
2387 #if (_WIN32_IE >= 0x0300)
2388 LPARAM lParam;
2389 #endif
2390 } NMTTDISPINFOW, *LPNMTTDISPINFOW;
2391 #define TOOLTIPTEXTW NMTTDISPINFOW
2392 #define LPTOOLTIPTEXTW LPNMTTDISPINFOW
2393 typedef struct _UDACCEL {
2394 UINT nSec;
2395 UINT nInc;
2396 } UDACCEL,*LPUDACCEL;
2397 typedef struct _NM_UPDOWN {
2398 NMHDR hdr;
2399 int iPos;
2400 int iDelta;
2401 } NMUPDOWN,*LPNMUPDOWN;
2402 /* for backward compatibility */
2403 #define NM_UPDOWN NMUPDOWN
2404 #define LPNM_UPDOWN LPNMUPDOWN
2405 typedef struct _LVITEMA {
2406 UINT mask;
2407 int iItem;
2408 int iSubItem;
2409 UINT state;
2410 UINT stateMask;
2411 LPSTR pszText;
2412 int cchTextMax;
2413 int iImage;
2414 LPARAM lParam;
2415 #if (_WIN32_IE >= 0x0300)
2416 int iIndent;
2417 #endif
2418 #if (_WIN32_WINNT >= 0x0501)
2419 int iGroupId;
2420 UINT cColumns;
2421 PUINT puColumns;
2422 #endif
2423 } LVITEMA, FAR *LPLVITEMA;
2424 #define _LV_ITEMA _LVITEMA
2425 #define LV_ITEMA LVITEMA
2426 typedef struct _LVITEMW {
2427 UINT mask;
2428 int iItem;
2429 int iSubItem;
2430 UINT state;
2431 UINT stateMask;
2432 LPWSTR pszText;
2433 int cchTextMax;
2434 int iImage;
2435 LPARAM lParam;
2436 #if (_WIN32_IE >= 0x0300)
2437 int iIndent;
2438 #endif
2439 #if (_WIN32_WINNT >= 0x0501)
2440 int iGroupId;
2441 UINT cColumns;
2442 PUINT puColumns;
2443 #endif
2444 } LVITEMW, FAR *LPLVITEMW;
2445 #define _LV_ITEMW _LVITEMW
2446 #define LV_ITEMW LVITEMW
2447 typedef struct tagLVFINDINFOA {
2448 UINT flags;
2449 LPCSTR psz;
2450 LPARAM lParam;
2451 POINT pt;
2452 UINT vkDirection;
2453 } LVFINDINFOA, FAR* LPFINDINFOA;
2454 #define _LV_FINDINFOA tagLVFINDINFOA
2455 #define LV_FINDINFOA LVFINDINFOA
2456 typedef struct tagLVFINDINFOW {
2457 UINT flags;
2458 LPCWSTR psz;
2459 LPARAM lParam;
2460 POINT pt;
2461 UINT vkDirection;
2462 } LVFINDINFOW, FAR* LPFINDINFOW;
2463 #define _LV_FINDINFOW tagLVFINDINFOW
2464 #define LV_FINDINFOW LVFINDINFOW
2465 typedef struct tagNMLVFINDITEMA {
2466 NMHDR hdr;
2467 int iStart;
2468 LVFINDINFOA lvfi;
2469 } NMLVFINDITEMA, *PNMLVFINDITEMA, FAR *LPNMLVFINDITEMA;
2470 #define _NMLVFINDITEMA tagNMLVFINDITEMA
2471 typedef struct tagNMLVFINDITEMW {
2472 NMHDR hdr;
2473 int iStart;
2474 LVFINDINFOW lvfi;
2475 } NMLVFINDITEMW, *PNMLVFINDITEMW, FAR *LPNMLVFINDITEMW;
2476 #define _NMLVFINDITEMW tagNMLVFINDITEMW
2477 typedef struct _LVHITTESTINFO {
2478 POINT pt;
2479 UINT flags;
2480 int iItem;
2481 #if (_WIN32_IE >= 0x0300)
2482 int iSubItem;
2483 #endif
2484 } LVHITTESTINFO, FAR *LPLVHITTESTINFO;
2485 #define _LV_HITTESTINFO _LVHITTESTINFO
2486 #define LV_HITTESTINFO LVHITTESTINFO
2487 typedef struct _LVCOLUMNA {
2488 UINT mask;
2489 int fmt;
2490 int cx;
2491 LPSTR pszText;
2492 int cchTextMax;
2493 int iSubItem;
2494 #if (_WIN32_IE >= 0x0300)
2495 int iImage;
2496 int iOrder;
2497 #endif
2498 } LVCOLUMNA, FAR *LPLVCOLUMNA;
2499 #define _LV_COLUMNA _LVCOLUMNA
2500 #define LV_COLUMNA LVCOLUMNA
2501 typedef struct _LVCOLUMNW {
2502 UINT mask;
2503 int fmt;
2504 int cx;
2505 LPWSTR pszText;
2506 int cchTextMax;
2507 int iSubItem;
2508 #if (_WIN32_IE >= 0x0300)
2509 int iImage;
2510 int iOrder;
2511 #endif
2512 } LVCOLUMNW, FAR *LPLVCOLUMNW;
2513 #define _LV_COLUMNW _LVCOLUMNW
2514 #define LV_COLUMNW LVCOLUMNW
2515 typedef int(CALLBACK *PFNLVCOMPARE)(LPARAM,LPARAM,LPARAM);
2516 typedef struct tagNMLISTVIEW {
2517 NMHDR hdr;
2518 int iItem;
2519 int iSubItem;
2520 UINT uNewState;
2521 UINT uOldState;
2522 UINT uChanged;
2523 POINT ptAction;
2524 LPARAM lParam;
2525 } NMLISTVIEW, *LPNMLISTVIEW;
2526 /* for backward compatibility */
2527 #define _NM_LISTVIEW tagNMLISTVIEW
2528 #define NM_LISTVIEW NMLISTVIEW
2529 #define LPNM_LISTVIEW LPNMLISTVIEW
2530 typedef struct tagNMLVDISPINFOA {
2531 NMHDR hdr;
2532 LV_ITEMA item;
2533 } NMLVDISPINFOA, FAR *LPNMLVDISPINFOA;
2534 #define _LV_DISPINFOA tagNMLVDISPINFOA
2535 #define LV_DISPINFOA NMLVDISPINFOA
2536 typedef struct tagNMLVDISPINFOW {
2537 NMHDR hdr;
2538 LV_ITEMW item;
2539 } NMLVDISPINFOW, FAR *LPNMLVDISPINFOW;
2540 #define _LV_DISPINFOW tagNMLVDISPINFOW
2541 #define LV_DISPINFOW NMLVDISPINFOW
2542 typedef struct _LV_KEYDOWN {
2543 NMHDR hdr;
2544 WORD wVKey;
2545 UINT flags;
2546 } LV_KEYDOWN;
2547 typedef struct tagNMLVCACHEHINT {
2548 NMHDR hdr;
2549 int iFrom;
2550 int iTo;
2551 } NMLVCACHEHINT, *LPNMLVCACHEHINT;
2552 #define NM_CACHEHINT NMLVCACHEHINT
2553 #define PNM_CACHEHINT LPNMLVCACHEHINT
2554 #define LPNM_CACHEHINT LPNMLVCACHEHINT
2556 typedef struct _TREEITEM *HTREEITEM;
2557 typedef struct tagTVITEMA {
2558 UINT mask;
2559 HTREEITEM hItem;
2560 UINT state;
2561 UINT stateMask;
2562 LPSTR pszText;
2563 int cchTextMax;
2564 int iImage;
2565 int iSelectedImage;
2566 int cChildren;
2567 LPARAM lParam;
2568 } TVITEMA,*LPTVITEMA;
2569 #define _TV_ITEMA tagTVITEMA
2570 #define TV_ITEMA TVITEMA
2571 #define LPTV_ITEMA LPTVITEMA
2572 typedef struct tagTVITEMW {
2573 UINT mask;
2574 HTREEITEM hItem;
2575 UINT state;
2576 UINT stateMask;
2577 LPWSTR pszText;
2578 int cchTextMax;
2579 int iImage;
2580 int iSelectedImage;
2581 int cChildren;
2582 LPARAM lParam;
2583 } TVITEMW,*LPTVITEMW;
2584 #define _TV_ITEMW tagTVITEMW
2585 #define TV_ITEMW TVITEMW
2586 #define LPTV_ITEMW LPTVITEMW
2587 #if (_WIN32_IE >= 0x0400)
2588 typedef struct tagTVITEMEXA {
2589 UINT mask;
2590 HTREEITEM hItem;
2591 UINT state;
2592 UINT stateMask;
2593 LPSTR pszText;
2594 int cchTextMax;
2595 int iImage;
2596 int iSelectedImage;
2597 int cChildren;
2598 LPARAM lParam;
2599 int iIntegral;
2600 } TVITEMEXA, *LPTVITEMEXA;
2601 typedef struct tagTVITEMEXW {
2602 UINT mask;
2603 HTREEITEM hItem;
2604 UINT state;
2605 UINT stateMask;
2606 LPWSTR pszText;
2607 int cchTextMax;
2608 int iImage;
2609 int iSelectedImage;
2610 int cChildren;
2611 LPARAM lParam;
2612 int iIntegral;
2613 } TVITEMEXW, *LPTVITEMEXW;
2614 #endif /* _WIN32_IE >= 0x0400 */
2615 typedef struct tagTVINSERTSTRUCTA {
2616 HTREEITEM hParent;
2617 HTREEITEM hInsertAfter;
2618 #if (_WIN32_IE >= 0x0400)
2619 _ANONYMOUS_UNION union {
2620 TVITEMEXA itemex;
2621 TV_ITEMA item;
2622 } DUMMYUNIONNAME;
2623 #else
2624 TV_ITEMA item;
2625 #endif
2626 } TVINSERTSTRUCTA,*LPTVINSERTSTRUCTA;
2627 #define _TV_INSERTSTRUCTA tagTVINSERTSTRUCTA
2628 #define TV_INSERTSTRUCTA TVINSERTSTRUCTA
2629 #define LPTV_INSERTSTRUCTA LPTVINSERTSTRUCTA
2630 typedef struct tagTVINSERTSTRUCTW {
2631 HTREEITEM hParent;
2632 HTREEITEM hInsertAfter;
2633 #if (_WIN32_IE >= 0x0400)
2634 _ANONYMOUS_UNION union {
2635 TVITEMEXW itemex;
2636 TV_ITEMW item;
2637 } DUMMYUNIONNAME;
2638 #else
2639 TV_ITEMW item;
2640 #endif
2641 } TVINSERTSTRUCTW,*LPTVINSERTSTRUCTW;
2642 #define _TV_INSERTSTRUCTW tagTVINSERTSTRUCTW
2643 #define TV_INSERTSTRUCTW TVINSERTSTRUCTW
2644 #define LPTV_INSERTSTRUCTW LPTVINSERTSTRUCTW
2645 typedef struct tagTVHITTESTINFO {
2646 POINT pt;
2647 UINT flags;
2648 HTREEITEM hItem;
2649 } TVHITTESTINFO, *LPTVHITTESTINFO;
2650 #define _TV_HITTESTINFO tagTVHITTESTINFO
2651 #define TV_HITTESTINFO TVHITTESTINFO
2652 #define LPTV_HITTESTINFO LPTVHITTESTINFO
2653 typedef int(CALLBACK *PFNTVCOMPARE)(LPARAM,LPARAM,LPARAM);
2654 typedef struct tagTVSORTCB {
2655 HTREEITEM hParent;
2656 PFNTVCOMPARE lpfnCompare;
2657 LPARAM lParam;
2658 } TVSORTCB,*LPTVSORTCB;
2659 #define _TV_SORTCB tagTVSORTCB
2660 #define TV_SORTCB TVSORTCB
2661 #define LPTV_SORTCB LPTVSORTCB
2662 typedef struct tagNMTREEVIEWA {
2663 NMHDR hdr;
2664 UINT action;
2665 TV_ITEMA itemOld;
2666 TV_ITEMA itemNew;
2667 POINT ptDrag;
2668 } NMTREEVIEWA,*LPNMTREEVIEWA;
2669 #define _NM_TREEVIEWA tagNMTREEVIEWA
2670 #define NM_TREEVIEWA NMTREEVIEWA
2671 #define LPNM_TREEVIEWA LPNMTREEVIEWA
2672 typedef struct tagNMTREEVIEWW {
2673 NMHDR hdr;
2674 UINT action;
2675 TV_ITEMW itemOld;
2676 TV_ITEMW itemNew;
2677 POINT ptDrag;
2678 } NMTREEVIEWW,*LPNMTREEVIEWW;
2679 #define _NM_TREEVIEWW tagNMTREEVIEWW
2680 #define NM_TREEVIEWW NMTREEVIEWW
2681 #define LPNM_TREEVIEWW LPNMTREEVIEWW
2682 typedef struct tagNMTVDISPINFOA {
2683 NMHDR hdr;
2684 TVITEMA item;
2685 } NMTVDISPINFOA, *LPNMTVDISPINFOA;
2686 #define _TV_DISPINFOA tagNMTVDISPINFOA
2687 #define TV_DISPINFOA NMTVDISPINFOA
2688 typedef struct tagNMTVDISPINFOW {
2689 NMHDR hdr;
2690 TVITEMW item;
2691 } NMTVDISPINFOW, *LPNMTVDISPINFOW;
2692 #define _TV_DISPINFOW tagNMTVDISPINFOW
2693 #define TV_DISPINFOW NMTVDISPINFOW
2694 #if (_WIN32_IE >= 0x0400)
2695 typedef struct tagNMTVGETINFOTIPA {
2696 NMHDR hdr;
2697 LPSTR pszText;
2698 int cchTextMax;
2699 HTREEITEM hItem;
2700 LPARAM lParam;
2701 } NMTVGETINFOTIPA, *LPNMTVGETINFOTIPA;
2702 typedef struct tagNMTVGETINFOTIPW {
2703 NMHDR hdr;
2704 LPWSTR pszText;
2705 int cchTextMax;
2706 HTREEITEM hItem;
2707 LPARAM lParam;
2708 } NMTVGETINFOTIPW, *LPNMTVGETINFOTIPW;
2709 #endif
2710 typedef struct _TV_KEYDOWN {
2711 NMHDR hdr;
2712 WORD wVKey;
2713 UINT flags;
2714 } TV_KEYDOWN;
2715 typedef struct _TC_ITEMHEADERA {
2716 UINT mask;
2717 UINT lpReserved1;
2718 UINT lpReserved2;
2719 LPSTR pszText;
2720 int cchTextMax;
2721 int iImage;
2722 } TC_ITEMHEADERA;
2723 typedef struct _TC_ITEMHEADERW {
2724 UINT mask;
2725 UINT lpReserved1;
2726 UINT lpReserved2;
2727 LPWSTR pszText;
2728 int cchTextMax;
2729 int iImage;
2730 } TC_ITEMHEADERW;
2731 typedef struct tagTCITEMA {
2732 UINT mask;
2733 #if (_WIN32_IE >= 0x0300)
2734 DWORD dwState;
2735 DWORD dwStateMask;
2736 #else
2737 UINT lpReserved1;
2738 UINT lpReserved2;
2739 #endif
2740 LPSTR pszText;
2741 int cchTextMax;
2742 int iImage;
2743 LPARAM lParam;
2744 } TCITEMA, *LPTCITEMA;
2745 #define TC_ITEMA TCITEMA
2746 typedef struct tagTCITEMW {
2747 UINT mask;
2748 #if (_WIN32_IE >= 0x0300)
2749 DWORD dwState;
2750 DWORD dwStateMask;
2751 #else
2752 UINT lpReserved1;
2753 UINT lpReserved2;
2754 #endif
2755 LPWSTR pszText;
2756 int cchTextMax;
2757 int iImage;
2758 LPARAM lParam;
2759 } TCITEMW, *LPTCITEMW;
2760 #define TC_ITEMW TCITEMW
2761 typedef struct tagTCHITTESTINFO {
2762 POINT pt;
2763 UINT flags;
2764 } TCHITTESTINFO, *LPTCHITTESTINFO;
2765 #define TC_HITTESTINFO TCHITTESTINFO
2766 #define LPTC_HITTESTINFO LPTCHITTESTINFO
2767 typedef struct _TC_KEYDOWN {
2768 NMHDR hdr;
2769 WORD wVKey;
2770 UINT flags;
2771 } TC_KEYDOWN;
2772 #if (_WIN32_IE >= 0x0300)
2773 typedef struct tagINITCOMMONCONTROLSEX {
2774 DWORD dwSize;
2775 DWORD dwICC;
2776 } INITCOMMONCONTROLSEX,*LPINITCOMMONCONTROLSEX;
2777 #endif
2778 typedef struct tagPBRANGE {
2779 int iLow;
2780 int iHigh;
2781 } PBRANGE,*PPBRANGE;
2782 typedef struct tagCOLORSCHEME {
2783 DWORD dwSize;
2784 COLORREF clrBtnHighlight;
2785 COLORREF clrBtnShadow;
2786 } COLORSCHEME,*LPCOLORSCHEME;
2787 typedef struct tagMCHITTESTINFO {
2788 UINT cbSize;
2789 POINT pt;
2790 UINT uHit;
2791 SYSTEMTIME st;
2792 }MCHITTESTINFO, *PMCHITTESTINFO;
2793 typedef DWORD MONTHDAYSTATE;
2794 typedef MONTHDAYSTATE *LPMONTHDAYSTATE;
2795 typedef struct tagNMDAYSTATE {
2796 NMHDR nmhdr;
2797 SYSTEMTIME stStart;
2798 int cDayState;
2799 LPMONTHDAYSTATE prgDayState;
2800 }NMDAYSTATE,*LPNMDAYSTATE;
2801 typedef struct tagREBARINFO {
2802 UINT cbSize;
2803 UINT fMask;
2804 HIMAGELIST himl;
2805 } REBARINFO,*LPREBARINFO;
2806 typedef struct tagREBARBANDINFOA {
2807 UINT cbSize;
2808 UINT fMask;
2809 UINT fStyle;
2810 COLORREF clrFore;
2811 COLORREF clrBack;
2812 LPSTR lpText;
2813 UINT cch;
2814 int iImage;
2815 HWND hwndChild;
2816 UINT cxMinChild;
2817 UINT cyMinChild;
2818 UINT cx;
2819 HBITMAP hbmBack;
2820 UINT wID;
2821 #if (_WIN32_IE >= 0x0400)
2822 UINT cyChild;
2823 UINT cyMaxChild;
2824 UINT cyIntegral;
2825 UINT cxIdeal;
2826 LPARAM lParam;
2827 UINT cxHeader;
2828 #endif
2829 } REBARBANDINFOA,*LPREBARBANDINFOA;
2830 typedef struct tagREBARBANDINFOW {
2831 UINT cbSize;
2832 UINT fMask;
2833 UINT fStyle;
2834 COLORREF clrFore;
2835 COLORREF clrBack;
2836 LPWSTR lpText;
2837 UINT cch;
2838 int iImage;
2839 HWND hwndChild;
2840 UINT cxMinChild;
2841 UINT cyMinChild;
2842 UINT cx;
2843 HBITMAP hbmBack;
2844 UINT wID;
2845 #if (_WIN32_IE >= 0x0400)
2846 UINT cyChild;
2847 UINT cyMaxChild;
2848 UINT cyIntegral;
2849 UINT cxIdeal;
2850 LPARAM lParam;
2851 UINT cxHeader;
2852 #endif
2853 } REBARBANDINFOW,*LPREBARBANDINFOW;
2854 typedef REBARBANDINFOA const *LPCREBARBANDINFOA;
2855 typedef REBARBANDINFOW const *LPCREBARBANDINFOW;
2856 #define REBARBANDINFOA_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOA,wID)
2857 #define REBARBANDINFOW_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOW, wID)
2858 #if (_WIN32_IE >= 0x0300)
2859 typedef struct tagNMLVODSTATECHANGE {
2860 NMHDR hdr;
2861 int iFrom;
2862 int iTo;
2863 UINT uNewState;
2864 UINT uOldState;
2865 } NMLVODSTATECHANGE, *LPNMLVODSTATECHANGE;
2866 typedef struct tagIMAGELISTDRAWPARAMS {
2867 DWORD cbSize;
2868 HIMAGELIST himl;
2869 int i;
2870 HDC hdcDst;
2871 int x;
2872 int y;
2873 int cx;
2874 int cy;
2875 int xBitmap;
2876 int yBitmap;
2877 COLORREF rgbBk;
2878 COLORREF rgbFg;
2879 UINT fStyle;
2880 DWORD dwRop;
2881 #if (_WIN32_WINNT >= 0x0501)
2882 DWORD fState;
2883 DWORD Frame;
2884 COLORREF crEffect;
2885 #endif
2886 } IMAGELISTDRAWPARAMS,*LPIMAGELISTDRAWPARAMS;
2887 #endif /* (_WIN32_IE >= 0x0300) */
2888 #if (_WIN32_IE >= 0x0400)
2889 typedef struct tagNMREBARCHILDSIZE {
2890 NMHDR hdr;
2891 UINT uBand;
2892 UINT wID;
2893 RECT rcChild;
2894 RECT rcBand;
2895 } NMREBARCHILDSIZE,*LPNMREBARCHILDSIZE;
2896 typedef struct tagNMREBAR {
2897 NMHDR hdr;
2898 DWORD dwMask;
2899 UINT uBand;
2900 UINT fStyle;
2901 UINT wID;
2902 LPARAM lParam;
2903 } NMREBAR,*LPNMREBAR;
2904 typedef struct tagNMRBAUTOSIZE {
2905 NMHDR hdr;
2906 BOOL fChanged;
2907 RECT rcTarget;
2908 RECT rcActual;
2909 } NMRBAUTOSIZE,*LPNMRBAUTOSIZE;
2910 #if (_WIN32_IE >= 0x0500)
2911 typedef struct tagNMREBARCHEVRON {
2912 NMHDR hdr;
2913 UINT uBand;
2914 UINT wID;
2915 LPARAM lParam;
2916 RECT rc;
2917 LPARAM lParamNM;
2918 } NMREBARCHEVRON, *LPNMREBARCHEVRON;
2919 #endif
2920 typedef struct _RB_HITTESTINFO {
2921 POINT pt;
2922 UINT flags;
2923 int iBand;
2924 } RBHITTESTINFO,*LPRBHITTESTINFO;
2925 #endif
2926 typedef struct _DSA *HDSA;
2927 typedef struct _DPA *HDPA;
2928 typedef INT (CALLBACK *PFNDPAENUMCALLBACK)(PVOID,PVOID);
2929 typedef INT (CALLBACK *PFNDSAENUMCALLBACK)(PVOID,PVOID);
2930 typedef INT (CALLBACK *PFNDPACOMPARE)(PVOID,PVOID,LPARAM);
2931 #if (_WIN32_WINNT >= 0x0501)
2932 typedef LRESULT (CALLBACK *SUBCLASSPROC)(HWND,UINT,WPARAM,LPARAM,UINT_PTR,DWORD_PTR);
2933 typedef struct tagLITEM {
2934 UINT mask;
2935 int iLink;
2936 UINT state;
2937 UINT stateMask;
2938 WCHAR szID[MAX_LINKID_TEXT];
2939 WCHAR szUrl[L_MAX_URL_LENGTH];
2940 } LITEM,*PLITEM;
2941 typedef struct tagLHITTESTINFO {
2942 POINT pt;
2943 LITEM item;
2944 } LHITTESTINFO,*PLHITTESTINFO;
2945 typedef struct tagNMLINK {
2946 NMHDR hdr;
2947 LITEM item;
2948 } NMLINK,*PNMLINK;
2949 #endif /* _WIN32_WINNT >= 0x0501 */
2951 #define INDEXTOOVERLAYMASK(i) ((i)<<8)
2952 #define INDEXTOSTATEIMAGEMASK(i) ((i)<<12)
2953 #define HANDLE_WM_NOTIFY(h,w,l,f) (f)((h),(int)(w),(NMHDR*)(l))
2954 #define FORWARD_WM_NOTIFY(h,i,p,f) (LRESULT)(f)((h),WM_NOTIFY,(WPARAM)(int)(i),(LPARAM)(NMHDR*)(p))
2955 #define CCSIZEOF_STRUCT(s,m) (((int)((PBYTE)(&((s*)0)->m)-((PBYTE)((s*)0))))+sizeof(((s*)0)->m))
2956 #define MAKEIPADDRESS(b1,b2,b3,b4) ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<<16)+((DWORD)(b3)<<8)+((DWORD)(b4))))
2957 #define MAKEIPRANGE(low,high) ((LPARAM)(WORD)(((BYTE)(high)<<8)+(BYTE)(low)))
2958 #define FIRST_IPADDRESS(a) ((a>>24) & 0xff)
2959 #define SECOND_IPADDRESS(a) ((a>>16) & 0xff)
2960 #define THIRD_IPADDRESS(a) ((a>>8) & 0xff)
2961 #define FOURTH_IPADDRESS(a) (a & 0xff)
2962 #define Animate_Create(w,i,s,hI) CreateWindow(ANIMATE_CLASS,NULL,s,0,0,0,0,w,(HMENU)(i),hI,NULL)
2963 #define Animate_Open(w,f) (BOOL)SNDMSG(w,ACM_OPEN,0,(LPARAM)f)
2964 #define Animate_OpenEx(w,h,s) (BOOL)SNDMSG(w,ACM_OPEN,(WPARAM)h,(LPARAM)(LPTSTR)(s))
2965 #define Animate_Play(w,f,t,r) (BOOL)SNDMSG(w,ACM_PLAY,(r),(LPARAM)MAKELONG(f,t))
2966 #define Animate_Stop(w) (BOOL)SNDMSG(w,ACM_STOP,0,0)
2967 #define Animate_Close(w) Animate_Open(w,NULL)
2968 #define Animate_Seek(w,f) Animate_Play(w,f,f,1)
2969 HBITMAP WINAPI CreateMappedBitmap(HINSTANCE,int,UINT,LPCOLORMAP,int);
2970 HWND WINAPI CreateStatusWindowA(LONG,LPCSTR,HWND,UINT);
2971 HWND WINAPI CreateStatusWindowW(LONG,LPCWSTR,HWND,UINT);
2972 HWND WINAPI CreateToolbarEx(HWND,DWORD,UINT,int,HINSTANCE,UINT,LPCTBBUTTON,int,int,int,int,int,UINT);
2973 HWND WINAPI CreateUpDownControl(DWORD,int,int,int,int,HWND,int,HINSTANCE,HWND,int,int,int);
2974 #define DateTime_GetMonthCal(hwnd) SNDMSG(hwnd, DTM_GETMONTHCAL, 0, 0)
2975 #define DateTime_GetMonthCalColor(hwnd, icolor) SNDMSG(hwnd, DTM_GETMONTHCAL, (WPARAM)icolor,0)
2976 #define DateTime_GetMonthCalFont(hwnd) SNDMSG(hwnd,DTM_GETMCFONT,0,0)
2977 #define DateTime_GetRange(hwnd,lpsystimearray) SNDMSG(hwnd,DTM_GETRANGE,0,(LPARAM)lpsystimearray)
2978 #define DateTime_GetSystemtime(hwnd,lpsystime) SNDMSG(hwnd,DTM_GETSYSTEMTIME,0,(LPARAM)lpsystime)
2979 #define DateTime_SetFormat(hwnd,lpszformat) SNDMSG(hwnd,DTM_SETFORMAT,0,(LPARAM)lpszformat)
2980 #define DateTime_SetMonthCalColor(hwnd,icolor,clr) SNDMSG(hwnd,DTM_SETMCCOLOR,(WPARAM)icolor,(LPARAM)clr)
2981 #define DateTime_SetMonthCalFont(hwnd,hfont,lparam) SNDMSG(hwnd,DTM_SETMCFONT,(WPARAM)hfont,(LPARAM)lparam)
2982 #define DateTime_SetRange(hwnd,flags,lpsystimearray) SNDMSG(hwnd,DTM_SETRANGE,(WPARAM)flags,(LPARAM)lpsystimearray)
2983 #define DateTime_SetSystemtime(hwnd,flag,lpsystime) SNDMSG(hwnd,DTM_SETSYSTEMTIME,(WPARAM)flag,(LPARAM)lpsystime)
2984 void WINAPI DrawInsert(HWND,HWND,int);
2985 void WINAPI DrawStatusTextA(HDC,LPRECT,LPCSTR,UINT);
2986 void WINAPI DrawStatusTextW(HDC,LPRECT,LPCWSTR,UINT);
2987 void WINAPI GetEffectiveClientRect(HWND,LPRECT,LPINT);
2988 #define Header_GetItemCount(w) (int)SNDMSG((w),HDM_GETITEMCOUNT,0,0)
2989 #define Header_InsertItem(w,i,phdi) (int)SNDMSG((w),HDM_INSERTITEM,(WPARAM)(int)(i),(LPARAM)(const HD_ITEM*)(phdi))
2990 #define Header_DeleteItem(w,i) (BOOL)SNDMSG((w),HDM_DELETEITEM,(WPARAM)(int)(i),0)
2991 #define Header_GetItem(w,i,phdi) (BOOL)SNDMSG((w),HDM_GETITEM,(WPARAM)(int)(i),(LPARAM)(HD_ITEM*)(phdi))
2992 #define Header_SetItem(w,i,phdi) (BOOL)SNDMSG((w),HDM_SETITEM,(WPARAM)(int)(i),(LPARAM)(const HD_ITEM*)(phdi))
2993 #define Header_Layout(w,l) (BOOL)SNDMSG((w),HDM_LAYOUT,0,(LPARAM)(HD_LAYOUT*)(l))
2994 #if (_WIN32_IE >= 0x0300)
2995 #define Header_OrderToIndex(w,o) (int)SNDMSG((w),HDM_ORDERTOINDEX,(WPARAM)(o),0)
2996 #define Header_GetItemRect(w,i,r) (BOOL)SNDMSG((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r))
2997 #define Header_GetOrderArray(w,l,a) (BOOL)SNDMSG((w),HDM_GETORDERARRAY,(WPARAM)(l),(LPARAM)(a))
2998 #define Header_SetOrderArray(w,l,a) (BOOL)SNDMSG((w),HDM_SETORDERARRAY,(WPARAM)(l),(LPARAM)(a))
2999 #define Header_CreateDragImage(w, i) (HIMAGELIST)SNDMSG((w), HDM_CREATEDRAGIMAGE, (WPARAM)i, 0)
3000 #define Header_SetImageList(w,l) (HIMAGELIST)SNDMSG((w), HDM_SETIMAGELIST, 0, (LPARAM)l)
3001 #define Header_GetImageList(w) (HIMAGELIST)SNDMSG((w),HDM_GETIMAGELIST,0,0)
3002 #endif
3003 #if (_WIN32_IE >= 0x0400)
3004 #define Header_GetUnicodeFormat(w) (BOOL)SNDMSG((w),HDM_GETUNICODEFORMAT,0,0)
3005 #define Header_SetUnicodeFormat(w,f) (BOOL)SNDMSG((w),HDM_SETUNICODEFORMAT,(WPARAM)(f),0)
3006 #endif
3007 HDSA WINAPI DSA_Create(INT,INT);
3008 BOOL WINAPI DSA_Destroy(HDSA);
3009 VOID WINAPI DSA_DestroyCallback(HDSA,PFNDSAENUMCALLBACK,PVOID);
3010 PVOID WINAPI DSA_GetItemPtr(HDSA,INT);
3011 INT WINAPI DSA_InsertItem(HDSA,INT,PVOID);
3012 HDPA WINAPI DPA_Create(INT);
3013 BOOL WINAPI DPA_Destroy(HDPA);
3014 PVOID WINAPI DPA_DeletePtr(HDPA,INT);
3015 BOOL WINAPI DPA_DeleteAllPtrs(HDPA);
3016 VOID WINAPI DPA_EnumCallback(HDPA,PFNDPAENUMCALLBACK,PVOID);
3017 VOID WINAPI DPA_DestroyCallback(HDPA,PFNDPAENUMCALLBACK,PVOID);
3018 BOOL WINAPI DPA_SetPtr(HDPA,INT,PVOID);
3019 INT WINAPI DPA_InsertPtr(HDPA,INT,PVOID);
3020 PVOID WINAPI DPA_GetPtr(HDPA,INT_PTR);
3021 BOOL WINAPI DPA_Sort(HDPA,PFNDPACOMPARE,LPARAM);
3022 INT WINAPI DPA_Search(HDPA,PVOID,INT,PFNDPACOMPARE,LPARAM,UINT);
3023 BOOL WINAPI Str_SetPtrW(LPWSTR*,LPCWSTR);
3024 #if (_WIN32_IE >= 0x0400)
3025 BOOL WINAPI FlatSB_EnableScrollBar(HWND,INT,UINT);
3026 BOOL WINAPI FlatSB_ShowScrollBar(HWND,INT,BOOL);
3027 BOOL WINAPI FlatSB_GetScrollRange(HWND,INT,LPINT,LPINT);
3028 BOOL WINAPI FlatSB_GetScrollInfo(HWND,INT,LPSCROLLINFO);
3029 INT WINAPI FlatSB_GetScrollPos(HWND,INT);
3030 BOOL WINAPI FlatSB_GetScrollProp(HWND,INT,LPINT);
3031 #ifdef _WIN64
3032 BOOL WINAPI FlatSB_GetScrollPropPtr(HWND,INT,PINT_PTR);
3033 #else
3034 #define FlatSB_GetScrollPropPtr FlatSB_GetScrollProp
3035 #endif
3036 INT WINAPI FlatSB_SetScrollPos(HWND,INT,INT,BOOL);
3037 INT WINAPI FlatSB_SetScrollInfo(HWND,INT,LPSCROLLINFO,BOOL);
3038 INT WINAPI FlatSB_SetScrollRange(HWND,INT,INT,INT,BOOL);
3039 BOOL WINAPI FlatSB_SetScrollProp(HWND,UINT,INT_PTR,BOOL);
3040 #define FlatSB_SetScrollPropPtr FlatSB_SetScrollProp
3041 BOOL WINAPI InitializeFlatSB(HWND);
3042 HRESULT WINAPI UninitializeFlatSB(HWND);
3043 #endif /* _WIN32_IE >= 0x0400 */
3044 #if (_WIN32_WINNT >= 0x0501)
3045 BOOL WINAPI SetWindowSubclass(HWND,SUBCLASSPROC,UINT_PTR,DWORD_PTR);
3046 BOOL WINAPI GetWindowSubclass(HWND,SUBCLASSPROC,UINT_PTR,DWORD_PTR*);
3047 BOOL WINAPI RemoveWindowSubclass(HWND,SUBCLASSPROC,UINT_PTR);
3048 LRESULT WINAPI DefSubclassProc(HWND,UINT,WPARAM,LPARAM);
3049 INT WINAPI DrawShadowText(HDC,LPCWSTR,UINT,RECT*,DWORD,COLORREF,COLORREF,INT,INT);
3050 #endif /* _WIN32_WINNT >= 0x0501 */
3051 int WINAPI ImageList_Add(HIMAGELIST,HBITMAP,HBITMAP);
3052 #define ImageList_AddIcon(l,i) ImageList_ReplaceIcon(l,-1,i)
3053 int WINAPI ImageList_AddMasked(HIMAGELIST,HBITMAP,COLORREF);
3054 BOOL WINAPI ImageList_BeginDrag(HIMAGELIST,int,int,int);
3055 HIMAGELIST WINAPI ImageList_Create(int,int,UINT,int,int);
3056 BOOL WINAPI ImageList_Destroy(HIMAGELIST);
3057 BOOL WINAPI ImageList_DragEnter(HWND,int,int);
3058 BOOL WINAPI ImageList_DragLeave(HWND);
3059 BOOL WINAPI ImageList_DragMove(int,int);
3060 BOOL WINAPI ImageList_DragShowNolock(BOOL);
3061 BOOL WINAPI ImageList_Draw(HIMAGELIST,int,HDC,int,int,UINT);
3062 BOOL WINAPI ImageList_DrawEx(HIMAGELIST,int,HDC,int,int,int,int,COLORREF,COLORREF,UINT);
3063 void WINAPI ImageList_EndDrag(VOID);
3064 #define ImageList_ExtractIcon(h,l,i) ImageList_GetIcon(l,i,0)
3065 COLORREF WINAPI ImageList_GetBkColor(HIMAGELIST);
3066 HIMAGELIST WINAPI ImageList_GetDragImage(LPPOINT,LPPOINT);
3067 HICON WINAPI ImageList_GetIcon(HIMAGELIST,int,UINT);
3068 BOOL WINAPI ImageList_GetIconSize(HIMAGELIST,int*,int*);
3069 int WINAPI ImageList_GetImageCount(HIMAGELIST);
3070 BOOL WINAPI ImageList_GetImageInfo(HIMAGELIST,int,IMAGEINFO*);
3071 #define ImageList_LoadBitmap(h,l,x,G,M) ImageList_LoadImage(h,l,x,G,M,IMAGE_BITMAP,0)
3072 HIMAGELIST WINAPI ImageList_LoadImageA(HINSTANCE,LPCSTR,int,int,COLORREF,UINT,UINT);
3073 HIMAGELIST WINAPI ImageList_LoadImageW(HINSTANCE,LPCWSTR,int,int,COLORREF,UINT,UINT);
3074 HIMAGELIST WINAPI ImageList_Merge(HIMAGELIST,int,HIMAGELIST,int,int,int);
3075 BOOL WINAPI ImageList_Remove(HIMAGELIST,int);
3076 #define ImageList_RemoveAll(l) ImageList_Remove(l,-1)
3077 BOOL WINAPI ImageList_Replace(HIMAGELIST,int,HBITMAP,HBITMAP);
3078 int WINAPI ImageList_ReplaceIcon(HIMAGELIST,int,HICON);
3079 COLORREF WINAPI ImageList_SetBkColor(HIMAGELIST,COLORREF);
3080 BOOL WINAPI ImageList_SetDragCursorImage(HIMAGELIST,int,int,int);
3081 BOOL WINAPI ImageList_SetIconSize(HIMAGELIST,int,int);
3082 BOOL WINAPI ImageList_SetOverlayImage(HIMAGELIST,int,int);
3083 #ifdef _OBJIDL_H
3084 HIMAGELIST WINAPI ImageList_Read(LPSTREAM);
3085 BOOL WINAPI ImageList_Write(HIMAGELIST,LPSTREAM);
3086 #endif
3087 #if (_WIN32_IE >= 0x0400)
3088 HIMAGELIST WINAPI ImageList_Duplicate(HIMAGELIST himl);
3089 #endif
3090 void WINAPI InitCommonControls(void);
3091 #if (_WIN32_IE >= 0x0300)
3092 BOOL WINAPI InitCommonControlsEx(LPINITCOMMONCONTROLSEX);
3093 #endif
3094 int WINAPI LBItemFromPt(HWND,POINT,BOOL);
3095 #define ListView_GetBkColor(w) (COLORREF)SNDMSG((w),LVM_GETBKCOLOR,0,0)
3096 #define ListView_GetImageList(w,i) (HIMAGELIST)SNDMSG((w),LVM_GETIMAGELIST,(i),0)
3097 #define ListView_GetItemCount(w) (int)SNDMSG((w),LVM_GETITEMCOUNT,0,0)
3098 #define ListView_GetItem(w,i) (BOOL)SNDMSG((w),LVM_GETITEM,0,(LPARAM)(i))
3099 #define ListView_SetBkColor(w,c) (BOOL)SNDMSG((w),LVM_SETBKCOLOR,0,(LPARAM)c)
3100 #define ListView_SetImageList(w,h,i) (HIMAGELIST)(UINT)SNDMSG((w),LVM_SETIMAGELIST,(i),(LPARAM)(h))
3101 #define ListView_SetItem(w,i) (BOOL)SNDMSG((w),LVM_SETITEM,0,(LPARAM)(const LV_ITEM*)(i))
3102 #define ListView_InsertItem(w,i) (int)SNDMSG((w),LVM_INSERTITEM,0,(LPARAM)(const LV_ITEM*)(i))
3103 #define ListView_DeleteItem(w,i) (BOOL)SNDMSG((w),LVM_DELETEITEM,i,0)
3104 #define ListView_DeleteAllItems(w) (BOOL)SNDMSG((w),LVM_DELETEALLITEMS,0,0)
3105 #define ListView_GetCallbackMask(w) (UINT)SNDMSG((w),LVM_GETCALLBACKMASK,0,0)
3106 #define ListView_SetCallbackMask(w,m) (BOOL)SNDMSG((w),LVM_SETCALLBACKMASK,m,0)
3107 #define ListView_GetNextItem(w,i,f) (int)SNDMSG((w),LVM_GETNEXTITEM,i,MAKELPARAM((f),0))
3108 #define ListView_FindItem(w,i,p) (int)SNDMSG((w), LVM_FINDITEM,(WPARAM)i,(LPARAM)(const LV_FINDINFO*)(p))
3109 #define ListView_GetItemRect(w,i,p,c) (BOOL)SNDMSG((w),LVM_GETITEMRECT,i,((p)?(((LPRECT)(p))->left=(c),(LPARAM)(LPRECT)(p)):0))
3110 #define ListView_SetItemPosition(w,i,x,y) (BOOL)SNDMSG((w),LVM_SETITEMPOSITION,i,MAKELPARAM(x,y))
3111 #define ListView_GetItemPosition(w,i,p) (BOOL)SNDMSG((w),LVM_GETITEMPOSITION,i,(LPARAM)p)
3112 #define ListView_GetItemSpacing(w,f) (DWORD)SNDMSG((w),LVM_GETITEMSPACING,f,0)
3113 #define ListView_GetStringWidth(w,s) (int)SNDMSG((w),LVM_GETSTRINGWIDTH,0,(LPARAM)s)
3114 #define ListView_HitTest(w,p) (int)SNDMSG((w),LVM_HITTEST,0,(LPARAM)(LV_HITTESTINFO*)(p))
3115 #define ListView_EnsureVisible(w,i,f) (BOOL)SNDMSG((w),LVM_ENSUREVISIBLE,i,MAKELPARAM((f),0))
3116 #define ListView_Scroll(w,x,y) (BOOL)SNDMSG((w),LVM_SCROLL,x,y)
3117 #define ListView_RedrawItems(w,f,l) (BOOL)SNDMSG((w),LVM_REDRAWITEMS,f,l)
3118 #define ListView_Arrange(w,c) (BOOL)SNDMSG((w),LVM_ARRANGE,c,0)
3119 #define ListView_EditLabel(w,i) (HWND)SNDMSG((w),LVM_EDITLABEL,i,0)
3120 #define ListView_GetEditControl(w) (HWND)SNDMSG((w),LVM_GETEDITCONTROL,0,0)
3121 #define ListView_GetColumn(w,i,p) (BOOL)SNDMSG((w),LVM_GETCOLUMN,i,(LPARAM)(LV_COLUMN*)(p))
3122 #define ListView_SetColumn(w,i,p) (BOOL)SNDMSG((w),LVM_SETCOLUMN,i,(LPARAM)(const LV_COLUMN*)(p))
3123 #define ListView_InsertColumn(w,i,p) (int)SNDMSG((w),LVM_INSERTCOLUMN,i,(LPARAM)(const LV_COLUMN*)(p))
3124 #define ListView_DeleteColumn(w,i) (BOOL)SNDMSG((w),LVM_DELETECOLUMN,i,0)
3125 #define ListView_GetColumnWidth(w,i) (int)SNDMSG((w),LVM_GETCOLUMNWIDTH,i,0)
3126 #define ListView_SetColumnWidth(w,i,x) (BOOL)SNDMSG((w),LVM_SETCOLUMNWIDTH,i,MAKELPARAM((x),0))
3127 #define ListView_CreateDragImage(w,i,p) (HIMAGELIST)SNDMSG((w),LVM_CREATEDRAGIMAGE,i,(LPARAM)(LPPOINT)(p))
3128 #define ListView_GetViewRect(w,p) (BOOL)SNDMSG((w),LVM_GETVIEWRECT,0,(LPARAM)(LPRECT)(p))
3129 #define ListView_GetTextColor(w) (COLORREF)SNDMSG((w),LVM_GETTEXTCOLOR,0,0)
3130 #define ListView_SetTextColor(w,c) (BOOL)SNDMSG((w),LVM_SETTEXTCOLOR,0,(LPARAM)(COLORREF)(c))
3131 #define ListView_GetTextBkColor(w) (COLORREF)SNDMSG((w),LVM_GETTEXTBKCOLOR,0,0)
3132 #define ListView_SetTextBkColor(w,c) (BOOL)SNDMSG((w),LVM_SETTEXTBKCOLOR,0,(LPARAM)(COLORREF)(c))
3133 #define ListView_GetTopIndex(w) (int)SNDMSG((w),LVM_GETTOPINDEX,0,0)
3134 #define ListView_GetCountPerPage(w) (int)SNDMSG((w),LVM_GETCOUNTPERPAGE,0,0)
3135 #define ListView_GetOrigin(w,p) (BOOL)SNDMSG((w),LVM_GETORIGIN,0,(LPARAM)(POINT*)(p))
3136 #define ListView_GetOrigin(w,p) (BOOL)SNDMSG((w),LVM_GETORIGIN,0,(LPARAM)(POINT*)(p))
3137 #define ListView_Update(w,i) (BOOL)SNDMSG((w),LVM_UPDATE,(WPARAM)(i),0)
3138 #define ListView_SetItemState(w,i,d,m) \
3140 LV_ITEM _lvi;\
3141 _lvi.stateMask=m;\
3142 _lvi.state=d;\
3143 SNDMSG((w),LVM_SETITEMSTATE,i,(LPARAM)(LV_ITEM*)&_lvi);\
3145 #define ListView_GetItemState(w,i,m) (UINT)SNDMSG((w),LVM_GETITEMSTATE,i,m)
3146 #define ListView_GetItemText(w,i,iS,s,n) \
3148 LV_ITEM _lvi;\
3149 _lvi.iSubItem=iS;\
3150 _lvi.cchTextMax=n;\
3151 _lvi.pszText=s;\
3152 SNDMSG((w),LVM_GETITEMTEXT,i,(LPARAM)(LV_ITEM*)&_lvi);\
3154 #define ListView_SetItemText(w,i,iS,s) \
3156 LV_ITEM _lvi;\
3157 _lvi.iSubItem=iS;\
3158 _lvi.pszText=s;\
3159 SNDMSG((w),LVM_SETITEMTEXT,i,(LPARAM)(LV_ITEM*)&_lvi);\
3161 #define ListView_SetItemCount(w,n) (void)SNDMSG((w),LVM_SETITEMCOUNT,n,0)
3162 #define ListView_SortItems(w,f,l) (BOOL)SNDMSG((w),LVM_SORTITEMS,l,(LPARAM)f)
3163 #define ListView_SetItemPosition32(w,i,x,y) \
3165 POINT p={x,y}; \
3166 SNDMSG((w),LVM_SETITEMPOSITION32,i,(LPARAM)&p);\
3168 #define ListView_GetSelectedCount(w) (UINT)SNDMSG((w),LVM_GETSELECTEDCOUNT,0,0)
3169 #define ListView_GetCheckState(w,i) ((((UINT)(SNDMSG((w),LVM_GETITEMSTATE,(WPARAM)(i),LVIS_STATEIMAGEMASK)))>>12)-1)
3170 #define ListView_SetCheckState(w,i,f) ListView_SetItemState(w,i,INDEXTOSTATEIMAGEMASK((f)+1),LVIS_STATEIMAGEMASK)
3171 #define ListView_GetISearchString(w,lpsz) (BOOL)SNDMSG((w),LVM_GETISEARCHSTRING,0,(LPARAM)(LPTSTR)(lpsz))
3172 #define ListView_CancelEditLabel(w) (VOID)SNDMSG((w),LVM_CANCELEDITLABEL,0,0)
3173 #define ListView_EnableGroupView(w,i) (int)SNDMSG((w),LVM_ENABLEGROUPVIEW,(WPARAM)(i),0)
3174 #define ListView_GetGroupInfo(w,i,p) (int)SNDMSG((w),LVM_GETGROUPINFO,(WPARAM)(i),(LPARAM)(p))
3175 #define ListView_GetGroupMetrics(w,p) SNDMSG((w),LVM_GETGROUPMETRICS,0,(LPARAM)(p))
3176 #define ListView_GetInsertMark(w,p) (BOOL)SNDMSG((w),LVM_GETINSERTMARK,0,(LPARAM)(p))
3177 #define ListView_GetInsertMarkColor(w) (COLORREF)SNDMSG((w),LVM_GETINSERTMARKCOLOR,0,0)
3178 #define ListView_GetInsertMarkRect(w,p) (int)SNDMSG((w),LVM_GETINSERTMARKRECT,0,(LPARAM)(p))
3179 #define ListView_GetOutlineColor(w) (COLORREF)SNDMSG((w),LVM_GETOUTLINECOLOR,0,0)
3180 #define ListView_GetSelectedColumn(w) (UINT)SNDMSG((w),LVM_GETSELECTEDCOLUMN,0,0)
3181 #define ListView_GetTileInfo(w,p) SNDMSG((w),LVM_GETTILEINFO,0,(LPARAM)(p))
3182 #define ListView_GetTileViewInfo(w,p) SNDMSG((w),LVM_GETTILEVIEWINFO,0,(LPARAM)(p))
3183 #define ListView_GetView(w) (DWORD)SNDMSG((w),LVM_GETVIEW,0,0)
3184 #define ListView_HasGroup(w,i) (BOOL)SNDMSG((w),LVM_HASGROUP,(WPARAM)(i),0)
3185 #define ListView_InsertGroup(w,i,p) (int)SNDMSG((w),LVM_INSERTGROUP,(WPARAM)(i),(LPARAM)(p))
3186 #define ListView_InsertGroupSorted(w,p) SNDMSG((w),LVM_INSERTGROUPSORTED,(WPARAM)(p),0)
3187 #define ListView_InsertMarkHitTest(w,p,t) (BOOL)SNDMSG((w),LVM_INSERTMARKHITTEST,(WPARAM)(p),(LPARAM)(t))
3188 #define ListView_IsGroupViewEnabled(w) (BOOL)SNDMSG((w),LVM_ISGROUPVIEWENABLED,0,0)
3189 #define ListView_MapIDToIndex(w,i) (UINT)SNDMSG((w),LVM_MAPIDTOINDEX,(WPARAM)(i),0)
3190 #define ListView_MoveGroup(w,i,t) SNDMSG((w),LVM_MOVEGROUP,(WPARAM)(i),(LPARAM)(t))
3191 #define ListView_RemoveAllGroups(w) SNDMSG((w),LVM_REMOVEALLGROUPS,0,0)
3192 #define ListView_RemoveGroup(w,i) (int)SNDMSG((w),LVM_REMOVEGROUP,(WPARAM)(i),0)
3193 #define ListView_SetGroupInfo(w,i,p) (int)SNDMSG((w),LVM_SETGROUPINFO,(WPARAM)(i),(LPARAM)(p))
3194 #define ListView_SetGroupMetrics(w,p) SNDMSG((w),LVM_SETGROUPMETRICS,0,(LPARAM)(p))
3195 #define ListView_SetInfoTip(w,p) (BOOL)SNDMSG((w),LVM_SETINFOTIP,0,(LPARAM)(p))
3196 #define ListView_SetInsertMark(w,p) (BOOL)SNDMSG((w),LVM_SETINSERTMARK,0,(LPARAM)(p))
3197 #define ListView_SetInsertMarkColor(w,c) (COLORREF)SNDMSG((w),LVM_SETINSERTMARKCOLOR,0,(LPARAM)(c))
3198 #define ListView_SetOutlineColor(w,c) (COLORREF)SNDMSG((w),LVM_SETOUTLINECOLOR,0,(LPARAM)(c))
3199 #if (_WIN32_WINNT >= 0x0501)
3200 #define ListView_SetSelectedColumn(w,i) SNDMSG((w),LVM_SETSELECTEDCOLUMN,(WPARAM)i,0)
3201 #endif
3202 #define ListView_SetTileInfo(w,p) (BOOL)SNDMSG((w),LVM_SETTILEINFO,0,(LPARAM)(p))
3203 #define ListView_SetTileViewInfo(w,p) (BOOL)SNDMSG((w),LVM_SETTILEVIEWINFO,0,(LPARAM)(p))
3204 #define ListView_SetView(w,i) (int)SNDMSG((w),LVM_SETVIEW,(WPARAM)(i),0)
3205 #define ListView_SortGroups(w,c,p) (int)SNDMSG((w),LVM_SORTGROUPS,(WPARAM)(c),(LPARAM)(p))
3206 #define ListView_SortItemsEx(w,c,p) (BOOL)SNDMSG((w),LVM_SORTITEMSEX,(WPARAM)(p),(LPARAM)(c))
3208 #if (_WIN32_WINNT >= 0x0501)
3209 #define ComboBox_SetMinVisible(w,i) (BOOL)SNDMSG((w), CB_SETMINVISIBLE,(WPARAM)(i),0);
3210 #define ComboBox_GetMinVisible(w) (INT)SNDMSG((w),CB_GETMINVISIBLE,0,0);
3211 #endif
3213 BOOL WINAPI MakeDragList(HWND);
3214 void WINAPI MenuHelp(UINT,WPARAM,LPARAM,HMENU,HINSTANCE,HWND,PUINT);
3215 #define MonthCal_GetColor(hwnd,icolor) SNDMSG(hwnd,MCM_GETCOLOR,(WPARAM)icolor,(LPARAM)0)
3216 #define MonthCal_GetCurSel(hwnd,lpsystime) SNDMSG(hwnd,MCM_GETCURSEL,0,(LPARAM)lpsystime)
3217 #define MonthCal_GetFirstDayOfWeek(hwnd) SNDMSG(hwnd,MCM_GETFIRSTDAYOFWEEK,0,0)
3218 #define MonthCal_GetMaxSelCount(hwnd) SNDMSG(hwnd,MCM_GETMAXSELCOUNT,0,0)
3219 #define MonthCal_GetMaxTodayWidth(hwnd) SNDMSG(hwnd,MCM_GETMAXTODAYWIDTH,0,0)
3220 #define MonthCal_GetMinReqRect(hwnd,lpRectInfo) SNDMSG(hwnd,MCM_GETMINREQRECT,0,(LPARAM)lpRectInfo)
3221 #define MonthCal_GetMonthDelta(hwnd) SNDMSG(hwnd,MCM_GETMONTHDELTA,0,0)
3222 #define MonthCal_GetMonthRange(hwnd,flag,systimearray) SNDMSG(hwnd,MCM_GETMONTHRANGE,(WPARAM)flag,(LPARAM)systimearray)
3223 #define MonthCal_GetRange(hwnd,systimearray) SNDMSG(hwnd,MCM_GETRANGE,0,(LPARAM)systimearray)
3224 #define MonthCal_GetSelRange(hwnd,systimearray) SNDMSG(hwnd,MCM_GETSELRANGE,0,(LPARAM)systimearray)
3225 #define MonthCal_GetToday(hwnd,systime) SNDMSG(hwnd,MCM_GETTODAY,0,(LPARAM)systime)
3226 #define MonthCal_GetUnicodeFormat(hwnd) SNDMSG(hwnd,MCM_GETUNICODEFORMAT,0,0)
3227 #define MonthCal_HitTest(hwnd,pmchittest) SNDMSG(hwnd,MCM_HITTEST,0,(LPARAM)pmchittest)
3228 #define MonthCal_SetColor(hwnd,icolor,clr) SNDMSG(hwnd,MCM_SETCOLOR,(WPARAM)icolor,(LPARAM)clr)
3229 #define MonthCal_SetCurSel(hwnd,lpsystime) SNDMSG(hwnd,MCM_SETCURSEL,0,(LPARAM)lpsystime)
3230 #define MonthCal_SetDayState(hwnd,imonths,lpdatestatearray) SNDMSG(hwnd,MCM_SETDAYSTATE,(WPARAM)imonths,(LPARAM)lpdatestatearray)
3231 #define MonthCal_SetFirstDayOfWeek(hwnd,iday) SNDMSG(hwnd,MCM_SETFIRSTDAYOFWEEK,0,(LPARAM)iday)
3232 #define MonthCal_SetMaxSelCount(hwnd,imax) SNDMSG(hwnd,MCM_SETMAXSELCOUNT,(WPARAM)imax,0)
3233 #define MonthCal_SetMonthDelta(hwnd,idelta) SNDMSG(hwnd,MCM_SETMONTHDELTA,(WPARAM)idelta,0)
3234 #define MonthCal_SetSelRange(hwnd,systimearray) SNDMSG(hwnd,MCM_SETSELRANGE,0,(LPARAM)systimearray)
3235 #define MonthCal_SetToday(hwnd,systime) SNDMSG(hwnd,MCM_SETTODAY,0,(LPARAM)systime)
3236 #define MonthCal_SetUnicodeFormat(hwnd,unicode) SNDMSG(hwnd,MCM_SETUNICODEFORMAT,(WPARAM)unicode,0)
3237 #define MonthCal_SetRange(w,f,st) (BOOL)SNDMSG((w),MCM_SETRANGE,(WPARAM)(f),(LPARAM)(st))
3238 BOOL WINAPI ShowHideMenuCtl(HWND,UINT,PINT);
3239 #define TabCtrl_GetItem(w,i,p) (BOOL)SNDMSG((w),TCM_GETITEM,i,(LPARAM)(TC_ITEM*)(p))
3240 #define TabCtrl_SetItem(w,i,p) (BOOL)SNDMSG((w),TCM_SETITEM,i,(LPARAM)(TC_ITEM*)(p))
3241 #define TabCtrl_InsertItem(w,i,p) (int)SNDMSG((w),TCM_INSERTITEM,i,(LPARAM)(const TC_ITEM*)(p))
3242 #define TabCtrl_DeleteItem(w,i) (BOOL)SNDMSG((w),TCM_DELETEITEM,i,0)
3243 #define TabCtrl_DeleteAllItems(w) (BOOL)SNDMSG((w),TCM_DELETEALLITEMS,0,0)
3244 #define TabCtrl_GetItemRect(w,i,p) (BOOL)SNDMSG((w),TCM_GETITEMRECT,i,(LPARAM)(LPRECT)(p))
3245 #define TabCtrl_GetCurSel(w) (int)SNDMSG((w),TCM_GETCURSEL,0,0)
3246 #define TabCtrl_SetCurSel(w,i) (int)SNDMSG((w),TCM_SETCURSEL,i,0)
3247 #define TabCtrl_HitTest(w,p) (int)SNDMSG((w),TCM_HITTEST,0,(LPARAM)(TC_HITTESTINFO*)(p))
3248 #define TabCtrl_SetItemExtra(w,c) (BOOL)SNDMSG((w),TCM_SETITEMEXTRA,c,0)
3249 #define TabCtrl_AdjustRect(w,b,p) (int)SNDMSG((w),TCM_ADJUSTRECT,b,(LPARAM)(LPRECT)p)
3250 #define TabCtrl_SetItemSize(w,x,y) (DWORD)SNDMSG((w),TCM_SETITEMSIZE,0,MAKELPARAM(x,y))
3251 #define TabCtrl_RemoveImage(w,i) (void)SNDMSG((w),TCM_REMOVEIMAGE,i,0)
3252 #define TabCtrl_SetPadding(w,x,y) (void)SNDMSG((w),TCM_SETPADDING,0,MAKELPARAM(x,y))
3253 #define TabCtrl_GetRowCount(w) (int)SNDMSG((w),TCM_GETROWCOUNT,0,0)
3254 #define TabCtrl_GetToolTips(w) (HWND)SNDMSG((w),TCM_GETTOOLTIPS,0,0)
3255 #define TabCtrl_SetToolTips(w,t) (void)SNDMSG((w),TCM_SETTOOLTIPS,(WPARAM)t,0)
3256 #define TabCtrl_GetCurFocus(w) (int)SNDMSG((w),TCM_GETCURFOCUS,0,0)
3257 #define TabCtrl_SetCurFocus(w,i) (void)SNDMSG((w),TCM_SETCURFOCUS,i,0)
3258 #define TabCtrl_GetImageList(w) (HIMAGELIST)SNDMSG((w),TCM_GETIMAGELIST,0,0)
3259 #define TabCtrl_SetImageList(w,h) (HIMAGELIST)SNDMSG((w),TCM_SETIMAGELIST,0,(LPARAM)(UINT)(h))
3260 #define TabCtrl_GetItemCount(w) (int)SNDMSG((w),TCM_GETITEMCOUNT,0,0)
3261 BOOL WINAPI _TrackMouseEvent(LPTRACKMOUSEEVENT);
3262 #define TreeView_InsertItem(w,i) (HTREEITEM)SNDMSG((w),TVM_INSERTITEM,0,(LPARAM)(LPTV_INSERTSTRUCT)(i))
3263 #define TreeView_DeleteItem(w,i) (BOOL)SNDMSG((w),TVM_DELETEITEM,0,(LPARAM)(HTREEITEM)(i))
3264 #define TreeView_DeleteAllItems(w) (BOOL)SNDMSG((w),TVM_DELETEITEM,0,(LPARAM)TVI_ROOT)
3265 #define TreeView_Expand(w,i,c) (BOOL)SNDMSG((w),TVM_EXPAND,c,(LPARAM)(HTREEITEM)(i))
3266 #define TreeView_GetItemRect(w,i,p,c) (*(HTREEITEM*)p=(i),(BOOL)SNDMSG((w),TVM_GETITEMRECT,c,(LPARAM)(LPRECT)(p)))
3267 #define TreeView_GetCount(w) (UINT)SNDMSG((w),TVM_GETCOUNT,0,0)
3268 #define TreeView_GetIndent(w) (UINT)SNDMSG((w),TVM_GETINDENT,0,0)
3269 #define TreeView_SetIndent(w,i) (BOOL)SNDMSG((w),TVM_SETINDENT,i,0)
3270 #define TreeView_GetImageList(w,i) (HIMAGELIST)SNDMSG((w),TVM_GETIMAGELIST,i,0)
3271 #define TreeView_SetImageList(w,h,i) (HIMAGELIST)SNDMSG((w),TVM_SETIMAGELIST,i,(LPARAM)(HIMAGELIST)(h))
3272 #define TreeView_GetNextItem(w,i,c) (HTREEITEM)SNDMSG((w),TVM_GETNEXTITEM,c,(LPARAM)(HTREEITEM)(i))
3273 #define TreeView_GetChild(w,i) TreeView_GetNextItem(w,i,TVGN_CHILD)
3274 #define TreeView_GetNextSibling(w,i) TreeView_GetNextItem(w,i,TVGN_NEXT)
3275 #define TreeView_GetPrevSibling(w,i) TreeView_GetNextItem(w,i,TVGN_PREVIOUS)
3276 #define TreeView_GetParent(w,i) TreeView_GetNextItem(w,i,TVGN_PARENT)
3277 #define TreeView_GetFirstVisible(w) TreeView_GetNextItem(w,NULL,TVGN_FIRSTVISIBLE)
3278 #define TreeView_GetNextVisible(w,i) TreeView_GetNextItem(w,i,TVGN_NEXTVISIBLE)
3279 #define TreeView_GetPrevVisible(w,i) TreeView_GetNextItem(w,i,TVGN_PREVIOUSVISIBLE)
3280 #define TreeView_GetSelection(w) TreeView_GetNextItem(w,NULL,TVGN_CARET)
3281 #define TreeView_GetDropHilight(w) TreeView_GetNextItem(w,NULL,TVGN_DROPHILITE)
3282 #define TreeView_GetRoot(w) TreeView_GetNextItem(w,NULL,TVGN_ROOT)
3283 #define TreeView_Select(w,i,c) (BOOL)SNDMSG((w),TVM_SELECTITEM,c,(LPARAM)(HTREEITEM)(i))
3284 #define TreeView_SelectItem(w,i) TreeView_Select(w,i,TVGN_CARET)
3285 #define TreeView_SelectDropTarget(w,i) TreeView_Select(w,i,TVGN_DROPHILITE)
3286 #define TreeView_SelectSetFirstVisible(w,i) TreeView_Select(w,i,TVGN_FIRSTVISIBLE)
3287 #define TreeView_GetItem(w,i) (BOOL)SNDMSG((w),TVM_GETITEM,0,(LPARAM)(TV_ITEM*)(i))
3288 #define TreeView_SetItem(w,i) (BOOL)SNDMSG((w),TVM_SETITEM,0,(LPARAM)(const TV_ITEM*)(i))
3289 #define TreeView_EditLabel(w,i) (HWND)SNDMSG((w),TVM_EDITLABEL,0,(LPARAM)(HTREEITEM)(i))
3290 #define TreeView_GetEditControl(w) (HWND)SNDMSG((w),TVM_GETEDITCONTROL,0,0)
3291 #define TreeView_GetVisibleCount(w) (UINT)SNDMSG((w),TVM_GETVISIBLECOUNT,0,0)
3292 #define TreeView_HitTest(w,p) (HTREEITEM)SNDMSG((w),TVM_HITTEST,0,(LPARAM)(LPTV_HITTESTINFO)(p))
3293 #define TreeView_CreateDragImage(w,i) (HIMAGELIST)SNDMSG((w),TVM_CREATEDRAGIMAGE,0,(LPARAM)(HTREEITEM)(i))
3294 #define TreeView_SortChildren(w,i,r) (BOOL)SNDMSG((w),TVM_SORTCHILDREN,r,(LPARAM)(HTREEITEM)(i))
3295 #define TreeView_EnsureVisible(w,i) (BOOL)SNDMSG((w),TVM_ENSUREVISIBLE,0,(LPARAM)(HTREEITEM)(i))
3296 #define TreeView_SortChildrenCB(w,s,r) (BOOL)SNDMSG((w),TVM_SORTCHILDRENCB,r,(LPARAM)(LPTVSORTCB)(s))
3297 #define TreeView_EndEditLabelNow(w,f) (BOOL)SNDMSG((w),TVM_ENDEDITLABELNOW,f,0)
3298 #define TreeView_GetISearchString(w,s) (BOOL)SNDMSG((w),TVM_GETISEARCHSTRING,0,(LPARAM)s)
3299 #if (_WIN32_IE >= 0x0300)
3300 #define ListView_ApproximateViewRect(w,iw,ih,i) (DWORD)SNDMSG((w),LVM_APPROXIMATEVIEWRECT,(i),MAKELPARAM((iw),(ih)))
3301 #define ListView_SetExtendedListViewStyle(w,s) (DWORD)SNDMSG((w),LVM_SETEXTENDEDLISTVIEWSTYLE,0,(s))
3302 #define ListView_GetExtendedListViewStyle(w) (DWORD)SNDMSG((w),LVM_GETEXTENDEDLISTVIEWSTYLE,0,0)
3303 #define ListView_SetColumnOrderArray(w,i,a) (BOOL)SNDMSG((w),LVM_SETCOLUMNORDERARRAY,(WPARAM)(i),(LPARAM)(LPINT)(a))
3304 #define ListView_GetColumnOrderArray(w,i,a) (BOOL)SNDMSG((w),LVM_GETCOLUMNORDERARRAY,(WPARAM)(i),(LPARAM)(LPINT)(a))
3305 #define ListView_GetHeader(w) (HWND)SNDMSG((w),LVM_GETHEADER,0,0)
3306 #define ListView_GetHotCursor(w) (HCURSOR)SNDMSG((w),LVM_GETHOTCURSOR,0,0)
3307 #define ListView_GetHotItem(w) (INT)SNDMSG((w),LVM_GETHOTITEM,0,0)
3308 #define ListView_GetSubItemRect(w,i,is,c,p) (BOOL)SNDMSG((w),LVM_GETSUBITEMRECT,(WPARAM)(int)(i),((p)?(((LPRECT)(p))->left=(c),(((LPRECT)(p))->top=(is)),(LPARAM)(LPRECT)(p)):0))
3309 #define ListView_SetHotCursor(w,c) (HCURSOR)SNDMSG((w),LVM_SETHOTCURSOR,0,(LPARAM)(c))
3310 #define ListView_SetHotItem(w,i) (int)SNDMSG((w),LVM_SETHOTITEM,(WPARAM)(i),0)
3311 #define ListView_SetIconSpacing(w,x,y) (DWORD)SNDMSG((w),LVM_SETICONSPACING,0,MAKELONG(x,y))
3312 #define ListView_SubItemHitTest(w,p) (INT)SNDMSG((w),LVM_SUBITEMHITTEST,0,(LPARAM)(LPLVHITTESTINFO)(p))
3313 #define ListView_SetItemCountEx(w,i,f) (void)SNDMSG((w),LVM_SETITEMCOUNT,(WPARAM)(i),(LPARAM)(f))
3314 WINBOOL WINAPI ImageList_SetImageCount(HIMAGELIST,UINT);
3315 WINBOOL WINAPI ImageList_Copy(HIMAGELIST,int,HIMAGELIST,int,UINT);
3316 WINBOOL WINAPI ImageList_DrawIndirect(IMAGELISTDRAWPARAMS*);
3317 #define TabCtrl_SetMinTabWidth(hwnd,x) SNDMSG((hwnd),TCM_SETMINTABWIDTH,0,x)
3318 #define TabCtrl_DeselectAll(hwnd,fExcludeFocus) SNDMSG((hwnd),TCM_DESELECTALL,fExcludeFocus,0)
3319 #define TreeView_GetToolTips(w) (HWND)SNDMSG((w),TVM_GETTOOLTIPS,0,0)
3320 #define TreeView_SetToolTips(w,wt) (HWND)SNDMSG((w),TVM_SETTOOLTIPS,(WPARAM)(wt),0)
3321 #endif
3322 #if (_WIN32_IE >= 0x0400)
3323 #define ListView_GetBkImage(h,plvbki) (BOOL)SNDMSG((h),LVM_GETBKIMAGE,0,(LPARAM)(plvbki))
3324 #define ListView_SetBkImage(h,plvbki) (BOOL)SNDMSG((h),LVM_SETBKIMAGE,0,(LPARAM)(plvbki))
3325 #define ListView_SetExtendedListViewStyleEx(w,m,s) (DWORD)SNDMSG((w),LVM_SETEXTENDEDLISTVIEWSTYLE,(m),(s))
3326 #define ListView_SetWorkAreas(w,n,r) (BOOL)SNDMSG((w),LVM_SETWORKAREAS,(WPARAM)(n),(LPARAM)(RECT *)(r))
3327 #define ListView_GetWorkAreas(w,n,r) (BOOL)SNDMSG((w),LVM_GETWORKAREAS,(WPARAM)(n),(LPARAM)(RECT *)(r))
3328 #define ListView_GetNumberOfWorkAreas(w,n) (BOOL)SNDMSG((w),LVM_GETNUMBEROFWORKAREAS,0,(LPARAM)(UINT *)(n))
3329 #define ListView_SetHoverTime(w,t) (DWORD)SNDMSG((w),LVM_SETHOVERTIME,0,(LPARAM)(t))
3330 #define ListView_GetHoverTime(w) (DWORD)SNDMSG((w),LVM_GETHOVERTIME,0,0)
3331 #define ListView_GetSelectionMark(w) (INT)SNDMSG((w),LVM_GETSELECTIONMARK,0,0)
3332 #define ListView_SetSelectionMark(w,i) (INT)SNDMSG((w),LVM_SETSELECTIONMARK,0,(LPARAM)(i))
3333 #define ListView_SetToolTips(w,n) (HWND)SNDMSG((w),LVM_SETTOOLTIPS,(WPARAM)(n),0)
3334 #define ListView_GetToolTips(w) (HWND)SNDMSG((w),LVM_GETTOOLTIPS,0,0)
3335 #define ListView_SetUnicodeFormat(w,f) (BOOL)SNDMSG((w),LVM_SETUNICODEFORMAT,(WPARAM)(f),0)
3336 #define ListView_GetUnicodeFormat(w) (BOOL)SNDMSG((w),LVM_GETUNICODEFORMAT,0,0)
3337 #define TabCtrl_HighlightItem(w,i,fHighlight) SNDMSG((w),TCM_HIGHLIGHTITEM,(WPARAM)i,(LPARAM)MAKELONG(fHighlight,0))
3338 #define TabCtrl_SetExtendedStyle(w,dw) SNDMSG((w),TCM_SETEXTENDEDSTYLE,0,dw)
3339 #define TabCtrl_GetExtendedStyle(w) SNDMSG((w),TCM_GETEXTENDEDSTYLE,0,0)
3340 #define TabCtrl_SetUnicodeFormat(w,u) SNDMSG((w),TCM_SETUNICODEFORMAT,(WPARAM)(u),0)
3341 #define TabCtrl_GetUnicodeFormat(w) SNDMSG((w),TCM_GETUNICODEFORMAT,0,0)
3342 #define TreeView_GetBkColor(w) (COLORREF)SNDMSG((w),TVM_GETBKCOLOR,0,0)
3343 #define TreeView_GetInsertMarkColor(w) (COLORREF)SNDMSG((w),TVM_GETINSERTMARKCOLOR,0,0)
3344 #define TreeView_GetItemHeight(w) (int)SNDMSG((w),TVM_GETITEMHEIGHT,0,0)
3345 #define TreeView_GetScrollTime(w) (UINT)SNDMSG((w),TVM_GETSCROLLTIME,0,0)
3346 #define TreeView_GetTextColor(w) (COLORREF)SNDMSG((w),TVM_GETTEXTCOLOR,0,0)
3347 #define TreeView_SetBkColor(w,c) (COLORREF)SNDMSG((w),TVM_SETBKCOLOR,0,(LPARAM)(c))
3348 #define TreeView_SetInsertMarkColor(w,c) (COLORREF)SNDMSG((w),TVM_SETINSERTMARKCOLOR,0,(LPARAM)(c))
3349 #define TreeView_SetItemHeight(w,h) (int)SNDMSG((w),TVM_SETITEMHEIGHT,(WPARAM)(h),0)
3350 #define TreeView_SetScrollTime(w,t) (UINT)SNDMSG((w),TVM_SETSCROLLTIME,(WPARAM)(UINT)(t),0)
3351 #define TreeView_SetTextColor(w,c) (COLORREF)SNDMSG((w),TVM_SETTEXTCOLOR,0,(LPARAM)(c))
3352 #define TreeView_SetInsertMark(w,i,a) (BOOL)SNDMSG((w),TVM_SETINSERTMARK,(WPARAM)(a),(LPARAM)(i))
3353 #define TreeView_SetUnicodeFormat(w,u) (BOOL)SNDMSG((w),TVM_SETUNICODEFORMAT,(WPARAM)(u),0)
3354 #define TreeView_GetUnicodeFormat(w) (BOOL)SNDMSG((w),TVM_GETUNICODEFORMAT,0,0)
3355 #define TreeView_GetLastVisible(w) TreeView_GetNextItem(w,NULL,TVGN_LASTVISIBLE)
3356 #endif
3357 #if (_WIN32_IE >= 0x0500)
3358 #define TreeView_GetItemState(w,i,m) (UINT)SNDMSG((w),TVM_GETITEMSTATE,(WPARAM)(i),(LPARAM)(m))
3359 #define TreeView_SetItemState(w,i,d,m) \
3361 TVITEM _tvi;\
3362 _tvi.mask=TVIF_STATE;\
3363 _tvi.hItem=i; \
3364 _tvi.stateMask=m;\
3365 _tvi.state=d;\
3366 SNDMSG((w),TVM_SETITEM,0,(LPARAM)(TVITEM*)&_tvi);\
3368 #endif
3370 #ifdef UNICODE
3371 typedef HDITEMW HDITEM;
3372 typedef TOOLINFOW TOOLINFO,*PTOOLINFO,*LPTOOLINFO;
3373 typedef TTHITTESTINFOW TTHITTESTINFO,*LPHITTESTINFO,*LPTTHITTESTINFO;
3374 typedef TOOLTIPTEXTW TOOLTIPTEXT,*LPTOOLTIPTEXT;
3375 typedef NMTTDISPINFOW NMTTDISPINFO, *LPNMTTDISPINFO;
3376 typedef TV_ITEMW TV_ITEM,*LPTV_ITEM;
3377 typedef TVITEMW TVITEM,*LPTVITEM;
3378 #if (_WIN32_IE >= 0x0400)
3379 typedef TVITEMEXW TVITEMEX,*LPTVITEMEX;
3380 #endif
3381 typedef TV_INSERTSTRUCTW TV_INSERTSTRUCT,*LPTV_INSERTSTRUCT;
3382 typedef TVINSERTSTRUCTW TVINSERTSTRUCT,*LPTVINSERTSTRUCT;
3383 typedef NM_TREEVIEWW NM_TREEVIEW,*LPNM_TREEVIEW;
3384 typedef NMTREEVIEWW NMTREEVIEW,*LPNMTREEVIEW;
3385 typedef NMHDDISPINFOW NMHDDISPINFO, *LPNMHDDISPINFO;
3386 #define ACM_OPEN ACM_OPENW
3387 #define COMBOBOXEXITEM COMBOBOXEXITEMW
3388 #define PCOMBOBOXEXITEM PCOMBOBOXEXITEMW
3389 #define PCCOMBOBOXEXITEM PCCOMBOBOXEXITEMW
3390 #define CBEM_INSERTITEM CBEM_INSERTITEMW
3391 #define CBEM_SETITEM CBEM_SETITEMW
3392 #define CBEM_GETITEM CBEM_GETITEMW
3393 #define CBEN_ENDEDIT CBEN_ENDEDITW
3394 #define NMCBEENDEDIT NMCBEENDEDITW
3395 #define LPNMCBEENDEDIT LPNMCBEENDEDITW
3396 #define PNMCBEENDEDIT PNMCBEENDEDITW
3397 #if _WIN32_IE >= 0x0400
3398 #define NMCOMBOBOXEX NMCOMBOBOXEXW
3399 #define PNMCOMBOBOXEX PNMCOMBOBOXEXW
3400 #define CBEN_GETDISPINFO CBEN_GETDISPINFOW
3401 #define CBEN_DRAGBEGIN CBEN_DRAGBEGINW
3402 #define NMCBEDRAGBEGIN NMCBEDRAGBEGINW
3403 #define LPNMCBEDRAGBEGIN LPNMCBEDRAGBEGINW
3404 #define PNMCBEDRAGBEGIN PNMCBEDRAGBEGINW
3405 #endif /* _WIN32_IE >= 0x0400 */
3406 #define SB_GETTEXT SB_GETTEXTW
3407 #define SB_SETTEXT SB_SETTEXTW
3408 #define SB_GETTEXTLENGTH SB_GETTEXTLENGTHW
3409 #define HDM_INSERTITEM HDM_INSERTITEMW
3410 #define HDM_GETITEM HDM_GETITEMW
3411 #define HDM_SETITEM HDM_SETITEMW
3412 #define HDN_ITEMCHANGING HDN_ITEMCHANGINGW
3413 #define HDN_ITEMCHANGED HDN_ITEMCHANGEDW
3414 #define HDN_ITEMCLICK HDN_ITEMCLICKW
3415 #define HDN_ITEMDBLCLICK HDN_ITEMDBLCLICKW
3416 #define HDN_DIVIDERDBLCLICK HDN_DIVIDERDBLCLICKW
3417 #define HDN_BEGINTRACK HDN_BEGINTRACKW
3418 #define HDN_ENDTRACK HDN_ENDTRACKW
3419 #define HDN_TRACK HDN_TRACKW
3420 #if (_WIN32_IE >= 0x0300)
3421 #define HDN_GETDISPINFO HDN_GETDISPINFOW
3422 #endif
3423 #define HD_NOTIFY HD_NOTIFYW
3424 #define TBSAVEPARAMS TBSAVEPARAMSW
3425 #define TB_GETBUTTONTEXT TB_GETBUTTONTEXTW
3426 #define TB_SAVERESTORE TB_SAVERESTOREW
3427 #define TB_ADDSTRING TB_ADDSTRINGW
3428 #define TBN_GETBUTTONINFO TBN_GETBUTTONINFOW
3429 #if _WIN32_IE >= 0x400
3430 #define TB_GETBUTTONINFO TB_GETBUTTONINFOW
3431 #define TB_SETBUTTONINFO TB_SETBUTTONINFOW
3432 #define TB_INSERTBUTTON TB_INSERTBUTTONW
3433 #define TB_ADDBUTTONS TB_ADDBUTTONSW
3434 #define TB_MAPACCELERATOR TB_MAPACCELERATORW
3435 #define TB_GETSTRING TB_GETSTRINGW
3436 #define TBBUTTONINFO TBBUTTONINFOW
3437 #define LPTBBUTTONINFO LPTBBUTTONINFOW
3438 #define TBN_GETDISPINFO TBN_GETDISPINFOW
3439 #define NMTBDISPINFO NMTBDISPINFOW
3440 #define LPNMTBDISPINFO LPNMTBDISPINFOW
3441 #define NMTBGETINFOTIP NMTBGETINFOTIPW
3442 #define LPNMTBGETINFOTIP LPNMTBGETINFOTIPW
3443 #endif
3444 #define TBNOTIFY TBNOTIFYW
3445 #define LPTBNOTIFY LPTBNOTIFYW
3446 #define NMTOOLBAR NMTOOLBARW
3447 #define LPNMTOOLBAR LPNMTOOLBARW
3448 #define TTM_ADDTOOL TTM_ADDTOOLW
3449 #define TTM_DELTOOL TTM_DELTOOLW
3450 #define TTM_NEWTOOLRECT TTM_NEWTOOLRECTW
3451 #define TTM_GETTOOLINFO TTM_GETTOOLINFOW
3452 #define TTM_SETTOOLINFO TTM_SETTOOLINFOW
3453 #define TTM_HITTEST TTM_HITTESTW
3454 #define TTM_GETTEXT TTM_GETTEXTW
3455 #define TTM_UPDATETIPTEXT TTM_UPDATETIPTEXTW
3456 #define TTM_ENUMTOOLS TTM_ENUMTOOLSW
3457 #define TTM_GETCURRENTTOOL TTM_GETCURRENTTOOLW
3458 #define TTN_NEEDTEXT TTN_NEEDTEXTW
3459 #define TTN_GETDISPINFO TTN_GETDISPINFOW
3460 #define SB_GETTEXT SB_GETTEXTW
3461 #define SB_SETTEXT SB_SETTEXTW
3462 #define SB_GETTEXTLENGTH SB_GETTEXTLENGTHW
3463 #define LV_ITEM LV_ITEMW
3464 #define LVITEM LVITEMW
3465 #define LPSTR_TEXTCALLBACK LPSTR_TEXTCALLBACKW
3466 #if _WIN32_IE >= 0x0400
3467 #define LVBKIMAGE LVBKIMAGEW
3468 #define LPLVBKIMAGE LPLVBKIMAGEW
3469 #define LVM_SETBKIMAGE LVM_SETBKIMAGEW
3470 #define LVM_GETBKIMAGE LVM_GETBKIMAGEW
3471 #endif /* _WIN32_IE >= 0x400 */
3472 #define LVM_GETITEM LVM_GETITEMW
3473 #define LVM_SETITEM LVM_SETITEMW
3474 #define LVM_INSERTITEM LVM_INSERTITEMW
3475 #define LV_FINDINFO LV_FINDINFOW
3476 #define LVFINDINFO LVFINDINFOW
3477 #define LPFINDINFO LPFINDINFOW
3478 #define NMLVFINDITEM NMLVFINDITEMW
3479 #define PNMLVFINDITEM PNMLVFINDITEMW
3480 #define LPNMLVFINDITEM LPNMLVFINDITEMW
3481 #define LVM_FINDITEM LVM_FINDITEMW
3482 #define LVM_GETSTRINGWIDTH LVM_GETSTRINGWIDTHW
3483 #define LVM_EDITLABEL LVM_EDITLABELW
3484 #define LV_COLUMN LV_COLUMNW
3485 #define LVCOLUMN LVCOLUMNW
3486 #define LVM_GETCOLUMN LVM_GETCOLUMNW
3487 #define LVM_SETCOLUMN LVM_SETCOLUMNW
3488 #define LVM_INSERTCOLUMN LVM_INSERTCOLUMNW
3489 #define LVM_GETITEMTEXT LVM_GETITEMTEXTW
3490 #define LVM_SETITEMTEXT LVM_SETITEMTEXTW
3491 #define LVM_GETISEARCHSTRING LVM_GETISEARCHSTRINGW
3492 #define LVN_BEGINLABELEDIT LVN_BEGINLABELEDITW
3493 #define LVN_ENDLABELEDIT LVN_ENDLABELEDITW
3494 #define LVN_GETDISPINFO LVN_GETDISPINFOW
3495 #define LVN_SETDISPINFO LVN_SETDISPINFOW
3496 #define LVN_GETINFOTIP LVN_GETINFOTIPW
3497 #define NMLVGETINFOTIP NMLVGETINFOTIPW
3498 #define LPNMLVGETINFOTIP LPNMLVGETINFOTIPW
3499 #define LV_DISPINFO LV_DISPINFOW
3500 #define NMLVDISPINFO NMLVDISPINFOW
3501 #define LPNMLVDISPINFO LPNMLVDISPINFOW
3502 #define TVM_INSERTITEM TVM_INSERTITEMW
3503 #define TVM_GETITEM TVM_GETITEMW
3504 #define TVM_SETITEM TVM_SETITEMW
3505 #define TVM_EDITLABEL TVM_EDITLABELW
3506 #define TVM_GETISEARCHSTRING TVM_GETISEARCHSTRINGW
3507 #define TV_DISPINFO NMTVDISPINFOW
3508 #define NMTVDISPINFO NMTVDISPINFOW
3509 #define LPNMTVDISPINFO LPNMTVDISPINFOW
3510 #if (_WIN32_IE >= 0x0400)
3511 #define NMTVGETINFOTIP NMTVGETINFOTIPW
3512 #define LPNMTVGETINFOTIP LPNMTVGETINFOTIPW
3513 #define TVN_GETINFOTIP TVN_GETINFOTIPW
3514 #endif
3515 #define TVN_SELCHANGING TVN_SELCHANGINGW
3516 #define TVN_SELCHANGED TVN_SELCHANGEDW
3517 #define TVN_GETDISPINFO TVN_GETDISPINFOW
3518 #define TVN_SETDISPINFO TVN_SETDISPINFOW
3519 #define TVN_ITEMEXPANDING TVN_ITEMEXPANDINGW
3520 #define TVN_ITEMEXPANDED TVN_ITEMEXPANDEDW
3521 #define TVN_BEGINDRAG TVN_BEGINDRAGW
3522 #define TVN_BEGINRDRAG TVN_BEGINRDRAGW
3523 #define TVN_DELETEITEM TVN_DELETEITEMW
3524 #define TVN_BEGINLABELEDIT TVN_BEGINLABELEDITW
3525 #define TVN_ENDLABELEDIT TVN_ENDLABELEDITW
3526 #define TC_ITEMHEADER TC_ITEMHEADERW
3527 #define TC_ITEM TC_ITEMW
3528 #define TCITEM TCITEMW
3529 #define LPTCITEM LPTCITEMW
3530 #define TCM_GETITEM TCM_GETITEMW
3531 #define TCM_SETITEM TCM_SETITEMW
3532 #define TCM_INSERTITEM TCM_INSERTITEMW
3533 #define CreateStatusWindow CreateStatusWindowW
3534 #define DrawStatusText DrawStatusTextW
3535 #define ImageList_LoadImage ImageList_LoadImageW
3536 #define DTM_SETFORMAT DTM_SETFORMATW
3537 #define DTN_USERSTRING DTN_USERSTRINGW
3538 #define DTN_WMKEYDOWN DTN_WMKEYDOWNW
3539 #define DTN_FORMAT DTN_FORMATW
3540 #define DTN_FORMATQUERY DTN_FORMATQUERYW
3541 typedef REBARBANDINFOW REBARBANDINFO,*LPREBARBANDINFO;
3542 #define LPCREBARBANDINFO LPCREBARBANDINFOW
3543 #define REBARBANDINFO_V3_SIZE REBARBANDINFOW_V3_SIZE
3544 #define RB_INSERTBAND RB_INSERTBANDW
3545 #define RB_SETBANDINFO RB_SETBANDINFOW
3546 #else /* UNICODE */
3547 typedef HDITEMA HDITEM;
3548 typedef TOOLINFOA TOOLINFO,*PTOOLINFO,*LPTOOLINFO;
3549 typedef TTHITTESTINFOA TTHITTESTINFO,*LPHITTESTINFO,*LPTTHITTESTINFO;
3550 typedef TOOLTIPTEXTA TOOLTIPTEXT,*LPTOOLTIPTEXT;
3551 typedef NMTTDISPINFOA NMTTDISPINFO, *LPNMTTDISPINFO;
3552 typedef TV_ITEMA TV_ITEM,*LPTV_ITEM;
3553 typedef TVITEMA TVITEM,*LPTVITEM;
3554 #if (_WIN32_IE >= 0x0400)
3555 typedef TVITEMEXA TVITEMEX,*LPTVITEMEX;
3556 #endif
3557 typedef TV_INSERTSTRUCTA TV_INSERTSTRUCT,*LPTV_INSERTSTRUCT;
3558 typedef TVINSERTSTRUCTA TVINSERTSTRUCT,*LPTVINSERTSTRUCT;
3559 typedef NM_TREEVIEWA NM_TREEVIEW,*LPNM_TREEVIEW;
3560 typedef NMTREEVIEWA NMTREEVIEW,*LPNMTREEVIEW;
3561 typedef NMHDDISPINFOW NMHDDISPINFO, *LPNMHDDISPINFO;
3562 #define ACM_OPEN ACM_OPENA
3563 #define COMBOBOXEXITEM COMBOBOXEXITEMA
3564 #define PCOMBOBOXEXITEM PCOMBOBOXEXITEMA
3565 #define PCCOMBOBOXEXITEM PCCOMBOBOXEXITEMA
3566 #define CBEM_INSERTITEM CBEM_INSERTITEMA
3567 #define CBEM_SETITEM CBEM_SETITEMA
3568 #define CBEM_GETITEM CBEM_GETITEMA
3569 #define CBEN_ENDEDIT CBEN_ENDEDITA
3570 #define NMCBEENDEDIT NMCBEENDEDITA
3571 #define LPNMCBEENDEDIT LPNMCBEENDEDITA
3572 #define PNMCBEENDEDIT PNMCBEENDEDITA
3573 #if _WIN32_IE >= 0x0400
3574 #define TB_GETBUTTONINFO TB_GETBUTTONINFOA
3575 #define TB_SETBUTTONINFO TB_SETBUTTONINFOA
3576 #define TB_INSERTBUTTON TB_INSERTBUTTONA
3577 #define TB_ADDBUTTONS TB_ADDBUTTONSA
3578 #define TB_MAPACCELERATOR TB_MAPACCELERATORA
3579 #define TB_GETSTRING TB_GETSTRINGA
3580 #define NMCOMBOBOXEX NMCOMBOBOXEXA
3581 #define PNMCOMBOBOXEX PNMCOMBOBOXEXA
3582 #define CBEN_DRAGBEGIN CBEN_DRAGBEGINA
3583 #define CBEN_GETDISPINFO CBEN_GETDISPINFOA
3584 #define NMCBEDRAGBEGIN NMCBEDRAGBEGINA
3585 #define LPNMCBEDRAGBEGIN LPNMCBEDRAGBEGINA
3586 #define PNMCBEDRAGBEGIN PNMCBEDRAGBEGINA
3587 #define TBN_GETDISPINFO TBN_GETDISPINFOA
3588 #define NMTBDISPINFO NMTBDISPINFOA
3589 #define LPNMTBDISPINFO LPNMTBDISPINFOA
3590 #define NMTBGETINFOTIP NMTBGETINFOTIPA
3591 #define LPNMTBGETINFOTIP LPNMTBGETINFOTIPA
3592 #endif /* _WIN32_IE >= 0x0400 */
3593 #define SB_GETTEXT SB_GETTEXTA
3594 #define SB_SETTEXT SB_SETTEXTA
3595 #define SB_GETTEXTLENGTH SB_GETTEXTLENGTHA
3596 #define HDM_INSERTITEM HDM_INSERTITEMA
3597 #define HDM_GETITEM HDM_GETITEMA
3598 #define HDM_SETITEM HDM_SETITEMA
3599 #define HDN_ITEMCHANGING HDN_ITEMCHANGINGA
3600 #define HDN_ITEMCHANGED HDN_ITEMCHANGEDA
3601 #define HDN_ITEMCLICK HDN_ITEMCLICKA
3602 #define HDN_ITEMDBLCLICK HDN_ITEMDBLCLICKA
3603 #define HDN_DIVIDERDBLCLICK HDN_DIVIDERDBLCLICKA
3604 #define HDN_BEGINTRACK HDN_BEGINTRACKA
3605 #define HDN_ENDTRACK HDN_ENDTRACKA
3606 #define HDN_TRACK HDN_TRACKA
3607 #if (_WIN32_IE >= 0x0300)
3608 #define HDN_GETDISPINFO HDN_GETDISPINFOA
3609 #endif
3610 #define HD_NOTIFY HD_NOTIFYA
3611 #define TBSAVEPARAMS TBSAVEPARAMSA
3612 #define TB_GETBUTTONTEXT TB_GETBUTTONTEXTA
3613 #define TB_SAVERESTORE TB_SAVERESTOREA
3614 #define TB_ADDSTRING TB_ADDSTRINGA
3615 #define TBN_GETBUTTONINFO TBN_GETBUTTONINFOA
3616 #if _WIN32_IE >= 0x400
3617 #define TBBUTTONINFO TBBUTTONINFOA
3618 #define LPTBBUTTONINFO LPTBBUTTONINFOA
3619 #endif
3620 #define TBNOTIFY TBNOTIFYA
3621 #define LPTBNOTIFY LPTBNOTIFYA
3622 #define NMTOOLBAR NMTOOLBARA
3623 #define LPNMTOOLBAR LPNMTOOLBARA
3624 #define TTM_ADDTOOL TTM_ADDTOOLA
3625 #define TTM_DELTOOL TTM_DELTOOLA
3626 #define TTM_NEWTOOLRECT TTM_NEWTOOLRECTA
3627 #define TTM_GETTOOLINFO TTM_GETTOOLINFOA
3628 #define TTM_SETTOOLINFO TTM_SETTOOLINFOA
3629 #define TTM_HITTEST TTM_HITTESTA
3630 #define TTM_GETTEXT TTM_GETTEXTA
3631 #define TTM_UPDATETIPTEXT TTM_UPDATETIPTEXTA
3632 #define TTM_ENUMTOOLS TTM_ENUMTOOLSA
3633 #define TTM_GETCURRENTTOOL TTM_GETCURRENTTOOLA
3634 #define TTN_NEEDTEXT TTN_NEEDTEXTA
3635 #define TTN_GETDISPINFO TTN_GETDISPINFOA
3636 #define SB_GETTEXT SB_GETTEXTA
3637 #define SB_SETTEXT SB_SETTEXTA
3638 #define SB_GETTEXTLENGTH SB_GETTEXTLENGTHA
3639 #define LV_ITEM LV_ITEMA
3640 #define LVITEM LVITEMA
3641 #define LPSTR_TEXTCALLBACK LPSTR_TEXTCALLBACKA
3642 #if _WIN32_IE >= 0x0400
3643 #define LVBKIMAGE LVBKIMAGEA
3644 #define LPLVBKIMAGE LPLVBKIMAGEA
3645 #define LVM_SETBKIMAGE LVM_SETBKIMAGEA
3646 #define LVM_GETBKIMAGE LVM_GETBKIMAGEA
3647 #endif /* _WIN32_IE >= 0x0400 */
3648 #define LVM_GETITEM LVM_GETITEMA
3649 #define LVM_SETITEM LVM_SETITEMA
3650 #define LVM_INSERTITEM LVM_INSERTITEMA
3651 #define LV_FINDINFO LV_FINDINFOA
3652 #define LVFINDINFO LVFINDINFOA
3653 #define LPFINDINFO LPFINDINFOA
3654 #define NMLVFINDITEM NMLVFINDITEMA
3655 #define PNMLVFINDITEM PNMLVFINDITEMA
3656 #define LPNMLVFINDITEM LPNMLVFINDITEMA
3657 #define LVM_FINDITEM LVM_FINDITEMA
3658 #define LVM_GETSTRINGWIDTH LVM_GETSTRINGWIDTHA
3659 #define LVM_EDITLABEL LVM_EDITLABELA
3660 #define LV_COLUMN LV_COLUMNA
3661 #define LVCOLUMN LVCOLUMNA
3662 #define LVM_GETCOLUMN LVM_GETCOLUMNA
3663 #define LVM_SETCOLUMN LVM_SETCOLUMNA
3664 #define LVM_INSERTCOLUMN LVM_INSERTCOLUMNA
3665 #define LVM_GETITEMTEXT LVM_GETITEMTEXTA
3666 #define LVM_SETITEMTEXT LVM_SETITEMTEXTA
3667 #define LVM_GETISEARCHSTRING LVM_GETISEARCHSTRINGA
3668 #define LVN_BEGINLABELEDIT LVN_BEGINLABELEDITA
3669 #define LVN_ENDLABELEDIT LVN_ENDLABELEDITA
3670 #define LVN_GETDISPINFO LVN_GETDISPINFOA
3671 #define LVN_SETDISPINFO LVN_SETDISPINFOA
3672 #define LVN_GETINFOTIP LVN_GETINFOTIPA
3673 #define NMLVGETINFOTIP NMLVGETINFOTIPA
3674 #define LPNMLVGETINFOTIP LPNMLVGETINFOTIPA
3675 #define LV_DISPINFO LV_DISPINFOA
3676 #define NMLVDISPINFO NMLVDISPINFOA
3677 #define LPNMLVDISPINFO LPNMLVDISPINFOA
3678 #define TVM_INSERTITEM TVM_INSERTITEMA
3679 #define TVM_GETITEM TVM_GETITEMA
3680 #define TVM_SETITEM TVM_SETITEMA
3681 #define TVM_EDITLABEL TVM_EDITLABELA
3682 #define TVM_GETISEARCHSTRING TVM_GETISEARCHSTRINGA
3683 #define TV_DISPINFO NMTVDISPINFOA
3684 #define NMTVDISPINFO NMTVDISPINFOA
3685 #define LPNMTVDISPINFO LPNMTVDISPINFOA
3686 #if (_WIN32_IE >= 0x0400)
3687 #define NMTVGETINFOTIP NMTVGETINFOTIPA
3688 #define LPNMTVGETINFOTIP LPNMTVGETINFOTIPA
3689 #define TVN_GETINFOTIP TVN_GETINFOTIPA
3690 #endif
3691 #define TVN_SELCHANGING TVN_SELCHANGINGA
3692 #define TVN_SELCHANGED TVN_SELCHANGEDA
3693 #define TVN_GETDISPINFO TVN_GETDISPINFOA
3694 #define TVN_SETDISPINFO TVN_SETDISPINFOA
3695 #define TVN_ITEMEXPANDING TVN_ITEMEXPANDINGA
3696 #define TVN_ITEMEXPANDED TVN_ITEMEXPANDEDA
3697 #define TVN_BEGINDRAG TVN_BEGINDRAGA
3698 #define TVN_BEGINRDRAG TVN_BEGINRDRAGA
3699 #define TVN_DELETEITEM TVN_DELETEITEMA
3700 #define TVN_BEGINLABELEDIT TVN_BEGINLABELEDITA
3701 #define TVN_ENDLABELEDIT TVN_ENDLABELEDITA
3702 #define TC_ITEMHEADER TC_ITEMHEADERA
3703 #define TC_ITEM TC_ITEMA
3704 #define TCITEM TCITEMA
3705 #define LPTCITEM LPTCITEMA
3706 #define TCM_GETITEM TCM_GETITEMA
3707 #define TCM_SETITEM TCM_SETITEMA
3708 #define TCM_INSERTITEM TCM_INSERTITEMA
3709 #define CreateStatusWindow CreateStatusWindowA
3710 #define DrawStatusText DrawStatusTextA
3711 #define ImageList_LoadImage ImageList_LoadImageA
3712 #define DTM_SETFORMAT DTM_SETFORMATA
3713 #define DTN_USERSTRING DTN_USERSTRINGA
3714 #define DTN_WMKEYDOWN DTN_WMKEYDOWNA
3715 #define DTN_FORMAT DTN_FORMATA
3716 #define DTN_FORMATQUERY DTN_FORMATQUERYA
3717 typedef REBARBANDINFOA REBARBANDINFO,*LPREBARBANDINFO;
3718 #define LPCREBARBANDINFO LPCREBARBANDINFOA
3719 #define REBARBANDINFO_V3_SIZE REBARBANDINFOA_V3_SIZE
3720 #define RB_INSERTBAND RB_INSERTBANDA
3721 #define RB_SETBANDINFO RB_SETBANDINFOA
3722 #endif
3723 #endif /* RC_INVOKED */
3725 #ifdef _WIN32_WCE /* these are PPC only */
3727 COMMCTRLAPI HWND WINAPI CommandBar_Create(HINSTANCE, HWND, int);
3728 COMMCTRLAPI BOOL WINAPI CommandBar_Show(HWND, BOOL);
3729 COMMCTRLAPI int WINAPI CommandBar_AddBitmap(HWND, HINSTANCE, int, int, int, int);
3730 COMMCTRLAPI HWND WINAPI CommandBar_InsertComboBox(HWND, HINSTANCE, int, UINT, WORD, WORD);
3731 COMMCTRLAPI BOOL WINAPI CommandBar_InsertMenubar(HWND, HINSTANCE, WORD, WORD );
3732 COMMCTRLAPI BOOL WINAPI CommandBar_InsertMenubarEx(HWND, HINSTANCE, LPTSTR, WORD);
3733 COMMCTRLAPI BOOL WINAPI CommandBar_DrawMenuBar(HWND, WORD);
3734 COMMCTRLAPI HMENU WINAPI CommandBar_GetMenu(HWND, WORD);
3735 COMMCTRLAPI BOOL WINAPI CommandBar_AddAdornments(HWND, DWORD, DWORD);
3736 COMMCTRLAPI int WINAPI CommandBar_Height(HWND hwndCB);
3738 /* These two are not in the DLL */
3739 #define CommandBar_InsertButton(hwnd,i,lptbbutton) \
3740 SendMessage((hwnd),TB_INSERTBUTTON,(i),(lptbbutton))
3741 #define CommandBar_Destroy(hwnd) \
3742 DestroyWindow(hwnd)
3745 #endif /* _WIN32_WCE */
3747 #ifdef __cplusplus
3749 #endif
3750 #endif