4 #pragma GCC system_header
12 /* define _WIN32_IE if you really want it */
14 #define _WIN32_IE 0x0300
19 #ifdef __W32API_USE_DLLIMPORT__
20 #define COMMCTRLAPI DECLSPEC_IMPORT
29 #define SNDMSG ::SendMessage
31 #define SNDMSG SendMessage
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"
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
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
145 #if (_WIN32_IE >= 0x0500)
146 #if (_WIN32_WINNT >= 0x0501)
147 #define COMCTL32_VERSION 6
149 #define COMCTL32_VERSION 5
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)
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
188 #define CCS_NOMOVEY 2
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)
197 #define CCS_NOMOVEX 130
198 #define CCS_RIGHT 131
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
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
233 #define ILC_COLOR16 16
234 #define ILC_COLOR24 24
235 #define ILC_COLOR32 32
236 #define ILC_COLORDDB 254
238 #define ILC_PALETTE 2048
244 #define ILS_SATURATE 4
246 #define ILD_BLEND25 2
247 #define ILD_BLEND50 4
248 #define ILD_SELECTED 4
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
261 #define HDS_BUTTONS 2
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 */
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)
284 #define CDN_FIRST ((UINT)-601) /* also in commdlg.h */
285 #define CDN_LAST ((UINT)-699)
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 */
317 #define HDI_BITMAP 16
318 #if (_WIN32_IE >= 0x0300)
320 #define HDI_DI_SETITEM 64
321 #define HDI_ORDER 128
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
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
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)
368 #if (_WIN32_IE >= 0x0400)
369 #define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
370 #define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
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)
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)
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
435 #if (_WIN32_IE >= 0x0400)
436 #define TBSTATE_MARKED 0x0080
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
446 #if (_WIN32_IE >= 0x0400)
447 #define TBSTYLE_AUTOSIZE 16
448 #define TBSTYLE_NOPREFIX 32
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
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
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
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
513 #define STD_REPLACE 13
515 #define VIEW_LARGEICONS 0
516 #define VIEW_SMALLICONS 1
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)
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)
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)
550 #define TB_ADDBUTTONS (WM_USER+20)
551 #define TB_INSERTBUTTON (WM_USER+21)
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)
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
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)
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)
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
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
687 #define TTF_DI_SETITEM 0x8000
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
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)
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)
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
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)
785 #if (_WIN32_IE >= 0x0500)
786 #define UDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
787 #define UDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
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
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
825 #define TBTS_BOTTOM 2
828 #if (_WIN32_IE >= 0x0500)
829 #define TBS_REVERSED 0x0200
831 #if (_WIN32_IE >= 0x0501)
832 #define TBS_DOWNISLEFT 0x0400
834 #if _WIN32_IE >= 0x400
835 #define TBIF_BYINDEX 0x80000000
836 #define TBIF_COMMAND 32
838 #define TBIF_LPARAM 16
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
880 #define TB_LINEDOWN 1
882 #define TB_PAGEDOWN 3
883 #define TB_THUMBPOSITION 4
884 #define TB_THUMBTRACK 5
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
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
914 #define PBS_VERTICAL 4
917 #define LVS_SMALLICON 2
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
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
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
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)
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)
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
1057 #if (_WIN32_WINNT >= 0x0501)
1058 #define LVIF_GROUPID 128
1059 #define LVIF_COLUMNS 256
1061 #define LVIS_FOCUSED 1
1062 #define LVIS_SELECTED 2
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 */
1099 #define LVNI_FOCUSED 1
1100 #define LVNI_SELECTED 2
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
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)
1147 #define LVCF_WIDTH 2
1149 #define LVCF_SUBITEM 8
1150 #if (_WIN32_IE >= 0x0300)
1151 #define LVCF_IMAGE 16
1152 #define LVCF_ORDER 32
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
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)
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_GETINFOTIPA (LVN_FIRST-57)
1232 #define LVN_GETINFOTIPW (LVN_FIRST-58)
1233 #define LVKF_ALT 0x0001
1234 #define LVKF_CONTROL 0x0002
1235 #define LVKF_SHIFT 0x0004
1236 #define LVGIT_UNFOLDED 1
1238 #define TVS_HASBUTTONS 1
1239 #define TVS_HASLINES 2
1240 #define TVS_LINESATROOT 4
1241 #define TVS_EDITLABELS 8
1242 #define TVS_DISABLEDRAGDROP 16
1243 #define TVS_SHOWSELALWAYS 32
1244 #if (_WIN32_IE >= 0x0300)
1245 #define TVS_CHECKBOXES 256
1246 #define TVS_NOTOOLTIPS 128
1247 #define TVS_RTLREADING 64
1248 #define TVS_TRACKSELECT 512
1250 #if (_WIN32_IE >= 0x0400)
1251 #define TVS_FULLROWSELECT 4096
1252 #define TVS_INFOTIP 2048
1253 #define TVS_NONEVENHEIGHT 16384
1254 #define TVS_NOSCROLL 8192
1255 #define TVS_SINGLEEXPAND 1024
1257 #if( _WIN32_IE >= 0x0500 )
1258 #define TVS_NOHSCROLL 0x8000
1259 #endif /* _WIN32_IE >= 0x0500 */
1261 #define TVIF_IMAGE 2
1262 #define TVIF_PARAM 4
1263 #define TVIF_STATE 8
1264 #define TVIF_HANDLE 16
1265 #define TVIF_SELECTEDIMAGE 32
1266 #define TVIF_CHILDREN 64
1267 #if (_WIN32_IE >= 0x0400)
1268 #define TVIF_INTEGRAL 0x0080
1269 #endif /* _WIN32_IE >= 0x0400 */
1270 #define TVIS_FOCUSED 1
1271 #define TVIS_SELECTED 2
1273 #define TVIS_DROPHILITED 8
1274 #define TVIS_BOLD 16
1275 #define TVIS_EXPANDED 32
1276 #define TVIS_EXPANDEDONCE 64
1277 #define TVIS_OVERLAYMASK 0xF00
1278 #define TVIS_STATEIMAGEMASK 0xF000
1279 #define TVIS_USERMASK 0xF000
1280 #define I_CHILDRENCALLBACK (-1)
1281 #define TVI_ROOT ((HTREEITEM)0xFFFF0000)
1282 #define TVI_FIRST ((HTREEITEM)0xFFFF0001)
1283 #define TVI_LAST ((HTREEITEM)0xFFFF0002)
1284 #define TVI_SORT ((HTREEITEM)0xFFFF0003)
1285 #define TVSIL_NORMAL 0
1286 #define TVSIL_STATE 2
1287 #define TVM_INSERTITEMA TV_FIRST
1288 #define TVM_INSERTITEMW (TV_FIRST+50)
1289 #define TVM_DELETEITEM (TV_FIRST+1)
1290 #define TVM_EXPAND (TV_FIRST+2)
1291 #define TVM_GETITEMRECT (TV_FIRST+4)
1292 #define TVM_GETCOUNT (TV_FIRST+5)
1293 #define TVM_GETINDENT (TV_FIRST+6)
1294 #define TVM_SETINDENT (TV_FIRST+7)
1295 #define TVM_GETIMAGELIST (TV_FIRST+8)
1296 #define TVM_SETIMAGELIST (TV_FIRST+9)
1297 #define TVM_GETNEXTITEM (TV_FIRST+10)
1298 #define TVM_SELECTITEM (TV_FIRST+11)
1299 #define TVM_GETITEMA (TV_FIRST+12)
1300 #define TVM_GETITEMW (TV_FIRST+62)
1301 #define TVM_SETITEMA (TV_FIRST+13)
1302 #define TVM_SETITEMW (TV_FIRST+63)
1303 #define TVM_EDITLABELA (TV_FIRST+14)
1304 #define TVM_EDITLABELW (TV_FIRST+65)
1305 #define TVM_GETEDITCONTROL (TV_FIRST+15)
1306 #define TVM_GETVISIBLECOUNT (TV_FIRST+16)
1307 #define TVM_HITTEST (TV_FIRST+17)
1308 #define TVM_CREATEDRAGIMAGE (TV_FIRST+18)
1309 #define TVM_SORTCHILDREN (TV_FIRST+19)
1310 #define TVM_ENSUREVISIBLE (TV_FIRST+20)
1311 #define TVM_SORTCHILDRENCB (TV_FIRST+21)
1312 #define TVM_ENDEDITLABELNOW (TV_FIRST+22)
1313 #define TVM_GETISEARCHSTRINGA (TV_FIRST+23)
1314 #define TVM_GETISEARCHSTRINGW (TV_FIRST+64)
1315 #if (_WIN32_IE >= 0x0300)
1316 #define TVM_GETTOOLTIPS (TV_FIRST+25)
1317 #define TVM_SETTOOLTIPS (TV_FIRST+24)
1319 #if (_WIN32_IE >= 0x0400)
1320 #define TVM_GETBKCOLOR (TV_FIRST+31)
1321 #define TVM_GETINSERTMARKCOLOR (TV_FIRST+38)
1322 #define TVM_GETITEMHEIGHT (TV_FIRST+28)
1323 #define TVM_GETSCROLLTIME (TV_FIRST+34)
1324 #define TVM_GETTEXTCOLOR (TV_FIRST+32)
1325 #define TVM_SETBKCOLOR (TV_FIRST+29)
1326 #define TVM_SETINSERTMARK (TV_FIRST+26)
1327 #define TVM_SETINSERTMARKCOLOR (TV_FIRST+37)
1328 #define TVM_SETITEMHEIGHT (TV_FIRST+27)
1329 #define TVM_SETSCROLLTIME (TV_FIRST+33)
1330 #define TVM_SETTEXTCOLOR (TV_FIRST+30)
1331 #define TVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1332 #define TVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1334 #if (_WIN32_IE >= 0x0500)
1335 #define TVM_GETITEMSTATE (TV_FIRST+39)
1336 #define TVM_SETLINECOLOR (TV_FIRST+40)
1337 #define TVM_GETLINECOLOR (TV_FIRST+41)
1339 #define TVE_COLLAPSE 1
1340 #define TVE_EXPAND 2
1341 #define TVE_TOGGLE 3
1342 #define TVE_COLLAPSERESET 0x8000
1343 #if (_WIN32_IE >= 0x0300)
1344 #define TVE_EXPANDPARTIAL 0x4000
1346 #define TVC_UNKNOWN 0
1347 #define TVC_BYMOUSE 1
1348 #define TVC_BYKEYBOARD 2
1351 #define TVGN_PREVIOUS 2
1352 #define TVGN_PARENT 3
1353 #define TVGN_CHILD 4
1354 #define TVGN_FIRSTVISIBLE 5
1355 #define TVGN_NEXTVISIBLE 6
1356 #define TVGN_PREVIOUSVISIBLE 7
1357 #define TVGN_DROPHILITE 8
1358 #define TVGN_CARET 9
1359 #if (_WIN32_IE >= 0x0400)
1360 #define TVGN_LASTVISIBLE 10
1362 #define TVN_SELCHANGINGA (TVN_FIRST-1)
1363 #define TVN_SELCHANGINGW (TVN_FIRST-50)
1364 #define TVN_SELCHANGEDA (TVN_FIRST-2)
1365 #define TVN_SELCHANGEDW (TVN_FIRST-51)
1366 #define TVN_GETDISPINFOA (TVN_FIRST-3)
1367 #define TVN_GETDISPINFOW (TVN_FIRST-52)
1368 #define TVN_SETDISPINFOA (TVN_FIRST-4)
1369 #define TVN_SETDISPINFOW (TVN_FIRST-53)
1370 #define TVN_ITEMEXPANDINGA (TVN_FIRST-5)
1371 #define TVN_ITEMEXPANDINGW (TVN_FIRST-54)
1372 #define TVN_ITEMEXPANDEDA (TVN_FIRST-6)
1373 #define TVN_ITEMEXPANDEDW (TVN_FIRST-55)
1374 #define TVN_BEGINDRAGA (TVN_FIRST-7)
1375 #define TVN_BEGINDRAGW (TVN_FIRST-56)
1376 #define TVN_BEGINRDRAGA (TVN_FIRST-8)
1377 #define TVN_BEGINRDRAGW (TVN_FIRST-57)
1378 #define TVN_DELETEITEMA (TVN_FIRST-9)
1379 #define TVN_DELETEITEMW (TVN_FIRST-58)
1380 #define TVN_BEGINLABELEDITA (TVN_FIRST-10)
1381 #define TVN_BEGINLABELEDITW (TVN_FIRST-59)
1382 #define TVN_ENDLABELEDITA (TVN_FIRST-11)
1383 #define TVN_ENDLABELEDITW (TVN_FIRST-60)
1384 #define TVN_KEYDOWN (TVN_FIRST-12)
1385 #if (_WIN32_IE >= 0x0400)
1386 #define TVN_GETINFOTIPA (TVN_FIRST-13)
1387 #define TVN_GETINFOTIPW (TVN_FIRST-14)
1388 #define TVN_SINGLEEXPAND (TVN_FIRST-15)
1389 #define TVNRET_DEFAULT 0
1390 #define TVNRET_SKIPOLD 1
1391 #define TVNRET_SKIPNEW 2
1392 #endif /* _WIN32_IE >= 0x0400 */
1393 #define TVIF_DI_SETITEM 0x1000
1394 #define TVHT_NOWHERE 1
1395 #define TVHT_ONITEMICON 2
1396 #define TVHT_ONITEMLABEL 4
1397 #define TVHT_ONITEM (TVHT_ONITEMICON|TVHT_ONITEMLABEL|TVHT_ONITEMSTATEICON)
1398 #define TVHT_ONITEMINDENT 8
1399 #define TVHT_ONITEMBUTTON 16
1400 #define TVHT_ONITEMRIGHT 32
1401 #define TVHT_ONITEMSTATEICON 64
1402 #define TVHT_ABOVE 256
1403 #define TVHT_BELOW 512
1404 #define TVHT_TORIGHT 1024
1405 #define TVHT_TOLEFT 2048
1406 #define TCHT_NOWHERE 1
1407 #define TCHT_ONITEMICON 2
1408 #define TCHT_ONITEMLABEL 4
1409 #define TCHT_ONITEM (TCHT_ONITEMICON|TCHT_ONITEMLABEL)
1410 #define TCS_FORCEICONLEFT 16
1411 #define TCS_FORCELABELLEFT 32
1413 #define TCS_BUTTONS 256
1414 #define TCS_SINGLELINE 0
1415 #define TCS_MULTILINE 512
1416 #define TCS_RIGHTJUSTIFY 0
1417 #define TCS_FIXEDWIDTH 1024
1418 #define TCS_RAGGEDRIGHT 2048
1419 #define TCS_FOCUSONBUTTONDOWN 0x1000
1420 #define TCS_OWNERDRAWFIXED 0x2000
1421 #define TCS_TOOLTIPS 0x4000
1422 #define TCS_FOCUSNEVER 0x8000
1423 #if (_WIN32_IE >= 0x0300)
1424 #define TCS_BOTTOM 2
1426 #define TCS_VERTICAL 128
1427 #define TCS_SCROLLOPPOSITE 0x0001
1428 #define TCS_HOTTRACK 0x0040
1429 #define TCS_MULTISELECT 0x0004
1431 #if( _WIN32_IE >= 0x0400 )
1432 #define TCS_FLATBUTTONS 0x0008
1433 #define TCS_EX_FLATSEPARATORS 0x00000001
1434 #define TCS_EX_REGISTERDROP 0x00000002
1435 #endif /* _WIN32_IE >= 0x0400 */
1437 #define TCIF_IMAGE 2
1438 #define TCIF_RTLREADING 4
1439 #define TCIF_PARAM 8
1440 #if (_WIN32_IE >= 0x0400)
1441 #define TCIF_STATE 16
1443 #define TCIS_BUTTONPRESSED 1
1444 #if (_WIN32_IE >= 0x0400)
1445 #define TCIS_HIGHLIGHTED 2
1447 #define TCM_FIRST 0x1300
1448 #define TCM_GETIMAGELIST (TCM_FIRST+2)
1449 #define TCM_SETIMAGELIST (TCM_FIRST+3)
1450 #define TCM_GETITEMCOUNT (TCM_FIRST+4)
1451 #define TCM_GETITEMA (TCM_FIRST+5)
1452 #define TCM_GETITEMW (TCM_FIRST+60)
1453 #define TCM_SETITEMA (TCM_FIRST+6)
1454 #define TCM_SETITEMW (TCM_FIRST+61)
1455 #define TCM_INSERTITEMA (TCM_FIRST+7)
1456 #define TCM_INSERTITEMW (TCM_FIRST+62)
1457 #define TCM_DELETEITEM (TCM_FIRST+8)
1458 #define TCM_DELETEALLITEMS (TCM_FIRST+9)
1459 #define TCM_GETITEMRECT (TCM_FIRST+10)
1460 #define TCM_GETCURSEL (TCM_FIRST+11)
1461 #define TCM_SETCURSEL (TCM_FIRST+12)
1462 #define TCM_HITTEST (TCM_FIRST+13)
1463 #define TCM_SETITEMEXTRA (TCM_FIRST+14)
1465 #define TCM_ADJUSTRECT (TCM_FIRST+40)
1466 #define TCM_SETITEMSIZE (TCM_FIRST+41)
1467 #define TCM_REMOVEIMAGE (TCM_FIRST+42)
1468 #define TCM_SETPADDING (TCM_FIRST+43)
1469 #define TCM_GETROWCOUNT (TCM_FIRST+44)
1470 #define TCM_GETTOOLTIPS (TCM_FIRST+45)
1471 #define TCM_SETTOOLTIPS (TCM_FIRST+46)
1472 #define TCM_GETCURFOCUS (TCM_FIRST+47)
1473 #define TCM_SETCURFOCUS (TCM_FIRST+48)
1474 #define TCM_SETMINTABWIDTH (TCM_FIRST + 49)
1475 #define TCM_DESELECTALL (TCM_FIRST + 50)
1476 #if (_WIN32_IE >=0x0400)
1477 #define TCM_HIGHLIGHTITEM (TCM_FIRST + 51)
1478 #define TCM_SETEXTENDEDSTYLE (TCM_FIRST + 52)
1479 #define TCM_GETEXTENDEDSTYLE (TCM_FIRST + 53)
1480 #define TCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1481 #define TCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1482 #endif /* _WIN32_IE >=0x0400 */
1483 #define TCN_KEYDOWN TCN_FIRST
1484 #define TCN_SELCHANGE (TCN_FIRST-1)
1485 #define TCN_SELCHANGING (TCN_FIRST-2)
1486 #define NM_OUTOFMEMORY (NM_FIRST-1)
1487 #define NM_CLICK (NM_FIRST-2)
1488 #define NM_DBLCLK (NM_FIRST-3)
1489 #define NM_RETURN (NM_FIRST-4)
1490 #define NM_RCLICK (NM_FIRST-5)
1491 #define NM_RDBLCLK (NM_FIRST-6)
1492 #define NM_SETFOCUS (NM_FIRST-7)
1493 #define NM_KILLFOCUS (NM_FIRST-8)
1494 #define NM_CUSTOMDRAW (NM_FIRST-12)
1495 #define NM_HOVER (NM_FIRST-13)
1496 #define NM_NCHITTEST (NM_FIRST-14)
1497 #define NM_KEYDOWN (NM_FIRST-15)
1498 #define NM_RELEASEDCAPTURE (NM_FIRST-16)
1499 #define NM_SETCURSOR (NM_FIRST-17)
1500 #define NM_CHAR (NM_FIRST-18)
1501 #define NM_TOOLTIPSCREATED (NM_FIRST-19)
1502 #define SBARS_SIZEGRIP 256
1503 #define CCM_FIRST 0x2000
1504 #define CCM_LAST (CCM_FIRST+0x200)
1505 #define CCM_SETBKCOLOR 8193
1506 #define CCM_SETCOLORSCHEME 8194
1507 #define CCM_GETCOLORSCHEME 8195
1508 #define CCM_GETDROPTARGET 8196
1509 #define CCM_SETUNICODEFORMAT 8197
1510 #define CCM_GETUNICODEFORMAT 8198
1511 #define CCM_SETVERSION 0x2007
1512 #define CCM_GETVERSION 0x2008
1513 #define CCM_SETNOTIFYWINDOW 0x2009
1514 #if (_WIN32_WINNT >= 0x0501)
1515 #define CCM_SETWINDOWTHEME 0x200b
1516 #define CCM_DPISCALE 0x200c
1518 #define ICC_LISTVIEW_CLASSES 1
1519 #define ICC_TREEVIEW_CLASSES 2
1520 #define ICC_BAR_CLASSES 4
1521 #define ICC_TAB_CLASSES 8
1522 #define ICC_UPDOWN_CLASS 16
1523 #define ICC_PROGRESS_CLASS 32
1524 #define ICC_HOTKEY_CLASS 64
1525 #define ICC_ANIMATE_CLASS 128
1526 #define ICC_WIN95_CLASSES 255
1527 #define ICC_DATE_CLASSES 256
1528 #define ICC_USEREX_CLASSES 512
1529 #define ICC_COOL_CLASSES 1024
1530 #if (_WIN32_IE >= 0x0400)
1531 #define ICC_INTERNET_CLASSES 2048
1532 #define ICC_PAGESCROLLER_CLASS 4096
1533 #define ICC_NATIVEFNTCTL_CLASS 8192
1534 #define INFOTIPSIZE 1024
1535 #endif /* _WIN32_IE */
1536 #if (_WIN32_WINNT >= 0x501)
1537 #define ICC_STANDARD_CLASSES 0x00004000
1538 #define ICC_LINK_CLASS 0x00008000
1542 #define GMR_VISIBLE 0
1543 #define GMR_DAYSTATE 1
1544 #define GDT_ERROR -1
1547 #define DTS_UPDOWN 1
1548 #define DTS_SHOWNONE 2
1549 #define DTS_SHORTDATEFORMAT 0
1550 #define DTS_LONGDATEFORMAT 4
1551 #define DTS_TIMEFORMAT 9
1552 #define DTS_APPCANPARSE 16
1553 #define DTS_RIGHTALIGN 32
1554 #if ( _WIN32_IE >= 0x500 )
1555 #define DTS_SHORTDATECENTURYFORMAT 0x000C
1556 #endif /* _WIN32_IE >= 0x500 */
1557 #define MCS_DAYSTATE 1
1558 #define MCS_MULTISELECT 2
1559 #define MCS_WEEKNUMBERS 4
1560 #if (_WIN32_IE >= 0x0400)
1561 #define MCS_NOTODAYCIRCLE 0x0008
1562 #define MCS_NOTODAY 0x0010
1563 #else /* _WIN32_IE >= 0x0400 */
1564 #define MCS_NOTODAY 0x0008
1565 #endif /* _WIN32_IE >= 0x0400 */
1566 #define DTM_GETSYSTEMTIME 0x1001
1567 #define DTM_SETSYSTEMTIME 0x1002
1568 #define DTM_GETRANGE 0x1003
1569 #define DTM_SETRANGE 0x1004
1570 #define DTM_SETFORMATA 0x1005
1571 #define DTM_SETFORMATW 0x1050
1572 #define DTM_SETMCCOLOR 0x1006
1573 #define DTM_GETMCCOLOR 0x1007
1574 #define DTM_GETMONTHCAL 0x1008
1575 #define DTM_SETMCFONT 0x1009
1576 #define DTM_GETMCFONT 0x100a
1577 #define DTN_USERSTRINGA ((UINT)-758)
1578 #define DTN_USERSTRINGW ((UINT)-745)
1579 #define DTN_WMKEYDOWNA ((UINT)-757)
1580 #define DTN_WMKEYDOWNW ((UINT)-744)
1581 #define DTN_FORMATA ((UINT)-756)
1582 #define DTN_FORMATW ((UINT)-743)
1583 #define DTN_FORMATQUERYA ((UINT)-755)
1584 #define DTN_FORMATQUERYW ((UINT)-742)
1585 #define DTN_DROPDOWN ((UINT)-754)
1586 #define DTN_CLOSEUP ((UINT)-753)
1587 #define DTN_DATETIMECHANGE ((UINT)-759)
1588 #define MCM_GETCURSEL 0x1001
1589 #define MCM_SETCURSEL 0x1002
1590 #define MCM_GETMAXSELCOUNT 0x1003
1591 #define MCM_SETMAXSELCOUNT 0x1004
1592 #define MCM_GETSELRANGE 0x1005
1593 #define MCM_SETSELRANGE 0x1006
1594 #define MCM_GETMONTHRANGE 0x1007
1595 #define MCM_SETDAYSTATE 0x1008
1596 #define MCM_GETMINREQRECT 0x1009
1597 #define MCM_SETCOLOR 0x100a
1598 #define MCM_GETCOLOR 0x100b
1599 #define MCM_SETTODAY 0x100c
1600 #define MCM_GETTODAY 0x100d
1601 #define MCM_HITTEST 0x100e
1602 #define MCM_SETFIRSTDAYOFWEEK 0x100f
1603 #define MCM_GETFIRSTDAYOFWEEK 0x1010
1604 #define MCM_GETRANGE 0x1011
1605 #define MCM_SETRANGE 0x1012
1606 #define MCM_GETMONTHDELTA 0x1013
1607 #define MCM_SETMONTHDELTA 0x1014
1608 #define MCM_GETMAXTODAYWIDTH 0x1015
1609 #define MCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1610 #define MCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1611 #define MCN_SELCHANGE ((UINT)-749)
1612 #define MCN_GETDAYSTATE ((UINT)-747)
1613 #define MCN_SELECT ((UINT)-746)
1614 #define ODT_HEADER 100
1616 #define ODT_LISTVIEW 102
1617 #define SB_SETBKCOLOR 0x2001
1618 #if (_WIN32_IE >= 0x0300)
1619 #define SB_ISSIMPLE 1038
1620 #define MCSC_BACKGROUND 0
1622 #define MCSC_TITLEBK 2
1623 #define MCSC_TITLETEXT 3
1624 #define MCSC_MONTHBK 4
1625 #define MCSC_TRAILINGTEXT 5
1627 #if (_WIN32_IE >= 0x0400)
1628 #define MCHT_TITLE 0x10000
1629 #define MCHT_CALENDAR 0x20000
1630 #define MCHT_TODAYLINK 0x30000
1631 #define MCHT_NEXT 0x1000000
1632 #define MCHT_PREV 0x2000000
1633 #define MCHT_NOWHERE 0x00
1634 #define MCHT_TITLEBK (MCHT_TITLE)
1635 #define MCHT_TITLEMONTH (MCHT_TITLE | 0x0001)
1636 #define MCHT_TITLEYEAR (MCHT_TITLE | 0x0002)
1637 #define MCHT_TITLEBTNNEXT (MCHT_TITLE | MCHT_NEXT | 0x0003)
1638 #define MCHT_TITLEBTNPREV (MCHT_TITLE | MCHT_PREV | 0x0003)
1639 #define MCHT_CALENDARBK (MCHT_CALENDAR)
1640 #define MCHT_CALENDARDATE (MCHT_CALENDAR | 0x0001)
1641 #define MCHT_CALENDARDATENEXT (MCHT_CALENDARDATE | MCHT_NEXT)
1642 #define MCHT_CALENDARDATEPREV (MCHT_CALENDARDATE | MCHT_PREV)
1643 #define MCHT_CALENDARDAY (MCHT_CALENDAR | 0x0002)
1644 #define MCHT_CALENDARWEEKNUM (MCHT_CALENDAR | 0x0003)
1645 #endif /* _WIN32_IE >= 0x0400 */
1646 #define RBS_TOOLTIPS 256
1647 #define RBS_VARHEIGHT 512
1648 #define RBS_BANDBORDERS 1024
1649 #define RBS_FIXEDORDER 2048
1650 #define RBIM_IMAGELIST 1
1651 #define RB_SETCOLORSCHEME CCM_SETCOLORSCHEME
1652 #define RB_GETCOLORSCHEME CCM_GETCOLORSCHEME
1653 #define RBBS_BREAK 0x0001
1654 #define RBBS_FIXEDSIZE 0x0002
1655 #define RBBS_CHILDEDGE 0x0004
1656 #define RBBS_HIDDEN 0x0008
1657 #define RBBS_NOVERT 0x0010
1658 #define RBBS_FIXEDBMP 0x0020
1659 #define RBBS_VARIABLEHEIGHT 0x0040
1660 #define RBBS_GRIPPERALWAYS 0x0080
1661 #define RBBS_NOGRIPPER 0x0100
1662 #if (_WIN32_IE >= 0x0500)
1663 #define RBBS_USECHEVRON 0x0200
1664 #if (_WIN32_IE >= 0x0501)
1665 #define RBBS_HIDETITLE 0x0400
1666 #define RBBS_TOPALIGN 0x0800
1667 #endif /* _WIN32_IE >= 0x0501 */
1668 #endif /* _WIN32_IE >= 0x0500 */
1669 #define RBBIM_STYLE 1
1670 #define RBBIM_COLORS 2
1671 #define RBBIM_TEXT 4
1672 #define RBBIM_IMAGE 8
1673 #define RBBIM_CHILD 16
1674 #define RBBIM_CHILDSIZE 32
1675 #define RBBIM_SIZE 64
1676 #define RBBIM_BACKGROUND 128
1677 #define RBBIM_ID 256
1678 #define RB_INSERTBANDA (WM_USER+1)
1679 #define RB_INSERTBANDW (WM_USER+10)
1680 #define RB_DELETEBAND (WM_USER+2)
1681 #define RB_GETBARINFO (WM_USER+3)
1682 #define RB_SETBARINFO (WM_USER+4)
1683 #define RB_GETBANDCOUNT (WM_USER+12)
1684 #define RB_GETROWCOUNT (WM_USER+13)
1685 #define RB_GETROWHEIGHT (WM_USER+14)
1686 #define RB_SETBANDINFOA (WM_USER+6)
1687 #define RB_SETBANDINFOW (WM_USER+11)
1688 #define RB_SETPARENT (WM_USER+7)
1689 #define RBN_HEIGHTCHANGE RBN_FIRST
1690 #if (_WIN32_IE >= 0x0300)
1691 #define LVN_ODCACHEHINT (LVN_FIRST-13)
1692 #define LVN_ODFINDITEMA (LVN_FIRST-52)
1693 #define LVN_ODFINDITEMW (LVN_FIRST-79)
1694 #define LVN_ITEMACTIVATE (LVN_FIRST-14)
1695 #define LVN_ODSTATECHANGED (LVN_FIRST-15)
1697 #define LVN_ODFINDITEM LVN_ODFINDITEMW
1699 #define LVN_ODFINDITEM LVN_ODFINDITEMA
1701 #endif /* _WIN32_IE */
1702 #if (_WIN32_IE >= 0x0400)
1703 #define SB_SETICON 1039
1704 #define SB_SETTIPTEXTA 1040
1705 #define SB_SETTIPTEXTW 1041
1706 #define SB_GETTIPTEXTA 1042
1707 #define SB_GETTIPTEXTW 1043
1708 #define SB_GETICON 1044
1709 #define SB_SETUNICODEFORMAT 0x2005
1710 #define SB_GETUNICODEFORMAT 0x2006
1711 #define PGF_INVISIBLE 0
1712 #define PGF_NORMAL 1
1713 #define PGF_GRAYED 2
1714 #define PGF_DEPRESSED 4
1716 #define PGB_TOPORLEFT 0
1717 #define PGB_BOTTOMORRIGHT 1
1718 #define PGF_SCROLLUP 1
1719 #define PGF_SCROLLDOWN 2
1720 #define PGF_SCROLLLEFT 4
1721 #define PGF_SCROLLRIGHT 8
1723 #define PGK_CONTROL 2
1725 #define PGF_CALCWIDTH 1
1726 #define PGF_CALCHEIGHT 2
1727 #define PGM_FIRST 0x1400
1728 #define PGM_SETCHILD (PGM_FIRST+1)
1729 #define PGM_RECALCSIZE (PGM_FIRST+2)
1730 #define PGM_FORWARDMOUSE (PGM_FIRST+3)
1731 #define PGM_SETBKCOLOR (PGM_FIRST+4)
1732 #define PGM_GETBKCOLOR (PGM_FIRST+5)
1733 #define PGM_SETBORDER (PGM_FIRST+6)
1734 #define PGM_GETBORDER (PGM_FIRST+7)
1735 #define PGM_SETPOS (PGM_FIRST+8)
1736 #define PGM_GETPOS (PGM_FIRST+9)
1737 #define PGM_SETBUTTONSIZE (PGM_FIRST+10)
1738 #define PGM_GETBUTTONSIZE (PGM_FIRST+11)
1739 #define PGM_GETBUTTONSTATE (PGM_FIRST+12)
1740 #define PGM_GETDROPTARGET CCM_GETDROPTARGET
1741 #define RBS_REGISTERDROP 4096
1742 #define RBS_AUTOSIZE 8192
1743 #define RBS_VERTICALGRIPPER 16384
1744 #define RBS_DBLCLKTOGGLE 32768
1745 #define RBBIM_IDEALSIZE 512
1746 #define RBBIM_LPARAM 1024
1747 #define RBBIM_HEADERSIZE 2048
1748 #define RB_HITTEST (WM_USER+8)
1749 #define RB_GETRECT (WM_USER+9)
1750 #define RB_IDTOINDEX (WM_USER+16)
1751 #define RB_GETTOOLTIPS (WM_USER+17)
1752 #define RB_SETTOOLTIPS (WM_USER+18)
1753 #define RB_SETBKCOLOR (WM_USER+19)
1754 #define RB_GETBKCOLOR (WM_USER+20)
1755 #define RB_SETTEXTCOLOR (WM_USER+21)
1756 #define RB_GETTEXTCOLOR (WM_USER+22)
1757 #define RB_SIZETORECT (WM_USER+23)
1758 #define RB_BEGINDRAG (WM_USER+24)
1759 #define RB_ENDDRAG (WM_USER+25)
1760 #define RB_DRAGMOVE (WM_USER+26)
1761 #define RB_GETBARHEIGHT (WM_USER+27)
1762 #define RB_GETBANDINFOW (WM_USER+28)
1763 #define RB_GETBANDINFOA (WM_USER+29)
1764 #define RB_MINIMIZEBAND (WM_USER+30)
1765 #define RB_MAXIMIZEBAND (WM_USER+31)
1766 #define RB_GETDROPTARGET CCM_GETDROPTARGET
1767 #define RB_GETBANDBORDERS (WM_USER+34)
1768 #define RB_SHOWBAND (WM_USER+35)
1769 #define RB_SETPALETTE (WM_USER+37)
1770 #define RB_GETPALETTE (WM_USER+38)
1771 #define RB_MOVEBAND (WM_USER+39)
1772 #define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1773 #define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1774 #define RBN_GETOBJECT (RBN_FIRST-1)
1775 #define RBN_LAYOUTCHANGED (RBN_FIRST-2)
1776 #define RBN_AUTOSIZE (RBN_FIRST-3)
1777 #define RBN_BEGINDRAG (RBN_FIRST-4)
1778 #define RBN_ENDDRAG (RBN_FIRST-5)
1779 #define RBN_DELETINGBAND (RBN_FIRST-6)
1780 #define RBN_DELETEDBAND (RBN_FIRST-7)
1781 #define RBN_CHILDSIZE (RBN_FIRST-8)
1783 #define RBNM_STYLE 2
1784 #define RBNM_LPARAM 4
1785 #define RBHT_NOWHERE 1
1786 #define RBHT_CAPTION 2
1787 #define RBHT_CLIENT 3
1788 #define RBHT_GRABBER 4
1790 #define SB_SETTIPTEXT SB_SETTIPTEXTW
1791 #define SB_GETTIPTEXT SB_GETTIPTEXTW
1792 #define RB_GETBANDINFO RB_GETBANDINFOW
1794 #define SB_SETTIPTEXT SB_SETTIPTEXTA
1795 #define SB_GETTIPTEXT SB_GETTIPTEXTA
1796 #define RB_GETBANDINFO RB_GETBANDINFOA
1799 #define RB_GETBANDINFO (WM_USER+5)
1800 #endif /* _WIN32_IE >= 0x0400 */
1801 #define CBEM_INSERTITEMA (WM_USER + 1)
1802 #define CBEM_SETIMAGELIST (WM_USER + 2)
1803 #define CBEM_GETIMAGELIST (WM_USER + 3)
1804 #define CBEM_GETITEMA (WM_USER + 4)
1805 #define CBEM_SETITEMA (WM_USER + 5)
1806 #define CBEM_DELETEITEM CB_DELETESTRING
1807 #define CBEM_GETCOMBOCONTROL (WM_USER + 6)
1808 #define CBEM_GETEDITCONTROL (WM_USER + 7)
1809 #define CBEM_SETEXSTYLE (WM_USER + 8)
1810 #define CBEM_GETEXSTYLE (WM_USER + 9)
1811 #if (_WIN32_IE >= 0x0400)
1812 #define CBEM_SETEXTENDEDSTYLE (WM_USER + 14)
1813 #define CBEM_GETEXTENDEDSTYLE (WM_USER + 9)
1814 #define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1815 #define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1816 #endif /* _WIN32_IE >= 0x0400 */
1817 #define CBEM_HASEDITCHANGED (WM_USER + 10)
1818 #define CBEM_INSERTITEMW (WM_USER + 11)
1819 #define CBEM_SETITEMW (WM_USER + 12)
1820 #define CBEM_GETITEMW (WM_USER + 13)
1821 #define DA_LAST 0x7fffffff
1822 #define DPA_APPEND 0x7fffffff
1824 #define DSA_APPEND 0x7fffffff
1826 #define DPAS_SORTED 1
1827 #define DPAS_INSERTBEFORE 2
1828 #define DPAS_INSERTAFTER 4
1829 #if (_WIN32_IE >= 0x400)
1830 #define WSB_PROP_CYVSCROLL 1
1831 #define WSB_PROP_CXHSCROLL 2
1832 #define WSB_PROP_CYHSCROLL 4
1833 #define WSB_PROP_CXVSCROLL 8
1834 #define WSB_PROP_CXHTHUMB 16
1835 #define WSB_PROP_CYVTHUMB 32
1836 #define WSB_PROP_VBKGCOLOR 64
1837 #define WSB_PROP_HBKGCOLOR 128
1838 #define WSB_PROP_VSTYLE 256
1839 #define WSB_PROP_HSTYLE 512
1840 #define WSB_PROP_WINSTYLE 1024
1841 #define WSB_PROP_PALETTE 2048
1842 #define WSB_PROP_MASK 0xfff
1843 #define FSB_FLAT_MODE 2
1844 #define FSB_ENCARTA_MODE 1
1845 #define FSB_REGULAR_MODE 0
1846 #endif /* _WIN32_IE >= 0x400 */
1847 #if (_WIN32_WINNT >= 0x0501)
1848 #define LIF_ITEMINDEX 0x00000001
1849 #define LIF_STATE 0x00000002
1850 #define LIF_ITEMID 0x00000004
1851 #define LIF_URL 0x00000008
1852 #define LIS_FOCUSED 0x00000001
1853 #define LIS_ENABLED 0x00000002
1854 #define LIS_VISITED 0x00000004
1855 #define LM_HITTEST (WM_USER + 768)
1856 #define LM_GETIDEALHEIGHT (WM_USER + 769)
1857 #define LM_SETITEM (WM_USER + 770)
1858 #define LM_GETITEM (WM_USER + 771)
1859 #define MAX_LINKID_TEXT 48
1860 #define L_MAX_URL_LENGTH 2084
1864 typedef struct tagCOMBOBOXEXITEMA
{
1874 } COMBOBOXEXITEMA
, *PCOMBOBOXEXITEMA
;
1875 typedef COMBOBOXEXITEMA CONST
*PCCOMBOEXITEMA
;
1876 typedef struct tagCOMBOBOXEXITEMW
{
1886 } COMBOBOXEXITEMW
, *PCOMBOBOXEXITEMW
;
1887 typedef COMBOBOXEXITEMW CONST
*PCCOMBOEXITEMW
;
1888 #if (_WIN32_IE >= 0x0400)
1891 COMBOBOXEXITEMA ceItem
;
1892 } NMCOMBOBOXEXA
, *PNMCOMBOBOXEXA
;
1895 COMBOBOXEXITEMW ceItem
;
1896 } NMCOMBOBOXEXW
, *PNMCOMBOBOXEXW
;
1900 WCHAR szText
[CBEMAXSTRLEN
];
1901 }NMCBEDRAGBEGINW
, *LPNMCBEDRAGBEGINW
, *PNMCBEDRAGBEGINW
;
1905 char szText
[CBEMAXSTRLEN
];
1906 }NMCBEDRAGBEGINA
, *LPNMCBEDRAGBEGINA
, *PNMCBEDRAGBEGINA
;
1907 typedef struct tagNMIPADDRESS
{
1911 } NMIPADDRESS
, *LPNMIPADDRESS
;
1912 typedef struct tagLVKEYDOWN
{
1916 } NMLVKEYDOWN
, *LPNMLVKEYDOWN
;
1922 } NMPGCALCSIZE
, *LPNMPGCALCSIZE
;
1931 } NMPGSCROLL
, *LPNMPGSCROLL
;
1932 typedef struct tagNMSELCHANGE
{
1934 SYSTEMTIME stSelStart
;
1935 SYSTEMTIME stSelEnd
;
1936 } NMSELCHANGE
, *LPNMSELCHANGE
;
1937 typedef struct tagNMTBHOTITEM
{
1942 } NMTBHOTITEM
, *LPNMTBHOTITEM
;
1951 } NMTBDISPINFOA
, *LPNMTBDISPINFOA
;
1960 } NMTBDISPINFOW
, *LPNMTBDISPINFOW
;
1961 typedef struct tagNMTBGETINFOTIPA
1968 } NMTBGETINFOTIPA
, *LPNMTBGETINFOTIPA
;
1969 typedef struct tagNMTBGETINFOTIPW
1976 } NMTBGETINFOTIPW
, *LPNMTBGETINFOTIPW
;
1977 typedef struct tagNMMOUSE
{
1979 DWORD_PTR dwItemSpec
;
1980 DWORD_PTR dwItemData
;
1983 } NMMOUSE
, *LPNMMOUSE
;
1984 #endif /*_WIN32_IE >= 0x0400 */
1985 #if (_WIN32_IE >= 0x0401)
1986 typedef struct tagNMTOOLTIPSCREATED
1990 } NMTOOLTIPSCREATED
, *LPNMTOOLTIPSCREATED
;
1992 typedef struct tagNMDATETIMECHANGE
1997 } NMDATETIMECHANGE
, *LPNMDATETIMECHANGE
;
2002 WCHAR szText
[CBEMAXSTRLEN
];
2004 } NMCBEENDEDITW
, *LPNMCBEENDEDITW
, *PNMCBEENDEDITW
;
2009 char szText
[CBEMAXSTRLEN
];
2011 } NMCBEENDEDITA
, *LPNMCBEENDEDITA
,*PNMCBEENDEDITA
;
2012 typedef struct _COLORMAP
{
2015 } COLORMAP
,*LPCOLORMAP
;
2020 } DRAGLISTINFO
,*LPDRAGLISTINFO
;
2021 typedef struct _TBBUTTON
{
2029 } TBBUTTON
,*PTBBUTTON
,*LPTBBUTTON
;
2030 typedef const TBBUTTON
*LPCTBBUTTON
;
2031 #if _WIN32_IE >= 0x400
2043 } TBBUTTONINFOA
, *LPTBBUTTONINFOA
;
2055 } TBBUTTONINFOW
, *LPTBBUTTONINFOW
;
2059 } TBINSERTMARK
, *LPTBINSERTMARK
;
2060 typedef struct tagLVBKIMAGEA
{
2067 } LVBKIMAGEA
, *LPLVBKIMAGEA
;
2068 typedef struct tagLVBKIMAGEW
{
2075 } LVBKIMAGEW
, *LPLVBKIMAGEW
;
2076 #endif /* _WIN32_IE >= 0x400 */
2083 } TBNOTIFY
,*LPTBNOTIFY
;
2087 LPCTSTR pszValueName
;
2089 typedef struct _IMAGEINFO
{
2095 } IMAGEINFO
, *LPIMAGEINFO
;
2096 typedef struct _IMAGELIST
*HIMAGELIST
;
2097 typedef struct _HDITEMA
{
2105 #if (_WIN32_IE >= 0x0300)
2109 #if (_WIN32_IE >= 0x0500)
2113 } HDITEMA
, * LPHDITEMA
;
2114 typedef struct _HDITEMW
{
2122 #if (_WIN32_IE >= 0x0300)
2126 #if (_WIN32_IE >= 0x0500)
2130 } HDITEMW
, * LPHDITEMW
;
2131 /* for backward compatibility */
2132 #define HD_ITEMA HDITEMA
2133 #define HD_ITEMW HDITEMW
2134 #define HD_ITEM HDITEM
2135 typedef struct _HD_LAYOUT
{
2138 } HDLAYOUT
, *LPHDLAYOUT
;
2139 #define HD_LAYOUT HDLAYOUT /* backward compatibility */
2140 typedef struct _HD_HITTESTINFO
{
2144 } HD_HITTESTINFO
, *LPHDHITTESTINFO
;
2145 typedef struct _HD_NOTIFYA
{
2151 typedef struct _HD_NOTIFYW
{
2157 /* FIXME: NMHEADER structure (base for all events of the comctl controls)
2158 is the same as HD_NOTIFY depending on the value of _WIN32_IE macro.
2159 I'm defining both for now. */
2160 typedef struct _NMHEADERA
{
2165 } NMHEADERA
, *LPNMHEADERA
;
2167 typedef struct _NMHEADERW
{
2172 } NMHEADERW
, *LPNMHEADERW
;
2174 #define NMHEADER NMHEADERW
2175 #define LPNMHEADER LPNMHEADERW
2177 #define NMHEADER NMHEADERA
2178 #define LPNMHEADER LPNMHEADERA
2181 typedef struct tagNMHDDISPINFOA
{
2189 } NMHDDISPINFOA
, *LPNMHDDISPINFOA
;
2190 typedef struct tagNMHDDISPINFOW
{
2198 } NMHDDISPINFOW
, *LPNMHDDISPINFOW
;
2199 typedef struct tagNMCUSTOMDRAWINFO
{
2207 } NMCUSTOMDRAW
, *LPNMCUSTOMDRAW
;
2208 typedef struct tagNMLVCUSTOMDRAW
{
2212 #if _WIN32_IE >= 0x0400
2215 } NMLVCUSTOMDRAW
, *LPNMLVCUSTOMDRAW
;
2216 #if (_WIN32_IE >= 0x0400)
2217 typedef struct tagNMLVGETINFOTIPA
2226 } NMLVGETINFOTIPA
, *LPNMLVGETINFOTIPA
;
2227 typedef struct tagNMLVGETINFOTIPW
2236 } NMLVGETINFOTIPW
, *LPNMLVGETINFOTIPW
;
2237 #endif /* _WIN32_IE >= 0x0400 */
2238 typedef struct tagNMTVCUSTOMDRAW
{
2242 #if _WIN32_IE >= 0x0400
2245 } NMTVCUSTOMDRAW
, *LPNMTVCUSTOMDRAW
;
2246 #if (_WIN32_IE >= 0x400)
2247 typedef struct _NMTBCUSTOMDRAW
{
2249 HBRUSH hbrMonoDither
;
2254 COLORREF clrTextHighlight
;
2255 COLORREF clrBtnFace
;
2256 COLORREF clrBtnHighlight
;
2257 COLORREF clrHighlightHotTrack
;
2260 int nHLStringBkMode
;
2261 #if (_WIN32_WINNT >= 0x0501)
2264 } NMTBCUSTOMDRAW
, * LPNMTBCUSTOMDRAW
;
2265 typedef struct tagNMITEMACTIVATE
{
2275 } NMITEMACTIVATE
, *LPNMITEMACTIVATE
;
2276 #endif /* _WIN32_IE >= 0x0400 */
2277 typedef struct tagTBADDBITMAP
{
2280 } TBADDBITMAP
,*LPTBADDBITMAP
;
2281 typedef struct tagTBSAVEPARAMSA
{
2284 LPCSTR pszValueName
;
2286 typedef struct tagTBSAVEPARAMSW
{
2289 LPCWSTR pszValueName
;
2297 } TBREPLACEBITMAP
,*LPTBREPLACEBITMAP
;
2298 typedef struct tagNMTOOLBARA
{
2304 #if (_WIN32_IE >= 0x500)
2307 } NMTOOLBARA
, *LPNMTOOLBARA
;
2308 #define TBNOTIFYA NMTOOLBARA
2309 #define LPTBNOTIFYA LPNMTOOLBARA
2310 typedef struct tagNMTOOLBARW
{
2316 #if (_WIN32_IE >= 0x500)
2319 } NMTOOLBARW
, *LPNMTOOLBARW
;
2320 #define TBNOTIFYW NMTOOLBARW
2321 #define LPTBNOTIFYW LPNMTOOLBARW
2322 typedef struct tagTOOLINFOA
{
2330 #if (_WIN32_IE >= 0x0300)
2333 } TTTOOLINFOA
,*LPTTTOOLINFOA
,*PTOOLINFOA
;
2334 #define TOOLINFOA TTTOOLINFOA
2335 #define LPTOOLINFOA LPTTTOOLINFOA
2336 #define TTTOOLINFOA_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lpszText)
2337 #define TTTOOLINFOA_V2_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lParam)
2338 #define TTTOOLINFOA_V3_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lpReserved)
2339 typedef struct tagTOOLINFOW
{
2347 #if (_WIN32_IE >= 0x0300)
2350 } TTTOOLINFOW
,*LPTTTOOLINFOW
,*PTOOLINFOW
;
2351 #define TOOLINFOW TTTOOLINFOW
2352 #define LPTOOLINFOW LPTTTOOLINFOW
2353 #define TTTOOLINFOW_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lpszText)
2354 #define TTTOOLINFOW_V2_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lParam)
2355 #define TTTOOLINFOW_V3_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lpReserved)
2356 typedef struct _TT_HITTESTINFOA
{
2360 } TTHITTESTINFOA
,*LPTTHITTESTINFOA
;
2361 #define LPHITTESTINFOA LPTTHITTESTINFOA
2362 typedef struct _TT_HITTESTINFOW
{
2366 } TTHITTESTINFOW
,*LPTTHITTESTINFOW
;
2367 #define LPHITTESTINFOW LPTTHITTESTINFOW
2368 typedef struct tagNMTTDISPINFOA
{
2374 #if (_WIN32_IE >= 0x0300)
2377 } NMTTDISPINFOA
, *LPNMTTDISPINFOA
;
2378 #define TOOLTIPTEXTA NMTTDISPINFOA
2379 #define LPTOOLTIPTEXTA LPNMTTDISPINFOA
2380 typedef struct tagNMTTDISPINFOW
{
2386 #if (_WIN32_IE >= 0x0300)
2389 } NMTTDISPINFOW
, *LPNMTTDISPINFOW
;
2390 #define TOOLTIPTEXTW NMTTDISPINFOW
2391 #define LPTOOLTIPTEXTW LPNMTTDISPINFOW
2392 typedef struct _UDACCEL
{
2395 } UDACCEL
,*LPUDACCEL
;
2396 typedef struct _NM_UPDOWN
{
2400 } NMUPDOWN
,*LPNMUPDOWN
;
2401 /* for backward compatibility */
2402 #define NM_UPDOWN NMUPDOWN
2403 #define LPNM_UPDOWN LPNMUPDOWN
2404 typedef struct _LVITEMA
{
2414 #if (_WIN32_IE >= 0x0300)
2417 #if (_WIN32_WINNT >= 0x0501)
2422 } LVITEMA
, FAR
*LPLVITEMA
;
2423 #define _LV_ITEMA _LVITEMA
2424 #define LV_ITEMA LVITEMA
2425 typedef struct _LVITEMW
{
2435 #if (_WIN32_IE >= 0x0300)
2438 #if (_WIN32_WINNT >= 0x0501)
2443 } LVITEMW
, FAR
*LPLVITEMW
;
2444 #define _LV_ITEMW _LVITEMW
2445 #define LV_ITEMW LVITEMW
2446 typedef struct tagLVFINDINFOA
{
2452 } LVFINDINFOA
, FAR
* LPFINDINFOA
;
2453 #define _LV_FINDINFOA tagLVFINDINFOA
2454 #define LV_FINDINFOA LVFINDINFOA
2455 typedef struct tagLVFINDINFOW
{
2461 } LVFINDINFOW
, FAR
* LPFINDINFOW
;
2462 #define _LV_FINDINFOW tagLVFINDINFOW
2463 #define LV_FINDINFOW LVFINDINFOW
2464 typedef struct tagNMLVFINDITEMA
{
2468 } NMLVFINDITEMA
, *PNMLVFINDITEMA
, FAR
*LPNMLVFINDITEMA
;
2469 #define _NMLVFINDITEMA tagNMLVFINDITEMA
2470 typedef struct tagNMLVFINDITEMW
{
2474 } NMLVFINDITEMW
, *PNMLVFINDITEMW
, FAR
*LPNMLVFINDITEMW
;
2475 #define _NMLVFINDITEMW tagNMLVFINDITEMW
2476 typedef struct _LVHITTESTINFO
{
2480 #if (_WIN32_IE >= 0x0300)
2483 } LVHITTESTINFO
, FAR
*LPLVHITTESTINFO
;
2484 #define _LV_HITTESTINFO _LVHITTESTINFO
2485 #define LV_HITTESTINFO LVHITTESTINFO
2486 typedef struct _LVCOLUMNA
{
2493 #if (_WIN32_IE >= 0x0300)
2497 } LVCOLUMNA
, FAR
*LPLVCOLUMNA
;
2498 #define _LV_COLUMNA _LVCOLUMNA
2499 #define LV_COLUMNA LVCOLUMNA
2500 typedef struct _LVCOLUMNW
{
2507 #if (_WIN32_IE >= 0x0300)
2511 } LVCOLUMNW
, FAR
*LPLVCOLUMNW
;
2512 #define _LV_COLUMNW _LVCOLUMNW
2513 #define LV_COLUMNW LVCOLUMNW
2514 typedef int(CALLBACK
*PFNLVCOMPARE
)(LPARAM
,LPARAM
,LPARAM
);
2515 typedef struct tagNMLISTVIEW
{
2524 } NMLISTVIEW
, *LPNMLISTVIEW
;
2525 /* for backward compatibility */
2526 #define _NM_LISTVIEW tagNMLISTVIEW
2527 #define NM_LISTVIEW NMLISTVIEW
2528 #define LPNM_LISTVIEW LPNMLISTVIEW
2529 typedef struct tagNMLVDISPINFOA
{
2532 } NMLVDISPINFOA
, FAR
*LPNMLVDISPINFOA
;
2533 #define _LV_DISPINFOA tagNMLVDISPINFOA
2534 #define LV_DISPINFOA NMLVDISPINFOA
2535 typedef struct tagNMLVDISPINFOW
{
2538 } NMLVDISPINFOW
, FAR
*LPNMLVDISPINFOW
;
2539 #define _LV_DISPINFOW tagNMLVDISPINFOW
2540 #define LV_DISPINFOW NMLVDISPINFOW
2541 typedef struct _LV_KEYDOWN
{
2546 typedef struct tagNMLVCACHEHINT
{
2550 } NMLVCACHEHINT
, *LPNMLVCACHEHINT
;
2551 #define NM_CACHEHINT NMLVCACHEHINT
2552 #define PNM_CACHEHINT LPNMLVCACHEHINT
2553 #define LPNM_CACHEHINT LPNMLVCACHEHINT
2555 typedef struct _TREEITEM
*HTREEITEM
;
2556 typedef struct tagTVITEMA
{
2567 } TVITEMA
,*LPTVITEMA
;
2568 #define _TV_ITEMA tagTVITEMA
2569 #define TV_ITEMA TVITEMA
2570 #define LPTV_ITEMA LPTVITEMA
2571 typedef struct tagTVITEMW
{
2582 } TVITEMW
,*LPTVITEMW
;
2583 #define _TV_ITEMW tagTVITEMW
2584 #define TV_ITEMW TVITEMW
2585 #define LPTV_ITEMW LPTVITEMW
2586 #if (_WIN32_IE >= 0x0400)
2587 typedef struct tagTVITEMEXA
{
2599 } TVITEMEXA
, *LPTVITEMEXA
;
2600 typedef struct tagTVITEMEXW
{
2612 } TVITEMEXW
, *LPTVITEMEXW
;
2613 #endif /* _WIN32_IE >= 0x0400 */
2614 typedef struct tagTVINSERTSTRUCTA
{
2616 HTREEITEM hInsertAfter
;
2617 #if (_WIN32_IE >= 0x0400)
2618 _ANONYMOUS_UNION
union {
2625 } TVINSERTSTRUCTA
,*LPTVINSERTSTRUCTA
;
2626 #define _TV_INSERTSTRUCTA tagTVINSERTSTRUCTA
2627 #define TV_INSERTSTRUCTA TVINSERTSTRUCTA
2628 #define LPTV_INSERTSTRUCTA LPTVINSERTSTRUCTA
2629 typedef struct tagTVINSERTSTRUCTW
{
2631 HTREEITEM hInsertAfter
;
2632 #if (_WIN32_IE >= 0x0400)
2633 _ANONYMOUS_UNION
union {
2640 } TVINSERTSTRUCTW
,*LPTVINSERTSTRUCTW
;
2641 #define _TV_INSERTSTRUCTW tagTVINSERTSTRUCTW
2642 #define TV_INSERTSTRUCTW TVINSERTSTRUCTW
2643 #define LPTV_INSERTSTRUCTW LPTVINSERTSTRUCTW
2644 typedef struct tagTVHITTESTINFO
{
2648 } TVHITTESTINFO
, *LPTVHITTESTINFO
;
2649 #define _TV_HITTESTINFO tagTVHITTESTINFO
2650 #define TV_HITTESTINFO TVHITTESTINFO
2651 #define LPTV_HITTESTINFO LPTVHITTESTINFO
2652 typedef int(CALLBACK
*PFNTVCOMPARE
)(LPARAM
,LPARAM
,LPARAM
);
2653 typedef struct tagTVSORTCB
{
2655 PFNTVCOMPARE lpfnCompare
;
2657 } TVSORTCB
,*LPTVSORTCB
;
2658 #define _TV_SORTCB tagTVSORTCB
2659 #define TV_SORTCB TVSORTCB
2660 #define LPTV_SORTCB LPTVSORTCB
2661 typedef struct tagNMTREEVIEWA
{
2667 } NMTREEVIEWA
,*LPNMTREEVIEWA
;
2668 #define _NM_TREEVIEWA tagNMTREEVIEWA
2669 #define NM_TREEVIEWA NMTREEVIEWA
2670 #define LPNM_TREEVIEWA LPNMTREEVIEWA
2671 typedef struct tagNMTREEVIEWW
{
2677 } NMTREEVIEWW
,*LPNMTREEVIEWW
;
2678 #define _NM_TREEVIEWW tagNMTREEVIEWW
2679 #define NM_TREEVIEWW NMTREEVIEWW
2680 #define LPNM_TREEVIEWW LPNMTREEVIEWW
2681 typedef struct tagNMTVDISPINFOA
{
2684 } NMTVDISPINFOA
, *LPNMTVDISPINFOA
;
2685 #define _TV_DISPINFOA tagNMTVDISPINFOA
2686 #define TV_DISPINFOA NMTVDISPINFOA
2687 typedef struct tagNMTVDISPINFOW
{
2690 } NMTVDISPINFOW
, *LPNMTVDISPINFOW
;
2691 #define _TV_DISPINFOW tagNMTVDISPINFOW
2692 #define TV_DISPINFOW NMTVDISPINFOW
2693 #if (_WIN32_IE >= 0x0400)
2694 typedef struct tagNMTVGETINFOTIPA
{
2700 } NMTVGETINFOTIPA
, *LPNMTVGETINFOTIPA
;
2701 typedef struct tagNMTVGETINFOTIPW
{
2707 } NMTVGETINFOTIPW
, *LPNMTVGETINFOTIPW
;
2709 typedef struct _TV_KEYDOWN
{
2714 typedef struct _TC_ITEMHEADERA
{
2722 typedef struct _TC_ITEMHEADERW
{
2730 typedef struct tagTCITEMA
{
2732 #if (_WIN32_IE >= 0x0300)
2743 } TCITEMA
, *LPTCITEMA
;
2744 #define TC_ITEMA TCITEMA
2745 typedef struct tagTCITEMW
{
2747 #if (_WIN32_IE >= 0x0300)
2758 } TCITEMW
, *LPTCITEMW
;
2759 #define TC_ITEMW TCITEMW
2760 typedef struct tagTCHITTESTINFO
{
2763 } TCHITTESTINFO
, *LPTCHITTESTINFO
;
2764 #define TC_HITTESTINFO TCHITTESTINFO
2765 #define LPTC_HITTESTINFO LPTCHITTESTINFO
2766 typedef struct _TC_KEYDOWN
{
2771 #if (_WIN32_IE >= 0x0300)
2772 typedef struct tagINITCOMMONCONTROLSEX
{
2775 } INITCOMMONCONTROLSEX
,*LPINITCOMMONCONTROLSEX
;
2777 typedef struct tagPBRANGE
{
2780 } PBRANGE
,*PPBRANGE
;
2781 typedef struct tagCOLORSCHEME
{
2783 COLORREF clrBtnHighlight
;
2784 COLORREF clrBtnShadow
;
2785 } COLORSCHEME
,*LPCOLORSCHEME
;
2786 typedef struct tagMCHITTESTINFO
{
2791 }MCHITTESTINFO
, *PMCHITTESTINFO
;
2792 typedef DWORD MONTHDAYSTATE
;
2793 typedef MONTHDAYSTATE
*LPMONTHDAYSTATE
;
2794 typedef struct tagNMDAYSTATE
{
2798 LPMONTHDAYSTATE prgDayState
;
2799 }NMDAYSTATE
,*LPNMDAYSTATE
;
2800 typedef struct tagREBARINFO
{
2804 } REBARINFO
,*LPREBARINFO
;
2805 typedef struct tagREBARBANDINFOA
{
2820 #if (_WIN32_IE >= 0x0400)
2828 } REBARBANDINFOA
,*LPREBARBANDINFOA
;
2829 typedef struct tagREBARBANDINFOW
{
2844 #if (_WIN32_IE >= 0x0400)
2852 } REBARBANDINFOW
,*LPREBARBANDINFOW
;
2853 typedef REBARBANDINFOA
const *LPCREBARBANDINFOA
;
2854 typedef REBARBANDINFOW
const *LPCREBARBANDINFOW
;
2855 #define REBARBANDINFOA_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOA,wID)
2856 #define REBARBANDINFOW_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOW, wID)
2857 #if (_WIN32_IE >= 0x0300)
2858 typedef struct tagIMAGELISTDRAWPARAMS
{
2873 #if (_WIN32_WINNT >= 0x0501)
2878 } IMAGELISTDRAWPARAMS
,*LPIMAGELISTDRAWPARAMS
;
2879 #endif /* (_WIN32_IE >= 0x0300) */
2880 #if (_WIN32_IE >= 0x0400)
2881 typedef struct tagNMREBARCHILDSIZE
{
2887 } NMREBARCHILDSIZE
,*LPNMREBARCHILDSIZE
;
2888 typedef struct tagNMREBAR
{
2895 } NMREBAR
,*LPNMREBAR
;
2896 typedef struct tagNMRBAUTOSIZE
{
2901 } NMRBAUTOSIZE
,*LPNMRBAUTOSIZE
;
2902 #if (_WIN32_IE >= 0x0500)
2903 typedef struct tagNMREBARCHEVRON
{
2910 } NMREBARCHEVRON
, *LPNMREBARCHEVRON
;
2912 typedef struct _RB_HITTESTINFO
{
2916 } RBHITTESTINFO
,*LPRBHITTESTINFO
;
2918 typedef struct _DSA
*HDSA
;
2919 typedef struct _DPA
*HDPA
;
2920 typedef INT (CALLBACK
*PFNDPAENUMCALLBACK
)(PVOID
,PVOID
);
2921 typedef INT (CALLBACK
*PFNDSAENUMCALLBACK
)(PVOID
,PVOID
);
2922 typedef INT (CALLBACK
*PFNDPACOMPARE
)(PVOID
,PVOID
,LPARAM
);
2923 #if (_WIN32_WINNT >= 0x0501)
2924 typedef LRESULT (CALLBACK
*SUBCLASSPROC
)(HWND
,UINT
,WPARAM
,LPARAM
,UINT_PTR
,DWORD_PTR
);
2925 typedef struct tagLITEM
{
2930 WCHAR szID
[MAX_LINKID_TEXT
];
2931 WCHAR szUrl
[L_MAX_URL_LENGTH
];
2933 typedef struct tagLHITTESTINFO
{
2936 } LHITTESTINFO
,*PLHITTESTINFO
;
2937 typedef struct tagNMLINK
{
2941 #endif /* _WIN32_WINNT >= 0x0501 */
2943 #define INDEXTOOVERLAYMASK(i) ((i)<<8)
2944 #define INDEXTOSTATEIMAGEMASK(i) ((i)<<12)
2945 #define HANDLE_WM_NOTIFY(h,w,l,f) (f)((h),(int)(w),(NMHDR*)(l))
2946 #define FORWARD_WM_NOTIFY(h,i,p,f) (LRESULT)(f)((h),WM_NOTIFY,(WPARAM)(int)(i),(LPARAM)(NMHDR*)(p))
2947 #define CCSIZEOF_STRUCT(s,m) (((int)((PBYTE)(&((s*)0)->m)-((PBYTE)((s*)0))))+sizeof(((s*)0)->m))
2948 #define MAKEIPADDRESS(b1,b2,b3,b4) ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<<16)+((DWORD)(b3)<<8)+((DWORD)(b4))))
2949 #define MAKEIPRANGE(low,high) ((LPARAM)(WORD)(((BYTE)(high)<<8)+(BYTE)(low)))
2950 #define FIRST_IPADDRESS(a) ((a>>24) & 0xff)
2951 #define SECOND_IPADDRESS(a) ((a>>16) & 0xff)
2952 #define THIRD_IPADDRESS(a) ((a>>8) & 0xff)
2953 #define FOURTH_IPADDRESS(a) (a & 0xff)
2954 #define Animate_Create(w,i,s,hI) CreateWindow(ANIMATE_CLASS,NULL,s,0,0,0,0,w,(HMENU)(i),hI,NULL)
2955 #define Animate_Open(w,f) (BOOL)SNDMSG(w,ACM_OPEN,0,(LPARAM)f)
2956 #define Animate_OpenEx(w,h,s) (BOOL)SNDMSG(w,ACM_OPEN,(WPARAM)h,(LPARAM)(LPTSTR)(s))
2957 #define Animate_Play(w,f,t,r) (BOOL)SNDMSG(w,ACM_PLAY,(r),(LPARAM)MAKELONG(f,t))
2958 #define Animate_Stop(w) (BOOL)SNDMSG(w,ACM_STOP,0,0)
2959 #define Animate_Close(w) Animate_Open(w,NULL)
2960 #define Animate_Seek(w,f) Animate_Play(w,f,f,1)
2961 HBITMAP WINAPI
CreateMappedBitmap(HINSTANCE
,int,UINT
,LPCOLORMAP
,int);
2962 HWND WINAPI
CreateStatusWindowA(LONG
,LPCSTR
,HWND
,UINT
);
2963 HWND WINAPI
CreateStatusWindowW(LONG
,LPCWSTR
,HWND
,UINT
);
2964 HWND WINAPI
CreateToolbarEx(HWND
,DWORD
,UINT
,int,HINSTANCE
,UINT
,LPCTBBUTTON
,int,int,int,int,int,UINT
);
2965 HWND WINAPI
CreateUpDownControl(DWORD
,int,int,int,int,HWND
,int,HINSTANCE
,HWND
,int,int,int);
2966 #define DateTime_GetMonthCal(hwnd) SNDMSG(hwnd, DTM_GETMONTHCAL, 0, 0)
2967 #define DateTime_GetMonthCalColor(hwnd, icolor) SNDMSG(hwnd, DTM_GETMONTHCAL, (WPARAM)icolor,0)
2968 #define DateTime_GetMonthCalFont(hwnd) SNDMSG(hwnd,DTM_GETMCFONT,0,0)
2969 #define DateTime_GetRange(hwnd,lpsystimearray) SNDMSG(hwnd,DTM_GETRANGE,0,(LPARAM)lpsystimearray)
2970 #define DateTime_GetSystemtime(hwnd,lpsystime) SNDMSG(hwnd,DTM_GETSYSTEMTIME,0,(LPARAM)lpsystime)
2971 #define DateTime_SetFormat(hwnd,lpszformat) SNDMSG(hwnd,DTM_SETFORMAT,0,(LPARAM)lpszformat)
2972 #define DateTime_SetMonthCalColor(hwnd,icolor,clr) SNDMSG(hwnd,DTM_SETMCCOLOR,(WPARAM)icolor,(LPARAM)clr)
2973 #define DateTime_SetMonthCalFont(hwnd,hfont,lparam) SNDMSG(hwnd,DTM_SETMCFONT,(WPARAM)hfont,(LPARAM)lparam)
2974 #define DateTime_SetRange(hwnd,flags,lpsystimearray) SNDMSG(hwnd,DTM_SETRANGE,(WPARAM)flags,(LPARAM)lpsystimearray)
2975 #define DateTime_SetSystemtime(hwnd,flag,lpsystime) SNDMSG(hwnd,DTM_SETSYSTEMTIME,(WPARAM)flag,(LPARAM)lpsystime)
2976 void WINAPI
DrawInsert(HWND
,HWND
,int);
2977 void WINAPI
DrawStatusTextA(HDC
,LPRECT
,LPCSTR
,UINT
);
2978 void WINAPI
DrawStatusTextW(HDC
,LPRECT
,LPCWSTR
,UINT
);
2979 void WINAPI
GetEffectiveClientRect(HWND
,LPRECT
,LPINT
);
2980 #define Header_GetItemCount(w) (int)SNDMSG((w),HDM_GETITEMCOUNT,0,0)
2981 #define Header_InsertItem(w,i,phdi) (int)SNDMSG((w),HDM_INSERTITEM,(WPARAM)(int)(i),(LPARAM)(const HD_ITEM*)(phdi))
2982 #define Header_DeleteItem(w,i) (BOOL)SNDMSG((w),HDM_DELETEITEM,(WPARAM)(int)(i),0)
2983 #define Header_GetItem(w,i,phdi) (BOOL)SNDMSG((w),HDM_GETITEM,(WPARAM)(int)(i),(LPARAM)(HD_ITEM*)(phdi))
2984 #define Header_SetItem(w,i,phdi) (BOOL)SNDMSG((w),HDM_SETITEM,(WPARAM)(int)(i),(LPARAM)(const HD_ITEM*)(phdi))
2985 #define Header_Layout(w,l) (BOOL)SNDMSG((w),HDM_LAYOUT,0,(LPARAM)(HD_LAYOUT*)(l))
2986 #if (_WIN32_IE >= 0x0300)
2987 #define Header_OrderToIndex(w,o) (int)SNDMSG((w),HDM_ORDERTOINDEX,(WPARAM)(o),0)
2988 #define Header_GetItemRect(w,i,r) (BOOL)SNDMSG((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r))
2989 #define Header_GetOrderArray(w,l,a) (BOOL)SNDMSG((w),HDM_GETORDERARRAY,(WPARAM)(l),(LPARAM)(a))
2990 #define Header_SetOrderArray(w,l,a) (BOOL)SNDMSG((w),HDM_SETORDERARRAY,(WPARAM)(l),(LPARAM)(a))
2991 #define Header_CreateDragImage(w, i) (HIMAGELIST)SNDMSG((w), HDM_CREATEDRAGIMAGE, (WPARAM)i, 0)
2992 #define Header_SetImageList(w,l) (HIMAGELIST)SNDMSG((w), HDM_SETIMAGELIST, 0, (LPARAM)l)
2993 #define Header_GetImageList(w) (HIMAGELIST)SNDMSG((w),HDM_GETIMAGELIST,0,0)
2995 #if (_WIN32_IE >= 0x0400)
2996 #define Header_GetUnicodeFormat(w) (BOOL)SNDMSG((w),HDM_GETUNICODEFORMAT,0,0)
2997 #define Header_SetUnicodeFormat(w,f) (BOOL)SNDMSG((w),HDM_SETUNICODEFORMAT,(WPARAM)(f),0)
2999 HDSA WINAPI
DSA_Create(INT
,INT
);
3000 BOOL WINAPI
DSA_Destroy(HDSA
);
3001 VOID WINAPI
DSA_DestroyCallback(HDSA
,PFNDSAENUMCALLBACK
,PVOID
);
3002 PVOID WINAPI
DSA_GetItemPtr(HDSA
,INT
);
3003 INT WINAPI
DSA_InsertItem(HDSA
,INT
,PVOID
);
3004 HDPA WINAPI
DPA_Create(INT
);
3005 BOOL WINAPI
DPA_Destroy(HDPA
);
3006 PVOID WINAPI
DPA_DeletePtr(HDPA
,INT
);
3007 BOOL WINAPI
DPA_DeleteAllPtrs(HDPA
);
3008 VOID WINAPI
DPA_EnumCallback(HDPA
,PFNDPAENUMCALLBACK
,PVOID
);
3009 VOID WINAPI
DPA_DestroyCallback(HDPA
,PFNDPAENUMCALLBACK
,PVOID
);
3010 BOOL WINAPI
DPA_SetPtr(HDPA
,INT
,PVOID
);
3011 INT WINAPI
DPA_InsertPtr(HDPA
,INT
,PVOID
);
3012 PVOID WINAPI
DPA_GetPtr(HDPA
,INT_PTR
);
3013 BOOL WINAPI
DPA_Sort(HDPA
,PFNDPACOMPARE
,LPARAM
);
3014 INT WINAPI
DPA_Search(HDPA
,PVOID
,INT
,PFNDPACOMPARE
,LPARAM
,UINT
);
3015 BOOL WINAPI
Str_SetPtrW(LPWSTR
*,LPCWSTR
);
3016 #if (_WIN32_IE >= 0x0400)
3017 BOOL WINAPI
FlatSB_EnableScrollBar(HWND
,INT
,UINT
);
3018 BOOL WINAPI
FlatSB_ShowScrollBar(HWND
,INT
,BOOL
);
3019 BOOL WINAPI
FlatSB_GetScrollRange(HWND
,INT
,LPINT
,LPINT
);
3020 BOOL WINAPI
FlatSB_GetScrollInfo(HWND
,INT
,LPSCROLLINFO
);
3021 INT WINAPI
FlatSB_GetScrollPos(HWND
,INT
);
3022 BOOL WINAPI
FlatSB_GetScrollProp(HWND
,INT
,LPINT
);
3024 BOOL WINAPI
FlatSB_GetScrollPropPtr(HWND
,INT
,PINT_PTR
);
3026 #define FlatSB_GetScrollPropPtr FlatSB_GetScrollProp
3028 INT WINAPI
FlatSB_SetScrollPos(HWND
,INT
,INT
,BOOL
);
3029 INT WINAPI
FlatSB_SetScrollInfo(HWND
,INT
,LPSCROLLINFO
,BOOL
);
3030 INT WINAPI
FlatSB_SetScrollRange(HWND
,INT
,INT
,INT
,BOOL
);
3031 BOOL WINAPI
FlatSB_SetScrollProp(HWND
,UINT
,INT_PTR
,BOOL
);
3032 #define FlatSB_SetScrollPropPtr FlatSB_SetScrollProp
3033 BOOL WINAPI
InitializeFlatSB(HWND
);
3034 HRESULT WINAPI
UninitializeFlatSB(HWND
);
3035 #endif /* _WIN32_IE >= 0x0400 */
3036 #if (_WIN32_WINNT >= 0x0501)
3037 BOOL WINAPI
SetWindowSubclass(HWND
,SUBCLASSPROC
,UINT_PTR
,DWORD_PTR
);
3038 BOOL WINAPI
GetWindowSubclass(HWND
,SUBCLASSPROC
,UINT_PTR
,DWORD_PTR
*);
3039 BOOL WINAPI
RemoveWindowSubclass(HWND
,SUBCLASSPROC
,UINT_PTR
);
3040 LRESULT WINAPI
DefSubclassProc(HWND
,UINT
,WPARAM
,LPARAM
);
3041 INT WINAPI
DrawShadowText(HDC
,LPCWSTR
,UINT
,RECT
*,DWORD
,COLORREF
,COLORREF
,INT
,INT
);
3042 #endif /* _WIN32_WINNT >= 0x0501 */
3043 int WINAPI
ImageList_Add(HIMAGELIST
,HBITMAP
,HBITMAP
);
3044 #define ImageList_AddIcon(l,i) ImageList_ReplaceIcon(l,-1,i)
3045 int WINAPI
ImageList_AddMasked(HIMAGELIST
,HBITMAP
,COLORREF
);
3046 BOOL WINAPI
ImageList_BeginDrag(HIMAGELIST
,int,int,int);
3047 HIMAGELIST WINAPI
ImageList_Create(int,int,UINT
,int,int);
3048 BOOL WINAPI
ImageList_Destroy(HIMAGELIST
);
3049 BOOL WINAPI
ImageList_DragEnter(HWND
,int,int);
3050 BOOL WINAPI
ImageList_DragLeave(HWND
);
3051 BOOL WINAPI
ImageList_DragMove(int,int);
3052 BOOL WINAPI
ImageList_DragShowNolock(BOOL
);
3053 BOOL WINAPI
ImageList_Draw(HIMAGELIST
,int,HDC
,int,int,UINT
);
3054 BOOL WINAPI
ImageList_DrawEx(HIMAGELIST
,int,HDC
,int,int,int,int,COLORREF
,COLORREF
,UINT
);
3055 void WINAPI
ImageList_EndDrag(VOID
);
3056 #define ImageList_ExtractIcon(h,l,i) ImageList_GetIcon(l,i,0)
3057 COLORREF WINAPI
ImageList_GetBkColor(HIMAGELIST
);
3058 HIMAGELIST WINAPI
ImageList_GetDragImage(LPPOINT
,LPPOINT
);
3059 HICON WINAPI
ImageList_GetIcon(HIMAGELIST
,int,UINT
);
3060 BOOL WINAPI
ImageList_GetIconSize(HIMAGELIST
,int*,int*);
3061 int WINAPI
ImageList_GetImageCount(HIMAGELIST
);
3062 BOOL WINAPI
ImageList_GetImageInfo(HIMAGELIST
,int,IMAGEINFO
*);
3063 #define ImageList_LoadBitmap(h,l,x,G,M) ImageList_LoadImage(h,l,x,G,M,IMAGE_BITMAP,0)
3064 HIMAGELIST WINAPI
ImageList_LoadImageA(HINSTANCE
,LPCSTR
,int,int,COLORREF
,UINT
,UINT
);
3065 HIMAGELIST WINAPI
ImageList_LoadImageW(HINSTANCE
,LPCWSTR
,int,int,COLORREF
,UINT
,UINT
);
3066 HIMAGELIST WINAPI
ImageList_Merge(HIMAGELIST
,int,HIMAGELIST
,int,int,int);
3067 BOOL WINAPI
ImageList_Remove(HIMAGELIST
,int);
3068 #define ImageList_RemoveAll(l) ImageList_Remove(l,-1)
3069 BOOL WINAPI
ImageList_Replace(HIMAGELIST
,int,HBITMAP
,HBITMAP
);
3070 int WINAPI
ImageList_ReplaceIcon(HIMAGELIST
,int,HICON
);
3071 COLORREF WINAPI
ImageList_SetBkColor(HIMAGELIST
,COLORREF
);
3072 BOOL WINAPI
ImageList_SetDragCursorImage(HIMAGELIST
,int,int,int);
3073 BOOL WINAPI
ImageList_SetIconSize(HIMAGELIST
,int,int);
3074 BOOL WINAPI
ImageList_SetOverlayImage(HIMAGELIST
,int,int);
3076 HIMAGELIST WINAPI
ImageList_Read(LPSTREAM
);
3077 BOOL WINAPI
ImageList_Write(HIMAGELIST
,LPSTREAM
);
3079 #if (_WIN32_IE >= 0x0400)
3080 HIMAGELIST WINAPI
ImageList_Duplicate(HIMAGELIST himl
);
3082 void WINAPI
InitCommonControls(void);
3083 #if (_WIN32_IE >= 0x0300)
3084 BOOL WINAPI
InitCommonControlsEx(LPINITCOMMONCONTROLSEX
);
3086 int WINAPI
LBItemFromPt(HWND
,POINT
,BOOL
);
3087 #define ListView_GetBkColor(w) (COLORREF)SNDMSG((w),LVM_GETBKCOLOR,0,0)
3088 #define ListView_GetImageList(w,i) (HIMAGELIST)SNDMSG((w),LVM_GETIMAGELIST,(i),0)
3089 #define ListView_GetItemCount(w) (int)SNDMSG((w),LVM_GETITEMCOUNT,0,0)
3090 #define ListView_GetItem(w,i) (BOOL)SNDMSG((w),LVM_GETITEM,0,(LPARAM)(i))
3091 #define ListView_SetBkColor(w,c) (BOOL)SNDMSG((w),LVM_SETBKCOLOR,0,(LPARAM)c)
3092 #define ListView_SetImageList(w,h,i) (HIMAGELIST)(UINT)SNDMSG((w),LVM_SETIMAGELIST,(i),(LPARAM)(h))
3093 #define ListView_SetItem(w,i) (BOOL)SNDMSG((w),LVM_SETITEM,0,(LPARAM)(const LV_ITEM*)(i))
3094 #define ListView_InsertItem(w,i) (int)SNDMSG((w),LVM_INSERTITEM,0,(LPARAM)(const LV_ITEM*)(i))
3095 #define ListView_DeleteItem(w,i) (BOOL)SNDMSG((w),LVM_DELETEITEM,i,0)
3096 #define ListView_DeleteAllItems(w) (BOOL)SNDMSG((w),LVM_DELETEALLITEMS,0,0)
3097 #define ListView_GetCallbackMask(w) (UINT)SNDMSG((w),LVM_GETCALLBACKMASK,0,0)
3098 #define ListView_SetCallbackMask(w,m) (BOOL)SNDMSG((w),LVM_SETCALLBACKMASK,m,0)
3099 #define ListView_GetNextItem(w,i,f) (int)SNDMSG((w),LVM_GETNEXTITEM,i,MAKELPARAM((f),0))
3100 #define ListView_FindItem(w,i,p) (int)SNDMSG((w), LVM_FINDITEM,(WPARAM)i,(LPARAM)(const LV_FINDINFO*)(p))
3101 #define ListView_GetItemRect(w,i,p,c) (BOOL)SNDMSG((w),LVM_GETITEMRECT,i,((p)?(((LPRECT)(p))->left=(c),(LPARAM)(LPRECT)(p)):0))
3102 #define ListView_SetItemPosition(w,i,x,y) (BOOL)SNDMSG((w),LVM_SETITEMPOSITION,i,MAKELPARAM(x,y))
3103 #define ListView_GetItemPosition(w,i,p) (BOOL)SNDMSG((w),LVM_GETITEMPOSITION,i,(LPARAM)p)
3104 #define ListView_GetItemSpacing(w,f) (DWORD)SNDMSG((w),LVM_GETITEMSPACING,f,0)
3105 #define ListView_GetStringWidth(w,s) (int)SNDMSG((w),LVM_GETSTRINGWIDTH,0,(LPARAM)s)
3106 #define ListView_HitTest(w,p) (int)SNDMSG((w),LVM_HITTEST,0,(LPARAM)(LV_HITTESTINFO*)(p))
3107 #define ListView_EnsureVisible(w,i,f) (BOOL)SNDMSG((w),LVM_ENSUREVISIBLE,i,MAKELPARAM((f),0))
3108 #define ListView_Scroll(w,x,y) (BOOL)SNDMSG((w),LVM_SCROLL,x,y)
3109 #define ListView_RedrawItems(w,f,l) (BOOL)SNDMSG((w),LVM_REDRAWITEMS,f,l)
3110 #define ListView_Arrange(w,c) (BOOL)SNDMSG((w),LVM_ARRANGE,c,0)
3111 #define ListView_EditLabel(w,i) (HWND)SNDMSG((w),LVM_EDITLABEL,i,0)
3112 #define ListView_GetEditControl(w) (HWND)SNDMSG((w),LVM_GETEDITCONTROL,0,0)
3113 #define ListView_GetColumn(w,i,p) (BOOL)SNDMSG((w),LVM_GETCOLUMN,i,(LPARAM)(LV_COLUMN*)(p))
3114 #define ListView_SetColumn(w,i,p) (BOOL)SNDMSG((w),LVM_SETCOLUMN,i,(LPARAM)(const LV_COLUMN*)(p))
3115 #define ListView_InsertColumn(w,i,p) (int)SNDMSG((w),LVM_INSERTCOLUMN,i,(LPARAM)(const LV_COLUMN*)(p))
3116 #define ListView_DeleteColumn(w,i) (BOOL)SNDMSG((w),LVM_DELETECOLUMN,i,0)
3117 #define ListView_GetColumnWidth(w,i) (int)SNDMSG((w),LVM_GETCOLUMNWIDTH,i,0)
3118 #define ListView_SetColumnWidth(w,i,x) (BOOL)SNDMSG((w),LVM_SETCOLUMNWIDTH,i,MAKELPARAM((x),0))
3119 #define ListView_CreateDragImage(w,i,p) (HIMAGELIST)SNDMSG((w),LVM_CREATEDRAGIMAGE,i,(LPARAM)(LPPOINT)(p))
3120 #define ListView_GetViewRect(w,p) (BOOL)SNDMSG((w),LVM_GETVIEWRECT,0,(LPARAM)(LPRECT)(p))
3121 #define ListView_GetTextColor(w) (COLORREF)SNDMSG((w),LVM_GETTEXTCOLOR,0,0)
3122 #define ListView_SetTextColor(w,c) (BOOL)SNDMSG((w),LVM_SETTEXTCOLOR,0,(LPARAM)(COLORREF)(c))
3123 #define ListView_GetTextBkColor(w) (COLORREF)SNDMSG((w),LVM_GETTEXTBKCOLOR,0,0)
3124 #define ListView_SetTextBkColor(w,c) (BOOL)SNDMSG((w),LVM_SETTEXTBKCOLOR,0,(LPARAM)(COLORREF)(c))
3125 #define ListView_GetTopIndex(w) (int)SNDMSG((w),LVM_GETTOPINDEX,0,0)
3126 #define ListView_GetCountPerPage(w) (int)SNDMSG((w),LVM_GETCOUNTPERPAGE,0,0)
3127 #define ListView_GetOrigin(w,p) (BOOL)SNDMSG((w),LVM_GETORIGIN,0,(LPARAM)(POINT*)(p))
3128 #define ListView_GetOrigin(w,p) (BOOL)SNDMSG((w),LVM_GETORIGIN,0,(LPARAM)(POINT*)(p))
3129 #define ListView_Update(w,i) (BOOL)SNDMSG((w),LVM_UPDATE,(WPARAM)(i),0)
3130 #define ListView_SetItemState(w,i,d,m) \
3135 SNDMSG((w),LVM_SETITEMSTATE,i,(LPARAM)(LV_ITEM*)&_lvi);\
3137 #define ListView_GetItemState(w,i,m) (UINT)SNDMSG((w),LVM_GETITEMSTATE,i,m)
3138 #define ListView_GetItemText(w,i,iS,s,n) \
3144 SNDMSG((w),LVM_GETITEMTEXT,i,(LPARAM)(LV_ITEM*)&_lvi);\
3146 #define ListView_SetItemText(w,i,iS,s) \
3151 SNDMSG((w),LVM_SETITEMTEXT,i,(LPARAM)(LV_ITEM*)&_lvi);\
3153 #define ListView_SetItemCount(w,n) (void)SNDMSG((w),LVM_SETITEMCOUNT,n,0)
3154 #define ListView_SortItems(w,f,l) (BOOL)SNDMSG((w),LVM_SORTITEMS,l,(LPARAM)f)
3155 #define ListView_SetItemPosition32(w,i,x,y) \
3158 SNDMSG((w),LVM_SETITEMPOSITION32,i,(LPARAM)&p);\
3160 #define ListView_GetSelectedCount(w) (UINT)SNDMSG((w),LVM_GETSELECTEDCOUNT,0,0)
3161 #define ListView_GetCheckState(w,i) ((((UINT)(SNDMSG((w),LVM_GETITEMSTATE,(WPARAM)(i),LVIS_STATEIMAGEMASK)))>>12)-1)
3162 #define ListView_SetCheckState(w,i,f) ListView_SetItemState(w,i,INDEXTOSTATEIMAGEMASK((f)+1),LVIS_STATEIMAGEMASK)
3163 #define ListView_GetISearchString(w,lpsz) (BOOL)SNDMSG((w),LVM_GETISEARCHSTRING,0,(LPARAM)(LPTSTR)(lpsz))
3164 #define ListView_CancelEditLabel(w) (VOID)SNDMSG((w),LVM_CANCELEDITLABEL,0,0)
3165 #define ListView_EnableGroupView(w,i) (int)SNDMSG((w),LVM_ENABLEGROUPVIEW,(WPARAM)(i),0)
3166 #define ListView_GetGroupInfo(w,i,p) (int)SNDMSG((w),LVM_GETGROUPINFO,(WPARAM)(i),(LPARAM)(p))
3167 #define ListView_GetGroupMetrics(w,p) SNDMSG((w),LVM_GETGROUPMETRICS,0,(LPARAM)(p))
3168 #define ListView_GetInsertMark(w,p) (BOOL)SNDMSG((w),LVM_GETINSERTMARK,0,(LPARAM)(p))
3169 #define ListView_GetInsertMarkColor(w) (COLORREF)SNDMSG((w),LVM_GETINSERTMARKCOLOR,0,0)
3170 #define ListView_GetInsertMarkRect(w,p) (int)SNDMSG((w),LVM_GETINSERTMARKRECT,0,(LPARAM)(p))
3171 #define ListView_GetOutlineColor(w) (COLORREF)SNDMSG((w),LVM_GETOUTLINECOLOR,0,0)
3172 #define ListView_GetSelectedColumn(w) (UINT)SNDMSG((w),LVM_GETSELECTEDCOLUMN,0,0)
3173 #define ListView_GetTileInfo(w,p) SNDMSG((w),LVM_GETTILEINFO,0,(LPARAM)(p))
3174 #define ListView_GetTileViewInfo(w,p) SNDMSG((w),LVM_GETTILEVIEWINFO,0,(LPARAM)(p))
3175 #define ListView_GetView(w) (DWORD)SNDMSG((w),LVM_GETVIEW,0,0)
3176 #define ListView_HasGroup(w,i) (BOOL)SNDMSG((w),LVM_HASGROUP,(WPARAM)(i),0)
3177 #define ListView_InsertGroup(w,i,p) (int)SNDMSG((w),LVM_INSERTGROUP,(WPARAM)(i),(LPARAM)(p))
3178 #define ListView_InsertGroupSorted(w,p) SNDMSG((w),LVM_INSERTGROUPSORTED,(WPARAM)(p),0)
3179 #define ListView_InsertMarkHitTest(w,p,t) (BOOL)SNDMSG((w),LVM_INSERTMARKHITTEST,(WPARAM)(p),(LPARAM)(t))
3180 #define ListView_IsGroupViewEnabled(w) (BOOL)SNDMSG((w),LVM_ISGROUPVIEWENABLED,0,0)
3181 #define ListView_MapIDToIndex(w,i) (UINT)SNDMSG((w),LVM_MAPIDTOINDEX,(WPARAM)(i),0)
3182 #define ListView_MoveGroup(w,i,t) SNDMSG((w),LVM_MOVEGROUP,(WPARAM)(i),(LPARAM)(t))
3183 #define ListView_RemoveAllGroups(w) SNDMSG((w),LVM_REMOVEALLGROUPS,0,0)
3184 #define ListView_RemoveGroup(w,i) (int)SNDMSG((w),LVM_REMOVEGROUP,(WPARAM)(i),0)
3185 #define ListView_SetGroupInfo(w,i,p) (int)SNDMSG((w),LVM_SETGROUPINFO,(WPARAM)(i),(LPARAM)(p))
3186 #define ListView_SetGroupMetrics(w,p) SNDMSG((w),LVM_SETGROUPMETRICS,0,(LPARAM)(p))
3187 #define ListView_SetInfoTip(w,p) (BOOL)SNDMSG((w),LVM_SETINFOTIP,0,(LPARAM)(p))
3188 #define ListView_SetInsertMark(w,p) (BOOL)SNDMSG((w),LVM_SETINSERTMARK,0,(LPARAM)(p))
3189 #define ListView_SetInsertMarkColor(w,c) (COLORREF)SNDMSG((w),LVM_SETINSERTMARKCOLOR,0,(LPARAM)(c))
3190 #define ListView_SetOutlineColor(w,c) (COLORREF)SNDMSG((w),LVM_SETOUTLINECOLOR,0,(LPARAM)(c))
3191 #if (_WIN32_WINNT >= 0x0501)
3192 #define ListView_SetSelectedColumn(w,i) SNDMSG((w),LVM_SETSELECTEDCOLUMN,(WPARAM)i,0)
3194 #define ListView_SetTileInfo(w,p) (BOOL)SNDMSG((w),LVM_SETTILEINFO,0,(LPARAM)(p))
3195 #define ListView_SetTileViewInfo(w,p) (BOOL)SNDMSG((w),LVM_SETTILEVIEWINFO,0,(LPARAM)(p))
3196 #define ListView_SetView(w,i) (int)SNDMSG((w),LVM_SETVIEW,(WPARAM)(i),0)
3197 #define ListView_SortGroups(w,c,p) (int)SNDMSG((w),LVM_SORTGROUPS,(WPARAM)(c),(LPARAM)(p))
3198 #define ListView_SortItemsEx(w,c,p) (BOOL)SNDMSG((w),LVM_SORTITEMSEX,(WPARAM)(p),(LPARAM)(c))
3200 #if (_WIN32_WINNT >= 0x0501)
3201 #define ComboBox_SetMinVisible(w,i) (BOOL)SNDMSG((w), CB_SETMINVISIBLE,(WPARAM)(i),0);
3202 #define ComboBox_GetMinVisible(w) (INT)SNDMSG((w),CB_GETMINVISIBLE,0,0);
3205 BOOL WINAPI
MakeDragList(HWND
);
3206 void WINAPI
MenuHelp(UINT
,WPARAM
,LPARAM
,HMENU
,HINSTANCE
,HWND
,PUINT
);
3207 #define MonthCal_GetColor(hwnd,icolor) SNDMSG(hwnd,MCM_GETCOLOR,(WPARAM)icolor,(LPARAM)0)
3208 #define MonthCal_GetCurSel(hwnd,lpsystime) SNDMSG(hwnd,MCM_GETCURSEL,0,(LPARAM)lpsystime)
3209 #define MonthCal_GetFirstDayOfWeek(hwnd) SNDMSG(hwnd,MCM_GETFIRSTDAYOFWEEK,0,0)
3210 #define MonthCal_GetMaxSelCount(hwnd) SNDMSG(hwnd,MCM_GETMAXSELCOUNT,0,0)
3211 #define MonthCal_GetMaxTodayWidth(hwnd) SNDMSG(hwnd,MCM_GETMAXTODAYWIDTH,0,0)
3212 #define MonthCal_GetMinReqRect(hwnd,lpRectInfo) SNDMSG(hwnd,MCM_GETMINREQRECT,0,(LPARAM)lpRectInfo)
3213 #define MonthCal_GetMonthDelta(hwnd) SNDMSG(hwnd,MCM_GETMONTHDELTA,0,0)
3214 #define MonthCal_GetMonthRange(hwnd,flag,systimearray) SNDMSG(hwnd,MCM_GETMONTHRANGE,(WPARAM)flag,(LPARAM)systimearray)
3215 #define MonthCal_GetRange(hwnd,systimearray) SNDMSG(hwnd,MCM_GETRANGE,0,(LPARAM)systimearray)
3216 #define MonthCal_GetSelRange(hwnd,systimearray) SNDMSG(hwnd,MCM_GETSELRANGE,0,(LPARAM)systimearray)
3217 #define MonthCal_GetToday(hwnd,systime) SNDMSG(hwnd,MCM_GETTODAY,0,(LPARAM)systime)
3218 #define MonthCal_GetUnicodeFormat(hwnd) SNDMSG(hwnd,MCM_GETUNICODEFORMAT,0,0)
3219 #define MonthCal_HitTest(hwnd,pmchittest) SNDMSG(hwnd,MCM_HITTEST,0,(LPARAM)pmchittest)
3220 #define MonthCal_SetColor(hwnd,icolor,clr) SNDMSG(hwnd,MCM_SETCOLOR,(WPARAM)icolor,(LPARAM)clr)
3221 #define MonthCal_SetCurSel(hwnd,lpsystime) SNDMSG(hwnd,MCM_SETCURSEL,0,(LPARAM)lpsystime)
3222 #define MonthCal_SetDayState(hwnd,imonths,lpdatestatearray) SNDMSG(hwnd,MCM_SETDAYSTATE,(WPARAM)imonths,(LPARAM)lpdatestatearray)
3223 #define MonthCal_SetFirstDayOfWeek(hwnd,iday) SNDMSG(hwnd,MCM_SETFIRSTDAYOFWEEK,0,(LPARAM)iday)
3224 #define MonthCal_SetMaxSelCount(hwnd,imax) SNDMSG(hwnd,MCM_SETMAXSELCOUNT,(WPARAM)imax,0)
3225 #define MonthCal_SetMonthDelta(hwnd,idelta) SNDMSG(hwnd,MCM_SETMONTHDELTA,(WPARAM)idelta,0)
3226 #define MonthCal_SetSelRange(hwnd,systimearray) SNDMSG(hwnd,MCM_SETSELRANGE,0,(LPARAM)systimearray)
3227 #define MonthCal_SetToday(hwnd,systime) SNDMSG(hwnd,MCM_SETTODAY,0,(LPARAM)systime)
3228 #define MonthCal_SetUnicodeFormat(hwnd,unicode) SNDMSG(hwnd,MCM_SETUNICODEFORMAT,(WPARAM)unicode,0)
3229 #define MonthCal_SetRange(w,f,st) (BOOL)SNDMSG((w),MCM_SETRANGE,(WPARAM)(f),(LPARAM)(st))
3230 BOOL WINAPI
ShowHideMenuCtl(HWND
,UINT
,PINT
);
3231 #define TabCtrl_GetItem(w,i,p) (BOOL)SNDMSG((w),TCM_GETITEM,i,(LPARAM)(TC_ITEM*)(p))
3232 #define TabCtrl_SetItem(w,i,p) (BOOL)SNDMSG((w),TCM_SETITEM,i,(LPARAM)(TC_ITEM*)(p))
3233 #define TabCtrl_InsertItem(w,i,p) (int)SNDMSG((w),TCM_INSERTITEM,i,(LPARAM)(const TC_ITEM*)(p))
3234 #define TabCtrl_DeleteItem(w,i) (BOOL)SNDMSG((w),TCM_DELETEITEM,i,0)
3235 #define TabCtrl_DeleteAllItems(w) (BOOL)SNDMSG((w),TCM_DELETEALLITEMS,0,0)
3236 #define TabCtrl_GetItemRect(w,i,p) (BOOL)SNDMSG((w),TCM_GETITEMRECT,i,(LPARAM)(LPRECT)(p))
3237 #define TabCtrl_GetCurSel(w) (int)SNDMSG((w),TCM_GETCURSEL,0,0)
3238 #define TabCtrl_SetCurSel(w,i) (int)SNDMSG((w),TCM_SETCURSEL,i,0)
3239 #define TabCtrl_HitTest(w,p) (int)SNDMSG((w),TCM_HITTEST,0,(LPARAM)(TC_HITTESTINFO*)(p))
3240 #define TabCtrl_SetItemExtra(w,c) (BOOL)SNDMSG((w),TCM_SETITEMEXTRA,c,0)
3241 #define TabCtrl_AdjustRect(w,b,p) (int)SNDMSG((w),TCM_ADJUSTRECT,b,(LPARAM)(LPRECT)p)
3242 #define TabCtrl_SetItemSize(w,x,y) (DWORD)SNDMSG((w),TCM_SETITEMSIZE,0,MAKELPARAM(x,y))
3243 #define TabCtrl_RemoveImage(w,i) (void)SNDMSG((w),TCM_REMOVEIMAGE,i,0)
3244 #define TabCtrl_SetPadding(w,x,y) (void)SNDMSG((w),TCM_SETPADDING,0,MAKELPARAM(x,y))
3245 #define TabCtrl_GetRowCount(w) (int)SNDMSG((w),TCM_GETROWCOUNT,0,0)
3246 #define TabCtrl_GetToolTips(w) (HWND)SNDMSG((w),TCM_GETTOOLTIPS,0,0)
3247 #define TabCtrl_SetToolTips(w,t) (void)SNDMSG((w),TCM_SETTOOLTIPS,(WPARAM)t,0)
3248 #define TabCtrl_GetCurFocus(w) (int)SNDMSG((w),TCM_GETCURFOCUS,0,0)
3249 #define TabCtrl_SetCurFocus(w,i) (void)SNDMSG((w),TCM_SETCURFOCUS,i,0)
3250 #define TabCtrl_GetImageList(w) (HIMAGELIST)SNDMSG((w),TCM_GETIMAGELIST,0,0)
3251 #define TabCtrl_SetImageList(w,h) (HIMAGELIST)SNDMSG((w),TCM_SETIMAGELIST,0,(LPARAM)(UINT)(h))
3252 #define TabCtrl_GetItemCount(w) (int)SNDMSG((w),TCM_GETITEMCOUNT,0,0)
3253 BOOL WINAPI
_TrackMouseEvent(LPTRACKMOUSEEVENT
);
3254 #define TreeView_InsertItem(w,i) (HTREEITEM)SNDMSG((w),TVM_INSERTITEM,0,(LPARAM)(LPTV_INSERTSTRUCT)(i))
3255 #define TreeView_DeleteItem(w,i) (BOOL)SNDMSG((w),TVM_DELETEITEM,0,(LPARAM)(HTREEITEM)(i))
3256 #define TreeView_DeleteAllItems(w) (BOOL)SNDMSG((w),TVM_DELETEITEM,0,(LPARAM)TVI_ROOT)
3257 #define TreeView_Expand(w,i,c) (BOOL)SNDMSG((w),TVM_EXPAND,c,(LPARAM)(HTREEITEM)(i))
3258 #define TreeView_GetItemRect(w,i,p,c) (*(HTREEITEM*)p=(i),(BOOL)SNDMSG((w),TVM_GETITEMRECT,c,(LPARAM)(LPRECT)(p)))
3259 #define TreeView_GetCount(w) (UINT)SNDMSG((w),TVM_GETCOUNT,0,0)
3260 #define TreeView_GetIndent(w) (UINT)SNDMSG((w),TVM_GETINDENT,0,0)
3261 #define TreeView_SetIndent(w,i) (BOOL)SNDMSG((w),TVM_SETINDENT,i,0)
3262 #define TreeView_GetImageList(w,i) (HIMAGELIST)SNDMSG((w),TVM_GETIMAGELIST,i,0)
3263 #define TreeView_SetImageList(w,h,i) (HIMAGELIST)SNDMSG((w),TVM_SETIMAGELIST,i,(LPARAM)(HIMAGELIST)(h))
3264 #define TreeView_GetNextItem(w,i,c) (HTREEITEM)SNDMSG((w),TVM_GETNEXTITEM,c,(LPARAM)(HTREEITEM)(i))
3265 #define TreeView_GetChild(w,i) TreeView_GetNextItem(w,i,TVGN_CHILD)
3266 #define TreeView_GetNextSibling(w,i) TreeView_GetNextItem(w,i,TVGN_NEXT)
3267 #define TreeView_GetPrevSibling(w,i) TreeView_GetNextItem(w,i,TVGN_PREVIOUS)
3268 #define TreeView_GetParent(w,i) TreeView_GetNextItem(w,i,TVGN_PARENT)
3269 #define TreeView_GetFirstVisible(w) TreeView_GetNextItem(w,NULL,TVGN_FIRSTVISIBLE)
3270 #define TreeView_GetNextVisible(w,i) TreeView_GetNextItem(w,i,TVGN_NEXTVISIBLE)
3271 #define TreeView_GetPrevVisible(w,i) TreeView_GetNextItem(w,i,TVGN_PREVIOUSVISIBLE)
3272 #define TreeView_GetSelection(w) TreeView_GetNextItem(w,NULL,TVGN_CARET)
3273 #define TreeView_GetDropHilight(w) TreeView_GetNextItem(w,NULL,TVGN_DROPHILITE)
3274 #define TreeView_GetRoot(w) TreeView_GetNextItem(w,NULL,TVGN_ROOT)
3275 #define TreeView_Select(w,i,c) (BOOL)SNDMSG((w),TVM_SELECTITEM,c,(LPARAM)(HTREEITEM)(i))
3276 #define TreeView_SelectItem(w,i) TreeView_Select(w,i,TVGN_CARET)
3277 #define TreeView_SelectDropTarget(w,i) TreeView_Select(w,i,TVGN_DROPHILITE)
3278 #define TreeView_SelectSetFirstVisible(w,i) TreeView_Select(w,i,TVGN_FIRSTVISIBLE)
3279 #define TreeView_GetItem(w,i) (BOOL)SNDMSG((w),TVM_GETITEM,0,(LPARAM)(TV_ITEM*)(i))
3280 #define TreeView_SetItem(w,i) (BOOL)SNDMSG((w),TVM_SETITEM,0,(LPARAM)(const TV_ITEM*)(i))
3281 #define TreeView_EditLabel(w,i) (HWND)SNDMSG((w),TVM_EDITLABEL,0,(LPARAM)(HTREEITEM)(i))
3282 #define TreeView_GetEditControl(w) (HWND)SNDMSG((w),TVM_GETEDITCONTROL,0,0)
3283 #define TreeView_GetVisibleCount(w) (UINT)SNDMSG((w),TVM_GETVISIBLECOUNT,0,0)
3284 #define TreeView_HitTest(w,p) (HTREEITEM)SNDMSG((w),TVM_HITTEST,0,(LPARAM)(LPTV_HITTESTINFO)(p))
3285 #define TreeView_CreateDragImage(w,i) (HIMAGELIST)SNDMSG((w),TVM_CREATEDRAGIMAGE,0,(LPARAM)(HTREEITEM)(i))
3286 #define TreeView_SortChildren(w,i,r) (BOOL)SNDMSG((w),TVM_SORTCHILDREN,r,(LPARAM)(HTREEITEM)(i))
3287 #define TreeView_EnsureVisible(w,i) (BOOL)SNDMSG((w),TVM_ENSUREVISIBLE,0,(LPARAM)(HTREEITEM)(i))
3288 #define TreeView_SortChildrenCB(w,s,r) (BOOL)SNDMSG((w),TVM_SORTCHILDRENCB,r,(LPARAM)(LPTVSORTCB)(s))
3289 #define TreeView_EndEditLabelNow(w,f) (BOOL)SNDMSG((w),TVM_ENDEDITLABELNOW,f,0)
3290 #define TreeView_GetISearchString(w,s) (BOOL)SNDMSG((w),TVM_GETISEARCHSTRING,0,(LPARAM)s)
3291 #if (_WIN32_IE >= 0x0300)
3292 #define ListView_ApproximateViewRect(w,iw,ih,i) (DWORD)SNDMSG((w),LVM_APPROXIMATEVIEWRECT,(i),MAKELPARAM((iw),(ih)))
3293 #define ListView_SetExtendedListViewStyle(w,s) (DWORD)SNDMSG((w),LVM_SETEXTENDEDLISTVIEWSTYLE,0,(s))
3294 #define ListView_GetExtendedListViewStyle(w) (DWORD)SNDMSG((w),LVM_GETEXTENDEDLISTVIEWSTYLE,0,0)
3295 #define ListView_SetColumnOrderArray(w,i,a) (BOOL)SNDMSG((w),LVM_SETCOLUMNORDERARRAY,(WPARAM)(i),(LPARAM)(LPINT)(a))
3296 #define ListView_GetColumnOrderArray(w,i,a) (BOOL)SNDMSG((w),LVM_GETCOLUMNORDERARRAY,(WPARAM)(i),(LPARAM)(LPINT)(a))
3297 #define ListView_GetHeader(w) (HWND)SNDMSG((w),LVM_GETHEADER,0,0)
3298 #define ListView_GetHotCursor(w) (HCURSOR)SNDMSG((w),LVM_GETHOTCURSOR,0,0)
3299 #define ListView_GetHotItem(w) (INT)SNDMSG((w),LVM_GETHOTITEM,0,0)
3300 #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))
3301 #define ListView_SetHotCursor(w,c) (HCURSOR)SNDMSG((w),LVM_SETHOTCURSOR,0,(LPARAM)(c))
3302 #define ListView_SetHotItem(w,i) (int)SNDMSG((w),LVM_SETHOTITEM,(WPARAM)(i),0)
3303 #define ListView_SetIconSpacing(w,x,y) (DWORD)SNDMSG((w),LVM_SETICONSPACING,0,MAKELONG(x,y))
3304 #define ListView_SubItemHitTest(w,p) (INT)SNDMSG((w),LVM_SUBITEMHITTEST,0,(LPARAM)(LPLVHITTESTINFO)(p))
3305 #define ListView_SetItemCountEx(w,i,f) (void)SNDMSG((w),LVM_SETITEMCOUNT,(WPARAM)(i),(LPARAM)(f))
3306 WINBOOL WINAPI
ImageList_SetImageCount(HIMAGELIST
,UINT
);
3307 WINBOOL WINAPI
ImageList_Copy(HIMAGELIST
,int,HIMAGELIST
,int,UINT
);
3308 WINBOOL WINAPI
ImageList_DrawIndirect(IMAGELISTDRAWPARAMS
*);
3309 #define TabCtrl_SetMinTabWidth(hwnd,x) SNDMSG((hwnd),TCM_SETMINTABWIDTH,0,x)
3310 #define TabCtrl_DeselectAll(hwnd,fExcludeFocus) SNDMSG((hwnd),TCM_DESELECTALL,fExcludeFocus,0)
3311 #define TreeView_GetToolTips(w) (HWND)SNDMSG((w),TVM_GETTOOLTIPS,0,0)
3312 #define TreeView_SetToolTips(w,wt) (HWND)SNDMSG((w),TVM_SETTOOLTIPS,(WPARAM)(wt),0)
3314 #if (_WIN32_IE >= 0x0400)
3315 #define ListView_GetBkImage(h,plvbki) (BOOL)SNDMSG((h),LVM_GETBKIMAGE,0,(LPARAM)(plvbki))
3316 #define ListView_SetBkImage(h,plvbki) (BOOL)SNDMSG((h),LVM_SETBKIMAGE,0,(LPARAM)(plvbki))
3317 #define ListView_SetExtendedListViewStyleEx(w,m,s) (DWORD)SNDMSG((w),LVM_SETEXTENDEDLISTVIEWSTYLE,(m),(s))
3318 #define ListView_SetWorkAreas(w,n,r) (BOOL)SNDMSG((w),LVM_SETWORKAREAS,(WPARAM)(n),(LPARAM)(RECT *)(r))
3319 #define ListView_GetWorkAreas(w,n,r) (BOOL)SNDMSG((w),LVM_GETWORKAREAS,(WPARAM)(n),(LPARAM)(RECT *)(r))
3320 #define ListView_GetNumberOfWorkAreas(w,n) (BOOL)SNDMSG((w),LVM_GETNUMBEROFWORKAREAS,0,(LPARAM)(UINT *)(n))
3321 #define ListView_SetHoverTime(w,t) (DWORD)SNDMSG((w),LVM_SETHOVERTIME,0,(LPARAM)(t))
3322 #define ListView_GetHoverTime(w) (DWORD)SNDMSG((w),LVM_GETHOVERTIME,0,0)
3323 #define ListView_GetSelectionMark(w) (INT)SNDMSG((w),LVM_GETSELECTIONMARK,0,0)
3324 #define ListView_SetSelectionMark(w,i) (INT)SNDMSG((w),LVM_SETSELECTIONMARK,0,(LPARAM)(i))
3325 #define ListView_SetToolTips(w,n) (HWND)SNDMSG((w),LVM_SETTOOLTIPS,(WPARAM)(n),0)
3326 #define ListView_GetToolTips(w) (HWND)SNDMSG((w),LVM_GETTOOLTIPS,0,0)
3327 #define ListView_SetUnicodeFormat(w,f) (BOOL)SNDMSG((w),LVM_SETUNICODEFORMAT,(WPARAM)(f),0)
3328 #define ListView_GetUnicodeFormat(w) (BOOL)SNDMSG((w),LVM_GETUNICODEFORMAT,0,0)
3329 #define TabCtrl_HighlightItem(w,i,fHighlight) SNDMSG((w),TCM_HIGHLIGHTITEM,(WPARAM)i,(LPARAM)MAKELONG(fHighlight,0))
3330 #define TabCtrl_SetExtendedStyle(w,dw) SNDMSG((w),TCM_SETEXTENDEDSTYLE,0,dw)
3331 #define TabCtrl_GetExtendedStyle(w) SNDMSG((w),TCM_GETEXTENDEDSTYLE,0,0)
3332 #define TabCtrl_SetUnicodeFormat(w,u) SNDMSG((w),TCM_SETUNICODEFORMAT,(WPARAM)(u),0)
3333 #define TabCtrl_GetUnicodeFormat(w) SNDMSG((w),TCM_GETUNICODEFORMAT,0,0)
3334 #define TreeView_GetBkColor(w) (COLORREF)SNDMSG((w),TVM_GETBKCOLOR,0,0)
3335 #define TreeView_GetInsertMarkColor(w) (COLORREF)SNDMSG((w),TVM_GETINSERTMARKCOLOR,0,0)
3336 #define TreeView_GetItemHeight(w) (int)SNDMSG((w),TVM_GETITEMHEIGHT,0,0)
3337 #define TreeView_GetScrollTime(w) (UINT)SNDMSG((w),TVM_GETSCROLLTIME,0,0)
3338 #define TreeView_GetTextColor(w) (COLORREF)SNDMSG((w),TVM_GETTEXTCOLOR,0,0)
3339 #define TreeView_SetBkColor(w,c) (COLORREF)SNDMSG((w),TVM_SETBKCOLOR,0,(LPARAM)(c))
3340 #define TreeView_SetInsertMarkColor(w,c) (COLORREF)SNDMSG((w),TVM_SETINSERTMARKCOLOR,0,(LPARAM)(c))
3341 #define TreeView_SetItemHeight(w,h) (int)SNDMSG((w),TVM_SETITEMHEIGHT,(WPARAM)(h),0)
3342 #define TreeView_SetScrollTime(w,t) (UINT)SNDMSG((w),TVM_SETSCROLLTIME,(WPARAM)(UINT)(t),0)
3343 #define TreeView_SetTextColor(w,c) (COLORREF)SNDMSG((w),TVM_SETTEXTCOLOR,0,(LPARAM)(c))
3344 #define TreeView_SetInsertMark(w,i,a) (BOOL)SNDMSG((w),TVM_SETINSERTMARK,(WPARAM)(a),(LPARAM)(i))
3345 #define TreeView_SetUnicodeFormat(w,u) (BOOL)SNDMSG((w),TVM_SETUNICODEFORMAT,(WPARAM)(u),0)
3346 #define TreeView_GetUnicodeFormat(w) (BOOL)SNDMSG((w),TVM_GETUNICODEFORMAT,0,0)
3347 #define TreeView_GetLastVisible(w) TreeView_GetNextItem(w,NULL,TVGN_LASTVISIBLE)
3349 #if (_WIN32_IE >= 0x0500)
3350 #define TreeView_GetItemState(w,i,m) (UINT)SNDMSG((w),TVM_GETITEMSTATE,(WPARAM)(i),(LPARAM)(m))
3351 #define TreeView_SetItemState(w,i,d,m) \
3354 _tvi.mask=TVIF_STATE;\
3358 SNDMSG((w),TVM_SETITEM,0,(LPARAM)(TVITEM*)&_tvi);\
3363 typedef HDITEMW HDITEM
;
3364 typedef TOOLINFOW TOOLINFO
,*PTOOLINFO
,*LPTOOLINFO
;
3365 typedef TTHITTESTINFOW TTHITTESTINFO
,*LPHITTESTINFO
,*LPTTHITTESTINFO
;
3366 typedef TOOLTIPTEXTW TOOLTIPTEXT
,*LPTOOLTIPTEXT
;
3367 typedef NMTTDISPINFOW NMTTDISPINFO
, *LPNMTTDISPINFO
;
3368 typedef TV_ITEMW TV_ITEM
,*LPTV_ITEM
;
3369 typedef TVITEMW TVITEM
,*LPTVITEM
;
3370 #if (_WIN32_IE >= 0x0400)
3371 typedef TVITEMEXW TVITEMEX
,*LPTVITEMEX
;
3373 typedef TV_INSERTSTRUCTW TV_INSERTSTRUCT
,*LPTV_INSERTSTRUCT
;
3374 typedef TVINSERTSTRUCTW TVINSERTSTRUCT
,*LPTVINSERTSTRUCT
;
3375 typedef NM_TREEVIEWW NM_TREEVIEW
,*LPNM_TREEVIEW
;
3376 typedef NMTREEVIEWW NMTREEVIEW
,*LPNMTREEVIEW
;
3377 typedef NMHDDISPINFOW NMHDDISPINFO
, *LPNMHDDISPINFO
;
3378 #define ACM_OPEN ACM_OPENW
3379 #define COMBOBOXEXITEM COMBOBOXEXITEMW
3380 #define PCOMBOBOXEXITEM PCOMBOBOXEXITEMW
3381 #define PCCOMBOBOXEXITEM PCCOMBOBOXEXITEMW
3382 #define CBEM_INSERTITEM CBEM_INSERTITEMW
3383 #define CBEM_SETITEM CBEM_SETITEMW
3384 #define CBEM_GETITEM CBEM_GETITEMW
3385 #define CBEN_ENDEDIT CBEN_ENDEDITW
3386 #define NMCBEENDEDIT NMCBEENDEDITW
3387 #define LPNMCBEENDEDIT LPNMCBEENDEDITW
3388 #define PNMCBEENDEDIT PNMCBEENDEDITW
3389 #if _WIN32_IE >= 0x0400
3390 #define NMCOMBOBOXEX NMCOMBOBOXEXW
3391 #define PNMCOMBOBOXEX PNMCOMBOBOXEXW
3392 #define CBEN_GETDISPINFO CBEN_GETDISPINFOW
3393 #define CBEN_DRAGBEGIN CBEN_DRAGBEGINW
3394 #define NMCBEDRAGBEGIN NMCBEDRAGBEGINW
3395 #define LPNMCBEDRAGBEGIN LPNMCBEDRAGBEGINW
3396 #define PNMCBEDRAGBEGIN PNMCBEDRAGBEGINW
3397 #endif /* _WIN32_IE >= 0x0400 */
3398 #define SB_GETTEXT SB_GETTEXTW
3399 #define SB_SETTEXT SB_SETTEXTW
3400 #define SB_GETTEXTLENGTH SB_GETTEXTLENGTHW
3401 #define HDM_INSERTITEM HDM_INSERTITEMW
3402 #define HDM_GETITEM HDM_GETITEMW
3403 #define HDM_SETITEM HDM_SETITEMW
3404 #define HDN_ITEMCHANGING HDN_ITEMCHANGINGW
3405 #define HDN_ITEMCHANGED HDN_ITEMCHANGEDW
3406 #define HDN_ITEMCLICK HDN_ITEMCLICKW
3407 #define HDN_ITEMDBLCLICK HDN_ITEMDBLCLICKW
3408 #define HDN_DIVIDERDBLCLICK HDN_DIVIDERDBLCLICKW
3409 #define HDN_BEGINTRACK HDN_BEGINTRACKW
3410 #define HDN_ENDTRACK HDN_ENDTRACKW
3411 #define HDN_TRACK HDN_TRACKW
3412 #if (_WIN32_IE >= 0x0300)
3413 #define HDN_GETDISPINFO HDN_GETDISPINFOW
3415 #define HD_NOTIFY HD_NOTIFYW
3416 #define TBSAVEPARAMS TBSAVEPARAMSW
3417 #define TB_GETBUTTONTEXT TB_GETBUTTONTEXTW
3418 #define TB_SAVERESTORE TB_SAVERESTOREW
3419 #define TB_ADDSTRING TB_ADDSTRINGW
3420 #define TBN_GETBUTTONINFO TBN_GETBUTTONINFOW
3421 #if _WIN32_IE >= 0x400
3422 #define TB_GETBUTTONINFO TB_GETBUTTONINFOW
3423 #define TB_SETBUTTONINFO TB_SETBUTTONINFOW
3424 #define TB_INSERTBUTTON TB_INSERTBUTTONW
3425 #define TB_ADDBUTTONS TB_ADDBUTTONSW
3426 #define TB_MAPACCELERATOR TB_MAPACCELERATORW
3427 #define TB_GETSTRING TB_GETSTRINGW
3428 #define TBBUTTONINFO TBBUTTONINFOW
3429 #define LPTBBUTTONINFO LPTBBUTTONINFOW
3430 #define TBN_GETDISPINFO TBN_GETDISPINFOW
3431 #define NMTBDISPINFO NMTBDISPINFOW
3432 #define LPNMTBDISPINFO LPNMTBDISPINFOW
3433 #define NMTBGETINFOTIP NMTBGETINFOTIPW
3434 #define LPNMTBGETINFOTIP LPNMTBGETINFOTIPW
3436 #define TBNOTIFY TBNOTIFYW
3437 #define LPTBNOTIFY LPTBNOTIFYW
3438 #define NMTOOLBAR NMTOOLBARW
3439 #define LPNMTOOLBAR LPNMTOOLBARW
3440 #define TTM_ADDTOOL TTM_ADDTOOLW
3441 #define TTM_DELTOOL TTM_DELTOOLW
3442 #define TTM_NEWTOOLRECT TTM_NEWTOOLRECTW
3443 #define TTM_GETTOOLINFO TTM_GETTOOLINFOW
3444 #define TTM_SETTOOLINFO TTM_SETTOOLINFOW
3445 #define TTM_HITTEST TTM_HITTESTW
3446 #define TTM_GETTEXT TTM_GETTEXTW
3447 #define TTM_UPDATETIPTEXT TTM_UPDATETIPTEXTW
3448 #define TTM_ENUMTOOLS TTM_ENUMTOOLSW
3449 #define TTM_GETCURRENTTOOL TTM_GETCURRENTTOOLW
3450 #define TTN_NEEDTEXT TTN_NEEDTEXTW
3451 #define TTN_GETDISPINFO TTN_GETDISPINFOW
3452 #define SB_GETTEXT SB_GETTEXTW
3453 #define SB_SETTEXT SB_SETTEXTW
3454 #define SB_GETTEXTLENGTH SB_GETTEXTLENGTHW
3455 #define LV_ITEM LV_ITEMW
3456 #define LVITEM LVITEMW
3457 #define LPSTR_TEXTCALLBACK LPSTR_TEXTCALLBACKW
3458 #if _WIN32_IE >= 0x0400
3459 #define LVBKIMAGE LVBKIMAGEW
3460 #define LPLVBKIMAGE LPLVBKIMAGEW
3461 #define LVM_SETBKIMAGE LVM_SETBKIMAGEW
3462 #define LVM_GETBKIMAGE LVM_GETBKIMAGEW
3463 #endif /* _WIN32_IE >= 0x400 */
3464 #define LVM_GETITEM LVM_GETITEMW
3465 #define LVM_SETITEM LVM_SETITEMW
3466 #define LVM_INSERTITEM LVM_INSERTITEMW
3467 #define LV_FINDINFO LV_FINDINFOW
3468 #define LVFINDINFO LVFINDINFOW
3469 #define LPFINDINFO LPFINDINFOW
3470 #define NMLVFINDITEM NMLVFINDITEMW
3471 #define PNMLVFINDITEM PNMLVFINDITEMW
3472 #define LPNMLVFINDITEM LPNMLVFINDITEMW
3473 #define LVM_FINDITEM LVM_FINDITEMW
3474 #define LVM_GETSTRINGWIDTH LVM_GETSTRINGWIDTHW
3475 #define LVM_EDITLABEL LVM_EDITLABELW
3476 #define LV_COLUMN LV_COLUMNW
3477 #define LVCOLUMN LVCOLUMNW
3478 #define LVM_GETCOLUMN LVM_GETCOLUMNW
3479 #define LVM_SETCOLUMN LVM_SETCOLUMNW
3480 #define LVM_INSERTCOLUMN LVM_INSERTCOLUMNW
3481 #define LVM_GETITEMTEXT LVM_GETITEMTEXTW
3482 #define LVM_SETITEMTEXT LVM_SETITEMTEXTW
3483 #define LVM_GETISEARCHSTRING LVM_GETISEARCHSTRINGW
3484 #define LVN_BEGINLABELEDIT LVN_BEGINLABELEDITW
3485 #define LVN_ENDLABELEDIT LVN_ENDLABELEDITW
3486 #define LVN_GETDISPINFO LVN_GETDISPINFOW
3487 #define LVN_SETDISPINFO LVN_SETDISPINFOW
3488 #define LVN_GETINFOTIP LVN_GETINFOTIPW
3489 #define NMLVGETINFOTIP NMLVGETINFOTIPW
3490 #define LPNMLVGETINFOTIP LPNMLVGETINFOTIPW
3491 #define LV_DISPINFO LV_DISPINFOW
3492 #define NMLVDISPINFO NMLVDISPINFOW
3493 #define LPNMLVDISPINFO LPNMLVDISPINFOW
3494 #define TVM_INSERTITEM TVM_INSERTITEMW
3495 #define TVM_GETITEM TVM_GETITEMW
3496 #define TVM_SETITEM TVM_SETITEMW
3497 #define TVM_EDITLABEL TVM_EDITLABELW
3498 #define TVM_GETISEARCHSTRING TVM_GETISEARCHSTRINGW
3499 #define TV_DISPINFO NMTVDISPINFOW
3500 #define NMTVDISPINFO NMTVDISPINFOW
3501 #define LPNMTVDISPINFO LPNMTVDISPINFOW
3502 #if (_WIN32_IE >= 0x0400)
3503 #define NMTVGETINFOTIP NMTVGETINFOTIPW
3504 #define LPNMTVGETINFOTIP LPNMTVGETINFOTIPW
3505 #define TVN_GETINFOTIP TVN_GETINFOTIPW
3507 #define TVN_SELCHANGING TVN_SELCHANGINGW
3508 #define TVN_SELCHANGED TVN_SELCHANGEDW
3509 #define TVN_GETDISPINFO TVN_GETDISPINFOW
3510 #define TVN_SETDISPINFO TVN_SETDISPINFOW
3511 #define TVN_ITEMEXPANDING TVN_ITEMEXPANDINGW
3512 #define TVN_ITEMEXPANDED TVN_ITEMEXPANDEDW
3513 #define TVN_BEGINDRAG TVN_BEGINDRAGW
3514 #define TVN_BEGINRDRAG TVN_BEGINRDRAGW
3515 #define TVN_DELETEITEM TVN_DELETEITEMW
3516 #define TVN_BEGINLABELEDIT TVN_BEGINLABELEDITW
3517 #define TVN_ENDLABELEDIT TVN_ENDLABELEDITW
3518 #define TC_ITEMHEADER TC_ITEMHEADERW
3519 #define TC_ITEM TC_ITEMW
3520 #define TCITEM TCITEMW
3521 #define LPTCITEM LPTCITEMW
3522 #define TCM_GETITEM TCM_GETITEMW
3523 #define TCM_SETITEM TCM_SETITEMW
3524 #define TCM_INSERTITEM TCM_INSERTITEMW
3525 #define CreateStatusWindow CreateStatusWindowW
3526 #define DrawStatusText DrawStatusTextW
3527 #define ImageList_LoadImage ImageList_LoadImageW
3528 #define DTM_SETFORMAT DTM_SETFORMATW
3529 #define DTN_USERSTRING DTN_USERSTRINGW
3530 #define DTN_WMKEYDOWN DTN_WMKEYDOWNW
3531 #define DTN_FORMAT DTN_FORMATW
3532 #define DTN_FORMATQUERY DTN_FORMATQUERYW
3533 typedef REBARBANDINFOW REBARBANDINFO
,*LPREBARBANDINFO
;
3534 #define LPCREBARBANDINFO LPCREBARBANDINFOW
3535 #define REBARBANDINFO_V3_SIZE REBARBANDINFOW_V3_SIZE
3536 #define RB_INSERTBAND RB_INSERTBANDW
3537 #define RB_SETBANDINFO RB_SETBANDINFOW
3539 typedef HDITEMA HDITEM
;
3540 typedef TOOLINFOA TOOLINFO
,*PTOOLINFO
,*LPTOOLINFO
;
3541 typedef TTHITTESTINFOA TTHITTESTINFO
,*LPHITTESTINFO
,*LPTTHITTESTINFO
;
3542 typedef TOOLTIPTEXTA TOOLTIPTEXT
,*LPTOOLTIPTEXT
;
3543 typedef NMTTDISPINFOA NMTTDISPINFO
, *LPNMTTDISPINFO
;
3544 typedef TV_ITEMA TV_ITEM
,*LPTV_ITEM
;
3545 typedef TVITEMA TVITEM
,*LPTVITEM
;
3546 #if (_WIN32_IE >= 0x0400)
3547 typedef TVITEMEXA TVITEMEX
,*LPTVITEMEX
;
3549 typedef TV_INSERTSTRUCTA TV_INSERTSTRUCT
,*LPTV_INSERTSTRUCT
;
3550 typedef TVINSERTSTRUCTA TVINSERTSTRUCT
,*LPTVINSERTSTRUCT
;
3551 typedef NM_TREEVIEWA NM_TREEVIEW
,*LPNM_TREEVIEW
;
3552 typedef NMTREEVIEWA NMTREEVIEW
,*LPNMTREEVIEW
;
3553 typedef NMHDDISPINFOW NMHDDISPINFO
, *LPNMHDDISPINFO
;
3554 #define ACM_OPEN ACM_OPENA
3555 #define COMBOBOXEXITEM COMBOBOXEXITEMA
3556 #define PCOMBOBOXEXITEM PCOMBOBOXEXITEMA
3557 #define PCCOMBOBOXEXITEM PCCOMBOBOXEXITEMA
3558 #define CBEM_INSERTITEM CBEM_INSERTITEMA
3559 #define CBEM_SETITEM CBEM_SETITEMA
3560 #define CBEM_GETITEM CBEM_GETITEMA
3561 #define CBEN_ENDEDIT CBEN_ENDEDITA
3562 #define NMCBEENDEDIT NMCBEENDEDITA
3563 #define LPNMCBEENDEDIT LPNMCBEENDEDITA
3564 #define PNMCBEENDEDIT PNMCBEENDEDITA
3565 #if _WIN32_IE >= 0x0400
3566 #define TB_GETBUTTONINFO TB_GETBUTTONINFOA
3567 #define TB_SETBUTTONINFO TB_SETBUTTONINFOA
3568 #define TB_INSERTBUTTON TB_INSERTBUTTONA
3569 #define TB_ADDBUTTONS TB_ADDBUTTONSA
3570 #define TB_MAPACCELERATOR TB_MAPACCELERATORA
3571 #define TB_GETSTRING TB_GETSTRINGA
3572 #define NMCOMBOBOXEX NMCOMBOBOXEXA
3573 #define PNMCOMBOBOXEX PNMCOMBOBOXEXA
3574 #define CBEN_DRAGBEGIN CBEN_DRAGBEGINA
3575 #define CBEN_GETDISPINFO CBEN_GETDISPINFOA
3576 #define NMCBEDRAGBEGIN NMCBEDRAGBEGINA
3577 #define LPNMCBEDRAGBEGIN LPNMCBEDRAGBEGINA
3578 #define PNMCBEDRAGBEGIN PNMCBEDRAGBEGINA
3579 #define TBN_GETDISPINFO TBN_GETDISPINFOA
3580 #define NMTBDISPINFO NMTBDISPINFOA
3581 #define LPNMTBDISPINFO LPNMTBDISPINFOA
3582 #define NMTBGETINFOTIP NMTBGETINFOTIPA
3583 #define LPNMTBGETINFOTIP LPNMTBGETINFOTIPA
3584 #endif /* _WIN32_IE >= 0x0400 */
3585 #define SB_GETTEXT SB_GETTEXTA
3586 #define SB_SETTEXT SB_SETTEXTA
3587 #define SB_GETTEXTLENGTH SB_GETTEXTLENGTHA
3588 #define HDM_INSERTITEM HDM_INSERTITEMA
3589 #define HDM_GETITEM HDM_GETITEMA
3590 #define HDM_SETITEM HDM_SETITEMA
3591 #define HDN_ITEMCHANGING HDN_ITEMCHANGINGA
3592 #define HDN_ITEMCHANGED HDN_ITEMCHANGEDA
3593 #define HDN_ITEMCLICK HDN_ITEMCLICKA
3594 #define HDN_ITEMDBLCLICK HDN_ITEMDBLCLICKA
3595 #define HDN_DIVIDERDBLCLICK HDN_DIVIDERDBLCLICKA
3596 #define HDN_BEGINTRACK HDN_BEGINTRACKA
3597 #define HDN_ENDTRACK HDN_ENDTRACKA
3598 #define HDN_TRACK HDN_TRACKA
3599 #if (_WIN32_IE >= 0x0300)
3600 #define HDN_GETDISPINFO HDN_GETDISPINFOA
3602 #define HD_NOTIFY HD_NOTIFYA
3603 #define TBSAVEPARAMS TBSAVEPARAMSA
3604 #define TB_GETBUTTONTEXT TB_GETBUTTONTEXTA
3605 #define TB_SAVERESTORE TB_SAVERESTOREA
3606 #define TB_ADDSTRING TB_ADDSTRINGA
3607 #define TBN_GETBUTTONINFO TBN_GETBUTTONINFOA
3608 #if _WIN32_IE >= 0x400
3609 #define TBBUTTONINFO TBBUTTONINFOA
3610 #define LPTBBUTTONINFO LPTBBUTTONINFOA
3612 #define TBNOTIFY TBNOTIFYA
3613 #define LPTBNOTIFY LPTBNOTIFYA
3614 #define NMTOOLBAR NMTOOLBARA
3615 #define LPNMTOOLBAR LPNMTOOLBARA
3616 #define TTM_ADDTOOL TTM_ADDTOOLA
3617 #define TTM_DELTOOL TTM_DELTOOLA
3618 #define TTM_NEWTOOLRECT TTM_NEWTOOLRECTA
3619 #define TTM_GETTOOLINFO TTM_GETTOOLINFOA
3620 #define TTM_SETTOOLINFO TTM_SETTOOLINFOA
3621 #define TTM_HITTEST TTM_HITTESTA
3622 #define TTM_GETTEXT TTM_GETTEXTA
3623 #define TTM_UPDATETIPTEXT TTM_UPDATETIPTEXTA
3624 #define TTM_ENUMTOOLS TTM_ENUMTOOLSA
3625 #define TTM_GETCURRENTTOOL TTM_GETCURRENTTOOLA
3626 #define TTN_NEEDTEXT TTN_NEEDTEXTA
3627 #define TTN_GETDISPINFO TTN_GETDISPINFOA
3628 #define SB_GETTEXT SB_GETTEXTA
3629 #define SB_SETTEXT SB_SETTEXTA
3630 #define SB_GETTEXTLENGTH SB_GETTEXTLENGTHA
3631 #define LV_ITEM LV_ITEMA
3632 #define LVITEM LVITEMA
3633 #define LPSTR_TEXTCALLBACK LPSTR_TEXTCALLBACKA
3634 #if _WIN32_IE >= 0x0400
3635 #define LVBKIMAGE LVBKIMAGEA
3636 #define LPLVBKIMAGE LPLVBKIMAGEA
3637 #define LVM_SETBKIMAGE LVM_SETBKIMAGEA
3638 #define LVM_GETBKIMAGE LVM_GETBKIMAGEA
3639 #endif /* _WIN32_IE >= 0x0400 */
3640 #define LVM_GETITEM LVM_GETITEMA
3641 #define LVM_SETITEM LVM_SETITEMA
3642 #define LVM_INSERTITEM LVM_INSERTITEMA
3643 #define LV_FINDINFO LV_FINDINFOA
3644 #define LVFINDINFO LVFINDINFOA
3645 #define LPFINDINFO LPFINDINFOA
3646 #define NMLVFINDITEM NMLVFINDITEMA
3647 #define PNMLVFINDITEM PNMLVFINDITEMA
3648 #define LPNMLVFINDITEM LPNMLVFINDITEMA
3649 #define LVM_FINDITEM LVM_FINDITEMA
3650 #define LVM_GETSTRINGWIDTH LVM_GETSTRINGWIDTHA
3651 #define LVM_EDITLABEL LVM_EDITLABELA
3652 #define LV_COLUMN LV_COLUMNA
3653 #define LVCOLUMN LVCOLUMNA
3654 #define LVM_GETCOLUMN LVM_GETCOLUMNA
3655 #define LVM_SETCOLUMN LVM_SETCOLUMNA
3656 #define LVM_INSERTCOLUMN LVM_INSERTCOLUMNA
3657 #define LVM_GETITEMTEXT LVM_GETITEMTEXTA
3658 #define LVM_SETITEMTEXT LVM_SETITEMTEXTA
3659 #define LVM_GETISEARCHSTRING LVM_GETISEARCHSTRINGA
3660 #define LVN_BEGINLABELEDIT LVN_BEGINLABELEDITA
3661 #define LVN_ENDLABELEDIT LVN_ENDLABELEDITA
3662 #define LVN_GETDISPINFO LVN_GETDISPINFOA
3663 #define LVN_SETDISPINFO LVN_SETDISPINFOA
3664 #define LVN_GETINFOTIP LVN_GETINFOTIPA
3665 #define NMLVGETINFOTIP NMLVGETINFOTIPA
3666 #define LPNMLVGETINFOTIP LPNMLVGETINFOTIPA
3667 #define LV_DISPINFO LV_DISPINFOA
3668 #define NMLVDISPINFO NMLVDISPINFOA
3669 #define LPNMLVDISPINFO LPNMLVDISPINFOA
3670 #define TVM_INSERTITEM TVM_INSERTITEMA
3671 #define TVM_GETITEM TVM_GETITEMA
3672 #define TVM_SETITEM TVM_SETITEMA
3673 #define TVM_EDITLABEL TVM_EDITLABELA
3674 #define TVM_GETISEARCHSTRING TVM_GETISEARCHSTRINGA
3675 #define TV_DISPINFO NMTVDISPINFOA
3676 #define NMTVDISPINFO NMTVDISPINFOA
3677 #define LPNMTVDISPINFO LPNMTVDISPINFOA
3678 #if (_WIN32_IE >= 0x0400)
3679 #define NMTVGETINFOTIP NMTVGETINFOTIPA
3680 #define LPNMTVGETINFOTIP LPNMTVGETINFOTIPA
3681 #define TVN_GETINFOTIP TVN_GETINFOTIPA
3683 #define TVN_SELCHANGING TVN_SELCHANGINGA
3684 #define TVN_SELCHANGED TVN_SELCHANGEDA
3685 #define TVN_GETDISPINFO TVN_GETDISPINFOA
3686 #define TVN_SETDISPINFO TVN_SETDISPINFOA
3687 #define TVN_ITEMEXPANDING TVN_ITEMEXPANDINGA
3688 #define TVN_ITEMEXPANDED TVN_ITEMEXPANDEDA
3689 #define TVN_BEGINDRAG TVN_BEGINDRAGA
3690 #define TVN_BEGINRDRAG TVN_BEGINRDRAGA
3691 #define TVN_DELETEITEM TVN_DELETEITEMA
3692 #define TVN_BEGINLABELEDIT TVN_BEGINLABELEDITA
3693 #define TVN_ENDLABELEDIT TVN_ENDLABELEDITA
3694 #define TC_ITEMHEADER TC_ITEMHEADERA
3695 #define TC_ITEM TC_ITEMA
3696 #define TCITEM TCITEMA
3697 #define LPTCITEM LPTCITEMA
3698 #define TCM_GETITEM TCM_GETITEMA
3699 #define TCM_SETITEM TCM_SETITEMA
3700 #define TCM_INSERTITEM TCM_INSERTITEMA
3701 #define CreateStatusWindow CreateStatusWindowA
3702 #define DrawStatusText DrawStatusTextA
3703 #define ImageList_LoadImage ImageList_LoadImageA
3704 #define DTM_SETFORMAT DTM_SETFORMATA
3705 #define DTN_USERSTRING DTN_USERSTRINGA
3706 #define DTN_WMKEYDOWN DTN_WMKEYDOWNA
3707 #define DTN_FORMAT DTN_FORMATA
3708 #define DTN_FORMATQUERY DTN_FORMATQUERYA
3709 typedef REBARBANDINFOA REBARBANDINFO
,*LPREBARBANDINFO
;
3710 #define LPCREBARBANDINFO LPCREBARBANDINFOA
3711 #define REBARBANDINFO_V3_SIZE REBARBANDINFOA_V3_SIZE
3712 #define RB_INSERTBAND RB_INSERTBANDA
3713 #define RB_SETBANDINFO RB_SETBANDINFOA
3715 #endif /* RC_INVOKED */
3717 #ifdef _WIN32_WCE /* these are PPC only */
3719 COMMCTRLAPI HWND WINAPI
CommandBar_Create(HINSTANCE
, HWND
, int);
3720 COMMCTRLAPI BOOL WINAPI
CommandBar_Show(HWND
, BOOL
);
3721 COMMCTRLAPI
int WINAPI
CommandBar_AddBitmap(HWND
, HINSTANCE
, int, int, int, int);
3722 COMMCTRLAPI HWND WINAPI
CommandBar_InsertComboBox(HWND
, HINSTANCE
, int, UINT
, WORD
, WORD
);
3723 COMMCTRLAPI BOOL WINAPI
CommandBar_InsertMenubar(HWND
, HINSTANCE
, WORD
, WORD
);
3724 COMMCTRLAPI BOOL WINAPI
CommandBar_InsertMenubarEx(HWND
, HINSTANCE
, LPTSTR
, WORD
);
3725 COMMCTRLAPI BOOL WINAPI
CommandBar_DrawMenuBar(HWND
, WORD
);
3726 COMMCTRLAPI HMENU WINAPI
CommandBar_GetMenu(HWND
, WORD
);
3727 COMMCTRLAPI BOOL WINAPI
CommandBar_AddAdornments(HWND
, DWORD
, DWORD
);
3728 COMMCTRLAPI
int WINAPI
CommandBar_Height(HWND hwndCB
);
3730 /* These two are not in the DLL */
3731 #define CommandBar_InsertButton(hwnd,i,lptbbutton) \
3732 SendMessage((hwnd),TB_INSERTBUTTON,(i),(lptbbutton))
3733 #define CommandBar_Destroy(hwnd) \
3737 #endif /* _WIN32_WCE */