ReactOS  0.4.15-dev-2534-geba00d1
commctrl.h
Go to the documentation of this file.
1 
7 #ifndef _INC_COMMCTRL
8 #define _INC_COMMCTRL
9 
10 #include <_mingw_unicode.h>
11 
12 #ifndef _WINRESRC_
13 #ifndef _WIN32_IE
14 #define _WIN32_IE 0x0501
15 #else
16 /* FIXME: This really must be 0x0501 !!! */
17 #if (_WIN32_IE < 0x0500)
18 #error _WIN32_IE setting conflicts
19 #endif
20 #endif /* !_WIN32_IE */
21 #endif /* !_WINRESRC_ */
22 
23 #ifndef _HRESULT_DEFINED
24 #define _HRESULT_DEFINED
25 typedef _Return_type_success_(return >= 0) LONG HRESULT;
26 #endif
27 
28 #ifndef NOUSER
29 
30 #ifndef WINCOMMCTRLAPI
31 #ifndef _COMCTL32_
32 #define WINCOMMCTRLAPI DECLSPEC_IMPORT
33 #else
34 #define WINCOMMCTRLAPI
35 #endif
36 #endif /* !WINCOMMCTRLAPI */
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 #include <prsht.h>
43 
44 #ifndef SNDMSG
45 #ifdef __cplusplus
46 #define SNDMSG ::SendMessage
47 #else
48 #define SNDMSG SendMessage
49 #endif
50 #endif /* !SNDMSG */
51 
53 
54  typedef struct tagINITCOMMONCONTROLSEX {
58 #define ICC_LISTVIEW_CLASSES 0x1
59 #define ICC_TREEVIEW_CLASSES 0x2
60 #define ICC_BAR_CLASSES 0x4
61 #define ICC_TAB_CLASSES 0x8
62 #define ICC_UPDOWN_CLASS 0x10
63 #define ICC_PROGRESS_CLASS 0x20
64 #define ICC_HOTKEY_CLASS 0x40
65 #define ICC_ANIMATE_CLASS 0x80
66 #define ICC_WIN95_CLASSES 0xff
67 #define ICC_DATE_CLASSES 0x100
68 #define ICC_USEREX_CLASSES 0x200
69 #define ICC_COOL_CLASSES 0x400
70 #define ICC_INTERNET_CLASSES 0x800
71 #define ICC_PAGESCROLLER_CLASS 0x1000
72 #define ICC_NATIVEFNTCTL_CLASS 0x2000
73 #define ICC_STANDARD_CLASSES 0x4000
74 #define ICC_LINK_CLASS 0x8000
75 
77 
78 #define ODT_HEADER 100
79 #define ODT_TAB 101
80 #define ODT_LISTVIEW 102
81 
82 #define LVM_FIRST 0x1000
83 #define TV_FIRST 0x1100
84 #define HDM_FIRST 0x1200
85 #define TCM_FIRST 0x1300
86 
87 #define PGM_FIRST 0x1400
88 #define ECM_FIRST 0x1500
89 #define BCM_FIRST 0x1600
90 #define CBM_FIRST 0x1700
91 #define CCM_FIRST 0x2000
92 #define CCM_LAST (CCM_FIRST+0x200)
93 #define CCM_SETBKCOLOR (CCM_FIRST+1)
94 #define CCM_SETCOLORSCHEME (CCM_FIRST+2)
95 #define CCM_GETCOLORSCHEME (CCM_FIRST+3)
96 #define CCM_GETDROPTARGET (CCM_FIRST+4)
97 #define CCM_SETUNICODEFORMAT (CCM_FIRST+5)
98 #define CCM_GETUNICODEFORMAT (CCM_FIRST+6)
99 
100  typedef struct tagCOLORSCHEME {
105 
106 #if (_WIN32_IE >= 0x0500)
107 
108 #if (_WIN32_WINNT >= 0x0501)
109 #define COMCTL32_VERSION 6
110 #else
111 #define COMCTL32_VERSION 5
112 #endif
113 
114 #define CCM_SETVERSION (CCM_FIRST+0x7)
115 #define CCM_GETVERSION (CCM_FIRST+0x8)
116 #define CCM_SETNOTIFYWINDOW (CCM_FIRST+0x9)
117 #if (_WIN32_WINNT >= 0x0501)
118 #define CCM_SETWINDOWTHEME (CCM_FIRST+0xb)
119 #define CCM_DPISCALE (CCM_FIRST+0xc)
120 #endif
121 
122 #endif /* _WIN32_IE >= 0x0500 */
123 
124 #define INFOTIPSIZE 1024
125 
126 #define HANDLE_WM_NOTIFY(hwnd,wParam,lParam,fn) (fn)((hwnd),(int)(wParam),(NMHDR *)(lParam))
127 #define FORWARD_WM_NOTIFY(hwnd,idFrom,pnmhdr,fn) (LRESULT)(fn)((hwnd),WM_NOTIFY,(WPARAM)(int)(idFrom),(LPARAM)(NMHDR *)(pnmhdr))
128 
129 #define NM_OUTOFMEMORY (NM_FIRST-1)
130 #define NM_CLICK (NM_FIRST-2)
131 #define NM_DBLCLK (NM_FIRST-3)
132 #define NM_RETURN (NM_FIRST-4)
133 #define NM_RCLICK (NM_FIRST-5)
134 #define NM_RDBLCLK (NM_FIRST-6)
135 #define NM_SETFOCUS (NM_FIRST-7)
136 #define NM_KILLFOCUS (NM_FIRST-8)
137 #define NM_CUSTOMDRAW (NM_FIRST-12)
138 #define NM_HOVER (NM_FIRST-13)
139 #define NM_NCHITTEST (NM_FIRST-14)
140 #define NM_KEYDOWN (NM_FIRST-15)
141 #define NM_RELEASEDCAPTURE (NM_FIRST-16)
142 #define NM_SETCURSOR (NM_FIRST-17)
143 #define NM_CHAR (NM_FIRST-18)
144 #define NM_TOOLTIPSCREATED (NM_FIRST-19)
145 #define NM_LDOWN (NM_FIRST-20)
146 #define NM_RDOWN (NM_FIRST-21)
147 #define NM_THEMECHANGED (NM_FIRST-22)
148 
149 #ifndef CCSIZEOF_STRUCT
150 #if defined(__clang__) /* Clang-CL fails without this workaround. See CORE-17547 */
151 #define CCSIZEOF_STRUCT(structname,member) (__builtin_offsetof(structname,member) + sizeof(((structname*)0)->member))
152 #else
153 #define CCSIZEOF_STRUCT(structname,member) (((int)((LPBYTE)(&((structname*)0)->member) - ((LPBYTE)((structname*)0))))+sizeof(((structname*)0)->member))
154 #endif
155 #endif
156 
157  typedef struct tagNMTOOLTIPSCREATED {
161 
162  typedef struct tagNMMOUSE {
168  } NMMOUSE,*LPNMMOUSE;
169 
170  typedef NMMOUSE NMCLICK;
172 
173  typedef struct tagNMOBJECTNOTIFY {
175  int iItem;
176 #ifdef __IID_DEFINED__
177  const IID *piid;
178 #else
179  const void *piid;
180 #endif
181  void *pObject;
185 
186  typedef struct tagNMKEY {
190  } NMKEY,*LPNMKEY;
191 
192  typedef struct tagNMCHAR {
197  } NMCHAR,*LPNMCHAR;
198 
199 #define NM_FIRST (0U- 0U)
200 #define NM_LAST (0U- 99U)
201 
202 #define LVN_FIRST (0U-100U)
203 #define LVN_LAST (0U-199U)
204 
205 #define HDN_FIRST (0U-300U)
206 #define HDN_LAST (0U-399U)
207 
208 #define TVN_FIRST (0U-400U)
209 #define TVN_LAST (0U-499U)
210 
211 #define TTN_FIRST (0U-520U)
212 #define TTN_LAST (0U-549U)
213 
214 #define TCN_FIRST (0U-550U)
215 #define TCN_LAST (0U-580U)
216 
217 #ifndef CDN_FIRST
218 #define CDN_FIRST (0U-601U)
219 #define CDN_LAST (0U-699U)
220 #endif
221 
222 #define TBN_FIRST (0U-700U)
223 #define TBN_LAST (0U-720U)
224 
225 #define UDN_FIRST (0U-721)
226 #define UDN_LAST (0U-740)
227 
228 #define MCN_FIRST (0U-750U)
229 #define MCN_LAST (0U-759U)
230 #define DTN_FIRST (0U-760U)
231 #define DTN_LAST (0U-799U)
232 #define CBEN_FIRST (0U-800U)
233 #define CBEN_LAST (0U-830U)
234 #define RBN_FIRST (0U-831U)
235 #define RBN_LAST (0U-859U)
236 
237 #define IPN_FIRST (0U-860U)
238 #define IPN_LAST (0U-879U)
239 #define SBN_FIRST (0U-880U)
240 #define SBN_LAST (0U-899U)
241 #define PGN_FIRST (0U-900U)
242 #define PGN_LAST (0U-950U)
243 
244 #ifndef WMN_FIRST
245 #define WMN_FIRST (0U-1000U)
246 #define WMN_LAST (0U-1200U)
247 #endif
248 
249 #define BCSIF_GLYPH 0x00000001
250 #define BCSIF_IMAGE 0x00000002
251 #define BCSIF_STYLE 0x00000004
252 #define BCSIF_SIZE 0x00000008
253 
254 #define BCSS_STRETCH 0x00000002
255 #define BCSS_IMAGE 0x00000008
256 
257 #define BCN_FIRST (0U-1250U)
258 #define BCN_LAST (0U-1350U)
259 
260 #define BCN_HOTITEMCHANGE (BCN_FIRST + 1)
261 #define BCN_DROPDOWN (BCN_FIRST + 2)
262 
263 #define MSGF_COMMCTRL_BEGINDRAG 0x4200
264 #define MSGF_COMMCTRL_SIZEHEADER 0x4201
265 #define MSGF_COMMCTRL_DRAGSELECT 0x4202
266 #define MSGF_COMMCTRL_TOOLBARCUST 0x4203
267 
268 #define CDRF_DODEFAULT 0x0
269 #define CDRF_NEWFONT 0x2
270 #define CDRF_SKIPDEFAULT 0x4
271 #define CDRF_DOERASE 0x8
272 #define CDRF_SKIPPOSTPAINT 0x100
273 
274 #define CDRF_NOTIFYPOSTPAINT 0x10
275 #define CDRF_NOTIFYITEMDRAW 0x20
276 #define CDRF_NOTIFYSUBITEMDRAW 0x20
277 #define CDRF_NOTIFYPOSTERASE 0x40
278 #define CDRF_NOTIFYITEMERASE 0x00000080 /* obsolete ??? */
279 
280 #define CDDS_PREPAINT 0x1
281 #define CDDS_POSTPAINT 0x2
282 #define CDDS_PREERASE 0x3
283 #define CDDS_POSTERASE 0x4
284 #define CDDS_ITEM 0x10000
285 #define CDDS_ITEMPREPAINT (CDDS_ITEM | CDDS_PREPAINT)
286 #define CDDS_ITEMPOSTPAINT (CDDS_ITEM | CDDS_POSTPAINT)
287 #define CDDS_ITEMPREERASE (CDDS_ITEM | CDDS_PREERASE)
288 #define CDDS_ITEMPOSTERASE (CDDS_ITEM | CDDS_POSTERASE)
289 #define CDDS_SUBITEM 0x20000
290 
291 #define CDIS_SELECTED 0x1
292 #define CDIS_GRAYED 0x2
293 #define CDIS_DISABLED 0x4
294 #define CDIS_CHECKED 0x8
295 #define CDIS_FOCUS 0x10
296 #define CDIS_DEFAULT 0x20
297 #define CDIS_HOT 0x40
298 #define CDIS_MARKED 0x80
299 #define CDIS_INDETERMINATE 0x100
300 #define CDIS_SHOWKEYBOARDCUES 0x200
301 
302  typedef struct tagNMCUSTOMDRAWINFO {
311 
312  typedef struct tagNMTTCUSTOMDRAW {
316 
317 #ifndef NOIMAGEAPIS
318 
319 #define CLR_NONE 0xffffffffL
320 #define CLR_DEFAULT 0xFF000000L
321 
322 #ifndef HIMAGELIST
323  struct _IMAGELIST;
324  typedef struct _IMAGELIST *HIMAGELIST;
325 #endif
326 
327 #ifndef IMAGELISTDRAWPARAMS
328  typedef struct _IMAGELISTDRAWPARAMS {
331  int i;
333  int x;
334  int y;
335  int cx;
336  int cy;
337  int xBitmap;
338  int yBitmap;
347 
348 #define IMAGELISTDRAWPARAMS_V3_SIZE CCSIZEOF_STRUCT(IMAGELISTDRAWPARAMS,dwRop)
349 #endif
350 
351 #define ILC_MASK 0x1
352 #define ILC_COLOR 0x0
353 #define ILC_COLORDDB 0xfe
354 #define ILC_COLOR4 0x4
355 #define ILC_COLOR8 0x8
356 #define ILC_COLOR16 0x10
357 #define ILC_COLOR24 0x18
358 #define ILC_COLOR32 0x20
359 #define ILC_PALETTE 0x800
360 #define ILC_MIRROR 0x2000
361 #define ILC_PERITEMMIRROR 0x8000
362 
363  WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_Create(int cx,int cy,UINT flags,int cInitial,int cGrow);
366 
368  BOOL
369  WINAPI
372  _In_ UINT uNewCount);
373 
375  int
376  WINAPI
379  _In_ HBITMAP hbmImage,
380  _In_opt_ HBITMAP hbmMask);
381 
383  int
384  WINAPI
387  _In_ int i,
388  _In_ HICON hicon);
389 
391  COLORREF
392  WINAPI
395  _In_ COLORREF clrBk);
396 
398 
400  BOOL
401  WINAPI
404  _In_ int iImage,
405  _In_ int iOverlay);
406 
408  HRESULT
409  WINAPI
412  _In_ REFIID,
413  _Outptr_ void **);
414 
415 #define ImageList_AddIcon(himl,hicon) ImageList_ReplaceIcon(himl,-1,hicon)
416 
417 #define ILD_NORMAL 0x0
418 #define ILD_TRANSPARENT 0x1
419 #define ILD_MASK 0x10
420 #define ILD_IMAGE 0x20
421 #define ILD_ROP 0x40
422 #define ILD_BLEND25 0x2
423 #define ILD_BLEND50 0x4
424 #define ILD_OVERLAYMASK 0xf00
425 #define INDEXTOOVERLAYMASK(i) ((i) << 8)
426 #define ILD_PRESERVEALPHA 0x1000
427 #define ILD_SCALE 0x2000
428 #define ILD_DPISCALE 0x4000
429 
430 #define ILD_SELECTED ILD_BLEND50
431 #define ILD_FOCUS ILD_BLEND25
432 #define ILD_BLEND ILD_BLEND50
433 #define CLR_HILIGHT CLR_DEFAULT
434 
435 #define ILS_NORMAL 0x0
436 #define ILS_GLOW 0x1
437 #define ILS_SHADOW 0x2
438 #define ILS_SATURATE 0x4
439 #define ILS_ALPHA 0x8
440 
442  BOOL
443  WINAPI
446  _In_ int i,
447  _In_ HDC hdcDst,
448  _In_ int x,
449  _In_ int y,
450  _In_ UINT fStyle);
451 
453  BOOL
454  WINAPI
457  _In_ int i,
458  _In_ HBITMAP hbmImage,
459  _In_opt_ HBITMAP hbmMask);
460 
462  int
463  WINAPI
466  _In_ HBITMAP hbmImage,
467  _In_ COLORREF crMask);
468 
470  BOOL
471  WINAPI
474  _In_ int i,
475  _In_ HDC hdcDst,
476  _In_ int x,
477  _In_ int y,
478  _In_ int dx,
479  _In_ int dy,
480  _In_ COLORREF rgbBk,
481  _In_ COLORREF rgbFg,
482  _In_ UINT fStyle);
483 
485  BOOL
486  WINAPI
488  _In_ IMAGELISTDRAWPARAMS *pimldp);
489 
491  BOOL
492  WINAPI
495  _In_ int i);
496 
498  HICON
499  WINAPI
502  _In_ int i,
503  _In_ UINT flags);
504 
507 
508 #define ImageList_LoadImage __MINGW_NAME_AW(ImageList_LoadImage)
509 
510 #define ILCF_MOVE 0x0
511 #define ILCF_SWAP 0x1
512 
514  BOOL
515  WINAPI
517  _In_ HIMAGELIST himlDst,
518  _In_ int iDst,
519  _In_ HIMAGELIST himlSrc,
520  _In_ int iSrc,
521  _In_ UINT uFlags);
522 
524  BOOL
525  WINAPI
527  _In_ HIMAGELIST himlTrack,
528  _In_ int iTrack,
529  _In_ int dxHotspot,
530  _In_ int dyHotspot);
531 
536 
538  BOOL
539  WINAPI
541  _In_ HIMAGELIST himlDrag,
542  _In_ int iDrag,
543  _In_ int dxHotspot,
544  _In_ int dyHotspot);
545 
547 
548  _Success_(return != NULL)
550  HIMAGELIST
551  WINAPI
553  _Out_opt_ POINT *ppt,
555 
556 #define ImageList_RemoveAll(himl) ImageList_Remove(himl,-1)
557 #define ImageList_ExtractIcon(hi,himl,i) ImageList_GetIcon(himl,i,0)
558 #define ImageList_LoadBitmap(hi,lpbmp,cx,cGrow,crMask) ImageList_LoadImage(hi,lpbmp,cx,cGrow,crMask,IMAGE_BITMAP,0)
559 
560 #ifdef __IStream_INTERFACE_DEFINED__
563 #define ILP_NORMAL 0
564 #define ILP_DOWNLEVEL 1
567 #endif
568 
569 #ifndef IMAGEINFO
570  typedef struct _IMAGEINFO {
573  int Unused1;
574  int Unused2;
577 #endif
578 
579  _Success_(return != 0)
581  BOOL
582  WINAPI
585  _Out_opt_ int *cx,
586  _Out_opt_ int *cy);
587 
588  _Success_(return != 0)
590  BOOL
591  WINAPI
594  _In_ int cx,
595  _In_ int cy);
596 
597  _Success_(return != 0)
599  BOOL
600  WINAPI
603  _In_ int i,
605 
607  HIMAGELIST
608  WINAPI
610  _In_ HIMAGELIST himl1,
611  _In_ int i1,
612  _In_ HIMAGELIST himl2,
613  _In_ int i2,
614  _In_ int dx,
615  _In_ int dy);
616 
618 
619 #endif /* !NOIMAGEAPIS */
620 
621 #ifndef NOHEADER
622 
623 #define WC_HEADERA "SysHeader32"
624 #define WC_HEADERW L"SysHeader32"
625 
626 #define WC_HEADER __MINGW_NAME_AW(WC_HEADER)
627 
628 #define HDS_HORZ 0x0
629 #define HDS_BUTTONS 0x2
630 #define HDS_HOTTRACK 0x4
631 #define HDS_HIDDEN 0x8
632 #define HDS_DRAGDROP 0x40
633 #define HDS_FULLDRAG 0x80
634 #define HDS_FILTERBAR 0x100
635 #define HDS_FLAT 0x200
636 #if (_WIN32_WINNT >= 0x0600)
637 #define HDS_CHECKBOXES 0x400
638 #define HDS_NOSIZING 0x800
639 #define HDS_OVERFLOW 0x1000
640 #endif
641 
642 #define HDFT_ISSTRING 0x0
643 #define HDFT_ISNUMBER 0x1
644 
645 #define HDFT_HASNOVALUE 0x8000
646 
647 #define HD_TEXTFILTER __MINGW_NAME_AW(HD_TEXTFILTER)
648 #define HDTEXTFILTER __MINGW_NAME_AW(HD_TEXTFILTER)
649 #define LPHD_TEXTFILTER __MINGW_NAME_AW(LPHD_TEXTFILTER)
650 #define LPHDTEXTFILTER __MINGW_NAME_AW(LPHD_TEXTFILTER)
651 
652  typedef struct _HD_TEXTFILTERA {
656 
657  typedef struct _HD_TEXTFILTERW {
661 
662 #define HD_ITEMA HDITEMA
663 #define HD_ITEMW HDITEMW
664 #define HD_ITEM HDITEM
665 
666  typedef struct _HD_ITEMA {
668  int cxy;
672  int fmt;
674  int iImage;
675  int iOrder;
677  void *pvFilter;
678  } HDITEMA,*LPHDITEMA;
679 
680 #define HDITEMA_V1_SIZE CCSIZEOF_STRUCT(HDITEMA,lParam)
681 #define HDITEMW_V1_SIZE CCSIZEOF_STRUCT(HDITEMW,lParam)
682 
683  typedef struct _HD_ITEMW {
685  int cxy;
689  int fmt;
691  int iImage;
692  int iOrder;
694  void *pvFilter;
695  } HDITEMW,*LPHDITEMW;
696 
697 #define HDITEM __MINGW_NAME_AW(HDITEM)
698 #define LPHDITEM __MINGW_NAME_AW(LPHDITEM)
699 
700 #define HDITEM_V1_SIZE __MINGW_NAME_AW_EXT(HDITEM,_V1_SIZE)
701 
702 #define HDI_WIDTH 0x1
703 #define HDI_HEIGHT HDI_WIDTH
704 #define HDI_TEXT 0x2
705 #define HDI_FORMAT 0x4
706 #define HDI_LPARAM 0x8
707 #define HDI_BITMAP 0x10
708 #define HDI_IMAGE 0x20
709 #define HDI_DI_SETITEM 0x40
710 #define HDI_ORDER 0x80
711 #define HDI_FILTER 0x100
712 
713 #define HDF_LEFT 0x0
714 #define HDF_RIGHT 0x1
715 #define HDF_CENTER 0x2
716 #define HDF_JUSTIFYMASK 0x3
717 #define HDF_RTLREADING 0x4
718 
719 #define HDF_OWNERDRAW 0x8000
720 #define HDF_STRING 0x4000
721 #define HDF_BITMAP 0x2000
722 #define HDF_BITMAP_ON_RIGHT 0x1000
723 #define HDF_IMAGE 0x800
724 #define HDF_SORTUP 0x400
725 #define HDF_SORTDOWN 0x200
726 #if (_WIN32_WINNT >= 0x0600)
727 #define HDF_CHECKBOX 0x40
728 #define HDF_CHECKED 0x80
729 #define HDF_FIXEDWIDTH 0x100
730 #define HDF_SPLITBUTTON 0x1000000
731 #endif
732 
733 #define HDM_GETITEMCOUNT (HDM_FIRST+0)
734 #define Header_GetItemCount(hwndHD) (int)SNDMSG((hwndHD),HDM_GETITEMCOUNT,0,0L)
735 
736 #define HDM_INSERTITEMA (HDM_FIRST+1)
737 #define HDM_INSERTITEMW (HDM_FIRST+10)
738 
739 #define HDM_INSERTITEM __MINGW_NAME_AW(HDM_INSERTITEM)
740 
741 #define Header_InsertItem(hwndHD,i,phdi) (int)SNDMSG((hwndHD),HDM_INSERTITEM,(WPARAM)(int)(i),(LPARAM)(const HD_ITEM *)(phdi))
742 
743 #define HDM_DELETEITEM (HDM_FIRST+2)
744 #define Header_DeleteItem(hwndHD,i) (BOOL)SNDMSG((hwndHD),HDM_DELETEITEM,(WPARAM)(int)(i),0L)
745 
746 #define HDM_GETITEMA (HDM_FIRST+3)
747 #define HDM_GETITEMW (HDM_FIRST+11)
748 
749 #define HDM_GETITEM __MINGW_NAME_AW(HDM_GETITEM)
750 
751 #define Header_GetItem(hwndHD,i,phdi) (BOOL)SNDMSG((hwndHD),HDM_GETITEM,(WPARAM)(int)(i),(LPARAM)(HD_ITEM *)(phdi))
752 
753 #define HDM_SETITEMA (HDM_FIRST+4)
754 #define HDM_SETITEMW (HDM_FIRST+12)
755 
756 #define HDM_SETITEM __MINGW_NAME_AW(HDM_SETITEM)
757 
758 #define Header_SetItem(hwndHD,i,phdi) (BOOL)SNDMSG((hwndHD),HDM_SETITEM,(WPARAM)(int)(i),(LPARAM)(const HD_ITEM *)(phdi))
759 
760 #define HD_LAYOUT HDLAYOUT
761 
762  typedef struct _HD_LAYOUT {
765  } HDLAYOUT,*LPHDLAYOUT;
766 
767 #define HDM_LAYOUT (HDM_FIRST+5)
768 #define Header_Layout(hwndHD,playout) (BOOL)SNDMSG((hwndHD),HDM_LAYOUT,0,(LPARAM)(HD_LAYOUT *)(playout))
769 
770 #define HHT_NOWHERE 0x1
771 #define HHT_ONHEADER 0x2
772 #define HHT_ONDIVIDER 0x4
773 #define HHT_ONDIVOPEN 0x8
774 #define HHT_ONFILTER 0x10
775 #define HHT_ONFILTERBUTTON 0x20
776 #define HHT_ABOVE 0x100
777 #define HHT_BELOW 0x200
778 #define HHT_TORIGHT 0x400
779 #define HHT_TOLEFT 0x800
780 
781 #define HD_HITTESTINFO HDHITTESTINFO
782 
783  typedef struct _HD_HITTESTINFO {
786  int iItem;
788 
789 #define HDM_HITTEST (HDM_FIRST+6)
790 
791 #define HDM_GETITEMRECT (HDM_FIRST+7)
792 #define Header_GetItemRect(hwnd,iItem,lprc) (BOOL)SNDMSG((hwnd),HDM_GETITEMRECT,(WPARAM)(iItem),(LPARAM)(lprc))
793 
794 #define HDM_SETIMAGELIST (HDM_FIRST+8)
795 #define Header_SetImageList(hwnd,himl) (HIMAGELIST)SNDMSG((hwnd),HDM_SETIMAGELIST,0,(LPARAM)(himl))
796 
797 #define HDM_GETIMAGELIST (HDM_FIRST+9)
798 #define Header_GetImageList(hwnd) (HIMAGELIST)SNDMSG((hwnd),HDM_GETIMAGELIST,0,0)
799 
800 #define HDM_ORDERTOINDEX (HDM_FIRST+15)
801 #define Header_OrderToIndex(hwnd,i) (int)SNDMSG((hwnd),HDM_ORDERTOINDEX,(WPARAM)(i),0)
802 
803 #define HDM_CREATEDRAGIMAGE (HDM_FIRST+16)
804 #define Header_CreateDragImage(hwnd,i) (HIMAGELIST)SNDMSG((hwnd),HDM_CREATEDRAGIMAGE,(WPARAM)(i),0)
805 
806 #define HDM_GETORDERARRAY (HDM_FIRST+17)
807 #define Header_GetOrderArray(hwnd,iCount,lpi) (BOOL)SNDMSG((hwnd),HDM_GETORDERARRAY,(WPARAM)(iCount),(LPARAM)(lpi))
808 
809 #define HDM_SETORDERARRAY (HDM_FIRST+18)
810 #define Header_SetOrderArray(hwnd,iCount,lpi) (BOOL)SNDMSG((hwnd),HDM_SETORDERARRAY,(WPARAM)(iCount),(LPARAM)(lpi))
811 
812 #define HDM_SETHOTDIVIDER (HDM_FIRST+19)
813 #define Header_SetHotDivider(hwnd,fPos,dw) (int)SNDMSG((hwnd),HDM_SETHOTDIVIDER,(WPARAM)(fPos),(LPARAM)(dw))
814 
815 #define HDM_SETBITMAPMARGIN (HDM_FIRST+20)
816 #define Header_SetBitmapMargin(hwnd,iWidth) (int)SNDMSG((hwnd),HDM_SETBITMAPMARGIN,(WPARAM)(iWidth),0)
817 
818 #define HDM_GETBITMAPMARGIN (HDM_FIRST+21)
819 #define Header_GetBitmapMargin(hwnd) (int)SNDMSG((hwnd),HDM_GETBITMAPMARGIN,0,0)
820 
821 #define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
822 #define Header_SetUnicodeFormat(hwnd,fUnicode) (BOOL)SNDMSG((hwnd),HDM_SETUNICODEFORMAT,(WPARAM)(fUnicode),0)
823 
824 #define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
825 #define Header_GetUnicodeFormat(hwnd) (BOOL)SNDMSG((hwnd),HDM_GETUNICODEFORMAT,0,0)
826 
827 #define HDM_SETFILTERCHANGETIMEOUT (HDM_FIRST+22)
828 #define Header_SetFilterChangeTimeout(hwnd,i) (int)SNDMSG((hwnd),HDM_SETFILTERCHANGETIMEOUT,0,(LPARAM)(i))
829 
830 #define HDM_EDITFILTER (HDM_FIRST+23)
831 #define Header_EditFilter(hwnd,i,fDiscardChanges) (int)SNDMSG((hwnd),HDM_EDITFILTER,(WPARAM)(i),MAKELPARAM(fDiscardChanges,0))
832 
833 #define HDM_CLEARFILTER (HDM_FIRST+24)
834 #define Header_ClearFilter(hwnd,i) (int)SNDMSG((hwnd),HDM_CLEARFILTER,(WPARAM)(i),0)
835 #define Header_ClearAllFilters(hwnd) (int)SNDMSG((hwnd),HDM_CLEARFILTER,(WPARAM)-1,0)
836 
837 #define HDN_ITEMCHANGINGA (HDN_FIRST-0)
838 #define HDN_ITEMCHANGINGW (HDN_FIRST-20)
839 #define HDN_ITEMCHANGEDA (HDN_FIRST-1)
840 #define HDN_ITEMCHANGEDW (HDN_FIRST-21)
841 #define HDN_ITEMCLICKA (HDN_FIRST-2)
842 #define HDN_ITEMCLICKW (HDN_FIRST-22)
843 #define HDN_ITEMDBLCLICKA (HDN_FIRST-3)
844 #define HDN_ITEMDBLCLICKW (HDN_FIRST-23)
845 #define HDN_DIVIDERDBLCLICKA (HDN_FIRST-5)
846 #define HDN_DIVIDERDBLCLICKW (HDN_FIRST-25)
847 #define HDN_BEGINTRACKA (HDN_FIRST-6)
848 #define HDN_BEGINTRACKW (HDN_FIRST-26)
849 #define HDN_ENDTRACKA (HDN_FIRST-7)
850 #define HDN_ENDTRACKW (HDN_FIRST-27)
851 #define HDN_TRACKA (HDN_FIRST-8)
852 #define HDN_TRACKW (HDN_FIRST-28)
853 #define HDN_GETDISPINFOA (HDN_FIRST-9)
854 #define HDN_GETDISPINFOW (HDN_FIRST-29)
855 #define HDN_BEGINDRAG (HDN_FIRST-10)
856 #define HDN_ENDDRAG (HDN_FIRST-11)
857 #define HDN_FILTERCHANGE (HDN_FIRST-12)
858 #define HDN_FILTERBTNCLICK (HDN_FIRST-13)
859 #define HDN_BEGINFILTEREDIT (HDN_FIRST-14)
860 #define HDN_ENDFILTEREDIT (HDN_FIRST-15)
861 #define HDN_ITEMSTATEICONCLICK (HDN_FIRST-16)
862 #define HDN_ITEMKEYDOWN (HDN_FIRST-17)
863 #define HDN_DROPDOWN (HDN_FIRST-18)
864 #define HDN_OVERFLOWCLICK (HDN_FIRST-19)
865 
866 #define HDN_ITEMCHANGING __MINGW_NAME_AW(HDN_ITEMCHANGING)
867 #define HDN_ITEMCHANGED __MINGW_NAME_AW(HDN_ITEMCHANGED)
868 #define HDN_ITEMCLICK __MINGW_NAME_AW(HDN_ITEMCLICK)
869 #define HDN_ITEMDBLCLICK __MINGW_NAME_AW(HDN_ITEMDBLCLICK)
870 #define HDN_DIVIDERDBLCLICK __MINGW_NAME_AW(HDN_DIVIDERDBLCLICK)
871 #define HDN_BEGINTRACK __MINGW_NAME_AW(HDN_BEGINTRACK)
872 #define HDN_ENDTRACK __MINGW_NAME_AW(HDN_ENDTRACK)
873 #define HDN_TRACK __MINGW_NAME_AW(HDN_TRACK)
874 #define HDN_GETDISPINFO __MINGW_NAME_AW(HDN_GETDISPINFO)
875 
876 #define HD_NOTIFYA NMHEADERA
877 #define HD_NOTIFYW NMHEADERW
878 #define HD_NOTIFY NMHEADER
879 
880  typedef struct tagNMHEADERA {
882  int iItem;
883  int iButton;
886 
887  typedef struct tagNMHEADERW {
889  int iItem;
890  int iButton;
893 
894 #define NMHEADER __MINGW_NAME_AW(NMHEADER)
895 #define LPNMHEADER __MINGW_NAME_AW(LPNMHEADER)
896 
897  typedef struct tagNMHDDISPINFOW {
899  int iItem;
903  int iImage;
906 
907  typedef struct tagNMHDDISPINFOA {
909  int iItem;
913  int iImage;
916 
917 #define NMHDDISPINFO __MINGW_NAME_AW(NMHDDISPINFO)
918 #define LPNMHDDISPINFO __MINGW_NAME_AW(LPNMHDDISPINFO)
919 
920  typedef struct tagNMHDFILTERBTNCLICK {
925 
926 #endif /* !NOHEADER */
927 
928 typedef struct tagBUTTON_SPLITINFO {
934 
935 typedef struct tagNMBCDROPDOWN {
938 } NMBCDROPDOWN;
939 
940 
941 #ifndef NOTOOLBAR
942 
943 #define TOOLBARCLASSNAMEW L"ToolbarWindow32"
944 #define TOOLBARCLASSNAMEA "ToolbarWindow32"
945 
946 #define TOOLBARCLASSNAME __MINGW_NAME_AW(TOOLBARCLASSNAME)
947 
948  typedef struct _TBBUTTON {
949  int iBitmap;
953 #ifdef _WIN64
954  BYTE bReserved[6];
955 #else
957 #endif
961  typedef const TBBUTTON *LPCTBBUTTON;
962 
963  typedef struct _COLORMAP {
966  } COLORMAP,*LPCOLORMAP;
967 
968  WINCOMMCTRLAPI HWND WINAPI CreateToolbarEx(HWND hwnd,DWORD ws,UINT wID,int nBitmaps,HINSTANCE hBMInst,UINT_PTR wBMID,LPCTBBUTTON lpButtons,int iNumButtons,int dxButton,int dyButton,int dxBitmap,int dyBitmap,UINT uStructSize);
970 
971 #define CMB_MASKED 0x2
972 #define TBSTATE_CHECKED 0x1
973 #define TBSTATE_PRESSED 0x2
974 #define TBSTATE_ENABLED 0x4
975 #define TBSTATE_HIDDEN 0x8
976 #define TBSTATE_INDETERMINATE 0x10
977 #define TBSTATE_WRAP 0x20
978 #define TBSTATE_ELLIPSES 0x40
979 #define TBSTATE_MARKED 0x80
980 
981 #define TBSTYLE_BUTTON 0x0
982 #define TBSTYLE_SEP 0x1
983 #define TBSTYLE_CHECK 0x2
984 #define TBSTYLE_GROUP 0x4
985 #define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK)
986 #define TBSTYLE_DROPDOWN 0x8
987 #define TBSTYLE_AUTOSIZE 0x10
988 #define TBSTYLE_NOPREFIX 0x20
989 #define TBSTYLE_TOOLTIPS 0x100
990 #define TBSTYLE_WRAPABLE 0x200
991 #define TBSTYLE_ALTDRAG 0x400
992 #define TBSTYLE_FLAT 0x800
993 #define TBSTYLE_LIST 0x1000
994 #define TBSTYLE_CUSTOMERASE 0x2000
995 #define TBSTYLE_REGISTERDROP 0x4000
996 #define TBSTYLE_TRANSPARENT 0x8000
997 
998 #define BTNS_BUTTON TBSTYLE_BUTTON
999 #define BTNS_SEP TBSTYLE_SEP
1000 #define BTNS_CHECK TBSTYLE_CHECK
1001 #define BTNS_GROUP TBSTYLE_GROUP
1002 #define BTNS_CHECKGROUP TBSTYLE_CHECKGROUP
1003 #define BTNS_DROPDOWN TBSTYLE_DROPDOWN
1004 #define BTNS_AUTOSIZE TBSTYLE_AUTOSIZE
1005 #define BTNS_NOPREFIX TBSTYLE_NOPREFIX
1006 #define BTNS_SHOWTEXT 0x40
1007 #define BTNS_WHOLEDROPDOWN 0x80
1008 
1009 #define TBSTYLE_EX_DRAWDDARROWS 0x00000001
1010 #define TBSTYLE_EX_MULTICOLUMN 0x00000002
1011 #define TBSTYLE_EX_VERTICAL 0x00000004
1012 #define TBSTYLE_EX_MIXEDBUTTONS 0x00000008
1013 #define TBSTYLE_EX_HIDECLIPPEDBUTTONS 0x00000010 /* don't show partially obscured buttons */
1014 #define TBSTYLE_EX_DOUBLEBUFFER 0x00000080 /* Double Buffer the toolbar */
1015 
1016  typedef struct _NMTBCUSTOMDRAW {
1019  HBRUSH hbrLines;
1032 
1033 #define TBCDRF_NOEDGES 0x10000
1034 #define TBCDRF_HILITEHOTTRACK 0x20000
1035 #define TBCDRF_NOOFFSET 0x40000
1036 #define TBCDRF_NOMARK 0x80000
1037 #define TBCDRF_NOETCHEDEFFECT 0x100000
1038 
1039 #define TBCDRF_BLENDICON 0x200000
1040 #define TBCDRF_NOBACKGROUND 0x400000
1041 
1042 #define TB_ENABLEBUTTON (WM_USER+1)
1043 #define TB_CHECKBUTTON (WM_USER+2)
1044 #define TB_PRESSBUTTON (WM_USER+3)
1045 #define TB_HIDEBUTTON (WM_USER+4)
1046 #define TB_INDETERMINATE (WM_USER+5)
1047 #define TB_MARKBUTTON (WM_USER+6)
1048 #define TB_ISBUTTONENABLED (WM_USER+9)
1049 #define TB_ISBUTTONCHECKED (WM_USER+10)
1050 #define TB_ISBUTTONPRESSED (WM_USER+11)
1051 #define TB_ISBUTTONHIDDEN (WM_USER+12)
1052 #define TB_ISBUTTONINDETERMINATE (WM_USER+13)
1053 #define TB_ISBUTTONHIGHLIGHTED (WM_USER+14)
1054 #define TB_SETSTATE (WM_USER+17)
1055 #define TB_GETSTATE (WM_USER+18)
1056 #define TB_ADDBITMAP (WM_USER+19)
1057 
1058  typedef struct tagTBADDBITMAP {
1062 
1063 #define HINST_COMMCTRL ((HINSTANCE)-1)
1064 #define IDB_STD_SMALL_COLOR 0
1065 #define IDB_STD_LARGE_COLOR 1
1066 #define IDB_VIEW_SMALL_COLOR 4
1067 #define IDB_VIEW_LARGE_COLOR 5
1068 #define IDB_HIST_SMALL_COLOR 8
1069 #define IDB_HIST_LARGE_COLOR 9
1070 
1071 #define STD_CUT 0
1072 #define STD_COPY 1
1073 #define STD_PASTE 2
1074 #define STD_UNDO 3
1075 #define STD_REDOW 4
1076 #define STD_DELETE 5
1077 #define STD_FILENEW 6
1078 #define STD_FILEOPEN 7
1079 #define STD_FILESAVE 8
1080 #define STD_PRINTPRE 9
1081 #define STD_PROPERTIES 10
1082 #define STD_HELP 11
1083 #define STD_FIND 12
1084 #define STD_REPLACE 13
1085 #define STD_PRINT 14
1086 
1087 #define VIEW_LARGEICONS 0
1088 #define VIEW_SMALLICONS 1
1089 #define VIEW_LIST 2
1090 #define VIEW_DETAILS 3
1091 #define VIEW_SORTNAME 4
1092 #define VIEW_SORTSIZE 5
1093 #define VIEW_SORTDATE 6
1094 #define VIEW_SORTTYPE 7
1095 #define VIEW_PARENTFOLDER 8
1096 #define VIEW_NETCONNECT 9
1097 #define VIEW_NETDISCONNECT 10
1098 #define VIEW_NEWFOLDER 11
1099 #define VIEW_VIEWMENU 12
1100 #define HIST_BACK 0
1101 #define HIST_FORWARD 1
1102 #define HIST_FAVORITES 2
1103 #define HIST_ADDTOFAVORITES 3
1104 #define HIST_VIEWTREE 4
1105 
1106 #define TB_ADDBUTTONSA (WM_USER+20)
1107 #define TB_INSERTBUTTONA (WM_USER+21)
1108 #define TB_DELETEBUTTON (WM_USER+22)
1109 #define TB_GETBUTTON (WM_USER+23)
1110 #define TB_BUTTONCOUNT (WM_USER+24)
1111 #define TB_COMMANDTOINDEX (WM_USER+25)
1112 
1113  typedef struct tagTBSAVEPARAMSA {
1118 
1119  typedef struct tagTBSAVEPARAMSW {
1124 
1125 #define TBSAVEPARAMS __MINGW_NAME_AW(TBSAVEPARAMS)
1126 #define LPTBSAVEPARAMS __MINGW_NAME_AW(LPTBSAVEPARAMS)
1127 
1128 #define TB_SAVERESTOREA (WM_USER+26)
1129 #define TB_SAVERESTOREW (WM_USER+76)
1130 #define TB_CUSTOMIZE (WM_USER+27)
1131 #define TB_ADDSTRINGA (WM_USER+28)
1132 #define TB_ADDSTRINGW (WM_USER+77)
1133 #define TB_GETITEMRECT (WM_USER+29)
1134 #define TB_BUTTONSTRUCTSIZE (WM_USER+30)
1135 #define TB_SETBUTTONSIZE (WM_USER+31)
1136 #define TB_SETBITMAPSIZE (WM_USER+32)
1137 #define TB_AUTOSIZE (WM_USER+33)
1138 #define TB_GETTOOLTIPS (WM_USER+35)
1139 #define TB_SETTOOLTIPS (WM_USER+36)
1140 #define TB_SETPARENT (WM_USER+37)
1141 #define TB_SETROWS (WM_USER+39)
1142 #define TB_GETROWS (WM_USER+40)
1143 #define TB_SETCMDID (WM_USER+42)
1144 #define TB_CHANGEBITMAP (WM_USER+43)
1145 #define TB_GETBITMAP (WM_USER+44)
1146 #define TB_GETBUTTONTEXTA (WM_USER+45)
1147 #define TB_GETBUTTONTEXTW (WM_USER+75)
1148 #define TB_REPLACEBITMAP (WM_USER+46)
1149 #define TB_SETINDENT (WM_USER+47)
1150 #define TB_SETIMAGELIST (WM_USER+48)
1151 #define TB_GETIMAGELIST (WM_USER+49)
1152 #define TB_LOADIMAGES (WM_USER+50)
1153 #define TB_GETRECT (WM_USER+51)
1154 #define TB_SETHOTIMAGELIST (WM_USER+52)
1155 #define TB_GETHOTIMAGELIST (WM_USER+53)
1156 #define TB_SETDISABLEDIMAGELIST (WM_USER+54)
1157 #define TB_GETDISABLEDIMAGELIST (WM_USER+55)
1158 #define TB_SETSTYLE (WM_USER+56)
1159 #define TB_GETSTYLE (WM_USER+57)
1160 #define TB_GETBUTTONSIZE (WM_USER+58)
1161 #define TB_SETBUTTONWIDTH (WM_USER+59)
1162 #define TB_SETMAXTEXTROWS (WM_USER+60)
1163 #define TB_GETTEXTROWS (WM_USER+61)
1164 
1165 #define TB_GETBUTTONTEXT __MINGW_NAME_AW(TB_GETBUTTONTEXT)
1166 #define TB_SAVERESTORE __MINGW_NAME_AW(TB_SAVERESTORE)
1167 #define TB_ADDSTRING __MINGW_NAME_AW(TB_ADDSTRING)
1168 
1169 #define TB_GETOBJECT (WM_USER+62)
1170 #define TB_GETHOTITEM (WM_USER+71)
1171 #define TB_SETHOTITEM (WM_USER+72)
1172 #define TB_SETANCHORHIGHLIGHT (WM_USER+73)
1173 #define TB_GETANCHORHIGHLIGHT (WM_USER+74)
1174 #define TB_MAPACCELERATORA (WM_USER+78)
1175 
1176 #define TB_SETBOUNDINGSIZE (WM_USER+93)
1177 
1178  typedef struct {
1179  int iButton;
1182 #define TBIMHT_AFTER 0x1
1183 #define TBIMHT_BACKGROUND 0x2
1184 
1185 #define TB_GETINSERTMARK (WM_USER+79)
1186 #define TB_SETINSERTMARK (WM_USER+80)
1187 #define TB_INSERTMARKHITTEST (WM_USER+81)
1188 #define TB_MOVEBUTTON (WM_USER+82)
1189 #define TB_GETMAXSIZE (WM_USER+83)
1190 #define TB_SETEXTENDEDSTYLE (WM_USER+84)
1191 #define TB_GETEXTENDEDSTYLE (WM_USER+85)
1192 #define TB_GETPADDING (WM_USER+86)
1193 #define TB_SETPADDING (WM_USER+87)
1194 #define TB_SETINSERTMARKCOLOR (WM_USER+88)
1195 #define TB_GETINSERTMARKCOLOR (WM_USER+89)
1196 
1197 #define TB_SETCOLORSCHEME CCM_SETCOLORSCHEME
1198 #define TB_GETCOLORSCHEME CCM_GETCOLORSCHEME
1199 
1200 #define TB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1201 #define TB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1202 
1203 #define TB_MAPACCELERATORW (WM_USER+90)
1204 
1205 #define TB_MAPACCELERATOR __MINGW_NAME_AW(TB_MAPACCELERATOR)
1206 
1207  typedef struct {
1214 
1215 #define TBBF_LARGE 0x1
1216 
1217 #define TB_GETBITMAPFLAGS (WM_USER+41)
1218 
1219 #define TBIF_IMAGE 0x1
1220 #define TBIF_TEXT 0x2
1221 #define TBIF_STATE 0x4
1222 #define TBIF_STYLE 0x8
1223 #define TBIF_LPARAM 0x10
1224 #define TBIF_COMMAND 0x20
1225 #define TBIF_SIZE 0x40
1226 #define TBIF_BYINDEX 0x80000000
1227 
1228  typedef struct {
1232  int iImage;
1238  int cchText;
1240 
1241  typedef struct {
1245  int iImage;
1251  int cchText;
1253 
1254 #define TBBUTTONINFO __MINGW_NAME_AW(TBBUTTONINFO)
1255 #define LPTBBUTTONINFO __MINGW_NAME_AW(LPTBBUTTONINFO)
1256 
1257 #define TB_GETBUTTONINFOW (WM_USER+63)
1258 #define TB_SETBUTTONINFOW (WM_USER+64)
1259 #define TB_GETBUTTONINFOA (WM_USER+65)
1260 #define TB_SETBUTTONINFOA (WM_USER+66)
1261 
1262 #define TB_GETBUTTONINFO __MINGW_NAME_AW(TB_GETBUTTONINFO)
1263 #define TB_SETBUTTONINFO __MINGW_NAME_AW(TB_SETBUTTONINFO)
1264 
1265 #define TB_INSERTBUTTONW (WM_USER+67)
1266 #define TB_ADDBUTTONSW (WM_USER+68)
1267 
1268 #define TB_HITTEST (WM_USER+69)
1269 
1270 #define TB_INSERTBUTTON __MINGW_NAME_AW(TB_INSERTBUTTON)
1271 #define TB_ADDBUTTONS __MINGW_NAME_AW(TB_ADDBUTTONS)
1272 
1273 #define TB_SETDRAWTEXTFLAGS (WM_USER+70)
1274 
1275 #define TB_GETSTRINGW (WM_USER+91)
1276 #define TB_GETSTRINGA (WM_USER+92)
1277 
1278 #define TB_GETSTRING __MINGW_NAME_AW(TB_GETSTRING)
1279 
1280 #define TB_SETHOTITEM2 (WM_USER+94)
1281 #define TB_HASACCELERATOR (WM_USER+95)
1282 #define TB_SETLISTGAP (WM_USER+96)
1283 #define TB_GETIMAGELISTCOUNT (WM_USER+98)
1284 #define TB_GETIDEALSIZE (WM_USER+99)
1285 #define TB_TRANSLATEACCELERATOR CCM_TRANSLATEACCELERATOR
1286 
1287 #define TBMF_PAD 0x1
1288 #define TBMF_BARPAD 0x2
1289 #define TBMF_BUTTONSPACING 0x4
1290 
1291  typedef struct {
1294  int cxPad;
1295  int cyPad;
1301 
1302 #define TB_GETMETRICS (WM_USER+101)
1303 #define TB_SETMETRICS (WM_USER+102)
1304 #define TB_SETWINDOWTHEME CCM_SETWINDOWTHEME
1305 
1306 #define TBN_GETBUTTONINFOA (TBN_FIRST-0)
1307 #define TBN_BEGINDRAG (TBN_FIRST-1)
1308 #define TBN_ENDDRAG (TBN_FIRST-2)
1309 #define TBN_BEGINADJUST (TBN_FIRST-3)
1310 #define TBN_ENDADJUST (TBN_FIRST-4)
1311 #define TBN_RESET (TBN_FIRST-5)
1312 #define TBN_QUERYINSERT (TBN_FIRST-6)
1313 #define TBN_QUERYDELETE (TBN_FIRST-7)
1314 #define TBN_TOOLBARCHANGE (TBN_FIRST-8)
1315 #define TBN_CUSTHELP (TBN_FIRST-9)
1316 #define TBN_DROPDOWN (TBN_FIRST - 10)
1317 #define TBN_GETOBJECT (TBN_FIRST - 12)
1318  typedef struct tagNMTBHOTITEM {
1320  int idOld;
1321  int idNew;
1324 
1325 #define HICF_OTHER 0x0
1326 #define HICF_MOUSE 0x1
1327 #define HICF_ARROWKEYS 0x2
1328 #define HICF_ACCELERATOR 0x4
1329 #define HICF_DUPACCEL 0x8
1330 #define HICF_ENTERING 0x10
1331 #define HICF_LEAVING 0x20
1332 #define HICF_RESELECT 0x40
1333 #define HICF_LMOUSE 0x80
1334 #define HICF_TOGGLEDROPDOWN 0x100
1335 
1336 #define TBN_HOTITEMCHANGE (TBN_FIRST - 13)
1337 #define TBN_DRAGOUT (TBN_FIRST - 14)
1338 #define TBN_DELETINGBUTTON (TBN_FIRST - 15)
1339 #define TBN_GETDISPINFOA (TBN_FIRST - 16)
1340 #define TBN_GETDISPINFOW (TBN_FIRST - 17)
1341 #define TBN_GETINFOTIPA (TBN_FIRST - 18)
1342 #define TBN_GETINFOTIPW (TBN_FIRST - 19)
1343 #define TBN_GETBUTTONINFOW (TBN_FIRST - 20)
1344 #define TBN_RESTORE (TBN_FIRST - 21)
1345 #define TBN_SAVE (TBN_FIRST - 22)
1346 #define TBN_INITCUSTOMIZE (TBN_FIRST - 23)
1347 #define TBN_WRAPHOTITEM (TBN_FIRST - 24)
1348 #define TBN_DUPACCELERATOR (TBN_FIRST - 25)
1349 #define TBN_WRAPACCELERATOR (TBN_FIRST - 26)
1350 #define TBN_DRAGOVER (TBN_FIRST - 27)
1351 #define TBN_MAPACCELERATOR (TBN_FIRST - 28)
1352 #define TBNRF_HIDEHELP 0x1
1353 #define TBNRF_ENDCUSTOMIZE 0x2
1354 
1355  typedef struct tagNMTBSAVE {
1360  int iItem;
1363  } NMTBSAVE,*LPNMTBSAVE;
1364 
1365  typedef struct tagNMTBRESTORE {
1370  int iItem;
1375 
1376  typedef struct tagNMTBGETINFOTIPA {
1380  int iItem;
1383 
1384  typedef struct tagNMTBGETINFOTIPW {
1388  int iItem;
1391 
1392 #define TBN_GETINFOTIP __MINGW_NAME_AW(TBN_GETINFOTIP)
1393 #define NMTBGETINFOTIP __MINGW_NAME_AW(NMTBGETINFOTIP)
1394 #define LPNMTBGETINFOTIP __MINGW_NAME_AW(LPNMTBGETINFOTIP)
1395 
1396 #define TBNF_IMAGE 0x1
1397 #define TBNF_TEXT 0x2
1398 #define TBNF_DI_SETITEM 0x10000000
1399 
1400  typedef struct {
1405  int iImage;
1407  int cchText;
1409 
1410  typedef struct {
1415  int iImage;
1417  int cchText;
1419 
1420 #define TBN_GETDISPINFO __MINGW_NAME_AW(TBN_GETDISPINFO)
1421 #define NMTBDISPINFO __MINGW_NAME_AW(NMTBDISPINFO)
1422 #define LPNMTBDISPINFO __MINGW_NAME_AW(LPNMTBDISPINFO)
1423 
1424 #define TBDDRET_DEFAULT 0
1425 #define TBDDRET_NODEFAULT 1
1426 #define TBDDRET_TREATPRESSED 2
1427 
1428 #define TBN_GETBUTTONINFO __MINGW_NAME_AW(TBN_GETBUTTONINFO)
1429 
1430 #define TBNOTIFYA NMTOOLBARA
1431 #define TBNOTIFYW NMTOOLBARW
1432 #define LPTBNOTIFYA LPNMTOOLBARA
1433 #define LPTBNOTIFYW LPNMTOOLBARW
1434 
1435 #define TBNOTIFY NMTOOLBAR
1436 #define LPTBNOTIFY LPNMTOOLBAR
1437 
1438  typedef struct tagNMTOOLBARA {
1440  int iItem;
1442  int cchText;
1446 
1447  typedef struct tagNMTOOLBARW {
1449  int iItem;
1451  int cchText;
1455 
1456 #define NMTOOLBAR __MINGW_NAME_AW(NMTOOLBAR)
1457 #define LPNMTOOLBAR __MINGW_NAME_AW(LPNMTOOLBAR)
1458 
1459 #endif /* !NOTOOLBAR */
1460 
1461 #ifndef NOREBAR
1462 
1463 #define REBARCLASSNAMEW L"ReBarWindow32"
1464 #define REBARCLASSNAMEA "ReBarWindow32"
1465 
1466 #define REBARCLASSNAME __MINGW_NAME_AW(REBARCLASSNAME)
1467 
1468 #define RBIM_IMAGELIST 0x1
1469 
1470 #define RBS_TOOLTIPS 0x100
1471 #define RBS_VARHEIGHT 0x200
1472 #define RBS_BANDBORDERS 0x400
1473 #define RBS_FIXEDORDER 0x800
1474 #define RBS_REGISTERDROP 0x1000
1475 #define RBS_AUTOSIZE 0x2000
1476 #define RBS_VERTICALGRIPPER 0x4000
1477 #define RBS_DBLCLKTOGGLE 0x8000
1478 
1479  typedef struct tagREBARINFO {
1482 #ifndef NOIMAGEAPIS
1484 #else
1485  HANDLE himl;
1486 #endif
1488 
1489 #define RBBS_BREAK 0x1
1490 #define RBBS_FIXEDSIZE 0x2
1491 #define RBBS_CHILDEDGE 0x4
1492 #define RBBS_HIDDEN 0x8
1493 #define RBBS_NOVERT 0x10
1494 #define RBBS_FIXEDBMP 0x20
1495 #define RBBS_VARIABLEHEIGHT 0x40
1496 #define RBBS_GRIPPERALWAYS 0x80
1497 #define RBBS_NOGRIPPER 0x100
1498 #define RBBS_USECHEVRON 0x200
1499 #define RBBS_HIDETITLE 0x400
1500 #define RBBS_TOPALIGN 0x800
1501 
1502 #define RBBIM_STYLE 0x1
1503 #define RBBIM_COLORS 0x2
1504 #define RBBIM_TEXT 0x4
1505 #define RBBIM_IMAGE 0x8
1506 #define RBBIM_CHILD 0x10
1507 #define RBBIM_CHILDSIZE 0x20
1508 #define RBBIM_SIZE 0x40
1509 #define RBBIM_BACKGROUND 0x80
1510 #define RBBIM_ID 0x100
1511 #define RBBIM_IDEALSIZE 0x200
1512 #define RBBIM_LPARAM 0x400
1513 #define RBBIM_HEADERSIZE 0x800
1514 
1515  typedef struct tagREBARBANDINFOA {
1523  int iImage;
1538 
1539 #define REBARBANDINFOA_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOA,wID)
1540 #define REBARBANDINFOW_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOW,wID)
1541 #define REBARBANDINFOA_V6_SIZE CCSIZEOF_STRUCT(REBARBANDINFOA,cxHeader)
1542 #define REBARBANDINFOW_V6_SIZE CCSIZEOF_STRUCT(REBARBANDINFOW,cxHeader)
1543 
1544  typedef struct tagREBARBANDINFOW {
1552  int iImage;
1566 
1568 
1569 #define REBARBANDINFO __MINGW_NAME_AW(REBARBANDINFO)
1570 #define LPREBARBANDINFO __MINGW_NAME_AW(LPREBARBANDINFO)
1571 #define LPCREBARBANDINFO __MINGW_NAME_AW(LPCREBARBANDINFO)
1572 
1573 #define REBARBANDINFO_V3_SIZE __MINGW_NAME_AW_EXT(REBARBANDINFO,_V3_SIZE)
1574 
1575 #define RB_INSERTBANDA (WM_USER+1)
1576 #define RB_DELETEBAND (WM_USER+2)
1577 #define RB_GETBARINFO (WM_USER+3)
1578 #define RB_SETBARINFO (WM_USER+4)
1579 #define RB_SETBANDINFOA (WM_USER+6)
1580 #define RB_SETPARENT (WM_USER+7)
1581 #define RB_HITTEST (WM_USER+8)
1582 #define RB_GETRECT (WM_USER+9)
1583 #define RB_INSERTBANDW (WM_USER+10)
1584 #define RB_SETBANDINFOW (WM_USER+11)
1585 #define RB_GETBANDCOUNT (WM_USER+12)
1586 #define RB_GETROWCOUNT (WM_USER+13)
1587 #define RB_GETROWHEIGHT (WM_USER+14)
1588 #define RB_IDTOINDEX (WM_USER+16)
1589 #define RB_GETTOOLTIPS (WM_USER+17)
1590 #define RB_SETTOOLTIPS (WM_USER+18)
1591 #define RB_SETBKCOLOR (WM_USER+19)
1592 #define RB_GETBKCOLOR (WM_USER+20)
1593 #define RB_SETTEXTCOLOR (WM_USER+21)
1594 #define RB_GETTEXTCOLOR (WM_USER+22)
1595 
1596 #define RBSTR_CHANGERECT 0x1
1597 
1598 #define RB_SIZETORECT (WM_USER+23)
1599 #define RB_SETCOLORSCHEME CCM_SETCOLORSCHEME
1600 #define RB_GETCOLORSCHEME CCM_GETCOLORSCHEME
1601 
1602 #define RB_INSERTBAND __MINGW_NAME_AW(RB_INSERTBAND)
1603 #define RB_SETBANDINFO __MINGW_NAME_AW(RB_SETBANDINFO)
1604 
1605 #define RB_BEGINDRAG (WM_USER+24)
1606 #define RB_ENDDRAG (WM_USER+25)
1607 #define RB_DRAGMOVE (WM_USER+26)
1608 #define RB_GETBARHEIGHT (WM_USER+27)
1609 #define RB_GETBANDINFOW (WM_USER+28)
1610 #define RB_GETBANDINFOA (WM_USER+29)
1611 
1612 #define RB_GETBANDINFO __MINGW_NAME_AW(RB_GETBANDINFO)
1613 
1614 #define RB_MINIMIZEBAND (WM_USER+30)
1615 #define RB_MAXIMIZEBAND (WM_USER+31)
1616 #define RB_GETDROPTARGET (CCM_GETDROPTARGET)
1617 #define RB_GETBANDBORDERS (WM_USER+34)
1618 #define RB_SHOWBAND (WM_USER+35)
1619 #define RB_SETPALETTE (WM_USER+37)
1620 #define RB_GETPALETTE (WM_USER+38)
1621 #define RB_MOVEBAND (WM_USER+39)
1622 #define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1623 #define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1624 #define RB_GETBANDMARGINS (WM_USER+40)
1625 #define RB_SETWINDOWTHEME CCM_SETWINDOWTHEME
1626 #define RB_PUSHCHEVRON (WM_USER+43)
1627 
1628 #define RBN_HEIGHTCHANGE (RBN_FIRST - 0)
1629 #define RBN_GETOBJECT (RBN_FIRST - 1)
1630 #define RBN_LAYOUTCHANGED (RBN_FIRST - 2)
1631 #define RBN_AUTOSIZE (RBN_FIRST - 3)
1632 #define RBN_BEGINDRAG (RBN_FIRST - 4)
1633 #define RBN_ENDDRAG (RBN_FIRST - 5)
1634 #define RBN_DELETINGBAND (RBN_FIRST - 6)
1635 #define RBN_DELETEDBAND (RBN_FIRST - 7)
1636 #define RBN_CHILDSIZE (RBN_FIRST - 8)
1637 #define RBN_CHEVRONPUSHED (RBN_FIRST - 10)
1638 #define RBN_MINMAX (RBN_FIRST - 21)
1639 #define RBN_AUTOBREAK (RBN_FIRST - 22)
1640 
1641  typedef struct tagNMREBARCHILDSIZE {
1648 
1649  typedef struct tagNMREBAR {
1656  } NMREBAR,*LPNMREBAR;
1657 
1658 #define RBNM_ID 0x1
1659 #define RBNM_STYLE 0x2
1660 #define RBNM_LPARAM 0x4
1661 
1662  typedef struct tagNMRBAUTOSIZE {
1668 
1669  typedef struct tagNMREBARCHEVRON {
1677 
1678 #define RBAB_AUTOSIZE 0x1
1679 #define RBAB_ADDBAND 0x2
1680 
1681  typedef struct tagNMREBARAUTOBREAK {
1690 
1691 #define RBHT_NOWHERE 0x1
1692 #define RBHT_CAPTION 0x2
1693 #define RBHT_CLIENT 0x3
1694 #define RBHT_GRABBER 0x4
1695 #define RBHT_CHEVRON 0x8
1696 
1697  typedef struct _RB_HITTESTINFO {
1700  int iBand;
1702 
1703 #endif /* !NOREBAR */
1704 
1705 #ifndef NOTOOLTIPS
1706 
1707 #define TOOLTIPS_CLASSW L"tooltips_class32"
1708 #define TOOLTIPS_CLASSA "tooltips_class32"
1709 
1710 #define TOOLTIPS_CLASS __MINGW_NAME_AW(TOOLTIPS_CLASS)
1711 
1712 #define LPTOOLINFOA LPTTTOOLINFOA
1713 #define LPTOOLINFOW LPTTTOOLINFOW
1714 #define TOOLINFOA TTTOOLINFOA
1715 #define TOOLINFOW TTTOOLINFOW
1716 
1717 #define LPTOOLINFO LPTTTOOLINFO
1718 #define TOOLINFO TTTOOLINFO
1719 
1720 #define TTTOOLINFOA_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA,lpszText)
1721 #define TTTOOLINFOW_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW,lpszText)
1722 #define TTTOOLINFOA_V2_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA,lParam)
1723 #define TTTOOLINFOW_V2_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW,lParam)
1724 #define TTTOOLINFOA_V3_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA,lpReserved)
1725 #define TTTOOLINFOW_V3_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW,lpReserved)
1726 
1727  typedef struct tagTOOLINFOA {
1736  void *lpReserved;
1738 
1739  typedef struct tagTOOLINFOW {
1748  void *lpReserved;
1750 
1751 #define TTTOOLINFO __MINGW_NAME_AW(TTTOOLINFO)
1752 #define PTOOLINFO __MINGW_NAME_AW(PTOOLINFO)
1753 #define LPTTTOOLINFO __MINGW_NAME_AW(LPTTTOOLINFO)
1754 
1755 #define TTTOOLINFO_V1_SIZE __MINGW_NAME_AW_EXT(TTTOOLINFO,_V1_SIZE)
1756 
1757 #define TTS_ALWAYSTIP 0x1
1758 #define TTS_NOPREFIX 0x2
1759 #define TTS_NOANIMATE 0x10
1760 #define TTS_NOFADE 0x20
1761 #define TTS_BALLOON 0x40
1762 #define TTS_CLOSE 0x80
1763 
1764 #define TTF_IDISHWND 0x1
1765 #define TTF_CENTERTIP 0x2
1766 #define TTF_RTLREADING 0x4
1767 #define TTF_SUBCLASS 0x10
1768 #define TTF_TRACK 0x20
1769 #define TTF_ABSOLUTE 0x80
1770 #define TTF_TRANSPARENT 0x100
1771 #define TTF_PARSELINKS 0x1000
1772 #define TTF_DI_SETITEM 0x8000
1773 
1774 #define TTDT_AUTOMATIC 0
1775 #define TTDT_RESHOW 1
1776 #define TTDT_AUTOPOP 2
1777 #define TTDT_INITIAL 3
1778 
1779 #define TTI_NONE 0
1780 #define TTI_INFO 1
1781 #define TTI_WARNING 2
1782 #define TTI_ERROR 3
1783 
1784 #define TTM_ACTIVATE (WM_USER+1)
1785 #define TTM_SETDELAYTIME (WM_USER+3)
1786 #define TTM_ADDTOOLA (WM_USER+4)
1787 #define TTM_ADDTOOLW (WM_USER+50)
1788 #define TTM_DELTOOLA (WM_USER+5)
1789 #define TTM_DELTOOLW (WM_USER+51)
1790 #define TTM_NEWTOOLRECTA (WM_USER+6)
1791 #define TTM_NEWTOOLRECTW (WM_USER+52)
1792 #define TTM_RELAYEVENT (WM_USER+7)
1793 
1794 #define TTM_GETTOOLINFOA (WM_USER+8)
1795 #define TTM_GETTOOLINFOW (WM_USER+53)
1796 
1797 #define TTM_SETTOOLINFOA (WM_USER+9)
1798 #define TTM_SETTOOLINFOW (WM_USER+54)
1799 
1800 #define TTM_HITTESTA (WM_USER +10)
1801 #define TTM_HITTESTW (WM_USER +55)
1802 #define TTM_GETTEXTA (WM_USER +11)
1803 #define TTM_GETTEXTW (WM_USER +56)
1804 #define TTM_UPDATETIPTEXTA (WM_USER +12)
1805 #define TTM_UPDATETIPTEXTW (WM_USER +57)
1806 #define TTM_GETTOOLCOUNT (WM_USER +13)
1807 #define TTM_ENUMTOOLSA (WM_USER +14)
1808 #define TTM_ENUMTOOLSW (WM_USER +58)
1809 #define TTM_GETCURRENTTOOLA (WM_USER+15)
1810 #define TTM_GETCURRENTTOOLW (WM_USER+59)
1811 #define TTM_WINDOWFROMPOINT (WM_USER+16)
1812 #define TTM_TRACKACTIVATE (WM_USER+17)
1813 #define TTM_TRACKPOSITION (WM_USER+18)
1814 #define TTM_SETTIPBKCOLOR (WM_USER+19)
1815 #define TTM_SETTIPTEXTCOLOR (WM_USER+20)
1816 #define TTM_GETDELAYTIME (WM_USER+21)
1817 #define TTM_GETTIPBKCOLOR (WM_USER+22)
1818 #define TTM_GETTIPTEXTCOLOR (WM_USER+23)
1819 #define TTM_SETMAXTIPWIDTH (WM_USER+24)
1820 #define TTM_GETMAXTIPWIDTH (WM_USER+25)
1821 #define TTM_SETMARGIN (WM_USER+26)
1822 #define TTM_GETMARGIN (WM_USER+27)
1823 #define TTM_POP (WM_USER+28)
1824 #define TTM_UPDATE (WM_USER+29)
1825 #define TTM_GETBUBBLESIZE (WM_USER+30)
1826 #define TTM_ADJUSTRECT (WM_USER+31)
1827 #define TTM_SETTITLEA (WM_USER+32)
1828 #define TTM_SETTITLEW (WM_USER+33)
1829 
1830 #define TTM_POPUP (WM_USER+34)
1831 #define TTM_GETTITLE (WM_USER+35)
1832  typedef struct _TTGETTITLE {
1838 
1839 #define TTM_ADDTOOL __MINGW_NAME_AW(TTM_ADDTOOL)
1840 #define TTM_DELTOOL __MINGW_NAME_AW(TTM_DELTOOL)
1841 #define TTM_NEWTOOLRECT __MINGW_NAME_AW(TTM_NEWTOOLRECT)
1842 #define TTM_GETTOOLINFO __MINGW_NAME_AW(TTM_GETTOOLINFO)
1843 #define TTM_SETTOOLINFO __MINGW_NAME_AW(TTM_SETTOOLINFO)
1844 #define TTM_HITTEST __MINGW_NAME_AW(TTM_HITTEST)
1845 #define TTM_GETTEXT __MINGW_NAME_AW(TTM_GETTEXT)
1846 #define TTM_UPDATETIPTEXT __MINGW_NAME_AW(TTM_UPDATETIPTEXT)
1847 #define TTM_ENUMTOOLS __MINGW_NAME_AW(TTM_ENUMTOOLS)
1848 #define TTM_GETCURRENTTOOL __MINGW_NAME_AW(TTM_GETCURRENTTOOL)
1849 #define TTM_SETTITLE __MINGW_NAME_AW(TTM_SETTITLE)
1850 
1851 #define TTM_SETWINDOWTHEME CCM_SETWINDOWTHEME
1852 
1853 #define LPHITTESTINFOW LPTTHITTESTINFOW
1854 #define LPHITTESTINFOA LPTTHITTESTINFOA
1855 #define LPHITTESTINFO LPTTHITTESTINFO
1856 
1857  typedef struct _TT_HITTESTINFOA {
1862 
1863  typedef struct _TT_HITTESTINFOW {
1868 
1869 #define TTHITTESTINFO __MINGW_NAME_AW(TTHITTESTINFO)
1870 #define LPTTHITTESTINFO __MINGW_NAME_AW(LPTTHITTESTINFO)
1871 
1872 #define TTN_GETDISPINFOA (TTN_FIRST - 0)
1873 #define TTN_GETDISPINFOW (TTN_FIRST - 10)
1874 #define TTN_SHOW (TTN_FIRST - 1)
1875 #define TTN_POP (TTN_FIRST - 2)
1876 #define TTN_LINKCLICK (TTN_FIRST - 3)
1877 
1878 #define TTN_GETDISPINFO __MINGW_NAME_AW(TTN_GETDISPINFO)
1879 
1880 #define TTN_NEEDTEXT TTN_GETDISPINFO
1881 #define TTN_NEEDTEXTA TTN_GETDISPINFOA
1882 #define TTN_NEEDTEXTW TTN_GETDISPINFOW
1883 
1884 #define TOOLTIPTEXTW NMTTDISPINFOW
1885 #define TOOLTIPTEXTA NMTTDISPINFOA
1886 #define LPTOOLTIPTEXTA LPNMTTDISPINFOA
1887 #define LPTOOLTIPTEXTW LPNMTTDISPINFOW
1888 
1889 #define TOOLTIPTEXT NMTTDISPINFO
1890 #define LPTOOLTIPTEXT LPNMTTDISPINFO
1891 
1892 #define NMTTDISPINFOA_V1_SIZE CCSIZEOF_STRUCT(NMTTDISPINFOA,uFlags)
1893 #define NMTTDISPINFOW_V1_SIZE CCSIZEOF_STRUCT(NMTTDISPINFOW,uFlags)
1894 
1895  typedef struct tagNMTTDISPINFOA {
1898  char szText[80];
1903 
1904  typedef struct tagNMTTDISPINFOW {
1912 
1913 
1914 #define NMTTDISPINFO __MINGW_NAME_AW(NMTTDISPINFO)
1915 #define LPNMTTDISPINFO __MINGW_NAME_AW(LPNMTTDISPINFO)
1916 
1917 #define NMTTDISPINFO_V1_SIZE __MINGW_NAME_AW_EXT(NMTTDISPINFO,_V1_SIZE)
1918 
1919 #endif /* !NOTOOLTIPS */
1920 
1921 #ifndef NOSTATUSBAR
1922 
1923 #define SBARS_SIZEGRIP 0x100
1924 #define SBARS_TOOLTIPS 0x800
1925 #define SBT_TOOLTIPS 0x800
1926 
1929 
1932 
1933 #define CreateStatusWindow __MINGW_NAME_AW(CreateStatusWindow)
1934 #define DrawStatusText __MINGW_NAME_AW(DrawStatusText)
1935 
1936 #define STATUSCLASSNAMEW L"msctls_statusbar32"
1937 #define STATUSCLASSNAMEA "msctls_statusbar32"
1938 
1939 #define STATUSCLASSNAME __MINGW_NAME_AW(STATUSCLASSNAME)
1940 
1941 #define SB_SETTEXTA (WM_USER+1)
1942 #define SB_SETTEXTW (WM_USER+11)
1943 #define SB_GETTEXTA (WM_USER+2)
1944 #define SB_GETTEXTW (WM_USER+13)
1945 #define SB_GETTEXTLENGTHA (WM_USER+3)
1946 #define SB_GETTEXTLENGTHW (WM_USER+12)
1947 
1948 #define SB_GETTEXT __MINGW_NAME_AW(SB_GETTEXT)
1949 #define SB_SETTEXT __MINGW_NAME_AW(SB_SETTEXT)
1950 #define SB_GETTEXTLENGTH __MINGW_NAME_AW(SB_GETTEXTLENGTH)
1951 #define SB_SETTIPTEXT __MINGW_NAME_AW(SB_SETTIPTEXT)
1952 #define SB_GETTIPTEXT __MINGW_NAME_AW(SB_GETTIPTEXT)
1953 
1954 #define SB_SETPARTS (WM_USER+4)
1955 #define SB_GETPARTS (WM_USER+6)
1956 #define SB_GETBORDERS (WM_USER+7)
1957 #define SB_SETMINHEIGHT (WM_USER+8)
1958 #define SB_SIMPLE (WM_USER+9)
1959 #define SB_GETRECT (WM_USER+10)
1960 #define SB_ISSIMPLE (WM_USER+14)
1961 #define SB_SETICON (WM_USER+15)
1962 #define SB_SETTIPTEXTA (WM_USER+16)
1963 #define SB_SETTIPTEXTW (WM_USER+17)
1964 #define SB_GETTIPTEXTA (WM_USER+18)
1965 #define SB_GETTIPTEXTW (WM_USER+19)
1966 #define SB_GETICON (WM_USER+20)
1967 #define SB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1968 #define SB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1969 
1970 #define SBT_OWNERDRAW 0x1000
1971 #define SBT_NOBORDERS 0x100
1972 #define SBT_POPOUT 0x200
1973 #define SBT_RTLREADING 0x400
1974 #define SBT_NOTABPARSING 0x800
1975 
1976 #define SB_SETBKCOLOR CCM_SETBKCOLOR
1977 
1978 #define SBN_SIMPLEMODECHANGE (SBN_FIRST - 0)
1979 
1980 #define SB_SIMPLEID 0xff
1981 
1982 #endif /* !NOSTATUSBAR */
1983 
1984 #ifndef NOMENUHELP
1985 
1987 
1989  BOOL
1990  WINAPI
1992  _In_ HWND hWnd,
1994  _In_z_ LPINT lpInfo);
1995 
1997  void
1998  WINAPI
2000  _In_ HWND hWnd,
2001  _Out_ LPRECT lprc,
2002  _In_z_ const INT *lpInfo);
2003 
2004 #define MINSYSCOMMAND SC_SIZE
2005 
2006 #endif /* !NOMENUHELP */
2007 
2008 #ifndef NOTRACKBAR
2009 
2010 #define TRACKBAR_CLASSA "msctls_trackbar32"
2011 #define TRACKBAR_CLASSW L"msctls_trackbar32"
2012 
2013 #define TRACKBAR_CLASS __MINGW_NAME_AW(TRACKBAR_CLASS)
2014 
2015 #define TBS_AUTOTICKS 0x1
2016 #define TBS_VERT 0x2
2017 #define TBS_HORZ 0x0
2018 #define TBS_TOP 0x4
2019 #define TBS_BOTTOM 0x0
2020 #define TBS_LEFT 0x4
2021 #define TBS_RIGHT 0x0
2022 #define TBS_BOTH 0x8
2023 #define TBS_NOTICKS 0x10
2024 #define TBS_ENABLESELRANGE 0x20
2025 #define TBS_FIXEDLENGTH 0x40
2026 #define TBS_NOTHUMB 0x80
2027 #define TBS_TOOLTIPS 0x100
2028 #define TBS_REVERSED 0x200
2029 #define TBS_DOWNISLEFT 0x400
2030 
2031 #define TBM_GETPOS (WM_USER)
2032 #define TBM_GETRANGEMIN (WM_USER+1)
2033 #define TBM_GETRANGEMAX (WM_USER+2)
2034 #define TBM_GETTIC (WM_USER+3)
2035 #define TBM_SETTIC (WM_USER+4)
2036 #define TBM_SETPOS (WM_USER+5)
2037 #define TBM_SETRANGE (WM_USER+6)
2038 #define TBM_SETRANGEMIN (WM_USER+7)
2039 #define TBM_SETRANGEMAX (WM_USER+8)
2040 #define TBM_CLEARTICS (WM_USER+9)
2041 #define TBM_SETSEL (WM_USER+10)
2042 #define TBM_SETSELSTART (WM_USER+11)
2043 #define TBM_SETSELEND (WM_USER+12)
2044 #define TBM_GETPTICS (WM_USER+14)
2045 #define TBM_GETTICPOS (WM_USER+15)
2046 #define TBM_GETNUMTICS (WM_USER+16)
2047 #define TBM_GETSELSTART (WM_USER+17)
2048 #define TBM_GETSELEND (WM_USER+18)
2049 #define TBM_CLEARSEL (WM_USER+19)
2050 #define TBM_SETTICFREQ (WM_USER+20)
2051 #define TBM_SETPAGESIZE (WM_USER+21)
2052 #define TBM_GETPAGESIZE (WM_USER+22)
2053 #define TBM_SETLINESIZE (WM_USER+23)
2054 #define TBM_GETLINESIZE (WM_USER+24)
2055 #define TBM_GETTHUMBRECT (WM_USER+25)
2056 #define TBM_GETCHANNELRECT (WM_USER+26)
2057 #define TBM_SETTHUMBLENGTH (WM_USER+27)
2058 #define TBM_GETTHUMBLENGTH (WM_USER+28)
2059 #define TBM_SETTOOLTIPS (WM_USER+29)
2060 #define TBM_GETTOOLTIPS (WM_USER+30)
2061 #define TBM_SETTIPSIDE (WM_USER+31)
2062 
2063 #define TBTS_TOP 0
2064 #define TBTS_LEFT 1
2065 #define TBTS_BOTTOM 2
2066 #define TBTS_RIGHT 3
2067 
2068 #define TBM_SETBUDDY (WM_USER+32)
2069 #define TBM_GETBUDDY (WM_USER+33)
2070 #define TBM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
2071 #define TBM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
2072 
2073 #define TB_LINEUP 0
2074 #define TB_LINEDOWN 1
2075 #define TB_PAGEUP 2
2076 #define TB_PAGEDOWN 3
2077 #define TB_THUMBPOSITION 4
2078 #define TB_THUMBTRACK 5
2079 #define TB_TOP 6
2080 #define TB_BOTTOM 7
2081 #define TB_ENDTRACK 8
2082 
2083 #define TBCD_TICS 0x1
2084 #define TBCD_THUMB 0x2
2085 #define TBCD_CHANNEL 0x3
2086 
2087 #endif /* !NOTRACKBAR */
2088 
2089 #ifndef NODRAGLIST
2090 
2091  typedef struct tagDRAGLISTINFO {
2096 
2097 #define DL_BEGINDRAG (WM_USER+133)
2098 #define DL_DRAGGING (WM_USER+134)
2099 #define DL_DROPPED (WM_USER+135)
2100 #define DL_CANCELDRAG (WM_USER+136)
2101 
2102 #define DL_CURSORSET 0
2103 #define DL_STOPCURSOR 1
2104 #define DL_COPYCURSOR 2
2105 #define DL_MOVECURSOR 3
2106 
2107 #define DRAGLISTMSGSTRING TEXT("commctrl_DragListMsg")
2108 
2110  WINCOMMCTRLAPI void WINAPI DrawInsert(HWND handParent,HWND hLB,int nItem);
2111 
2112  WINCOMMCTRLAPI int WINAPI LBItemFromPt(HWND hLB,POINT pt,BOOL bAutoScroll);
2113 
2114 #endif /* !NODRAGLIST */
2115 
2116 #ifndef NOUPDOWN
2117 
2118 #define UPDOWN_CLASSA "msctls_updown32"
2119 #define UPDOWN_CLASSW L"msctls_updown32"
2120 
2121 #define UPDOWN_CLASS __MINGW_NAME_AW(UPDOWN_CLASS)
2122 
2123  typedef struct _UDACCEL {
2126  } UDACCEL,*LPUDACCEL;
2127 
2128 #define UD_MAXVAL 0x7fff
2129 #define UD_MINVAL (-UD_MAXVAL)
2130 
2131 #define UDS_WRAP 0x1
2132 #define UDS_SETBUDDYINT 0x2
2133 #define UDS_ALIGNRIGHT 0x4
2134 #define UDS_ALIGNLEFT 0x8
2135 #define UDS_AUTOBUDDY 0x10
2136 #define UDS_ARROWKEYS 0x20
2137 #define UDS_HORZ 0x40
2138 #define UDS_NOTHOUSANDS 0x80
2139 #define UDS_HOTTRACK 0x100
2140 
2141 #define UDM_SETRANGE (WM_USER+101)
2142 #define UDM_GETRANGE (WM_USER+102)
2143 #define UDM_SETPOS (WM_USER+103)
2144 #define UDM_GETPOS (WM_USER+104)
2145 #define UDM_SETBUDDY (WM_USER+105)
2146 #define UDM_GETBUDDY (WM_USER+106)
2147 #define UDM_SETACCEL (WM_USER+107)
2148 #define UDM_GETACCEL (WM_USER+108)
2149 #define UDM_SETBASE (WM_USER+109)
2150 #define UDM_GETBASE (WM_USER+110)
2151 #define UDM_SETRANGE32 (WM_USER+111)
2152 #define UDM_GETRANGE32 (WM_USER+112)
2153 #define UDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
2154 #define UDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
2155 #define UDM_SETPOS32 (WM_USER+113)
2156 #define UDM_GETPOS32 (WM_USER+114)
2157 
2158  WINCOMMCTRLAPI HWND WINAPI CreateUpDownControl(DWORD dwStyle,int x,int y,int cx,int cy,HWND hParent,int nID,HINSTANCE hInst,HWND hBuddy,int nUpper,int nLower,int nPos);
2159 
2160 #define NM_UPDOWN NMUPDOWN
2161 #define LPNM_UPDOWN LPNMUPDOWN
2162 
2163  typedef struct _NM_UPDOWN {
2165  int iPos;
2166  int iDelta;
2167  } NMUPDOWN,*LPNMUPDOWN;
2168 
2169 #define UDN_DELTAPOS (UDN_FIRST - 1)
2170 
2171 #endif /* !NOUPDOWN */
2172 
2173 #ifndef NOPROGRESS
2174 
2175 #define PROGRESS_CLASSA "msctls_progress32"
2176 #define PROGRESS_CLASSW L"msctls_progress32"
2177 
2178 #define PROGRESS_CLASS __MINGW_NAME_AW(PROGRESS_CLASS)
2179 
2180 #define PBS_SMOOTH 0x1
2181 #define PBS_VERTICAL 0x4
2182 
2183 #define PBM_SETRANGE (WM_USER+1)
2184 #define PBM_SETPOS (WM_USER+2)
2185 #define PBM_DELTAPOS (WM_USER+3)
2186 #define PBM_SETSTEP (WM_USER+4)
2187 #define PBM_STEPIT (WM_USER+5)
2188 #define PBM_SETRANGE32 (WM_USER+6)
2189  typedef struct {
2190  int iLow;
2191  int iHigh;
2192  } PBRANGE,*PPBRANGE;
2193 #define PBM_GETRANGE (WM_USER+7)
2194 #define PBM_GETPOS (WM_USER+8)
2195 #define PBM_SETBARCOLOR (WM_USER+9)
2196 #define PBM_SETBKCOLOR CCM_SETBKCOLOR
2197 
2198 #define PBS_MARQUEE 0x8
2199 #define PBM_SETMARQUEE (WM_USER+10)
2200 
2201 #if (_WIN32_WINNT >= 0x0600)
2202 #define PBM_GETSTEP (WM_USER+13)
2203 #define PBM_GETBKCOLOR (WM_USER+14)
2204 #define PBM_GETBARCOLOR (WM_USER+15)
2205 #define PBM_SETSTATE (WM_USER+16)
2206 #define PBM_GETSTATE (WM_USER+17)
2207 #define PBS_SMOOTHREVERSE 0x10
2208 #define PBST_NORMAL 1
2209 #define PBST_ERROR 2
2210 #define PBST_PAUSED 3
2211 #endif /* (_WIN32_WINNT >= 0x0600) */
2212 
2213 #endif /* !NOPROGRESS */
2214 
2215 
2216 #ifndef NOHOTKEY
2217 
2218 #define HOTKEYF_SHIFT 0x1
2219 #define HOTKEYF_CONTROL 0x2
2220 #define HOTKEYF_ALT 0x4
2221 #define HOTKEYF_EXT 0x8
2222 #define HKCOMB_NONE 0x1
2223 #define HKCOMB_S 0x2
2224 #define HKCOMB_C 0x4
2225 #define HKCOMB_A 0x8
2226 #define HKCOMB_SC 0x10
2227 #define HKCOMB_SA 0x20
2228 #define HKCOMB_CA 0x40
2229 #define HKCOMB_SCA 0x80
2230 
2231 #define HKM_SETHOTKEY (WM_USER+1)
2232 #define HKM_GETHOTKEY (WM_USER+2)
2233 #define HKM_SETRULES (WM_USER+3)
2234 
2235 #define HOTKEY_CLASSA "msctls_hotkey32"
2236 #define HOTKEY_CLASSW L"msctls_hotkey32"
2237 
2238 #define HOTKEY_CLASS __MINGW_NAME_AW(HOTKEY_CLASS)
2239 
2240 #endif /* !NOHOTKEY */
2241 
2242 #define CCS_TOP 0x1L
2243 #define CCS_NOMOVEY 0x2L
2244 #define CCS_BOTTOM 0x3L
2245 #define CCS_NORESIZE 0x4L
2246 #define CCS_NOPARENTALIGN 0x8L
2247 #define CCS_ADJUSTABLE 0x20L
2248 #define CCS_NODIVIDER 0x40L
2249 #define CCS_VERT 0x80L
2250 #define CCS_LEFT (CCS_VERT | CCS_TOP)
2251 #define CCS_RIGHT (CCS_VERT | CCS_BOTTOM)
2252 #define CCS_NOMOVEX (CCS_VERT | CCS_NOMOVEY)
2253 
2254 #ifndef NOLISTVIEW
2255 
2256 #define WC_LISTVIEWA "SysListView32"
2257 #define WC_LISTVIEWW L"SysListView32"
2258 
2259 #define WC_LISTVIEW __MINGW_NAME_AW(WC_LISTVIEW)
2260 
2261 #define LVS_ICON 0x0
2262 #define LVS_REPORT 0x1
2263 #define LVS_SMALLICON 0x2
2264 #define LVS_LIST 0x3
2265 #define LVS_TYPEMASK 0x3
2266 #define LVS_SINGLESEL 0x4
2267 #define LVS_SHOWSELALWAYS 0x8
2268 #define LVS_SORTASCENDING 0x10
2269 #define LVS_SORTDESCENDING 0x20
2270 #define LVS_SHAREIMAGELISTS 0x40
2271 #define LVS_NOLABELWRAP 0x80
2272 #define LVS_AUTOARRANGE 0x100
2273 #define LVS_EDITLABELS 0x200
2274 #define LVS_OWNERDATA 0x1000
2275 #define LVS_NOSCROLL 0x2000
2276 
2277 #define LVS_TYPESTYLEMASK 0xfc00
2278 
2279 #define LVS_ALIGNTOP 0x0
2280 #define LVS_ALIGNLEFT 0x800
2281 #define LVS_ALIGNMASK 0xc00
2282 
2283 #define LVS_OWNERDRAWFIXED 0x400
2284 #define LVS_NOCOLUMNHEADER 0x4000
2285 #define LVS_NOSORTHEADER 0x8000
2286 
2287 #define LVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
2288 #define ListView_SetUnicodeFormat(hwnd,fUnicode) (BOOL)SNDMSG((hwnd),LVM_SETUNICODEFORMAT,(WPARAM)(fUnicode),0)
2289 #define LVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
2290 #define ListView_GetUnicodeFormat(hwnd) (BOOL)SNDMSG((hwnd),LVM_GETUNICODEFORMAT,0,0)
2291 #define LVM_GETBKCOLOR (LVM_FIRST+0)
2292 #define ListView_GetBkColor(hwnd) (COLORREF)SNDMSG((hwnd),LVM_GETBKCOLOR,0,0L)
2293 #define LVM_SETBKCOLOR (LVM_FIRST+1)
2294 #define ListView_SetBkColor(hwnd,clrBk) (BOOL)SNDMSG((hwnd),LVM_SETBKCOLOR,0,(LPARAM)(COLORREF)(clrBk))
2295 #define LVM_GETIMAGELIST (LVM_FIRST+2)
2296 #define ListView_GetImageList(hwnd,iImageList) (HIMAGELIST)SNDMSG((hwnd),LVM_GETIMAGELIST,(WPARAM)(INT)(iImageList),0L)
2297 
2298 #define LVSIL_NORMAL 0
2299 #define LVSIL_SMALL 1
2300 #define LVSIL_STATE 2
2301 #define LVSIL_GROUPHEADER 3
2302 
2303 #define LVM_SETIMAGELIST (LVM_FIRST+3)
2304 #define ListView_SetImageList(hwnd,himl,iImageList) (HIMAGELIST)SNDMSG((hwnd),LVM_SETIMAGELIST,(WPARAM)(iImageList),(LPARAM)(HIMAGELIST)(himl))
2305 
2306 #define LVM_GETITEMCOUNT (LVM_FIRST+4)
2307 #define ListView_GetItemCount(hwnd) (int)SNDMSG((hwnd),LVM_GETITEMCOUNT,0,0L)
2308 
2309 #define LVIF_TEXT 0x1
2310 #define LVIF_IMAGE 0x2
2311 #define LVIF_PARAM 0x4
2312 #define LVIF_STATE 0x8
2313 #define LVIF_INDENT 0x10
2314 #define LVIF_NORECOMPUTE 0x800
2315 #define LVIF_GROUPID 0x100
2316 #define LVIF_COLUMNS 0x200
2317 
2318 #define LVIS_FOCUSED 0x1
2319 #define LVIS_SELECTED 0x2
2320 #define LVIS_CUT 0x4
2321 #define LVIS_DROPHILITED 0x8
2322 #define LVIS_GLOW 0x10
2323 #define LVIS_ACTIVATING 0x20
2324 
2325 #define LVIS_OVERLAYMASK 0xf00
2326 #define LVIS_STATEIMAGEMASK 0xF000
2327 
2328 #define INDEXTOSTATEIMAGEMASK(i) ((i) << 12)
2329 
2330 #define I_INDENTCALLBACK (-1)
2331 #define LV_ITEMA LVITEMA
2332 #define LV_ITEMW LVITEMW
2333 
2334 #define I_GROUPIDCALLBACK (-1)
2335 #define I_GROUPIDNONE (-2)
2336 
2337 #define LV_ITEM LVITEM
2338 
2339 #define LVITEMA_V1_SIZE CCSIZEOF_STRUCT(LVITEMA,lParam)
2340 #define LVITEMW_V1_SIZE CCSIZEOF_STRUCT(LVITEMW,lParam)
2341 
2342  typedef struct tagLVITEMA {
2344  int iItem;
2350  int iImage;
2352  int iIndent;
2356  } LVITEMA,*LPLVITEMA;
2357 
2358  typedef struct tagLVITEMW
2359  {
2361  int iItem;
2367  int iImage;
2369  int iIndent;
2373  } LVITEMW,*LPLVITEMW;
2374 
2375 #define LVITEM __MINGW_NAME_AW(LVITEM)
2376 #define LPLVITEM __MINGW_NAME_AW(LPLVITEM)
2377 
2378 #define LVITEM_V1_SIZE __MINGW_NAME_AW_EXT(LVITEM,_V1_SIZE)
2379 
2380 #define LPSTR_TEXTCALLBACKW ((LPWSTR)-1L)
2381 #define LPSTR_TEXTCALLBACKA ((LPSTR)-1L)
2382 
2383 #define LPSTR_TEXTCALLBACK __MINGW_NAME_AW(LPSTR_TEXTCALLBACK)
2384 
2385 #define I_IMAGECALLBACK (-1)
2386 #define I_IMAGENONE (-2)
2387 #define I_COLUMNSCALLBACK ((UINT)-1)
2388 
2389 #define LVM_GETITEMA (LVM_FIRST+5)
2390 #define LVM_GETITEMW (LVM_FIRST+75)
2391 
2392 #define LVM_GETITEM __MINGW_NAME_AW(LVM_GETITEM)
2393 
2394 #define ListView_GetItem(hwnd,pitem) (BOOL)SNDMSG((hwnd),LVM_GETITEM,0,(LPARAM)(LV_ITEM *)(pitem))
2395 
2396 #define LVM_SETITEMA (LVM_FIRST+6)
2397 #define LVM_SETITEMW (LVM_FIRST+76)
2398 
2399 #define LVM_SETITEM __MINGW_NAME_AW(LVM_SETITEM)
2400 
2401 #define ListView_SetItem(hwnd,pitem) (BOOL)SNDMSG((hwnd),LVM_SETITEM,0,(LPARAM)(const LV_ITEM *)(pitem))
2402 
2403 #define LVM_INSERTITEMA (LVM_FIRST+7)
2404 #define LVM_INSERTITEMW (LVM_FIRST+77)
2405 
2406 #define LVM_INSERTITEM __MINGW_NAME_AW(LVM_INSERTITEM)
2407 
2408 #define ListView_InsertItem(hwnd,pitem) (int)SNDMSG((hwnd),LVM_INSERTITEM,0,(LPARAM)(const LV_ITEM *)(pitem))
2409 
2410 #define LVM_DELETEITEM (LVM_FIRST+8)
2411 #define ListView_DeleteItem(hwnd,i) (BOOL)SNDMSG((hwnd),LVM_DELETEITEM,(WPARAM)(int)(i),0L)
2412 
2413 #define LVM_DELETEALLITEMS (LVM_FIRST+9)
2414 #define ListView_DeleteAllItems(hwnd) (BOOL)SNDMSG((hwnd),LVM_DELETEALLITEMS,0,0L)
2415 
2416 #define LVM_GETCALLBACKMASK (LVM_FIRST+10)
2417 #define ListView_GetCallbackMask(hwnd) (BOOL)SNDMSG((hwnd),LVM_GETCALLBACKMASK,0,0)
2418 
2419 #define LVM_SETCALLBACKMASK (LVM_FIRST+11)
2420 #define ListView_SetCallbackMask(hwnd,mask) (BOOL)SNDMSG((hwnd),LVM_SETCALLBACKMASK,(WPARAM)(UINT)(mask),0)
2421 
2422 #define LVNI_ALL 0x0
2423 #define LVNI_FOCUSED 0x1
2424 #define LVNI_SELECTED 0x2
2425 #define LVNI_CUT 0x4
2426 #define LVNI_DROPHILITED 0x8
2427 
2428 #define LVNI_ABOVE 0x100
2429 #define LVNI_BELOW 0x200
2430 #define LVNI_TOLEFT 0x400
2431 #define LVNI_TORIGHT 0x800
2432 
2433 #define LVM_GETNEXTITEM (LVM_FIRST+12)
2434 #define ListView_GetNextItem(hwnd,i,flags) (int)SNDMSG((hwnd),LVM_GETNEXTITEM,(WPARAM)(int)(i),MAKELPARAM((flags),0))
2435 
2436 #define LVFI_PARAM 0x0001
2437 #define LVFI_STRING 0x0002
2438 #define LVFI_SUBSTRING 0x0004
2439 #define LVFI_PARTIAL 0x0008
2440 #define LVFI_WRAP 0x0020
2441 #define LVFI_NEARESTXY 0x0040
2442 
2443 #define LV_FINDINFOA LVFINDINFOA
2444 #define LV_FINDINFOW LVFINDINFOW
2445 #define LV_FINDINFO LVFINDINFO
2446 
2447  typedef struct tagLVFINDINFOA {
2454 
2455  typedef struct tagLVFINDINFOW {
2462 
2463 #define LVFINDINFO __MINGW_NAME_AW(LVFINDINFO)
2464 
2465 #define LVM_FINDITEMA (LVM_FIRST+13)
2466 #define LVM_FINDITEMW (LVM_FIRST+83)
2467 
2468 #define LVM_FINDITEM __MINGW_NAME_AW(LVM_FINDITEM)
2469 
2470 #define ListView_FindItem(hwnd,iStart,plvfi) (int)SNDMSG((hwnd),LVM_FINDITEM,(WPARAM)(int)(iStart),(LPARAM)(const LV_FINDINFO *)(plvfi))
2471 
2472 #define LVIR_BOUNDS 0
2473 #define LVIR_ICON 1
2474 #define LVIR_LABEL 2
2475 #define LVIR_SELECTBOUNDS 3
2476 
2477 #define LVM_GETITEMRECT (LVM_FIRST+14)
2478 #define ListView_GetItemRect(hwnd,i,prc,code) (BOOL)SNDMSG((hwnd),LVM_GETITEMRECT,(WPARAM)(int)(i),((prc) ? (((RECT *)(prc))->left = (code),(LPARAM)(RECT *)(prc)) : (LPARAM)(RECT *)NULL))
2479 
2480 #define LVM_SETITEMPOSITION (LVM_FIRST+15)
2481 #define ListView_SetItemPosition(hwndLV,i,x,y) (BOOL)SNDMSG((hwndLV),LVM_SETITEMPOSITION,(WPARAM)(int)(i),MAKELPARAM((x),(y)))
2482 
2483 #define LVM_GETITEMPOSITION (LVM_FIRST+16)
2484 #define ListView_GetItemPosition(hwndLV,i,ppt) (BOOL)SNDMSG((hwndLV),LVM_GETITEMPOSITION,(WPARAM)(int)(i),(LPARAM)(POINT *)(ppt))
2485 
2486 #define LVM_GETSTRINGWIDTHA (LVM_FIRST+17)
2487 #define LVM_GETSTRINGWIDTHW (LVM_FIRST+87)
2488 
2489 #define LVM_GETSTRINGWIDTH __MINGW_NAME_AW(LVM_GETSTRINGWIDTH)
2490 
2491 #define ListView_GetStringWidth(hwndLV,psz) (int)SNDMSG((hwndLV),LVM_GETSTRINGWIDTH,0,(LPARAM)(LPCTSTR)(psz))
2492 
2493 #define LVHT_NOWHERE 0x1
2494 #define LVHT_ONITEMICON 0x2
2495 #define LVHT_ONITEMLABEL 0x4
2496 #define LVHT_ONITEMSTATEICON 0x8
2497 #define LVHT_ONITEM (LVHT_ONITEMICON | LVHT_ONITEMLABEL | LVHT_ONITEMSTATEICON)
2498 
2499 #define LVHT_ABOVE 0x8
2500 #define LVHT_BELOW 0x10
2501 #define LVHT_TORIGHT 0x20
2502 #define LVHT_TOLEFT 0x40
2503 
2504 #define LV_HITTESTINFO LVHITTESTINFO
2505 
2506 #define LVHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(LVHITTESTINFO,iItem)
2507 
2508  typedef struct tagLVHITTESTINFO {
2511  int iItem;
2514 
2515 #define LVM_HITTEST (LVM_FIRST+18)
2516 #define ListView_HitTest(hwndLV,pinfo) (int)SNDMSG((hwndLV),LVM_HITTEST,0,(LPARAM)(LV_HITTESTINFO *)(pinfo))
2517 
2518 #define LVM_ENSUREVISIBLE (LVM_FIRST+19)
2519 #define ListView_EnsureVisible(hwndLV,i,fPartialOK) (BOOL)SNDMSG((hwndLV),LVM_ENSUREVISIBLE,(WPARAM)(int)(i),MAKELPARAM((fPartialOK),0))
2520 
2521 #define LVM_SCROLL (LVM_FIRST+20)
2522 #define ListView_Scroll(hwndLV,dx,dy) (BOOL)SNDMSG((hwndLV),LVM_SCROLL,(WPARAM)(int)(dx),(LPARAM)(int)(dy))
2523 
2524 #define LVM_REDRAWITEMS (LVM_FIRST+21)
2525 #define ListView_RedrawItems(hwndLV,iFirst,iLast) (BOOL)SNDMSG((hwndLV),LVM_REDRAWITEMS,(WPARAM)(int)(iFirst),(LPARAM)(int)(iLast))
2526 
2527 #define LVA_DEFAULT 0x0
2528 #define LVA_ALIGNLEFT 0x1
2529 #define LVA_ALIGNTOP 0x2
2530 #define LVA_SNAPTOGRID 0x5
2531 
2532 #define LVM_ARRANGE (LVM_FIRST+22)
2533 #define ListView_Arrange(hwndLV,code) (BOOL)SNDMSG((hwndLV),LVM_ARRANGE,(WPARAM)(UINT)(code),0L)
2534 
2535 #define LVM_EDITLABELA (LVM_FIRST+23)
2536 #define LVM_EDITLABELW (LVM_FIRST+118)
2537 
2538 #define LVM_EDITLABEL __MINGW_NAME_AW(LVM_EDITLABEL)
2539 
2540 #define ListView_EditLabel(hwndLV,i) (HWND)SNDMSG((hwndLV),LVM_EDITLABEL,(WPARAM)(int)(i),0L)
2541 
2542 #define LVM_GETEDITCONTROL (LVM_FIRST+24)
2543 #define ListView_GetEditControl(hwndLV) (HWND)SNDMSG((hwndLV),LVM_GETEDITCONTROL,0,0L)
2544 
2545 #define LV_COLUMNA LVCOLUMNA
2546 #define LV_COLUMNW LVCOLUMNW
2547 #define LV_COLUMN LVCOLUMN
2548 
2549 #define LVCOLUMNA_V1_SIZE CCSIZEOF_STRUCT(LVCOLUMNA,iSubItem)
2550 #define LVCOLUMNW_V1_SIZE CCSIZEOF_STRUCT(LVCOLUMNW,iSubItem)
2551 
2552  typedef struct tagLVCOLUMNA {
2554  int fmt;
2555  int cx;
2559  int iImage;
2560  int iOrder;
2562 
2563  typedef struct tagLVCOLUMNW {
2565  int fmt;
2566  int cx;
2570 # if (_WIN32_IE >= 0x0300)
2571  int iImage;
2572  int iOrder;
2573 # endif
2574 # if (_WIN32_WINNT >= 0x0600)
2575  int cxMin;
2576  int cxDefault;
2577  int cxIdeal;
2578 # endif
2580 
2581 #define LVCOLUMN __MINGW_NAME_AW(LVCOLUMN)
2582 #define LPLVCOLUMN __MINGW_NAME_AW(LPLVCOLUMN)
2583 
2584 #define LVCOLUMN_V1_SIZE __MINGW_NAME_AW_EXT(LVCOLUMN,_V1_SIZE)
2585 
2586 #define LVCF_FMT 0x1
2587 #define LVCF_WIDTH 0x2
2588 #define LVCF_TEXT 0x4
2589 #define LVCF_SUBITEM 0x8
2590 #define LVCF_IMAGE 0x10
2591 #define LVCF_ORDER 0x20
2592 #if (_WIN32_WINNT >= 0x0600)
2593 #define LVCF_MINWIDTH 0x40
2594 #define LVCF_DEFAULTWIDTH 0x80
2595 #define LVCF_IDEALWIDTH 0x100
2596 #endif /* (_WIN32_WINNT >= 0x0600) */
2597 
2598 #define LVCFMT_LEFT 0x0
2599 #define LVCFMT_RIGHT 0x1
2600 #define LVCFMT_CENTER 0x2
2601 #define LVCFMT_JUSTIFYMASK 0x3
2602 #define LVCFMT_IMAGE 0x800
2603 #define LVCFMT_BITMAP_ON_RIGHT 0x1000
2604 #define LVCFMT_COL_HAS_IMAGES 0x8000
2605 #if (_WIN32_WINNT >= 0x0600)
2606 #define LVCFMT_FIXED_WIDTH 0x100
2607 #define LVCFMT_NO_DPI_SCALE 0x40000
2608 #define LVCFMT_FIXED_RATIO 0x80000
2609 #define LVCFMT_LINE_BREAK 0x100000
2610 #define LVCFMT_FILL 0x200000
2611 #define LVCFMT_WRAP 0x400000
2612 #define LVCFMT_NO_TITLE 0x800000
2613 #define LVCFMT_SPLITBUTTON 0x1000000
2614 #define LVCFMT_TILE_PLACEMENTMASK (LVCFMT_LINE_BREAK|LVCFMT_FILL)
2615 #endif /* (_WIN32_WINNT >= 0x0600) */
2616 
2617 #define LVM_GETCOLUMNA (LVM_FIRST+25)
2618 #define LVM_GETCOLUMNW (LVM_FIRST+95)
2619 
2620 #define LVM_GETCOLUMN __MINGW_NAME_AW(LVM_GETCOLUMN)
2621 
2622 #define ListView_GetColumn(hwnd,iCol,pcol) (BOOL)SNDMSG((hwnd),LVM_GETCOLUMN,(WPARAM)(int)(iCol),(LPARAM)(LV_COLUMN *)(pcol))
2623 
2624 #define LVM_SETCOLUMNA (LVM_FIRST+26)
2625 #define LVM_SETCOLUMNW (LVM_FIRST+96)
2626 
2627 #define LVM_SETCOLUMN __MINGW_NAME_AW(LVM_SETCOLUMN)
2628 
2629 #define ListView_SetColumn(hwnd,iCol,pcol) (BOOL)SNDMSG((hwnd),LVM_SETCOLUMN,(WPARAM)(int)(iCol),(LPARAM)(const LV_COLUMN *)(pcol))
2630 
2631 #define LVM_INSERTCOLUMNA (LVM_FIRST+27)
2632 #define LVM_INSERTCOLUMNW (LVM_FIRST+97)
2633 
2634 #define LVM_INSERTCOLUMN __MINGW_NAME_AW(LVM_INSERTCOLUMN)
2635 
2636 #define ListView_InsertColumn(hwnd,iCol,pcol) (int)SNDMSG((hwnd),LVM_INSERTCOLUMN,(WPARAM)(int)(iCol),(LPARAM)(const LV_COLUMN *)(pcol))
2637 
2638 #define LVM_DELETECOLUMN (LVM_FIRST+28)
2639 #define ListView_DeleteColumn(hwnd,iCol) (BOOL)SNDMSG((hwnd),LVM_DELETECOLUMN,(WPARAM)(int)(iCol),0)
2640 
2641 #define LVM_GETCOLUMNWIDTH (LVM_FIRST+29)
2642 #define ListView_GetColumnWidth(hwnd,iCol) (int)SNDMSG((hwnd),LVM_GETCOLUMNWIDTH,(WPARAM)(int)(iCol),0)
2643 
2644 #define LVSCW_AUTOSIZE -1
2645 #define LVSCW_AUTOSIZE_USEHEADER -2
2646 #define LVM_SETCOLUMNWIDTH (LVM_FIRST+30)
2647 
2648 #define ListView_SetColumnWidth(hwnd,iCol,cx) (BOOL)SNDMSG((hwnd),LVM_SETCOLUMNWIDTH,(WPARAM)(int)(iCol),MAKELPARAM((cx),0))
2649 
2650 #define LVM_GETHEADER (LVM_FIRST+31)
2651 #define ListView_GetHeader(hwnd) (HWND)SNDMSG((hwnd),LVM_GETHEADER,0,0L)
2652 #define LVM_CREATEDRAGIMAGE (LVM_FIRST+33)
2653 #define ListView_CreateDragImage(hwnd,i,lpptUpLeft) (HIMAGELIST)SNDMSG((hwnd),LVM_CREATEDRAGIMAGE,(WPARAM)(int)(i),(LPARAM)(LPPOINT)(lpptUpLeft))
2654 #define LVM_GETVIEWRECT (LVM_FIRST+34)
2655 #define ListView_GetViewRect(hwnd,prc) (BOOL)SNDMSG((hwnd),LVM_GETVIEWRECT,0,(LPARAM)(RECT *)(prc))
2656 #define LVM_GETTEXTCOLOR (LVM_FIRST+35)
2657 #define ListView_GetTextColor(hwnd) (COLORREF)SNDMSG((hwnd),LVM_GETTEXTCOLOR,0,0L)
2658 #define LVM_SETTEXTCOLOR (LVM_FIRST+36)
2659 #define ListView_SetTextColor(hwnd,clrText) (BOOL)SNDMSG((hwnd),LVM_SETTEXTCOLOR,0,(LPARAM)(COLORREF)(clrText))
2660 #define LVM_GETTEXTBKCOLOR (LVM_FIRST+37)
2661 #define ListView_GetTextBkColor(hwnd) (COLORREF)SNDMSG((hwnd),LVM_GETTEXTBKCOLOR,0,0L)
2662 #define LVM_SETTEXTBKCOLOR (LVM_FIRST+38)
2663 #define ListView_SetTextBkColor(hwnd,clrTextBk) (BOOL)SNDMSG((hwnd),LVM_SETTEXTBKCOLOR,0,(LPARAM)(COLORREF)(clrTextBk))
2664 #define LVM_GETTOPINDEX (LVM_FIRST+39)
2665 #define ListView_GetTopIndex(hwndLV) (int)SNDMSG((hwndLV),LVM_GETTOPINDEX,0,0)
2666 #define LVM_GETCOUNTPERPAGE (LVM_FIRST+40)
2667 #define ListView_GetCountPerPage(hwndLV) (int)SNDMSG((hwndLV),LVM_GETCOUNTPERPAGE,0,0)
2668 #define LVM_GETORIGIN (LVM_FIRST+41)
2669 #define ListView_GetOrigin(hwndLV,ppt) (BOOL)SNDMSG((hwndLV),LVM_GETORIGIN,(WPARAM)0,(LPARAM)(POINT *)(ppt))
2670 #define LVM_UPDATE (LVM_FIRST+42)
2671 #define ListView_Update(hwndLV,i) (BOOL)SNDMSG((hwndLV),LVM_UPDATE,(WPARAM)(i),0L)
2672 #define LVM_SETITEMSTATE (LVM_FIRST+43)
2673 #define ListView_SetItemState(hwndLV,i,data,mask) { LV_ITEM _ms_lvi; _ms_lvi.stateMask = mask; _ms_lvi.state = data; SNDMSG((hwndLV),LVM_SETITEMSTATE,(WPARAM)(i),(LPARAM)(LV_ITEM *)&_ms_lvi);}
2674 #define ListView_SetCheckState(hwndLV,i,fCheck) ListView_SetItemState(hwndLV,i,INDEXTOSTATEIMAGEMASK((fCheck)?2:1),LVIS_STATEIMAGEMASK)
2675 #define LVM_GETITEMSTATE (LVM_FIRST+44)
2676 #define ListView_GetItemState(hwndLV,i,mask) (UINT)SNDMSG((hwndLV),LVM_GETITEMSTATE,(WPARAM)(i),(LPARAM)(mask))
2677 #define ListView_GetCheckState(hwndLV,i) ((((UINT)(SNDMSG((hwndLV),LVM_GETITEMSTATE,(WPARAM)(i),LVIS_STATEIMAGEMASK))) >> 12) -1)
2678 
2679 #define LVM_GETITEMTEXTA (LVM_FIRST+45)
2680 #define LVM_GETITEMTEXTW (LVM_FIRST+115)
2681 
2682 #define LVM_GETITEMTEXT __MINGW_NAME_AW(LVM_GETITEMTEXT)
2683 
2684 #define ListView_GetItemText(hwndLV,i,iSubItem_,pszText_,cchTextMax_) { LV_ITEM _ms_lvi; _ms_lvi.iSubItem = iSubItem_; _ms_lvi.cchTextMax = cchTextMax_; _ms_lvi.pszText = pszText_; SNDMSG((hwndLV),LVM_GETITEMTEXT,(WPARAM)(i),(LPARAM)(LV_ITEM *)&_ms_lvi);}
2685 
2686 #define LVM_SETITEMTEXTA (LVM_FIRST+46)
2687 #define LVM_SETITEMTEXTW (LVM_FIRST+116)
2688 
2689 #define LVM_SETITEMTEXT __MINGW_NAME_AW(LVM_SETITEMTEXT)
2690 
2691 #define ListView_SetItemText(hwndLV,i,iSubItem_,pszText_) { LV_ITEM _ms_lvi; _ms_lvi.iSubItem = iSubItem_; _ms_lvi.pszText = pszText_; SNDMSG((hwndLV),LVM_SETITEMTEXT,(WPARAM)(i),(LPARAM)(LV_ITEM *)&_ms_lvi);}
2692 
2693 #define LVSICF_NOINVALIDATEALL 0x1
2694 #define LVSICF_NOSCROLL 0x2
2695 
2696 #define LVM_SETITEMCOUNT (LVM_FIRST+47)
2697 #define ListView_SetItemCount(hwndLV,cItems) SNDMSG((hwndLV),LVM_SETITEMCOUNT,(WPARAM)(cItems),0)
2698 #define ListView_SetItemCountEx(hwndLV,cItems,dwFlags) SNDMSG((hwndLV),LVM_SETITEMCOUNT,(WPARAM)(cItems),(LPARAM)(dwFlags))
2699 
2701 
2702 #define LVM_SORTITEMS (LVM_FIRST+48)
2703 #define ListView_SortItems(hwndLV,_pfnCompare,_lPrm) (BOOL)SNDMSG((hwndLV),LVM_SORTITEMS,(WPARAM)(LPARAM)(_lPrm),(LPARAM)(PFNLVCOMPARE)(_pfnCompare))
2704 
2705 #define LVM_SETITEMPOSITION32 (LVM_FIRST+49)
2706 #define ListView_SetItemPosition32(hwndLV,i,x0,y0) { POINT ptNewPos; ptNewPos.x = x0; ptNewPos.y = y0; SNDMSG((hwndLV),LVM_SETITEMPOSITION32,(WPARAM)(int)(i),(LPARAM)&ptNewPos); }
2707 
2708 #define LVM_GETSELECTEDCOUNT (LVM_FIRST+50)
2709 #define ListView_GetSelectedCount(hwndLV) (UINT)SNDMSG((hwndLV),LVM_GETSELECTEDCOUNT,0,0L)
2710 
2711 #define LVM_GETITEMSPACING (LVM_FIRST+51)
2712 #define ListView_GetItemSpacing(hwndLV,fSmall) (DWORD)SNDMSG((hwndLV),LVM_GETITEMSPACING,fSmall,0L)
2713 
2714 #define LVM_GETISEARCHSTRINGA (LVM_FIRST+52)
2715 #define LVM_GETISEARCHSTRINGW (LVM_FIRST+117)
2716 
2717 #define LVM_GETISEARCHSTRING __MINGW_NAME_AW(LVM_GETISEARCHSTRING)
2718 
2719 #define ListView_GetISearchString(hwndLV,lpsz) (BOOL)SNDMSG((hwndLV),LVM_GETISEARCHSTRING,0,(LPARAM)(LPTSTR)(lpsz))
2720 
2721 #define LVM_SETICONSPACING (LVM_FIRST+53)
2722 
2723 #define ListView_SetIconSpacing(hwndLV,cx,cy) (DWORD)SNDMSG((hwndLV),LVM_SETICONSPACING,0,MAKELONG(cx,cy))
2724 #define LVM_SETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+54)
2725 #define ListView_SetExtendedListViewStyle(hwndLV,dw) (DWORD)SNDMSG((hwndLV),LVM_SETEXTENDEDLISTVIEWSTYLE,0,dw)
2726 #define ListView_SetExtendedListViewStyleEx(hwndLV,dwMask,dw) (DWORD)SNDMSG((hwndLV),LVM_SETEXTENDEDLISTVIEWSTYLE,dwMask,dw)
2727 #define LVM_GETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+55)
2728 #define ListView_GetExtendedListViewStyle(hwndLV) (DWORD)SNDMSG((hwndLV),LVM_GETEXTENDEDLISTVIEWSTYLE,0,0)
2729 #define LVS_EX_GRIDLINES 0x1
2730 #define LVS_EX_SUBITEMIMAGES 0x2
2731 #define LVS_EX_CHECKBOXES 0x4
2732 #define LVS_EX_TRACKSELECT 0x8
2733 #define LVS_EX_HEADERDRAGDROP 0x10
2734 #define LVS_EX_FULLROWSELECT 0x20
2735 #define LVS_EX_ONECLICKACTIVATE 0x40
2736 #define LVS_EX_TWOCLICKACTIVATE 0x80
2737 #define LVS_EX_FLATSB 0x100
2738 #define LVS_EX_REGIONAL 0x200
2739 #define LVS_EX_INFOTIP 0x400
2740 #define LVS_EX_UNDERLINEHOT 0x800
2741 #define LVS_EX_UNDERLINECOLD 0x1000
2742 #define LVS_EX_MULTIWORKAREAS 0x2000
2743 #define LVS_EX_LABELTIP 0x4000
2744 #define LVS_EX_BORDERSELECT 0x8000
2745 #define LVS_EX_DOUBLEBUFFER 0x10000
2746 #define LVS_EX_HIDELABELS 0x20000
2747 #define LVS_EX_SINGLEROW 0x40000
2748 #define LVS_EX_SNAPTOGRID 0x80000
2749 #define LVS_EX_SIMPLESELECT 0x100000
2750 #if _WIN32_WINNT >= 0x0600
2751 #define LVS_EX_JUSTIFYCOLUMNS 0x200000
2752 #define LVS_EX_TRANSPARENTBKGND 0x400000
2753 #define LVS_EX_TRANSPARENTSHADOWTEXT 0x800000
2754 #define LVS_EX_AUTOAUTOARRANGE 0x1000000
2755 #define LVS_EX_HEADERINALLVIEWS 0x2000000
2756 #define LVS_EX_AUTOCHECKSELECT 0x8000000
2757 #define LVS_EX_AUTOSIZECOLUMNS 0x10000000
2758 #define LVS_EX_COLUMNSNAPPOINTS 0x40000000
2759 #define LVS_EX_COLUMNOVERFLOW 0x80000000
2760 #endif
2761 
2762 #define LVM_GETSUBITEMRECT (LVM_FIRST+56)
2763 #define ListView_GetSubItemRect(hwnd,iItem,iSubItem,code,prc) (BOOL)SNDMSG((hwnd),LVM_GETSUBITEMRECT,(WPARAM)(int)(iItem),((prc) ? ((((LPRECT)(prc))->top = iSubItem),(((LPRECT)(prc))->left = code),(LPARAM)(prc)) : (LPARAM)(LPRECT)NULL))
2764 #define LVM_SUBITEMHITTEST (LVM_FIRST+57)
2765 #define ListView_SubItemHitTest(hwnd,plvhti) (int)SNDMSG((hwnd),LVM_SUBITEMHITTEST,0,(LPARAM)(LPLVHITTESTINFO)(plvhti))
2766 #define LVM_SETCOLUMNORDERARRAY (LVM_FIRST+58)
2767 #define ListView_SetColumnOrderArray(hwnd,iCount,pi) (BOOL)SNDMSG((hwnd),LVM_SETCOLUMNORDERARRAY,(WPARAM)(iCount),(LPARAM)(LPINT)(pi))
2768 #define LVM_GETCOLUMNORDERARRAY (LVM_FIRST+59)
2769 #define ListView_GetColumnOrderArray(hwnd,iCount,pi) (BOOL)SNDMSG((hwnd),LVM_GETCOLUMNORDERARRAY,(WPARAM)(iCount),(LPARAM)(LPINT)(pi))
2770 #define LVM_SETHOTITEM (LVM_FIRST+60)
2771 #define ListView_SetHotItem(hwnd,i) (int)SNDMSG((hwnd),LVM_SETHOTITEM,(WPARAM)(i),0)
2772 #define LVM_GETHOTITEM (LVM_FIRST+61)
2773 #define ListView_GetHotItem(hwnd) (int)SNDMSG((hwnd),LVM_GETHOTITEM,0,0)
2774 #define LVM_SETHOTCURSOR (LVM_FIRST+62)
2775 #define ListView_SetHotCursor(hwnd,hcur) (HCURSOR)SNDMSG((hwnd),LVM_SETHOTCURSOR,0,(LPARAM)(hcur))
2776 #define LVM_GETHOTCURSOR (LVM_FIRST+63)
2777 #define ListView_GetHotCursor(hwnd) (HCURSOR)SNDMSG((hwnd),LVM_GETHOTCURSOR,0,0)
2778 #define LVM_APPROXIMATEVIEWRECT (LVM_FIRST+64)
2779 #define ListView_ApproximateViewRect(hwnd,iWidth,iHeight,iCount) (DWORD)SNDMSG((hwnd),LVM_APPROXIMATEVIEWRECT,iCount,MAKELPARAM(iWidth,iHeight))
2780 
2781 #define LV_MAX_WORKAREAS 16
2782 #define LVM_SETWORKAREAS (LVM_FIRST+65)
2783 #define ListView_SetWorkAreas(hwnd,nWorkAreas,prc) (BOOL)SNDMSG((hwnd),LVM_SETWORKAREAS,(WPARAM)(int)(nWorkAreas),(LPARAM)(RECT *)(prc))
2784 #define LVM_GETWORKAREAS (LVM_FIRST+70)
2785 #define ListView_GetWorkAreas(hwnd,nWorkAreas,prc) (BOOL)SNDMSG((hwnd),LVM_GETWORKAREAS,(WPARAM)(int)(nWorkAreas),(LPARAM)(RECT *)(prc))
2786 #define LVM_GETNUMBEROFWORKAREAS (LVM_FIRST+73)
2787 #define ListView_GetNumberOfWorkAreas(hwnd,pnWorkAreas) (BOOL)SNDMSG((hwnd),LVM_GETNUMBEROFWORKAREAS,0,(LPARAM)(UINT *)(pnWorkAreas))
2788 #define LVM_GETSELECTIONMARK (LVM_FIRST+66)
2789 #define ListView_GetSelectionMark(hwnd) (int)SNDMSG((hwnd),LVM_GETSELECTIONMARK,0,0)
2790 #define LVM_SETSELECTIONMARK (LVM_FIRST+67)
2791 #define ListView_SetSelectionMark(hwnd,i) (int)SNDMSG((hwnd),LVM_SETSELECTIONMARK,0,(LPARAM)(i))
2792 #define LVM_SETHOVERTIME (LVM_FIRST+71)
2793 #define ListView_SetHoverTime(hwndLV,dwHoverTimeMs) (DWORD)SNDMSG((hwndLV),LVM_SETHOVERTIME,0,(LPARAM)(dwHoverTimeMs))
2794 #define LVM_GETHOVERTIME (LVM_FIRST+72)
2795 #define ListView_GetHoverTime(hwndLV) (DWORD)SNDMSG((hwndLV),LVM_GETHOVERTIME,0,0)
2796 #define LVM_SETTOOLTIPS (LVM_FIRST+74)
2797 #define ListView_SetToolTips(hwndLV,hwndNewHwnd) (HWND)SNDMSG((hwndLV),LVM_SETTOOLTIPS,(WPARAM)(hwndNewHwnd),0)
2798 #define LVM_GETTOOLTIPS (LVM_FIRST+78)
2799 #define ListView_GetToolTips(hwndLV) (HWND)SNDMSG((hwndLV),LVM_GETTOOLTIPS,0,0)
2800 #define LVM_SORTITEMSEX (LVM_FIRST+81)
2801 #define ListView_SortItemsEx(hwndLV,_pfnCompare,_lPrm) (BOOL)SNDMSG((hwndLV),LVM_SORTITEMSEX,(WPARAM)(LPARAM)(_lPrm),(LPARAM)(PFNLVCOMPARE)(_pfnCompare))
2802 
2803  typedef struct tagLVBKIMAGEA {
2811 
2812  typedef struct tagLVBKIMAGEW {
2820 
2821 #define LVBKIF_SOURCE_NONE 0x0
2822 #define LVBKIF_SOURCE_HBITMAP 0x1
2823 #define LVBKIF_SOURCE_URL 0x2
2824 #define LVBKIF_SOURCE_MASK 0x3
2825 #define LVBKIF_STYLE_NORMAL 0x0
2826 #define LVBKIF_STYLE_TILE 0x10
2827 #define LVBKIF_STYLE_MASK 0x10
2828 #define LVBKIF_FLAG_TILEOFFSET 0x100
2829 #define LVBKIF_TYPE_WATERMARK 0x10000000
2830 
2831 #define LVM_SETBKIMAGEA (LVM_FIRST+68)
2832 #define LVM_SETBKIMAGEW (LVM_FIRST+138)
2833 #define LVM_GETBKIMAGEA (LVM_FIRST+69)
2834 #define LVM_GETBKIMAGEW (LVM_FIRST+139)
2835 
2836 #define LVM_SETSELECTEDCOLUMN (LVM_FIRST+140)
2837 #define ListView_SetSelectedColumn(hwnd,iCol) SNDMSG((hwnd),LVM_SETSELECTEDCOLUMN,(WPARAM)iCol,0)
2838 #define LVM_SETTILEWIDTH (LVM_FIRST+141)
2839 #define ListView_SetTileWidth(hwnd,cpWidth) SNDMSG((hwnd),LVM_SETTILEWIDTH,(WPARAM)cpWidth,0)
2840 #define LV_VIEW_ICON 0x0
2841 #define LV_VIEW_DETAILS 0x1
2842 #define LV_VIEW_SMALLICON 0x2
2843 #define LV_VIEW_LIST 0x3
2844 #define LV_VIEW_TILE 0x4
2845 #define LV_VIEW_MAX 0x4
2846 #define LVM_SETVIEW (LVM_FIRST+142)
2847 #define ListView_SetView(hwnd,iView) (DWORD)SNDMSG((hwnd),LVM_SETVIEW,(WPARAM)(DWORD)iView,0)
2848 #define LVM_GETVIEW (LVM_FIRST+143)
2849 #define ListView_GetView(hwnd) (DWORD)SNDMSG((hwnd),LVM_GETVIEW,0,0)
2850 #define LVGF_NONE 0x0
2851 #define LVGF_HEADER 0x1
2852 #define LVGF_FOOTER 0x2
2853 #define LVGF_STATE 0x4
2854 #define LVGF_ALIGN 0x8
2855 #define LVGF_GROUPID 0x10
2856 
2857 #define LVGS_NORMAL 0x0
2858 #define LVGS_COLLAPSED 0x1
2859 #define LVGS_HIDDEN 0x2
2860 
2861 #define LVGA_HEADER_LEFT 0x1
2862 #define LVGA_HEADER_CENTER 0x2
2863 #define LVGA_HEADER_RIGHT 0x4
2864 #define LVGA_FOOTER_LEFT 0x8
2865 #define LVGA_FOOTER_CENTER 0x10
2866 #define LVGA_FOOTER_RIGHT 0x20
2867 
2868  typedef struct tagLVGROUP {
2879  } LVGROUP,*PLVGROUP;
2880 
2881 #define LVM_INSERTGROUP (LVM_FIRST+145)
2882 #define ListView_InsertGroup(hwnd,index,pgrp) SNDMSG((hwnd),LVM_INSERTGROUP,(WPARAM)index,(LPARAM)pgrp)
2883 #define LVM_SETGROUPINFO (LVM_FIRST+147)
2884 #define ListView_SetGroupInfo(hwnd,iGroupId,pgrp) SNDMSG((hwnd),LVM_SETGROUPINFO,(WPARAM)iGroupId,(LPARAM)pgrp)
2885 #define LVM_GETGROUPINFO (LVM_FIRST+149)
2886 #define ListView_GetGroupInfo(hwnd,iGroupId,pgrp) SNDMSG((hwnd),LVM_GETGROUPINFO,(WPARAM)iGroupId,(LPARAM)pgrp)
2887 #define LVM_REMOVEGROUP (LVM_FIRST+150)
2888 #define ListView_RemoveGroup(hwnd,iGroupId) SNDMSG((hwnd),LVM_REMOVEGROUP,(WPARAM)iGroupId,0)
2889 #define LVM_MOVEGROUP (LVM_FIRST+151)
2890 #define ListView_MoveGroup(hwnd,iGroupId,toIndex) SNDMSG((hwnd),LVM_MOVEGROUP,(WPARAM)iGroupId,(LPARAM)toIndex)
2891 #define LVM_MOVEITEMTOGROUP (LVM_FIRST+154)
2892 #define ListView_MoveItemToGroup(hwnd,idItemFrom,idGroupTo) SNDMSG((hwnd),LVM_MOVEITEMTOGROUP,(WPARAM)idItemFrom,(LPARAM)idGroupTo)
2893 #define LVGMF_NONE 0x0
2894 #define LVGMF_BORDERSIZE 0x1
2895 #define LVGMF_BORDERCOLOR 0x2
2896 #define LVGMF_TEXTCOLOR 0x4
2897 
2898  typedef struct tagLVGROUPMETRICS {
2912 
2913 #define LVM_SETGROUPMETRICS (LVM_FIRST+155)
2914 #define ListView_SetGroupMetrics(hwnd,pGroupMetrics) SNDMSG((hwnd),LVM_SETGROUPMETRICS,0,(LPARAM)pGroupMetrics)
2915 #define LVM_GETGROUPMETRICS (LVM_FIRST+156)
2916 #define ListView_GetGroupMetrics(hwnd,pGroupMetrics) SNDMSG((hwnd),LVM_GETGROUPMETRICS,0,(LPARAM)pGroupMetrics)
2917 #define LVM_ENABLEGROUPVIEW (LVM_FIRST+157)
2918 #define ListView_EnableGroupView(hwnd,fEnable) SNDMSG((hwnd),LVM_ENABLEGROUPVIEW,(WPARAM)fEnable,0)
2919 
2920  typedef int (CALLBACK *PFNLVGROUPCOMPARE)(int,int,void *);
2921 
2922 #define LVM_SORTGROUPS (LVM_FIRST+158)
2923 #define ListView_SortGroups(hwnd,_pfnGroupCompate,_plv) SNDMSG((hwnd),LVM_SORTGROUPS,(WPARAM)_pfnGroupCompate,(LPARAM)_plv)
2924 
2925  typedef struct tagLVINSERTGROUPSORTED {
2927  void *pvData;
2930 
2931 #define LVM_INSERTGROUPSORTED (LVM_FIRST+159)
2932 #define ListView_InsertGroupSorted(hwnd,structInsert) SNDMSG((hwnd),LVM_INSERTGROUPSORTED,(WPARAM)structInsert,0)
2933 #define LVM_REMOVEALLGROUPS (LVM_FIRST+160)
2934 #define ListView_RemoveAllGroups(hwnd) SNDMSG((hwnd),LVM_REMOVEALLGROUPS,0,0)
2935 #define LVM_HASGROUP (LVM_FIRST+161)
2936 #define ListView_HasGroup(hwnd,dwGroupId) SNDMSG((hwnd),LVM_HASGROUP,dwGroupId,0)
2937 
2938 #define LVTVIF_AUTOSIZE 0x0
2939 #define LVTVIF_FIXEDWIDTH 0x1
2940 #define LVTVIF_FIXEDHEIGHT 0x2
2941 #define LVTVIF_FIXEDSIZE 0x3
2942 
2943 #define LVTVIM_TILESIZE 0x1
2944 #define LVTVIM_COLUMNS 0x2
2945 #define LVTVIM_LABELMARGIN 0x4
2946 
2947  typedef struct tagLVTILEVIEWINFO {
2952  int cLines;
2955 
2956  typedef struct tagLVTILEINFO {
2958  int iItem;
2962 
2963 #define LVM_SETTILEVIEWINFO (LVM_FIRST+162)
2964 #define ListView_SetTileViewInfo(hwnd,ptvi) SNDMSG((hwnd),LVM_SETTILEVIEWINFO,0,(LPARAM)ptvi)
2965 #define LVM_GETTILEVIEWINFO (LVM_FIRST+163)
2966 #define ListView_GetTileViewInfo(hwnd,ptvi) SNDMSG((hwnd),LVM_GETTILEVIEWINFO,0,(LPARAM)ptvi)
2967 #define LVM_SETTILEINFO (LVM_FIRST+164)
2968 #define ListView_SetTileInfo(hwnd,pti) SNDMSG((hwnd),LVM_SETTILEINFO,0,(LPARAM)pti)
2969 #define LVM_GETTILEINFO (LVM_FIRST+165)
2970 #define ListView_GetTileInfo(hwnd,pti) SNDMSG((hwnd),LVM_GETTILEINFO,0,(LPARAM)pti)
2971 
2972  typedef struct {
2975  int iItem;
2978 
2979 #define LVIM_AFTER 0x1
2980 
2981 #define LVM_SETINSERTMARK (LVM_FIRST+166)
2982 #define ListView_SetInsertMark(hwnd,lvim) (BOOL)SNDMSG((hwnd),LVM_SETINSERTMARK,(WPARAM) 0,(LPARAM) (lvim))
2983 #define LVM_GETINSERTMARK (LVM_FIRST+167)
2984 #define ListView_GetInsertMark(hwnd,lvim) (BOOL)SNDMSG((hwnd),LVM_GETINSERTMARK,(WPARAM) 0,(LPARAM) (lvim))
2985 #define LVM_INSERTMARKHITTEST (LVM_FIRST+168)
2986 #define ListView_InsertMarkHitTest(hwnd,point,lvim) (int)SNDMSG((hwnd),LVM_INSERTMARKHITTEST,(WPARAM)(LPPOINT)(point),(LPARAM)(LPLVINSERTMARK)(lvim))
2987 #define LVM_GETINSERTMARKRECT (LVM_FIRST+169)
2988 #define ListView_GetInsertMarkRect(hwnd,rc) (int)SNDMSG((hwnd),LVM_GETINSERTMARKRECT,(WPARAM)0,(LPARAM)(LPRECT)(rc))
2989 #define LVM_SETINSERTMARKCOLOR (LVM_FIRST+170)
2990 #define ListView_SetInsertMarkColor(hwnd,color) (COLORREF)SNDMSG((hwnd),LVM_SETINSERTMARKCOLOR,(WPARAM)0,(LPARAM)(COLORREF)(color))
2991 #define LVM_GETINSERTMARKCOLOR (LVM_FIRST+171)
2992 #define ListView_GetInsertMarkColor(hwnd) (COLORREF)SNDMSG((hwnd),LVM_GETINSERTMARKCOLOR,(WPARAM)0,(LPARAM)0)
2993 
2994  typedef struct tagLVSETINFOTIP {
2998  int iItem;
3001 
3002 #define LVM_SETINFOTIP (LVM_FIRST+173)
3003 #define ListView_SetInfoTip(hwndLV,plvInfoTip) (BOOL)SNDMSG((hwndLV),LVM_SETINFOTIP,(WPARAM)0,(LPARAM)plvInfoTip)
3004 #define LVM_GETSELECTEDCOLUMN (LVM_FIRST+174)
3005 #define ListView_GetSelectedColumn(hwnd) (UINT)SNDMSG((hwnd),LVM_GETSELECTEDCOLUMN,0,0)
3006 #define LVM_ISGROUPVIEWENABLED (LVM_FIRST+175)
3007 #define ListView_IsGroupViewEnabled(hwnd) (BOOL)SNDMSG((hwnd),LVM_ISGROUPVIEWENABLED,0,0)
3008 #define LVM_GETOUTLINECOLOR (LVM_FIRST+176)
3009 #define ListView_GetOutlineColor(hwnd) (COLORREF)SNDMSG((hwnd),LVM_GETOUTLINECOLOR,0,0)
3010 #define LVM_SETOUTLINECOLOR (LVM_FIRST+177)
3011 #define ListView_SetOutlineColor(hwnd,color) (COLORREF)SNDMSG((hwnd),LVM_SETOUTLINECOLOR,(WPARAM)0,(LPARAM)(COLORREF)(color))
3012 #define LVM_CANCELEDITLABEL (LVM_FIRST+179)
3013 #define ListView_CancelEditLabel(hwnd) (VOID)SNDMSG((hwnd),LVM_CANCELEDITLABEL,(WPARAM)0,(LPARAM)0)
3014 #define LVM_MAPINDEXTOID (LVM_FIRST+180)
3015 #define ListView_MapIndexToID(hwnd,index) (UINT)SNDMSG((hwnd),LVM_MAPINDEXTOID,(WPARAM)index,(LPARAM)0)
3016 #define LVM_MAPIDTOINDEX (LVM_FIRST+181)
3017 #define ListView_MapIDToIndex(hwnd,id) (UINT)SNDMSG((hwnd),LVM_MAPIDTOINDEX,(WPARAM)id,(LPARAM)0)
3018 #define LVM_ISITEMVISIBLE (LVM_FIRST+182)
3019 #define ListView_IsItemVisible(hwnd,index) (UINT)SNDMSG((hwnd),LVM_ISITEMVISIBLE,(WPARAM)(index),(LPARAM)0)
3020 
3021 #define LVBKIMAGE __MINGW_NAME_AW(LVBKIMAGE)
3022 #define LPLVBKIMAGE __MINGW_NAME_AW(LPLVBKIMAGE)
3023 #define LVM_SETBKIMAGE __MINGW_NAME_AW(LVM_SETBKIMAGE)
3024 #define LVM_GETBKIMAGE __MINGW_NAME_AW(LVM_GETBKIMAGE)
3025 
3026 #define ListView_SetBkImage(hwnd,plvbki) (BOOL)SNDMSG((hwnd),LVM_SETBKIMAGE,0,(LPARAM)(plvbki))
3027 #define ListView_GetBkImage(hwnd,plvbki) (BOOL)SNDMSG((hwnd),LVM_GETBKIMAGE,0,(LPARAM)(plvbki))
3028 
3029 #define LPNM_LISTVIEW LPNMLISTVIEW
3030 #define NM_LISTVIEW NMLISTVIEW
3031 
3032  typedef struct tagNMLISTVIEW {
3034  int iItem;
3042 
3043  typedef struct tagNMITEMACTIVATE {
3045  int iItem;
3054 
3055 #define LVKF_ALT 0x1
3056 #define LVKF_CONTROL 0x2
3057 #define LVKF_SHIFT 0x4
3058 
3059 #define NMLVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMLVCUSTOMDRW,clrTextBk)
3060 
3061  typedef struct tagNMLVCUSTOMDRAW {
3070  int iPartId;
3075 
3076 #define LVCDI_ITEM 0x0
3077 #define LVCDI_GROUP 0x1
3078 
3079 #define LVCDRF_NOSELECT 0x10000
3080 #define LVCDRF_NOGROUPFRAME 0x20000
3081 
3082  typedef struct tagNMLVCACHEHINT {
3084  int iFrom;
3085  int iTo;
3087 
3088 #define LPNM_CACHEHINT LPNMLVCACHEHINT
3089 #define PNM_CACHEHINT LPNMLVCACHEHINT
3090 #define NM_CACHEHINT NMLVCACHEHINT
3091 
3092  typedef struct tagNMLVFINDITEMA {
3094  int iStart;
3097 
3098  typedef struct tagNMLVFINDITEMW {
3100  int iStart;
3103 
3104 #define PNM_FINDITEMA LPNMLVFINDITEMA
3105 #define LPNM_FINDITEMA LPNMLVFINDITEMA
3106 #define NM_FINDITEMA NMLVFINDITEMA
3107 
3108 #define PNM_FINDITEMW LPNMLVFINDITEMW
3109 #define LPNM_FINDITEMW LPNMLVFINDITEMW
3110 #define NM_FINDITEMW NMLVFINDITEMW
3111 
3112 #define PNM_FINDITEM __MINGW_NAME_AW(PNM_FINDITEM)
3113 #define LPNM_FINDITEM __MINGW_NAME_AW(LPNM_FINDITEM)
3114 #define NM_FINDITEM __MINGW_NAME_AW(NM_FINDITEM)
3115 #define NMLVFINDITEM __MINGW_NAME_AW(NMLVFINDITEM)
3116 #define LPNMLVFINDITEM __MINGW_NAME_AW(LPNMLVFINDITEM)
3117 
3118  typedef struct tagNMLVODSTATECHANGE {
3120  int iFrom;
3121  int iTo;
3125 
3126 #define PNM_ODSTATECHANGE LPNMLVODSTATECHANGE
3127 #define LPNM_ODSTATECHANGE LPNMLVODSTATECHANGE
3128 #define NM_ODSTATECHANGE NMLVODSTATECHANGE
3129 
3130 #define LVN_ITEMCHANGING (LVN_FIRST-0)
3131 #define LVN_ITEMCHANGED (LVN_FIRST-1)
3132 #define LVN_INSERTITEM (LVN_FIRST-2)
3133 #define LVN_DELETEITEM (LVN_FIRST-3)
3134 #define LVN_DELETEALLITEMS (LVN_FIRST-4)
3135 #define LVN_BEGINLABELEDITA (LVN_FIRST-5)
3136 #define LVN_BEGINLABELEDITW (LVN_FIRST-75)
3137 #define LVN_ENDLABELEDITA (LVN_FIRST-6)
3138 #define LVN_ENDLABELEDITW (LVN_FIRST-76)
3139 #define LVN_COLUMNCLICK (LVN_FIRST-8)
3140 #define LVN_BEGINDRAG (LVN_FIRST-9)
3141 #define LVN_BEGINRDRAG (LVN_FIRST-11)
3142 
3143 #define LVN_ODCACHEHINT (LVN_FIRST-13)
3144 #define LVN_ODFINDITEMA (LVN_FIRST-52)
3145 #define LVN_ODFINDITEMW (LVN_FIRST-79)
3146 
3147 #define LVN_ITEMACTIVATE (LVN_FIRST-14)
3148 #define LVN_ODSTATECHANGED (LVN_FIRST-15)
3149 
3150 #define LVN_ODFINDITEM __MINGW_NAME_AW(LVN_ODFINDITEM)
3151 
3152 #define LVN_HOTTRACK (LVN_FIRST-21)
3153 #define LVN_GETDISPINFOA (LVN_FIRST-50)
3154 #define LVN_GETDISPINFOW (LVN_FIRST-77)
3155 #define LVN_SETDISPINFOA (LVN_FIRST-51)
3156 #define LVN_SETDISPINFOW (LVN_FIRST-78)
3157 
3158 #define LVN_BEGINLABELEDIT __MINGW_NAME_AW(LVN_BEGINLABELEDIT)
3159 #define LVN_ENDLABELEDIT __MINGW_NAME_AW(LVN_ENDLABELEDIT)
3160 #define LVN_GETDISPINFO __MINGW_NAME_AW(LVN_GETDISPINFO)
3161 #define LVN_SETDISPINFO __MINGW_NAME_AW(LVN_SETDISPINFO)
3162 
3163 #define LVN_INCREMENTALSEARCHA (LVN_FIRST-62)
3164 #define LVN_INCREMENTALSEARCHW (LVN_FIRST-63)
3165 
3166 #define LVIF_DI_SETITEM 0x1000
3167 
3168 #define LV_DISPINFOA NMLVDISPINFOA
3169 #define LV_DISPINFOW NMLVDISPINFOW
3170 #define LV_DISPINFO NMLVDISPINFO
3171 
3172  typedef struct tagLVDISPINFO {
3176 
3177  typedef struct tagLVDISPINFOW {
3181 
3182 #define NMLVDISPINFO __MINGW_NAME_AW(NMLVDISPINFO)
3183 
3184 #define LVN_KEYDOWN (LVN_FIRST-55)
3185 
3186 #define LV_KEYDOWN NMLVKEYDOWN
3187 
3188 #include <pshpack1.h>
3189 
3190  typedef struct tagLVKEYDOWN {
3195 
3196 #include <poppack.h>
3197 
3198 #define LVN_MARQUEEBEGIN (LVN_FIRST-56)
3199 
3200  typedef struct tagNMLVGETINFOTIPA {
3205  int iItem;
3209 
3210  typedef struct tagNMLVGETINFOTIPW {
3215  int iItem;
3219 
3220 #define LVGIT_UNFOLDED 0x1
3221 
3222 #define LVN_GETINFOTIPA (LVN_FIRST-57)
3223 #define LVN_GETINFOTIPW (LVN_FIRST-58)
3224 
3225 #define LVN_GETINFOTIP __MINGW_NAME_AW(LVN_GETINFOTIP)
3226 #define NMLVGETINFOTIP __MINGW_NAME_AW(NMLVGETINFOTIP)
3227 #define LPNMLVGETINFOTIP __MINGW_NAME_AW(LPNMLVGETINFOTIP)
3228 
3229  typedef struct tagNMLVSCROLL {
3231  int dx;
3232  int dy;
3234 
3235 #define LVN_BEGINSCROLL (LVN_FIRST-80)
3236 #define LVN_ENDSCROLL (LVN_FIRST-81)
3237 
3238 #endif /* !NOLISTVIEW */
3239 
3240 #ifndef NOTREEVIEW
3241 
3242 #define WC_TREEVIEWA "SysTreeView32"
3243 #define WC_TREEVIEWW L"SysTreeView32"
3244 
3245 #define WC_TREEVIEW __MINGW_NAME_AW(WC_TREEVIEW)
3246 
3247 #define TVS_HASBUTTONS 0x1
3248 #define TVS_HASLINES 0x2
3249 #define TVS_LINESATROOT 0x4
3250 #define TVS_EDITLABELS 0x8
3251 #define TVS_DISABLEDRAGDROP 0x10
3252 #define TVS_SHOWSELALWAYS 0x20
3253 #define TVS_RTLREADING 0x40
3254 #define TVS_NOTOOLTIPS 0x80
3255 #define TVS_CHECKBOXES 0x100
3256 #define TVS_TRACKSELECT 0x200
3257 #define TVS_SINGLEEXPAND 0x400
3258 #define TVS_INFOTIP 0x800
3259 #define TVS_FULLROWSELECT 0x1000
3260 #define TVS_NOSCROLL 0x2000
3261 #define TVS_NONEVENHEIGHT 0x4000
3262 #define TVS_NOHSCROLL 0x8000
3263 
3264  typedef struct _TREEITEM *HTREEITEM;
3265 
3266 #define TVIF_TEXT 0x1
3267 #define TVIF_IMAGE 0x2
3268 #define TVIF_PARAM 0x4
3269 #define TVIF_STATE 0x8
3270 #define TVIF_HANDLE 0x10
3271 #define TVIF_SELECTEDIMAGE 0x20
3272 #define TVIF_CHILDREN 0x40
3273 #if(_WIN32_IE >= 0x0400)
3274 #define TVIF_INTEGRAL 0x80
3275 #endif
3276 #if(_WIN32_IE >= 0x0600)
3277 #define TVIF_STATEEX 0x100
3278 #endif
3279 #define TVIF_EXPANDEDIMAGE 0x200
3280 #define TVIS_SELECTED 0x2
3281 #define TVIS_CUT 0x4
3282 #define TVIS_DROPHILITED 0x8
3283 #define TVIS_BOLD 0x10
3284 #define TVIS_EXPANDED 0x20
3285 #define TVIS_EXPANDEDONCE 0x40
3286 #define TVIS_EXPANDPARTIAL 0x80
3287 #define TVIS_OVERLAYMASK 0xf00
3288 #define TVIS_STATEIMAGEMASK 0xF000
3289 #define TVIS_USERMASK 0xF000
3290 
3291 #define TVIS_FOCUSED 0x0001
3292 
3293 #define I_CHILDRENCALLBACK (-1)
3294 
3295 #define LPTV_ITEMW LPTVITEMW
3296 #define LPTV_ITEMA LPTVITEMA
3297 #define TV_ITEMW TVITEMW
3298 #define TV_ITEMA TVITEMA
3299 #define LPTV_ITEM LPTVITEM
3300 #define TV_ITEM TVITEM
3301 
3302  typedef struct tagTVITEMA {
3309  int iImage;
3313  } TVITEMA,*LPTVITEMA;
3314 
3315  typedef struct tagTVITEMW {
3322  int iImage;
3326  } TVITEMW,*LPTVITEMW;
3327 
3328  typedef struct tagTVITEMEXA {
3335  int iImage;
3340  UINT uStateEx; /* _WIN32_IE >= 0x600 */
3341  HWND hwnd; /* _WIN32_IE >= 0x600 */
3342  int iExpandedImage; /* _WIN32_IE >= 0x600 */
3343  } TVITEMEXA, *LPTVITEMEXA;
3344 
3345  typedef struct tagTVITEMEXW {
3352  int iImage;
3357  UINT uStateEx; /* _WIN32_IE >= 0x600 */
3358  HWND hwnd; /* _WIN32_IE >= 0x600 */
3359  int iExpandedImage; /* _WIN32_IE >= 0x600 */
3360  } TVITEMEXW, *LPTVITEMEXW;
3361 
3362  __MINGW_TYPEDEF_AW(TVITEMEX)
3363  __MINGW_TYPEDEF_AW(LPTVITEMEX)
3364 
3365 #define TVITEM __MINGW_NAME_AW(TVITEM)
3366 #define LPTVITEM __MINGW_NAME_AW(LPTVITEM)
3367 
3368 #define TVI_ROOT ((HTREEITEM)(ULONG_PTR)-0x10000)
3369 #define TVI_FIRST ((HTREEITEM)(ULONG_PTR)-0xffff)
3370 #define TVI_LAST ((HTREEITEM)(ULONG_PTR)-0xfffe)
3371 #define TVI_SORT ((HTREEITEM)(ULONG_PTR)-0xfffd)
3372 
3373 #define LPTV_INSERTSTRUCTA LPTVINSERTSTRUCTA
3374 #define LPTV_INSERTSTRUCTW LPTVINSERTSTRUCTW
3375 #define TV_INSERTSTRUCTA TVINSERTSTRUCTA
3376 #define TV_INSERTSTRUCTW TVINSERTSTRUCTW
3377 #define TV_INSERTSTRUCT TVINSERTSTRUCT
3378 #define LPTV_INSERTSTRUCT LPTVINSERTSTRUCT
3379 
3380 #define TVINSERTSTRUCTA_V1_SIZE CCSIZEOF_STRUCT(TVINSERTSTRUCTA,item)
3381 #define TVINSERTSTRUCTW_V1_SIZE CCSIZEOF_STRUCT(TVINSERTSTRUCTW,item)
3382 
3383  typedef struct tagTVINSERTSTRUCTA {
3386  __C89_NAMELESS union {
3389  } DUMMYUNIONNAME;
3391 
3392  typedef struct tagTVINSERTSTRUCTW {
3395  __C89_NAMELESS union {
3398  } DUMMYUNIONNAME;
3400 
3401 
3402 #define TVINSERTSTRUCT __MINGW_NAME_AW(TVINSERTSTRUCT)
3403 #define LPTVINSERTSTRUCT __MINGW_NAME_AW(LPTVINSERTSTRUCT)
3404 
3405 #define TVINSERTSTRUCT_V1_SIZE __MINGW_NAME_AW_EXT(TVINSERTSTRUCT,_V1_SIZE)
3406 
3407 #define TVM_INSERTITEMA (TV_FIRST+0)
3408 #define TVM_INSERTITEMW (TV_FIRST+50)
3409 
3410 #define TVM_INSERTITEM __MINGW_NAME_AW(TVM_INSERTITEM)
3411 
3412 #define TreeView_InsertItem(hwnd,lpis) (HTREEITEM)SNDMSG((hwnd),TVM_INSERTITEM,0,(LPARAM)(LPTV_INSERTSTRUCT)(lpis))
3413 
3414 #define TVM_DELETEITEM (TV_FIRST+1)
3415 #define TreeView_DeleteItem(hwnd,hitem) (BOOL)SNDMSG((hwnd),TVM_DELETEITEM,0,(LPARAM)(HTREEITEM)(hitem))
3416 
3417 #define TreeView_DeleteAllItems(hwnd) (BOOL)SNDMSG((hwnd),TVM_DELETEITEM,0,(LPARAM)TVI_ROOT)
3418 
3419 #define TVM_EXPAND (TV_FIRST+2)
3420 #define TreeView_Expand(hwnd,hitem,code) (BOOL)SNDMSG((hwnd),TVM_EXPAND,(WPARAM)(code),(LPARAM)(HTREEITEM)(hitem))
3421 
3422 #define TVE_COLLAPSE 0x1
3423 #define TVE_EXPAND 0x2
3424 #define TVE_TOGGLE 0x3
3425 #define TVE_EXPANDPARTIAL 0x4000
3426 #define TVE_COLLAPSERESET 0x8000
3427 
3428 #define TVM_GETITEMRECT (TV_FIRST+4)
3429 #define TreeView_GetItemRect(hwnd,hitem,prc,code) (*(HTREEITEM *)prc = (hitem),(BOOL)SNDMSG((hwnd),TVM_GETITEMRECT,(WPARAM)(code),(LPARAM)(RECT *)(prc)))
3430 
3431 #define TVM_GETCOUNT (TV_FIRST+5)
3432 #define TreeView_GetCount(hwnd) (UINT)SNDMSG((hwnd),TVM_GETCOUNT,0,0)
3433 
3434 #define TVM_GETINDENT (TV_FIRST+6)
3435 #define TreeView_GetIndent(hwnd) (UINT)SNDMSG((hwnd),TVM_GETINDENT,0,0)
3436 
3437 #define TVM_SETINDENT (TV_FIRST+7)
3438 #define TreeView_SetIndent(hwnd,indent) (BOOL)SNDMSG((hwnd),TVM_SETINDENT,(WPARAM)(indent),0)
3439 
3440 #define TVM_GETIMAGELIST (TV_FIRST+8)
3441 #define TreeView_GetImageList(hwnd,iImage) (HIMAGELIST)SNDMSG((hwnd),TVM_GETIMAGELIST,iImage,0)
3442 
3443 #define TVSIL_NORMAL 0
3444 #define TVSIL_STATE 2
3445 
3446 #define TVM_SETIMAGELIST (TV_FIRST+9)
3447 #define TreeView_SetImageList(hwnd,himl,iImage) (HIMAGELIST)SNDMSG((hwnd),TVM_SETIMAGELIST,iImage,(LPARAM)(HIMAGELIST)(himl))
3448 
3449 #define TVM_GETNEXTITEM (TV_FIRST+10)
3450 #define TreeView_GetNextItem(hwnd,hitem,code) (HTREEITEM)SNDMSG((hwnd),TVM_GETNEXTITEM,(WPARAM)(code),(LPARAM)(HTREEITEM)(hitem))
3451 
3452 #define TVGN_ROOT 0x0
3453 #define TVGN_NEXT 0x1
3454 #define TVGN_PREVIOUS 0x2
3455 #define TVGN_PARENT 0x3
3456 #define TVGN_CHILD 0x4
3457 #define TVGN_FIRSTVISIBLE 0x5
3458 #define TVGN_NEXTVISIBLE 0x6
3459 #define TVGN_PREVIOUSVISIBLE 0x7
3460 #define TVGN_DROPHILITE 0x8
3461 #define TVGN_CARET 0x9
3462 #define TVGN_LASTVISIBLE 0xa
3463 
3464 #define TVSI_NOSINGLEEXPAND 0x8000
3465 
3466 #define TreeView_GetChild(hwnd,hitem) TreeView_GetNextItem(hwnd,hitem,TVGN_CHILD)
3467 #define TreeView_GetNextSibling(hwnd,hitem) TreeView_GetNextItem(hwnd,hitem,TVGN_NEXT)
3468 #define TreeView_GetPrevSibling(hwnd,hitem) TreeView_GetNextItem(hwnd,hitem,TVGN_PREVIOUS)
3469 #define TreeView_GetParent(hwnd,hitem) TreeView_GetNextItem(hwnd,hitem,TVGN_PARENT)
3470 #define TreeView_GetFirstVisible(hwnd) TreeView_GetNextItem(hwnd,NULL,TVGN_FIRSTVISIBLE)
3471 #define TreeView_GetNextVisible(hwnd,hitem) TreeView_GetNextItem(hwnd,hitem,TVGN_NEXTVISIBLE)
3472 #define TreeView_GetPrevVisible(hwnd,hitem) TreeView_GetNextItem(hwnd,hitem,TVGN_PREVIOUSVISIBLE)
3473 #define TreeView_GetSelection(hwnd) TreeView_GetNextItem(hwnd,NULL,TVGN_CARET)
3474 #define TreeView_GetDropHilight(hwnd) TreeView_GetNextItem(hwnd,NULL,TVGN_DROPHILITE)
3475 #define TreeView_GetRoot(hwnd) TreeView_GetNextItem(hwnd,NULL,TVGN_ROOT)
3476 #define TreeView_GetLastVisible(hwnd) TreeView_GetNextItem(hwnd,NULL,TVGN_LASTVISIBLE)
3477 
3478 #define TVM_SELECTITEM (TV_FIRST+11)
3479 #define TreeView_Select(hwnd,hitem,code) (BOOL)SNDMSG((hwnd),TVM_SELECTITEM,(WPARAM)(code),(LPARAM)(HTREEITEM)(hitem))
3480 
3481 #define TreeView_SelectItem(hwnd,hitem) TreeView_Select(hwnd,hitem,TVGN_CARET)
3482 #define TreeView_SelectDropTarget(hwnd,hitem) TreeView_Select(hwnd,hitem,TVGN_DROPHILITE)
3483 #define TreeView_SelectSetFirstVisible(hwnd,hitem) TreeView_Select(hwnd,hitem,TVGN_FIRSTVISIBLE)
3484 
3485 #define TVM_GETITEMA (TV_FIRST+12)
3486 #define TVM_GETITEMW (TV_FIRST+62)
3487 
3488 #define TVM_GETITEM __MINGW_NAME_AW(TVM_GETITEM)
3489 
3490 #define TreeView_GetItem(hwnd,pitem) (BOOL)SNDMSG((hwnd),TVM_GETITEM,0,(LPARAM)(TV_ITEM *)(pitem))
3491 
3492 #define TVM_SETITEMA (TV_FIRST+13)
3493 #define TVM_SETITEMW (TV_FIRST+63)
3494 
3495 #define TVM_SETITEM __MINGW_NAME_AW(TVM_SETITEM)
3496 
3497 #define TreeView_SetItem(hwnd,pitem) (BOOL)SNDMSG((hwnd),TVM_SETITEM,0,(LPARAM)(const TV_ITEM *)(pitem))
3498 
3499 #define TVM_EDITLABELA (TV_FIRST+14)
3500 #define TVM_EDITLABELW (TV_FIRST+65)
3501 
3502 #define TVM_EDITLABEL __MINGW_NAME_AW(TVM_EDITLABEL)
3503 
3504 #define TreeView_EditLabel(hwnd,hitem) (HWND)SNDMSG((hwnd),TVM_EDITLABEL,0,(LPARAM)(HTREEITEM)(hitem))
3505 
3506 #define TVM_GETEDITCONTROL (TV_FIRST+15)
3507 #define TreeView_GetEditControl(hwnd) (HWND)SNDMSG((hwnd),TVM_GETEDITCONTROL,0,0)
3508 
3509 #define TVM_GETVISIBLECOUNT (TV_FIRST+16)
3510 #define TreeView_GetVisibleCount(hwnd) (UINT)SNDMSG((hwnd),TVM_GETVISIBLECOUNT,0,0)
3511 
3512 #define TVM_HITTEST (TV_FIRST+17)
3513 #define TreeView_HitTest(hwnd,lpht) (HTREEITEM)SNDMSG((hwnd),TVM_HITTEST,0,(LPARAM)(LPTV_HITTESTINFO)(lpht))
3514 
3515 #define LPTV_HITTESTINFO LPTVHITTESTINFO
3516 #define TV_HITTESTINFO TVHITTESTINFO
3517 
3518  typedef struct tagTVHITTESTINFO {
3523 
3524 #define TVHT_NOWHERE 0x1
3525 #define TVHT_ONITEMICON 0x2
3526 #define TVHT_ONITEMLABEL 0x4
3527 #define TVHT_ONITEM (TVHT_ONITEMICON | TVHT_ONITEMLABEL | TVHT_ONITEMSTATEICON)
3528 #define TVHT_ONITEMINDENT 0x8
3529 #define TVHT_ONITEMBUTTON 0x10
3530 #define TVHT_ONITEMRIGHT 0x20
3531 #define TVHT_ONITEMSTATEICON 0x40
3532 
3533 #define TVHT_ABOVE 0x100
3534 #define TVHT_BELOW 0x200
3535 #define TVHT_TORIGHT 0x400
3536 #define TVHT_TOLEFT 0x800
3537 
3538 #define TVM_CREATEDRAGIMAGE (TV_FIRST+18)
3539 #define TreeView_CreateDragImage(hwnd,hitem) (HIMAGELIST)SNDMSG((hwnd),TVM_CREATEDRAGIMAGE,0,(LPARAM)(HTREEITEM)(hitem))
3540 
3541 #define TVM_SORTCHILDREN (TV_FIRST+19)
3542 #define TreeView_SortChildren(hwnd,hitem,recurse) (BOOL)SNDMSG((hwnd),TVM_SORTCHILDREN,(WPARAM)(recurse),(LPARAM)(HTREEITEM)(hitem))
3543 
3544 #define TVM_ENSUREVISIBLE (TV_FIRST+20)
3545 #define TreeView_EnsureVisible(hwnd,hitem) (BOOL)SNDMSG((hwnd),TVM_ENSUREVISIBLE,0,(LPARAM)(HTREEITEM)(hitem))
3546 
3547 #define TVM_SORTCHILDRENCB (TV_FIRST+21)
3548 #define TreeView_SortChildrenCB(hwnd,psort,recurse) (BOOL)SNDMSG((hwnd),TVM_SORTCHILDRENCB,(WPARAM)(recurse),(LPARAM)(LPTV_SORTCB)(psort))
3549 
3550 #define TVM_ENDEDITLABELNOW (TV_FIRST+22)
3551 #define TreeView_EndEditLabelNow(hwnd,fCancel) (BOOL)SNDMSG((hwnd),TVM_ENDEDITLABELNOW,(WPARAM)(fCancel),0)
3552 
3553 #define TVM_GETISEARCHSTRINGA (TV_FIRST+23)
3554 #define TVM_GETISEARCHSTRINGW (TV_FIRST+64)
3555 
3556 #define TVM_GETISEARCHSTRING __MINGW_NAME_AW(TVM_GETISEARCHSTRING)
3557 
3558 #define TVM_SETTOOLTIPS (TV_FIRST+24)
3559 #define TreeView_SetToolTips(hwnd,hwndTT) (HWND)SNDMSG((hwnd),TVM_SETTOOLTIPS,(WPARAM)(hwndTT),0)
3560 #define TVM_GETTOOLTIPS (TV_FIRST+25)
3561 #define TreeView_GetToolTips(hwnd) (HWND)SNDMSG((hwnd),TVM_GETTOOLTIPS,0,0)
3562 #define TreeView_GetISearchString(hwndTV,lpsz) (BOOL)SNDMSG((hwndTV),TVM_GETISEARCHSTRING,0,(LPARAM)(LPTSTR)(lpsz))
3563 
3564 #define TVM_SETINSERTMARK (TV_FIRST+26)
3565 #define TreeView_SetInsertMark(hwnd,hItem,fAfter) (BOOL)SNDMSG((hwnd),TVM_SETINSERTMARK,(WPARAM) (fAfter),(LPARAM) (hItem))
3566 #define TVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
3567 #define TreeView_SetUnicodeFormat(hwnd,fUnicode) (BOOL)SNDMSG((hwnd),TVM_SETUNICODEFORMAT,(WPARAM)(fUnicode),0)
3568 #define TVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
3569 #define TreeView_GetUnicodeFormat(hwnd) (BOOL)SNDMSG((hwnd),TVM_GETUNICODEFORMAT,0,0)
3570 
3571 #define TVM_SETITEMHEIGHT (TV_FIRST+27)
3572 #define TreeView_SetItemHeight(hwnd,iHeight) (int)SNDMSG((hwnd),TVM_SETITEMHEIGHT,(WPARAM)(iHeight),0)
3573 #define TVM_GETITEMHEIGHT (TV_FIRST+28)
3574 #define TreeView_GetItemHeight(hwnd) (int)SNDMSG((hwnd),TVM_GETITEMHEIGHT,0,0)
3575 #define TVM_SETBKCOLOR (TV_FIRST+29)
3576 #define TreeView_SetBkColor(hwnd,clr) (COLORREF)SNDMSG((hwnd),TVM_SETBKCOLOR,0,(LPARAM)(clr))
3577 #define TVM_SETTEXTCOLOR (TV_FIRST+30)
3578 #define TreeView_SetTextColor(hwnd,clr) (COLORREF)SNDMSG((hwnd),TVM_SETTEXTCOLOR,0,(LPARAM)(clr))
3579 #define TVM_GETBKCOLOR (TV_FIRST+31)
3580 #define TreeView_GetBkColor(hwnd) (COLORREF)SNDMSG((hwnd),TVM_GETBKCOLOR,0,0)
3581 #define TVM_GETTEXTCOLOR (TV_FIRST+32)
3582 #define TreeView_GetTextColor(hwnd) (COLORREF)SNDMSG((hwnd),TVM_GETTEXTCOLOR,0,0)
3583 #define TVM_SETSCROLLTIME (TV_FIRST+33)
3584 #define TreeView_SetScrollTime(hwnd,uTime) (UINT)SNDMSG((hwnd),TVM_SETSCROLLTIME,uTime,0)
3585 #define TVM_GETSCROLLTIME (TV_FIRST+34)
3586 #define TreeView_GetScrollTime(hwnd) (UINT)SNDMSG((hwnd),TVM_GETSCROLLTIME,0,0)
3587 #define TVM_SETINSERTMARKCOLOR (TV_FIRST+37)
3588 #define TreeView_SetInsertMarkColor(hwnd,clr) (COLORREF)SNDMSG((hwnd),TVM_SETINSERTMARKCOLOR,0,(LPARAM)(clr))
3589 #define TVM_GETINSERTMARKCOLOR (TV_FIRST+38)
3590 #define TreeView_GetInsertMarkColor(hwnd) (COLORREF)SNDMSG((hwnd),TVM_GETINSERTMARKCOLOR,0,0)
3591 
3592 #define TreeView_SetItemState(hwndTV,hti,data,_mask) { TVITEM _ms_TVi; _ms_TVi.mask = TVIF_STATE; _ms_TVi.hItem = hti; _ms_TVi.stateMask = _mask; _ms_TVi.state = data; SNDMSG((hwndTV),TVM_SETITEM,0,(LPARAM)(TV_ITEM *)&_ms_TVi);}
3593 #define TreeView_SetCheckState(hwndTV,hti,fCheck) TreeView_SetItemState(hwndTV,hti,INDEXTOSTATEIMAGEMASK((fCheck)?2:1),TVIS_STATEIMAGEMASK)
3594 #define TVM_GETITEMSTATE (TV_FIRST+39)
3595 #define TreeView_GetItemState(hwndTV,hti,mask) (UINT)SNDMSG((hwndTV),TVM_GETITEMSTATE,(WPARAM)(hti),(LPARAM)(mask))
3596 #define TreeView_GetCheckState(hwndTV,hti) ((((UINT)(SNDMSG((hwndTV),TVM_GETITEMSTATE,(WPARAM)(hti),TVIS_STATEIMAGEMASK))) >> 12) -1)
3597 #define TVM_SETLINECOLOR (TV_FIRST+40)
3598 #define TreeView_SetLineColor(hwnd,clr) (COLORREF)SNDMSG((hwnd),TVM_SETLINECOLOR,0,(LPARAM)(clr))
3599 #define TVM_GETLINECOLOR (TV_FIRST+41)
3600 #define TreeView_GetLineColor(hwnd) (COLORREF)SNDMSG((hwnd),TVM_GETLINECOLOR,0,0)
3601 
3602 #define TVM_MAPACCIDTOHTREEITEM (TV_FIRST+42)
3603 #define TreeView_MapAccIDToHTREEITEM(hwnd,id) (HTREEITEM)SNDMSG((hwnd),TVM_MAPACCIDTOHTREEITEM,id,0)
3604 
3605 #define TVM_MAPHTREEITEMTOACCID (TV_FIRST+43)
3606 #define TreeView_MapHTREEITEMToAccID(hwnd,htreeitem) (UINT)SNDMSG((hwnd),TVM_MAPHTREEITEMTOACCID,(WPARAM)htreeitem,0)
3607 
3608  typedef int (CALLBACK *PFNTVCOMPARE)(LPARAM lParam1,LPARAM lParam2,LPARAM lParamSort);
3609 
3610 #define LPTV_SORTCB LPTVSORTCB
3611 #define TV_SORTCB TVSORTCB
3612 
3613  typedef struct tagTVSORTCB {
3617  } TVSORTCB,*LPTVSORTCB;
3618 
3619 #define LPNM_TREEVIEWA LPNMTREEVIEWA
3620 #define LPNM_TREEVIEWW LPNMTREEVIEWW
3621 #define NM_TREEVIEWW NMTREEVIEWW
3622 #define NM_TREEVIEWA NMTREEVIEWA
3623 #define LPNM_TREEVIEW LPNMTREEVIEW
3624 #define NM_TREEVIEW NMTREEVIEW
3625 
3626  typedef struct tagNMTREEVIEWA {
3633 
3634  typedef struct tagNMTREEVIEWW {
3641 
3642 #define NMTREEVIEW __MINGW_NAME_AW(NMTREEVIEW)
3643 #define LPNMTREEVIEW __MINGW_NAME_AW(LPNMTREEVIEW)
3644 
3645 #define TVN_SELCHANGINGA (TVN_FIRST-1)
3646 #define TVN_SELCHANGINGW (TVN_FIRST-50)
3647 #define TVN_SELCHANGEDA (TVN_FIRST-2)
3648 #define TVN_SELCHANGEDW (TVN_FIRST-51)
3649 
3650 #define TVC_UNKNOWN 0x0
3651 #define TVC_BYMOUSE 0x1
3652 #define TVC_BYKEYBOARD 0x2
3653 
3654 #define TVN_GETDISPINFOA (TVN_FIRST-3)
3655 #define TVN_GETDISPINFOW (TVN_FIRST-52)
3656 #define TVN_SETDISPINFOA (TVN_FIRST-4)
3657 #define TVN_SETDISPINFOW (TVN_FIRST-53)
3658 
3659 #define TVIF_DI_SETITEM 0x1000
3660 
3661 #define TV_DISPINFOA NMTVDISPINFOA
3662 #define TV_DISPINFOW NMTVDISPINFOW
3663 #define TV_DISPINFO NMTVDISPINFO
3664 
3665  typedef struct tagTVDISPINFOA {
3669 
3670  typedef struct tagTVDISPINFOW {
3674 
3675 #define NMTVDISPINFO __MINGW_NAME_AW(NMTVDISPINFO)
3676 #define LPNMTVDISPINFO __MINGW_NAME_AW(LPNMTVDISPINFO)
3677 
3678 #if (_WIN32_IE >= 0x0600)
3679 
3680 typedef struct tagTVDISPINFOEXA {
3681  NMHDR hdr;
3682  TVITEMEXA item;
3683 } NMTVDISPINFOEXA, *LPNMTVDISPINFOEXA;
3684 
3685 typedef struct tagTVDISPINFOEXW {
3686  NMHDR hdr;
3687  TVITEMEXW item;
3688 } NMTVDISPINFOEXW, *LPNMTVDISPINFOEXW;
3689 
3690 #define NMTVDISPINFOEX __MINGW_NAME_AW(NMTVDISPINFOEX)
3691 #define LPNMTVDISPINFOEX __MINGW_NAME_AW(LPNMTVDISPINFOEX)
3692 
3693 #define TV_DISPINFOEXA NMTVDISPINFOEXA
3694 #define TV_DISPINFOEXW NMTVDISPINFOEXW
3695 #define TV_DISPINFOEX NMTVDISPINFOEX
3696 
3697 #endif /* (_WIN32_IE >= 0x0600) */
3698 
3699 #define TVN_ITEMEXPANDINGA (TVN_FIRST-5)
3700 #define TVN_ITEMEXPANDINGW (TVN_FIRST-54)
3701 #define TVN_ITEMEXPANDEDA (TVN_FIRST-6)
3702 #define TVN_ITEMEXPANDEDW (TVN_FIRST-55)
3703 #define TVN_BEGINDRAGA (TVN_FIRST-7)
3704 #define TVN_BEGINDRAGW (TVN_FIRST-56)
3705 #define TVN_BEGINRDRAGA (TVN_FIRST-8)
3706 #define TVN_BEGINRDRAGW (TVN_FIRST-57)
3707 #define TVN_DELETEITEMA (TVN_FIRST-9)
3708 #define TVN_DELETEITEMW (TVN_FIRST-58)
3709 #define TVN_BEGINLABELEDITA (TVN_FIRST-10)
3710 #define TVN_BEGINLABELEDITW (TVN_FIRST-59)
3711 #define TVN_ENDLABELEDITA (TVN_FIRST-11)
3712 #define TVN_ENDLABELEDITW (TVN_FIRST-60)
3713 #define TVN_KEYDOWN (TVN_FIRST-12)
3714 #define TVN_GETINFOTIPA (TVN_FIRST-13)
3715 #define TVN_GETINFOTIPW (TVN_FIRST-14)
3716 #define TVN_SINGLEEXPAND (TVN_FIRST-15)
3717 
3718 #define TVNRET_DEFAULT 0
3719 #define TVNRET_SKIPOLD 1
3720 #define TVNRET_SKIPNEW 2
3721 
3722 #define TV_KEYDOWN NMTVKEYDOWN
3723 
3724 #include <pshpack1.h>
3725 
3726  typedef struct tagTVKEYDOWN {
3731 
3732 #include <poppack.h>
3733 
3734 #define TVN_SELCHANGING __MINGW_NAME_AW(TVN_SELCHANGING)
3735 #define TVN_SELCHANGED __MINGW_NAME_AW(TVN_SELCHANGED)
3736 #define TVN_GETDISPINFO __MINGW_NAME_AW(TVN_GETDISPINFO)
3737 #define TVN_SETDISPINFO __MINGW_NAME_AW(TVN_SETDISPINFO)
3738 #define TVN_ITEMEXPANDING __MINGW_NAME_AW(TVN_ITEMEXPANDING)
3739 #define TVN_ITEMEXPANDED __MINGW_NAME_AW(TVN_ITEMEXPANDED)
3740 #define TVN_BEGINDRAG __MINGW_NAME_AW(TVN_BEGINDRAG)
3741 #define TVN_BEGINRDRAG __MINGW_NAME_AW(TVN_BEGINRDRAG)
3742 #define TVN_DELETEITEM __MINGW_NAME_AW(TVN_DELETEITEM)
3743 #define TVN_BEGINLABELEDIT __MINGW_NAME_AW(TVN_BEGINLABELEDIT)
3744 #define TVN_ENDLABELEDIT __MINGW_NAME_AW(TVN_ENDLABELEDIT)
3745 
3746 #define NMTVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMTVCUSTOMDRAW,clrTextBk)
3747 
3748  typedef struct tagNMTVCUSTOMDRAW {
3752  int iLevel;
3754 
3755  typedef struct tagNMTVGETINFOTIPA {
3762 
3763  typedef struct tagNMTVGETINFOTIPW {
3770 
3771 #define TVN_GETINFOTIP __MINGW_NAME_AW(TVN_GETINFOTIP)
3772 #define NMTVGETINFOTIP __MINGW_NAME_AW(NMTVGETINFOTIP)
3773 #define LPNMTVGETINFOTIP __MINGW_NAME_AW(LPNMTVGETINFOTIP)
3774 
3775 #define TVCDRF_NOIMAGES 0x10000
3776 
3777 #endif /* !NOTREEVIEW */
3778 
3779 #ifndef NOUSEREXCONTROLS
3780 
3781 #define WC_COMBOBOXEXW L"ComboBoxEx32"
3782 #define WC_COMBOBOXEXA "ComboBoxEx32"
3783 
3784 #define WC_COMBOBOXEX __MINGW_NAME_AW(WC_COMBOBOXEX)
3785 
3786 #define CBEIF_TEXT 0x1
3787 #define CBEIF_IMAGE 0x2
3788 #define CBEIF_SELECTEDIMAGE 0x4
3789 #define CBEIF_OVERLAY 0x8
3790 #define CBEIF_INDENT 0x10
3791 #define CBEIF_LPARAM 0x20
3792 
3793 #define CBEIF_DI_SETITEM 0x10000000
3794 
3795  typedef struct tagCOMBOBOXEXITEMA {
3800  int iImage;
3803  int iIndent;
3807 
3808  typedef struct tagCOMBOBOXEXITEMW
3809  {
3814  int iImage;
3817  int iIndent;
3821 
3822 #define COMBOBOXEXITEM __MINGW_NAME_AW(COMBOBOXEXITEM)
3823 #define PCOMBOBOXEXITEM __MINGW_NAME_AW(PCOMBOBOXEXITEM)
3824 #define PCCOMBOBOXEXITEM __MINGW_NAME_AW(PCCOMBOBOXEXITEM)
3825 
3826 #define CBEM_INSERTITEMA (WM_USER+1)
3827 #define CBEM_SETIMAGELIST (WM_USER+2)
3828 #define CBEM_GETIMAGELIST (WM_USER+3)
3829 #define CBEM_GETITEMA (WM_USER+4)
3830 #define CBEM_SETITEMA (WM_USER+5)
3831 #define CBEM_DELETEITEM CB_DELETESTRING
3832 #define CBEM_GETCOMBOCONTROL (WM_USER+6)
3833 #define CBEM_GETEDITCONTROL (WM_USER+7)
3834 #define CBEM_SETEXSTYLE (WM_USER+8)
3835 #define CBEM_SETEXTENDEDSTYLE (WM_USER+14)
3836 #define CBEM_GETEXSTYLE (WM_USER+9)
3837 #define CBEM_GETEXTENDEDSTYLE (WM_USER+9)
3838 #define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
3839 #define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
3840 #define CBEM_HASEDITCHANGED (WM_USER+10)
3841 #define CBEM_INSERTITEMW (WM_USER+11)
3842 #define CBEM_SETITEMW (WM_USER+12)
3843 #define CBEM_GETITEMW (WM_USER+13)
3844 
3845 #define CBEM_INSERTITEM __MINGW_NAME_AW(CBEM_INSERTITEM)
3846 #define CBEM_SETITEM __MINGW_NAME_AW(CBEM_SETITEM)
3847 #define CBEM_GETITEM __MINGW_NAME_AW(CBEM_GETITEM)
3848 
3849 #define CBEM_SETWINDOWTHEME CCM_SETWINDOWTHEME
3850 
3851 #define CBES_EX_NOEDITIMAGE 0x1
3852 #define CBES_EX_NOEDITIMAGEINDENT 0x2
3853 #define CBES_EX_PATHWORDBREAKPROC 0x4
3854 #define CBES_EX_NOSIZELIMIT 0x8
3855 #define CBES_EX_CASESENSITIVE 0x10
3856 
3857  typedef struct {
3861 
3862  typedef struct {
3866 
3867 #define NMCOMBOBOXEX __MINGW_NAME_AW(NMCOMBOBOXEX)
3868 #define PNMCOMBOBOXEX __MINGW_NAME_AW(PNMCOMBOBOXEX)
3869 #define CBEN_GETDISPINFO __MINGW_NAME_AW(CBEN_GETDISPINFO)
3870 
3871 #define CBEN_GETDISPINFOA (CBEN_FIRST - 0)
3872 #define CBEN_INSERTITEM (CBEN_FIRST - 1)
3873 #define CBEN_DELETEITEM (CBEN_FIRST - 2)
3874 #define CBEN_BEGINEDIT (CBEN_FIRST - 4)
3875 #define CBEN_ENDEDITA (CBEN_FIRST - 5)
3876 #define CBEN_ENDEDITW (CBEN_FIRST - 6)
3877 
3878 #define CBEN_GETDISPINFOW (CBEN_FIRST - 7)
3879 
3880 #define CBEN_DRAGBEGINA (CBEN_FIRST - 8)
3881 #define CBEN_DRAGBEGINW (CBEN_FIRST - 9)
3882 
3883 #define CBEN_DRAGBEGIN __MINGW_NAME_AW(CBEN_DRAGBEGIN)
3884 
3885 #define CBEN_ENDEDIT __MINGW_NAME_AW(CBEN_ENDEDIT)
3886 
3887 #define CBENF_KILLFOCUS 1
3888 #define CBENF_RETURN 2
3889 #define CBENF_ESCAPE 3
3890 #define CBENF_DROPDOWN 4
3891 
3892 #define CBEMAXSTRLEN 260
3893 
3894  typedef struct {
3896  int iItemid;
3899 
3900  typedef struct {
3902  int iItemid;
3905 
3906 #define NMCBEDRAGBEGIN __MINGW_NAME_AW(NMCBEDRAGBEGIN)
3907 #define LPNMCBEDRAGBEGIN __MINGW_NAME_AW(LPNMCBEDRAGBEGIN)
3908 #define PNMCBEDRAGBEGIN __MINGW_NAME_AW(PNMCBEDRAGBEGIN)
3909 
3910  typedef struct {
3915  int iWhy;
3917 
3918  typedef struct {
3923  int iWhy;
3925 
3926 #define NMCBEENDEDIT __MINGW_NAME_AW(NMCBEENDEDIT)
3927 #define LPNMCBEENDEDIT __MINGW_NAME_AW(LPNMCBEENDEDIT)
3928 #define PNMCBEENDEDIT __MINGW_NAME_AW(PNMCBEENDEDIT)
3929 
3930 #endif /* !NOUSEREXCONTROLS */
3931 
3932 #ifndef NOTABCONTROL
3933 
3934 #define WC_TABCONTROLA "SysTabControl32"
3935 #define WC_TABCONTROLW L"SysTabControl32"
3936 #define WC_TABCONTROL __MINGW_NAME_AW(WC_TABCONTROL)
3937 
3938 #define TCS_SCROLLOPPOSITE 0x1
3939 #define TCS_BOTTOM 0x2
3940 #define TCS_RIGHT 0x2
3941 #define TCS_MULTISELECT 0x4
3942 #define TCS_FLATBUTTONS 0x8
3943 #define TCS_FORCEICONLEFT 0x10
3944 #define TCS_FORCELABELLEFT 0x20
3945 #define TCS_HOTTRACK 0x40
3946 #define TCS_VERTICAL 0x80
3947 #define TCS_TABS 0x0
3948 #define TCS_BUTTONS 0x100
3949 #define TCS_SINGLELINE 0x0
3950 #define TCS_MULTILINE 0x200
3951 #define TCS_RIGHTJUSTIFY 0x0
3952 #define TCS_FIXEDWIDTH 0x400
3953 #define TCS_RAGGEDRIGHT 0x800
3954 #define TCS_FOCUSONBUTTONDOWN 0x1000
3955 #define TCS_OWNERDRAWFIXED 0x2000
3956 #define TCS_TOOLTIPS 0x4000
3957 #define TCS_FOCUSNEVER 0x8000
3958 
3959 #define TCS_EX_FLATSEPARATORS 0x1
3960 #define TCS_EX_REGISTERDROP 0x2
3961 
3962 #define TCM_GETIMAGELIST (TCM_FIRST+2)
3963 #define TabCtrl_GetImageList(hwnd) (HIMAGELIST)SNDMSG((hwnd),TCM_GETIMAGELIST,0,0L)
3964 
3965 #define TCM_SETIMAGELIST (TCM_FIRST+3)
3966 #define TabCtrl_SetImageList(hwnd,himl) (HIMAGELIST)SNDMSG((hwnd),TCM_SETIMAGELIST,0,(LPARAM)(HIMAGELIST)(himl))
3967 
3968 #define TCM_GETITEMCOUNT (TCM_FIRST+4)
3969 #define TabCtrl_GetItemCount(hwnd) (int)SNDMSG((hwnd),TCM_GETITEMCOUNT,0,0L)
3970 
3971 #define TCIF_TEXT 0x1
3972 #define TCIF_IMAGE 0x2
3973 #define TCIF_RTLREADING 0x4
3974 #define TCIF_PARAM 0x8
3975 #define TCIF_STATE 0x10
3976 
3977 #define TCIS_BUTTONPRESSED 0x1
3978 #define TCIS_HIGHLIGHTED 0x2
3979 
3980 #define TC_ITEMHEADERA TCITEMHEADERA
3981 #define TC_ITEMHEADERW TCITEMHEADERW
3982 #define TC_ITEMHEADER TCITEMHEADER
3983 
3984  typedef struct tagTCITEMHEADERA {
3990  int iImage;
3992 
3993  typedef struct tagTCITEMHEADERW {
3999  int iImage;
4001 
4002 #define TCITEMHEADER __MINGW_NAME_AW(TCITEMHEADER)
4003 #define LPTCITEMHEADER __MINGW_NAME_AW(LPTCITEMHEADER)
4004 
4005 #define TC_ITEMA TCITEMA
4006 #define TC_ITEMW TCITEMW
4007 #define TC_ITEM TCITEM
4008 
4009  typedef struct tagTCITEMA {
4015  int iImage;
4017  } TCITEMA,*LPTCITEMA;
4018 
4019  typedef struct tagTCITEMW {
4025  int iImage;
4027  } TCITEMW,*LPTCITEMW;
4028 
4029 #define TCITEM __MINGW_NAME_AW(TCITEM)
4030 #define LPTCITEM __MINGW_NAME_AW(LPTCITEM)
4031 
4032 #define TCM_GETITEMA (TCM_FIRST+5)
4033 #define TCM_GETITEMW (TCM_FIRST+60)
4034 
4035 #define TCM_GETITEM __MINGW_NAME_AW(TCM_GETITEM)
4036 
4037 #define TabCtrl_GetItem(hwnd,iItem,pitem) (BOOL)SNDMSG((hwnd),TCM_GETITEM,(WPARAM)(int)(iItem),(LPARAM)(TC_ITEM *)(pitem))
4038 
4039 #define TCM_SETITEMA (TCM_FIRST+6)
4040 #define TCM_SETITEMW (TCM_FIRST+61)
4041 
4042 #define TCM_SETITEM __MINGW_NAME_AW(TCM_SETITEM)
4043 
4044 #define TabCtrl_SetItem(hwnd,iItem,pitem) (BOOL)SNDMSG((hwnd),TCM_SETITEM,(WPARAM)(int)(iItem),(LPARAM)(TC_ITEM *)(pitem))
4045 
4046 #define TCM_INSERTITEMA (TCM_FIRST+7)
4047 #define TCM_INSERTITEMW (TCM_FIRST+62)
4048 
4049 #define TCM_INSERTITEM __MINGW_NAME_AW(TCM_INSERTITEM)
4050 
4051 #define TabCtrl_InsertItem(hwnd,iItem,pitem) (int)SNDMSG((hwnd),TCM_INSERTITEM,(WPARAM)(int)(iItem),(LPARAM)(const TC_ITEM *)(pitem))
4052 
4053 #define TCM_DELETEITEM (TCM_FIRST+8)
4054 #define TabCtrl_DeleteItem(hwnd,i) (BOOL)SNDMSG((hwnd),TCM_DELETEITEM,(WPARAM)(int)(i),0L)
4055 
4056 #define TCM_DELETEALLITEMS (TCM_FIRST+9)
4057 #define TabCtrl_DeleteAllItems(hwnd) (BOOL)SNDMSG((hwnd),TCM_DELETEALLITEMS,0,0L)
4058 
4059 #define TCM_GETITEMRECT (TCM_FIRST+10)
4060 #define TabCtrl_GetItemRect(hwnd,i,prc) (BOOL)SNDMSG((hwnd),TCM_GETITEMRECT,(WPARAM)(int)(i),(LPARAM)(RECT *)(prc))
4061 
4062 #define TCM_GETCURSEL (TCM_FIRST+11)
4063 #define TabCtrl_GetCurSel(hwnd) (int)SNDMSG((hwnd),TCM_GETCURSEL,0,0)
4064 
4065 #define TCM_SETCURSEL (TCM_FIRST+12)
4066 #define TabCtrl_SetCurSel(hwnd,i) (int)SNDMSG((hwnd),TCM_SETCURSEL,(WPARAM)(i),0)
4067 
4068 #define TCHT_NOWHERE 0x1
4069 #define TCHT_ONITEMICON 0x2
4070 #define TCHT_ONITEMLABEL 0x4
4071 #define TCHT_ONITEM (TCHT_ONITEMICON | TCHT_ONITEMLABEL)
4072 
4073 #define LPTC_HITTESTINFO LPTCHITTESTINFO
4074 #define TC_HITTESTINFO TCHITTESTINFO
4075 
4076  typedef struct tagTCHITTESTINFO {
4080 
4081 #define TCM_HITTEST (TCM_FIRST+13)
4082 #define TabCtrl_HitTest(hwndTC,pinfo) (int)SNDMSG((hwndTC),TCM_HITTEST,0,(LPARAM)(TC_HITTESTINFO *)(pinfo))
4083 #define TCM_SETITEMEXTRA (TCM_FIRST+14)
4084 #define TabCtrl_SetItemExtra(hwndTC,cb) (BOOL)SNDMSG((hwndTC),TCM_SETITEMEXTRA,(WPARAM)(cb),0L)
4085 #define TCM_ADJUSTRECT (TCM_FIRST+40)
4086 #define TabCtrl_AdjustRect(hwnd,bLarger,prc) (int)SNDMSG(hwnd,TCM_ADJUSTRECT,(WPARAM)(BOOL)(bLarger),(LPARAM)(RECT *)prc)
4087 #define TCM_SETITEMSIZE (TCM_FIRST+41)
4088 #define TabCtrl_SetItemSize(hwnd,x,y) (DWORD)SNDMSG((hwnd),TCM_SETITEMSIZE,0,MAKELPARAM(x,y))
4089 #define TCM_REMOVEIMAGE (TCM_FIRST+42)
4090 #define TabCtrl_RemoveImage(hwnd,i) (void)SNDMSG((hwnd),TCM_REMOVEIMAGE,i,0L)
4091 #define TCM_SETPADDING (TCM_FIRST+43)
4092 #define TabCtrl_SetPadding(hwnd,cx,cy) (void)SNDMSG((hwnd),TCM_SETPADDING,0,MAKELPARAM(cx,cy))
4093 #define TCM_GETROWCOUNT (TCM_FIRST+44)
4094 #define TabCtrl_GetRowCount(hwnd) (int)SNDMSG((hwnd),TCM_GETROWCOUNT,0,0L)
4095 #define TCM_GETTOOLTIPS (TCM_FIRST+45)
4096 #define TabCtrl_GetToolTips(hwnd) (HWND)SNDMSG((hwnd),TCM_GETTOOLTIPS,0,0L)
4097 #define TCM_SETTOOLTIPS (TCM_FIRST+46)
4098 #define TabCtrl_SetToolTips(hwnd,hwndTT) (void)SNDMSG((hwnd),TCM_SETTOOLTIPS,(WPARAM)(hwndTT),0L)
4099 #define TCM_GETCURFOCUS (TCM_FIRST+47)
4100 #define TabCtrl_GetCurFocus(hwnd) (int)SNDMSG((hwnd),TCM_GETCURFOCUS,0,0)
4101 #define TCM_SETCURFOCUS (TCM_FIRST+48)
4102 #define TabCtrl_SetCurFocus(hwnd,i) SNDMSG((hwnd),TCM_SETCURFOCUS,i,0)
4103 #define TCM_SETMINTABWIDTH (TCM_FIRST+49)
4104 #define TabCtrl_SetMinTabWidth(hwnd,x) (int)SNDMSG((hwnd),TCM_SETMINTABWIDTH,0,x)
4105 #define TCM_DESELECTALL (TCM_FIRST+50)
4106 #define TabCtrl_DeselectAll(hwnd,fExcludeFocus) (void)SNDMSG((hwnd),TCM_DESELECTALL,fExcludeFocus,0)
4107 #define TCM_HIGHLIGHTITEM (TCM_FIRST+51)
4108 #define TabCtrl_HighlightItem(hwnd,i,fHighlight) (BOOL)SNDMSG((hwnd),TCM_HIGHLIGHTITEM,(WPARAM)(i),(LPARAM)MAKELONG (fHighlight,0))
4109 #define TCM_SETEXTENDEDSTYLE (TCM_FIRST+52)
4110 #define TabCtrl_SetExtendedStyle(hwnd,dw) (DWORD)SNDMSG((hwnd),TCM_SETEXTENDEDSTYLE,0,dw)
4111 #define TCM_GETEXTENDEDSTYLE (TCM_FIRST+53)
4112 #define TabCtrl_GetExtendedStyle(hwnd) (DWORD)SNDMSG((hwnd),TCM_GETEXTENDEDSTYLE,0,0)
4113 #define TCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
4114 #define TabCtrl_SetUnicodeFormat(hwnd,fUnicode) (BOOL)SNDMSG((hwnd),TCM_SETUNICODEFORMAT,(WPARAM)(fUnicode),0)
4115 #define TCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
4116 #define TabCtrl_GetUnicodeFormat(hwnd) (BOOL)SNDMSG((hwnd),TCM_GETUNICODEFORMAT,0,0)
4117 
4118 #define TCN_KEYDOWN (TCN_FIRST - 0)
4119 
4120 #define TC_KEYDOWN NMTCKEYDOWN
4121 
4122 #include <pshpack1.h>
4123 
4124  typedef struct tagTCKEYDOWN {
4128  } NMTCKEYDOWN;
4129 
4130 #include <poppack.h>
4131 
4132 #define TCN_SELCHANGE (TCN_FIRST - 1)
4133 #define TCN_SELCHANGING (TCN_FIRST - 2)
4134 #define TCN_GETOBJECT (TCN_FIRST - 3)
4135 #define TCN_FOCUSCHANGE (TCN_FIRST - 4)
4136 
4137 #endif /* !NOTABCONTROL */
4138 
4139 #ifndef NOANIMATE
4140 
4141 #define ANIMATE_CLASSW L"SysAnimate32"
4142 #define ANIMATE_CLASSA "SysAnimate32"
4143 
4144 #define ANIMATE_CLASS __MINGW_NAME_AW(ANIMATE_CLASS)
4145 
4146 #define ACS_CENTER 0x1
4147 #define ACS_TRANSPARENT 0x2
4148 #define ACS_AUTOPLAY 0x4
4149 #define ACS_TIMER 0x8
4150 
4151 #define ACM_OPENA (WM_USER+100)
4152 #define ACM_OPENW (WM_USER+103)
4153 
4154 #define ACM_OPEN __MINGW_NAME_AW(ACM_OPEN)
4155 
4156 #define ACM_PLAY (WM_USER+101)
4157 #define ACM_STOP (WM_USER+102)
4158 
4159 #define ACN_START 1
4160 #define ACN_STOP 2
4161 
4162 #define Animate_Create(hwndP,id,dwStyle,hInstance) CreateWindow(ANIMATE_CLASS,NULL,dwStyle,0,0,0,0,hwndP,(HMENU)(id),hInstance,NULL)
4163 
4164 #define Animate_Open(hwnd,szName) (BOOL)SNDMSG(hwnd,ACM_OPEN,0,(LPARAM)(LPTSTR)(szName))
4165 #define Animate_OpenEx(hwnd,hInst,szName) (BOOL)SNDMSG(hwnd,ACM_OPEN,(WPARAM)(hInst),(LPARAM)(LPTSTR)(szName))
4166 #define Animate_Play(hwnd,from,to,rep) (BOOL)SNDMSG(hwnd,ACM_PLAY,(WPARAM)(rep),(LPARAM)MAKELONG(from,to))
4167 #define Animate_Stop(hwnd) (BOOL)SNDMSG(hwnd,ACM_STOP,0,0)
4168 #define Animate_Close(hwnd) Animate_Open(hwnd,NULL)
4169 #define Animate_Seek(hwnd,frame) Animate_Play(hwnd,frame,frame,1)
4170 
4171 #endif /* !NOANIMATE */
4172 
4173 #ifndef NOMONTHCAL
4174 
4175 #define MONTHCAL_CLASSW L"SysMont