2 * Common controls definitions
5 #ifndef __WINE_COMMCTRL_H
6 #define __WINE_COMMCTRL_H
15 BOOL32 WINAPI
ShowHideMenuCtl (HWND32
, UINT32
, LPINT32
);
16 VOID WINAPI
GetEffectiveClientRect (HWND32
, LPRECT32
, LPINT32
);
17 VOID WINAPI
InitCommonControls (VOID
);
19 typedef struct tagINITCOMMONCONTROLSEX
{
22 } INITCOMMONCONTROLSEX
, *LPINITCOMMONCONTROLSEX
;
24 BOOL32 WINAPI
InitCommonControlsEx (LPINITCOMMONCONTROLSEX
);
26 #define ICC_LISTVIEW_CLASSES 0x00000001 /* listview, header */
27 #define ICC_TREEVIEW_CLASSES 0x00000002 /* treeview, tooltips */
28 #define ICC_BAR_CLASSES 0x00000004 /* toolbar, statusbar, trackbar, tooltips */
29 #define ICC_TAB_CLASSES 0x00000008 /* tab, tooltips */
30 #define ICC_UPDOWN_CLASS 0x00000010 /* updown */
31 #define ICC_PROGRESS_CLASS 0x00000020 /* progress */
32 #define ICC_HOTKEY_CLASS 0x00000040 /* hotkey */
33 #define ICC_ANIMATE_CLASS 0x00000080 /* animate */
34 #define ICC_WIN95_CLASSES 0x000000FF
35 #define ICC_DATE_CLASSES 0x00000100 /* month picker, date picker, time picker, updown */
36 #define ICC_USEREX_CLASSES 0x00000200 /* comboex */
37 #define ICC_COOL_CLASSES 0x00000400 /* rebar (coolbar) */
38 #define ICC_INTERNET_CLASSES 0x00000800 /* IP address, ... */
39 #define ICC_PAGESCROLLER_CLASS 0x00001000 /* page scroller */
40 #define ICC_NATIVEFNTCTL_CLASS 0x00002000 /* native font control ???*/
43 /* common control styles */
44 #define CCS_TOP 0x00000001L
45 #define CCS_NOMOVEY 0x00000002L
46 #define CCS_BOTTOM 0x00000003L
47 #define CCS_NORESIZE 0x00000004L
48 #define CCS_NOPARENTALIGN 0x00000008L
49 #define CCS_ADJUSTABLE 0x00000020L
50 #define CCS_NODIVIDER 0x00000040L
51 #define CCS_VERT 0x00000080L
52 #define CCS_LEFT (CCS_VERT|CCS_TOP)
53 #define CCS_RIGHT (CCS_VERT|CCS_BOTTOM)
54 #define CCS_NOMOVEX (CCS_VERT|CCS_NOMOVEY)
57 /* common control shared messages */
58 #define CCM_FIRST 0x2000
60 #define CCM_SETBKCOLOR (CCM_FIRST+1) /* lParam = bkColor */
61 #define CCM_SETCOLORSCHEME (CCM_FIRST+2)
62 #define CCM_GETCOLORSCHEME (CCM_FIRST+3)
63 #define CCM_GETDROPTARGET (CCM_FIRST+4)
64 #define CCM_SETUNICODEFORMAT (CCM_FIRST+5)
65 #define CCM_GETUNICODEFORMAT (CCM_FIRST+6)
68 /* common notification codes (WM_NOTIFY)*/
69 #define NM_FIRST (0U- 0U)
70 #define NM_LAST (0U- 99U)
71 #define NM_OUTOFMEMORY (NM_FIRST-1)
72 #define NM_CLICK (NM_FIRST-2)
73 #define NM_DBLCLK (NM_FIRST-3)
74 #define NM_RETURN (NM_FIRST-4)
75 #define NM_RCLICK (NM_FIRST-5)
76 #define NM_RDBLCLK (NM_FIRST-6)
77 #define NM_SETFOCUS (NM_FIRST-7)
78 #define NM_KILLFOCUS (NM_FIRST-8)
79 #define NM_CUSTOMDRAW (NM_FIRST-12)
80 #define NM_HOVER (NM_FIRST-13)
81 #define NM_NCHITTEST (NM_FIRST-14)
82 #define NM_KEYDOWN (NM_FIRST-15)
83 #define NM_RELEASEDCAPTURE (NM_FIRST-16)
84 #define NM_SETCURSOR (NM_FIRST-17)
85 #define NM_CHAR (NM_FIRST-18)
86 #define NM_TOOLTIPSCREATED (NM_FIRST-19)
89 /* callback constants */
90 #define LPSTR_TEXTCALLBACK32A ((LPSTR)-1L)
91 #define LPSTR_TEXTCALLBACK32W ((LPWSTR)-1L)
92 #define LPSTR_TEXTCALLBACK WINELIB_NAME_AW(LPSTR_TEXTCALLBACK)
94 #define I_IMAGECALLBACK (-1)
95 #define I_INDENTCALLBACK (-1)
98 /* owner drawn types */
99 #define ODT_HEADER 100
101 #define ODT_LISTVIEW 102
103 /* common notification structures */
104 typedef struct tagNMTOOLTIPSCREATED
108 } NMTOOLTIPSCREATED
, *LPNMTOOLTIPSCREATED
;
111 #ifndef CCSIZEOF_STRUCT
112 #define CCSIZEOF_STRUCT(name, member) \
113 (((INT32)((LPBYTE)(&((name*)0)->member)-((LPBYTE)((name*)0))))+ \
114 sizeof(((name*)0)->member))
117 #define SNDMSG WINELIB_NAME_AW(SendMessage)
122 #define STATUSCLASSNAME16 "msctls_statusbar"
123 #define STATUSCLASSNAME32A "msctls_statusbar32"
124 #define STATUSCLASSNAME32W L"msctls_statusbar32"
125 #define STATUSCLASSNAME WINELIB_NAME_AW(STATUSCLASSNAME)
127 #define SBT_NOBORDERS 0x0100
128 #define SBT_POPOUT 0x0200
129 #define SBT_RTLREADING 0x0400 /* not supported */
130 #define SBT_TOOLTIPS 0x0800
131 #define SBT_OWNERDRAW 0x1000
133 #define SBARS_SIZEGRIP 0x0100
135 #define SB_SETTEXT32A (WM_USER+1)
136 #define SB_SETTEXT32W (WM_USER+11)
137 #define SB_SETTEXT WINELIB_NAME_AW(SB_SETTEXT)
138 #define SB_GETTEXT32A (WM_USER+2)
139 #define SB_GETTEXT32W (WM_USER+13)
140 #define SB_GETTEXT WINELIB_NAME_AW(SB_GETTEXT)
141 #define SB_GETTEXTLENGTH32A (WM_USER+3)
142 #define SB_GETTEXTLENGTH32W (WM_USER+12)
143 #define SB_GETTEXTLENGTH WINELIB_NAME_AW(SB_GETTEXTLENGTH)
144 #define SB_SETPARTS (WM_USER+4)
145 #define SB_GETPARTS (WM_USER+6)
146 #define SB_GETBORDERS (WM_USER+7)
147 #define SB_SETMINHEIGHT (WM_USER+8)
148 #define SB_SIMPLE (WM_USER+9)
149 #define SB_GETRECT (WM_USER+10)
150 #define SB_ISSIMPLE (WM_USER+14)
151 #define SB_SETICON (WM_USER+15)
152 #define SB_SETTIPTEXT32A (WM_USER+16)
153 #define SB_SETTIPTEXT32W (WM_USER+17)
154 #define SB_SETTIPTEXT WINELIB_NAME_AW(SB_SETTIPTEXT)
155 #define SB_GETTIPTEXT32A (WM_USER+18)
156 #define SB_GETTIPTEXT32W (WM_USER+19)
157 #define SB_GETTIPTEXT WINELIB_NAME_AW(SB_GETTIPTEXT)
158 #define SB_GETICON (WM_USER+20)
159 #define SB_SETBKCOLOR CCM_SETBKCOLOR /* lParam = bkColor */
160 #define SB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
161 #define SB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
163 #define SBN_FIRST (0U-880U)
164 #define SBN_LAST (0U-899U)
165 #define SBN_SIMPLEMODECHANGE (SBN_FIRST-0)
167 HWND32 WINAPI
CreateStatusWindow32A (INT32
, LPCSTR
, HWND32
, UINT32
);
168 HWND32 WINAPI
CreateStatusWindow32W (INT32
, LPCWSTR
, HWND32
, UINT32
);
169 #define CreateStatusWindow WINELIB_NAME_AW(CreateStatusWindow)
170 VOID WINAPI
DrawStatusText32A (HDC32
, LPRECT32
, LPCSTR
, UINT32
);
171 VOID WINAPI
DrawStatusText32W (HDC32
, LPRECT32
, LPCWSTR
, UINT32
);
172 #define DrawStatusText WINELIB_NAME_AW(DrawStatusText)
173 VOID WINAPI
MenuHelp (UINT32
, WPARAM32
, LPARAM
, HMENU32
,
174 HINSTANCE32
, HWND32
, LPUINT32
);
179 #define UPDOWN_CLASS16 "msctls_updown"
180 #define UPDOWN_CLASS32A "msctls_updown32"
181 #define UPDOWN_CLASS32W L"msctls_updown32"
182 #define UPDOWN_CLASS WINELIB_NAME_AW(UPDOWN_CLASS)
184 typedef struct tagUDACCEL
190 #define UD_MAXVAL 0x7fff
191 #define UD_MINVAL 0x8001
193 #define UDS_WRAP 0x0001
194 #define UDS_SETBUDDYINT 0x0002
195 #define UDS_ALIGNRIGHT 0x0004
196 #define UDS_ALIGNLEFT 0x0008
197 #define UDS_AUTOBUDDY 0x0010
198 #define UDS_ARROWKEYS 0x0020
199 #define UDS_HORZ 0x0040
200 #define UDS_NOTHOUSANDS 0x0080
202 #define UDN_FIRST (0U-721)
203 #define UDN_LAST (0U-740)
204 #define UDN_DELTAPOS (UDN_FIRST-1)
206 #define UDM_SETRANGE (WM_USER+101)
207 #define UDM_GETRANGE (WM_USER+102)
208 #define UDM_SETPOS (WM_USER+103)
209 #define UDM_GETPOS (WM_USER+104)
210 #define UDM_SETBUDDY (WM_USER+105)
211 #define UDM_GETBUDDY (WM_USER+106)
212 #define UDM_SETACCEL (WM_USER+107)
213 #define UDM_GETACCEL (WM_USER+108)
214 #define UDM_SETBASE (WM_USER+109)
215 #define UDM_GETBASE (WM_USER+110)
216 #define UDM_SETRANGE32 (WM_USER+111)
217 #define UDM_GETRANGE32 (WM_USER+112)
219 HWND32 WINAPI
CreateUpDownControl (DWORD
, INT32
, INT32
, INT32
, INT32
,
220 HWND32
, INT32
, HINSTANCE32
, HWND32
,
221 INT32
, INT32
, INT32
);
225 #define PROGRESS_CLASS32A "msctls_progress32"
226 #define PROGRESS_CLASS32W L"msctls_progress32"
227 #define PROGRESS_CLASS16 "msctls_progress"
228 #define PROGRESS_CLASS WINELIB_NAME_AW(PROGRESS_CLASS)
230 #define PBM_SETRANGE (WM_USER+1)
231 #define PBM_SETPOS (WM_USER+2)
232 #define PBM_DELTAPOS (WM_USER+3)
233 #define PBM_SETSTEP (WM_USER+4)
234 #define PBM_STEPIT (WM_USER+5)
235 #define PBM_SETRANGE32 (WM_USER+6)
236 #define PBM_GETRANGE (WM_USER+7)
237 #define PBM_GETPOS (WM_USER+8)
238 #define PBM_SETBARCOLOR (WM_USER+9)
239 #define PBM_SETBKCOLOR CCM_SETBKCOLOR
241 #define PBS_SMOOTH 0x01
242 #define PBS_VERTICAL 0x04
248 } PBRANGE
, *PPBRANGE
;
253 #if !defined(__WINE__) || !defined(__WINE_IMAGELIST_C)
255 typedef struct _IMAGELIST *HIMAGELIST;
256 #endif */ /* __WINE__ */
258 #define CLR_NONE 0xFFFFFFFF
259 #define CLR_DEFAULT 0xFF000000
260 #define CLR_HILIGHT CLR_DEFAULT
262 #define ILC_MASK 0x0001
263 #define ILC_COLOR 0x0000
264 #define ILC_COLORDDB 0x00FE
265 #define ILC_COLOR4 0x0004
266 #define ILC_COLOR8 0x0008
267 #define ILC_COLOR16 0x0010
268 #define ILC_COLOR24 0x0018
269 #define ILC_COLOR32 0x0020
270 #define ILC_PALETTE 0x0800 /* no longer supported by M$ */
272 #define ILD_NORMAL 0x0000
273 #define ILD_TRANSPARENT 0x0001
274 #define ILD_BLEND25 0x0002
275 #define ILD_BLEND50 0x0004
276 #define ILD_MASK 0x0010
277 #define ILD_IMAGE 0x0020
278 #define ILD_ROP 0x0040
279 #define ILD_OVERLAYMASK 0x0F00
281 #define ILD_SELECTED ILD_BLEND50
282 #define ILD_FOCUS ILD_BLEND25
283 #define ILD_BLEND ILD_BLEND50
285 #define INDEXTOOVERLAYMASK(i) ((i)<<8)
287 #define ILCF_MOVE (0x00000000)
288 #define ILCF_SWAP (0x00000001)
291 typedef struct _IMAGEINFO
301 typedef struct _IMAGELISTDRAWPARAMS
311 INT32 xBitmap
; /* x offest from the upperleft of bitmap */
312 INT32 yBitmap
; /* y offset from the upperleft of bitmap */
317 } IMAGELISTDRAWPARAMS
, *LPIMAGELISTDRAWPARAMS
;
320 INT32 WINAPI
ImageList_Add(HIMAGELIST
,HBITMAP32
,HBITMAP32
);
321 INT32 WINAPI
ImageList_AddIcon (HIMAGELIST
, HICON32
);
322 INT32 WINAPI
ImageList_AddMasked(HIMAGELIST
,HBITMAP32
,COLORREF
);
323 BOOL32 WINAPI
ImageList_BeginDrag(HIMAGELIST
,INT32
,INT32
,INT32
);
324 BOOL32 WINAPI
ImageList_Copy(HIMAGELIST
,INT32
,HIMAGELIST
,INT32
,INT32
);
325 HIMAGELIST WINAPI
ImageList_Create(INT32
,INT32
,UINT32
,INT32
,INT32
);
326 BOOL32 WINAPI
ImageList_Destroy(HIMAGELIST
);
327 BOOL32 WINAPI
ImageList_DragEnter(HWND32
,INT32
,INT32
);
328 BOOL32 WINAPI
ImageList_DragLeave(HWND32
);
329 BOOL32 WINAPI
ImageList_DragMove(INT32
,INT32
);
330 BOOL32 WINAPI
ImageList_DragShowNolock (BOOL32
);
331 BOOL32 WINAPI
ImageList_Draw(HIMAGELIST
,INT32
,HDC32
,INT32
,INT32
,UINT32
);
332 BOOL32 WINAPI
ImageList_DrawEx(HIMAGELIST
,INT32
,HDC32
,INT32
,INT32
,INT32
,
333 INT32
,COLORREF
,COLORREF
,UINT32
);
334 BOOL32 WINAPI
ImageList_DrawIndirect(IMAGELISTDRAWPARAMS
*);
335 HIMAGELIST WINAPI
ImageList_Duplicate(HIMAGELIST
);
336 BOOL32 WINAPI
ImageList_EndDrag(VOID
);
337 COLORREF WINAPI
ImageList_GetBkColor(HIMAGELIST
);
338 HIMAGELIST WINAPI
ImageList_GetDragImage(POINT32
*,POINT32
*);
339 HICON32 WINAPI
ImageList_GetIcon(HIMAGELIST
,INT32
,UINT32
);
340 BOOL32 WINAPI
ImageList_GetIconSize(HIMAGELIST
,INT32
*,INT32
*);
341 INT32 WINAPI
ImageList_GetImageCount(HIMAGELIST
);
342 BOOL32 WINAPI
ImageList_GetImageInfo(HIMAGELIST
,INT32
,IMAGEINFO
*);
343 BOOL32 WINAPI
ImageList_GetImageRect(HIMAGELIST
,INT32
,LPRECT32
);
344 HIMAGELIST WINAPI
ImageList_LoadImage32A(HINSTANCE32
,LPCSTR
,INT32
,INT32
,
345 COLORREF
,UINT32
,UINT32
);
346 HIMAGELIST WINAPI
ImageList_LoadImage32W(HINSTANCE32
,LPCWSTR
,INT32
,INT32
,
347 COLORREF
,UINT32
,UINT32
);
348 #define ImageList_LoadImage WINELIB_NAME_AW(ImageList_LoadImage)
349 HIMAGELIST WINAPI
ImageList_Merge(HIMAGELIST
,INT32
,HIMAGELIST
,INT32
,INT32
,INT32
);
350 #ifdef __IStream_INTREFACE_DEFINED__
351 HIMAGELIST WINAPI
ImageList_Read(LPSTREAM32
);
353 BOOL32 WINAPI
ImageList_Remove(HIMAGELIST
,INT32
);
354 BOOL32 WINAPI
ImageList_Replace(HIMAGELIST
,INT32
,HBITMAP32
,HBITMAP32
);
355 INT32 WINAPI
ImageList_ReplaceIcon(HIMAGELIST
,INT32
,HICON32
);
356 COLORREF WINAPI
ImageList_SetBkColor(HIMAGELIST
,COLORREF
);
357 BOOL32 WINAPI
ImageList_SetDragCursorImage(HIMAGELIST
,INT32
,INT32
,INT32
);
359 BOOL32 WINAPI
ImageList_SetIconSize(HIMAGELIST
,INT32
,INT32
);
360 BOOL32 WINAPI
ImageList_SetImageCount(HIMAGELIST
,INT32
);
361 BOOL32 WINAPI
ImageList_SetOverlayImage(HIMAGELIST
,INT32
,INT32
);
362 #ifdef __IStream_INTREFACE_DEFINED__
363 BOOL32 WINAPI
ImageList_Write(HIMAGELIST
, LPSTREAM32
);
367 #define ImageList_AddIcon(himl,hicon) ImageList_ReplaceIcon(himl,-1,hicon)
369 #define ImageList_ExtractIcon(hi,himl,i) ImageList_GetIcon(himl,i,0)
370 #define ImageList_LoadBitmap(hi,lpbmp,cx,cGrow,crMask) \
371 ImageList_LoadImage(hi,lpbmp,cx,cGrow,crMask,IMAGE_BITMAP,0)
372 #define ImageList_RemoveAll(himl) ImageList_Remove(himl,-1)
377 #define WC_HEADER16 "SysHeader"
378 #define WC_HEADER32A "SysHeader32"
379 #define WC_HEADER32W L"SysHeader32"
380 #define WC_HEADER WINELIB_NAME_AW(WC_HEADER)
382 #define HDS_HORZ 0x0000
383 #define HDS_BUTTONS 0x0002
384 #define HDS_HOTTRACK 0x0004
385 #define HDS_HIDDEN 0x0008
386 #define HDS_DRAGDROP 0x0040
387 #define HDS_FULLDRAG 0x0080
389 #define HDI_WIDTH 0x0001
390 #define HDI_HEIGHT HDI_WIDTH
391 #define HDI_TEXT 0x0002
392 #define HDI_FORMAT 0x0004
393 #define HDI_LPARAM 0x0008
394 #define HDI_BITMAP 0x0010
395 #define HDI_IMAGE 0x0020
396 #define HDI_DI_SETITEM 0x0040
397 #define HDI_ORDER 0x0080
399 #define HDF_LEFT 0x0000
400 #define HDF_RIGHT 0x0001
401 #define HDF_CENTER 0x0002
402 #define HDF_JUSTIFYMASK 0x0003
404 #define HDF_IMAGE 0x0800
405 #define HDF_BITMAP_ON_RIGHT 0x1000
406 #define HDF_BITMAP 0x2000
407 #define HDF_STRING 0x4000
408 #define HDF_OWNERDRAW 0x8000
410 #define HHT_NOWHERE 0x0001
411 #define HHT_ONHEADER 0x0002
412 #define HHT_ONDIVIDER 0x0004
413 #define HHT_ONDIVOPEN 0x0008
414 #define HHT_ABOVE 0x0100
415 #define HHT_BELOW 0x0200
416 #define HHT_TORIGHT 0x0400
417 #define HHT_TOLEFT 0x0800
419 #define HDM_FIRST 0x1200
420 #define HDM_GETITEMCOUNT (HDM_FIRST+0)
421 #define HDM_INSERTITEM32A (HDM_FIRST+1)
422 #define HDM_INSERTITEM32W (HDM_FIRST+10)
423 #define HDM_INSERTITEM WINELIB_NAME_AW(HDM_INSERTITEM)
424 #define HDM_DELETEITEM (HDM_FIRST+2)
425 #define HDM_GETITEM32A (HDM_FIRST+3)
426 #define HDM_GETITEM32W (HDM_FIRST+11)
427 #define HDM_GETITEM WINELIB_NAME_AW(HDM_GETITEM)
428 #define HDM_SETITEM32A (HDM_FIRST+4)
429 #define HDM_SETITEM32W (HDM_FIRST+12)
430 #define HDM_SETITEM WINELIB_NAME_AW(HDM_SETITEM)
431 #define HDM_LAYOUT (HDM_FIRST+5)
432 #define HDM_HITTEST (HDM_FIRST+6)
433 #define HDM_GETITEMRECT (HDM_FIRST+7)
434 #define HDM_SETIMAGELIST (HDM_FIRST+8)
435 #define HDM_GETIMAGELIST (HDM_FIRST+9)
437 #define HDM_ORDERTOINDEX (HDM_FIRST+15)
438 #define HDM_CREATEDRAGIMAGE (HDM_FIRST+16)
439 #define HDM_GETORDERARRAY (HDM_FIRST+17)
440 #define HDM_SETORDERARRAY (HDM_FIRST+18)
441 #define HDM_SETHOTDIVIDER (HDM_FIRST+19)
442 #define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
443 #define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
445 #define HDN_FIRST (0U-300U)
446 #define HDN_LAST (0U-399U)
447 #define HDN_ITEMCHANGING32A (HDN_FIRST-0)
448 #define HDN_ITEMCHANGING32W (HDN_FIRST-20)
449 #define HDN_ITEMCHANGING WINELIB_NAME_AW(HDN_ITEMCHANGING)
450 #define HDN_ITEMCHANGED32A (HDN_FIRST-1)
451 #define HDN_ITEMCHANGED32W (HDN_FIRST-21)
452 #define HDN_ITEMCHANGED WINELIB_NAME_AW(HDN_ITEMCHANGED)
453 #define HDN_ITEMCLICK32A (HDN_FIRST-2)
454 #define HDN_ITEMCLICK32W (HDN_FIRST-22)
455 #define HDN_ITEMCLICK WINELIB_NAME_AW(HDN_ITEMCLICK)
456 #define HDN_ITEMDBLCLICK32A (HDN_FIRST-3)
457 #define HDN_ITEMDBLCLICK32W (HDN_FIRST-23)
458 #define HDN_ITEMDBLCLICK WINELIB_NAME_AW(HDN_ITEMDBLCLICK)
459 #define HDN_DIVIDERDBLCLICK32A (HDN_FIRST-5)
460 #define HDN_DIVIDERDBLCLICK32W (HDN_FIRST-25)
461 #define HDN_DIVIDERDBLCLICK WINELIB_NAME_AW(HDN_DIVIDERDBLCLICK)
462 #define HDN_BEGINTRACK32A (HDN_FIRST-6)
463 #define HDN_BEGINTRACK32W (HDN_FIRST-26)
464 #define HDN_BEGINTRACK WINELIB_NAME_AW(HDN_BEGINTRACK)
465 #define HDN_ENDTRACK32A (HDN_FIRST-7)
466 #define HDN_ENDTRACK32W (HDN_FIRST-27)
467 #define HDN_ENDTRACK WINELIB_NAME_AW(HDN_ENDTRACK)
468 #define HDN_TRACK32A (HDN_FIRST-8)
469 #define HDN_TRACK32W (HDN_FIRST-28)
470 #define HDN_TRACK WINELIB_NAME_AW(HDN_TRACK)
471 #define HDN_GETDISPINFO32A (HDN_FIRST-9)
472 #define HDN_GETDISPINFO32W (HDN_FIRST-29)
473 #define HDN_GETDISPINFO WINELIB_NAME_AW(HDN_GETDISPINFO)
474 #define HDN_BEGINDRACK (HDN_FIRST-10)
475 #define HDN_ENDDRACK (HDN_FIRST-11)
477 typedef struct _HD_LAYOUT
481 } HDLAYOUT
, *LPHDLAYOUT
;
483 #define HD_LAYOUT HDLAYOUT
485 typedef struct _HD_ITEM32A
496 } HDITEM32A
, *LPHDITEM32A
;
498 typedef struct _HD_ITEM32W
509 } HDITEM32W
, *LPHDITEM32W
;
511 #define HDITEM WINELIB_NAME_AW(HDITEM)
512 #define LPHDITEM WINELIB_NAME_AW(LPHDITEM)
514 #define HDITEM_V1_SIZE32A CCSIZEOF_STRUCT(HDITEM32A, lParam)
515 #define HDITEM_V1_SIZE32W CCSIZEOF_STRUCT(HDITEM32W, lParam)
516 #define HDITEM_V1_SIZE WINELIB_NAME_AW(HDITEM_V1_SIZE)
518 typedef struct _HD_HITTESTINFO
523 } HDHITTESTINFO
, *LPHDHITTESTINFO
;
525 #define HD_HITTESTINFO HDHITTESTINFO
527 typedef struct tagNMHEADER32A
533 } NMHEADER32A
, *LPNMHEADER32A
;
535 typedef struct tagNMHEADER32W
541 } NMHEADER32W
, *LPNMHEADER32W
;
543 #define NMHEADER WINELIB_NAME_AW(NMHEADER)
544 #define LPNMHEADER WINELIB_NAME_AW(LPNMHEADER)
546 typedef struct tagNMHDDISPINFO32A
555 } NMHDDISPINFO32A
, *LPNMHDDISPINFO32A
;
557 typedef struct tagNMHDDISPINFO32W
566 } NMHDDISPINFO32W
, *LPNMHDDISPINFO32W
;
568 #define NMHDDISPINFO WINELIB_NAME_AW(NMHDDISPINFO)
569 #define LPNMHDDISPINFO WINELIB_NAME_AW(LPNMHDDISPINFO)
571 #define Header_GetItemCount(hwndHD) \
572 (INT32)SendMessage32A((hwndHD),HDM_GETITEMCOUNT,0,0L)
573 #define Header_InsertItem32A(hwndHD,i,phdi) \
574 (INT32)SendMessage32A((hwndHD),HDM_INSERTITEM32A,(WPARAM32)(INT32)(i),(LPARAM)(const HDITEM32A*)(phdi))
575 #define Header_InsertItem32W(hwndHD,i,phdi) \
576 (INT32)SendMessage32W((hwndHD),HDM_INSERTITEM32W,(WPARAM32)(INT32)(i),(LPARAM)(const HDITEM32W*)(phdi))
577 #define Header_InsertItem WINELIB_NAME_AW(Header_InsertItem)
578 #define Header_DeleteItem(hwndHD,i) \
579 (BOOL32)SendMessage32A((hwndHD),HDM_DELETEITEM,(WPARAM32)(INT32)(i),0L)
580 #define Header_GetItem32A(hwndHD,i,phdi) \
581 (BOOL32)SendMessage32A((hwndHD),HDM_GETITEM32A,(WPARAM32)(INT32)(i),(LPARAM)(HDITEM32A*)(phdi))
582 #define Header_GetItem32W(hwndHD,i,phdi) \
583 (BOOL32)SendMessage32W((hwndHD),HDM_GETITEM32W,(WPARAM32)(INT32)(i),(LPARAM)(HDITEM32W*)(phdi))
584 #define Header_GetItem WINELIB_NAME_AW(Header_GetItem)
585 #define Header_SetItem32A(hwndHD,i,phdi) \
586 (BOOL32)SendMessage32A((hwndHD),HDM_SETITEM32A,(WPARAM32)(INT32)(i),(LPARAM)(const HDITEM32A*)(phdi))
587 #define Header_SetItem32W(hwndHD,i,phdi) \
588 (BOOL32)SendMessage32W((hwndHD),HDM_SETITEM32W,(WPARAM32)(INT32)(i),(LPARAM)(const HDITEM32W*)(phdi))
589 #define Header_SetItem WINELIB_NAME_AW(Header_SetItem)
590 #define Header_Layout(hwndHD,playout) \
591 (BOOL32)SendMessage32A((hwndHD),HDM_LAYOUT,0,(LPARAM)(LPHDLAYOUT)(playout))
592 #define Header_GetItemRect(hwnd,iItem,lprc) \
593 (BOOL32)SendMessage32A((hwnd),HDM_GETITEMRECT,(WPARAM32)iItem,(LPARAM)lprc)
594 #define Header_SetImageList(hwnd,himl) \
595 (HIMAGELIST)SendMessage32A((hwnd),HDM_SETIMAGELIST,0,(LPARAM)himl)
596 #define Header_GetImageList(hwnd) \
597 (HIMAGELIST)SendMessage32A((hwnd),HDM_GETIMAGELIST,0,0)
598 #define Header_OrderToIndex(hwnd,i) \
599 (INT32)SendMessage32A((hwnd),HDM_ORDERTOINDEX,(WPARAM32)i,0)
600 #define Header_CreateDragImage(hwnd,i) \
601 (HIMAGELIST)SendMessage32A((hwnd),HDM_CREATEDRAGIMAGE,(WPARAM32)i,0)
602 #define Header_GetOrderArray(hwnd,iCount,lpi) \
603 (BOOL32)SendMessage32A((hwnd),HDM_GETORDERARRAY,(WPARAM32)iCount,(LPARAM)lpi)
604 #define Header_SetOrderArray(hwnd,iCount,lpi) \
605 (BOOL32)SendMessage32A((hwnd),HDM_SETORDERARRAY,(WPARAM32)iCount,(LPARAM)lpi)
606 #define Header_SetHotDivider(hwnd,fPos,dw) \
607 (INT32)SendMessage32A((hwnd),HDM_SETHOTDIVIDER,(WPARAM32)fPos,(LPARAM)dw)
608 #define Header_SetUnicodeFormat(hwnd,fUnicode) \
609 (BOOL32)SendMessage32A((hwnd),HDM_SETUNICODEFORMAT,(WPARAM32)(fUnicode),0)
610 #define Header_GetUnicodeFormat(hwnd) \
611 (BOOL32)SendMessage32A((hwnd),HDM_GETUNICODEFORMAT,0,0)
616 #define TOOLBARCLASSNAME16 "ToolbarWindow"
617 #define TOOLBARCLASSNAME32W L"ToolbarWindow32"
618 #define TOOLBARCLASSNAME32A "ToolbarWindow32"
619 #define TOOLBARCLASSNAME WINELIB_NAME_AW(TOOLBARCLASSNAME)
621 #define CMB_MASKED 0x02
623 #define TBSTATE_CHECKED 0x01
624 #define TBSTATE_PRESSED 0x02
625 #define TBSTATE_ENABLED 0x04
626 #define TBSTATE_HIDDEN 0x08
627 #define TBSTATE_INDETERMINATE 0x10
628 #define TBSTATE_WRAP 0x20
629 #define TBSTATE_ELLIPSES 0x40
630 #define TBSTATE_MARKED 0x80
632 #define TBSTYLE_BUTTON 0x00
633 #define TBSTYLE_SEP 0x01
634 #define TBSTYLE_CHECK 0x02
635 #define TBSTYLE_GROUP 0x04
636 #define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK)
637 #define TBSTYLE_DROPDOWN 0x08
639 #define TBSTYLE_TOOLTIPS 0x0100
640 #define TBSTYLE_WRAPABLE 0x0200
641 #define TBSTYLE_ALTDRAG 0x0400
642 #define TBSTYLE_FLAT 0x0800
643 #define TBSTYLE_LIST 0x1000
644 #define TBSTYLE_CUSTOMERASE 0x2000
646 #define TBIF_IMAGE 0x00000001
647 #define TBIF_TEXT 0x00000002
648 #define TBIF_STATE 0x00000004
649 #define TBIF_STYLE 0x00000008
650 #define TBIF_LPARAM 0x00000010
651 #define TBIF_COMMAND 0x00000020
652 #define TBIF_SIZE 0x00000040
654 #define TBBF_LARGE 0x0001
656 #define TB_ENABLEBUTTON (WM_USER+1)
657 #define TB_CHECKBUTTON (WM_USER+2)
658 #define TB_PRESSBUTTON (WM_USER+3)
659 #define TB_HIDEBUTTON (WM_USER+4)
660 #define TB_INDETERMINATE (WM_USER+5)
661 #define TB_ISBUTTONENABLED (WM_USER+9)
662 #define TB_ISBUTTONCHECKED (WM_USER+10)
663 #define TB_ISBUTTONPRESSED (WM_USER+11)
664 #define TB_ISBUTTONHIDDEN (WM_USER+12)
665 #define TB_ISBUTTONINDETERMINATE (WM_USER+13)
666 #define TB_ISBUTTONHIGHLIGHTED (WM_USER+14)
667 #define TB_SETSTATE (WM_USER+17)
668 #define TB_GETSTATE (WM_USER+18)
669 #define TB_ADDBITMAP (WM_USER+19)
670 #define TB_ADDBUTTONS32A (WM_USER+20)
671 #define TB_ADDBUTTONS32W (WM_USER+68)
672 #define TB_ADDBUTTONS WINELIB_NAME_AW(TB_ADDBUTTONS)
673 #define TB_HITTEST (WM_USER+69)
674 #define TB_INSERTBUTTON32A (WM_USER+21)
675 #define TB_INSERTBUTTON32W (WM_USER+67)
676 #define TB_INSERTBUTTON WINELIB_NAME_AW(TB_INSERTBUTTON)
677 #define TB_DELETEBUTTON (WM_USER+22)
678 #define TB_GETBUTTON (WM_USER+23)
679 #define TB_BUTTONCOUNT (WM_USER+24)
680 #define TB_COMMANDTOINDEX (WM_USER+25)
681 #define TB_SAVERESTORE32A (WM_USER+26)
682 #define TB_SAVERESTORE32W (WM_USER+76)
683 #define TB_SAVERESTORE WINELIB_NAME_AW(TB_SAVERESTORE)
684 #define TB_CUSTOMIZE (WM_USER+27)
685 #define TB_ADDSTRING32A (WM_USER+28)
686 #define TB_ADDSTRING32W (WM_USER+77)
687 #define TB_ADDSTRING WINELIB_NAME_AW(TB_ADDSTRING)
688 #define TB_GETITEMRECT (WM_USER+29)
689 #define TB_BUTTONSTRUCTSIZE (WM_USER+30)
690 #define TB_SETBUTTONSIZE (WM_USER+31)
691 #define TB_SETBITMAPSIZE (WM_USER+32)
692 #define TB_AUTOSIZE (WM_USER+33)
693 #define TB_GETTOOLTIPS (WM_USER+35)
694 #define TB_SETTOOLTIPS (WM_USER+36)
695 #define TB_SETPARENT (WM_USER+37)
696 #define TB_SETROWS (WM_USER+39)
697 #define TB_GETROWS (WM_USER+40)
698 #define TB_GETBITMAPFLAGS (WM_USER+41)
699 #define TB_SETCMDID (WM_USER+42)
700 #define TB_CHANGEBITMAP (WM_USER+43)
701 #define TB_GETBITMAP (WM_USER+44)
702 #define TB_GETBUTTONTEXT32A (WM_USER+45)
703 #define TB_GETBUTTONTEXT32W (WM_USER+75)
704 #define TB_GETBUTTONTEXT WINELIB_NAME_AW(TB_GETBUTTONTEXT)
705 #define TB_REPLACEBITMAP (WM_USER+46)
706 #define TB_SETINDENT (WM_USER+47)
707 #define TB_SETIMAGELIST (WM_USER+48)
708 #define TB_GETIMAGELIST (WM_USER+49)
709 #define TB_LOADIMAGES (WM_USER+50)
710 #define TB_GETRECT (WM_USER+51) /* wParam is the Cmd instead of index */
711 #define TB_SETHOTIMAGELIST (WM_USER+52)
712 #define TB_GETHOTIMAGELIST (WM_USER+53)
713 #define TB_SETDISABLEDIMAGELIST (WM_USER+54)
714 #define TB_GETDISABLEDIMAGELIST (WM_USER+55)
715 #define TB_SETSTYLE (WM_USER+56)
716 #define TB_GETSTYLE (WM_USER+57)
717 #define TB_GETBUTTONSIZE (WM_USER+58)
718 #define TB_SETBUTTONWIDTH (WM_USER+59)
719 #define TB_SETMAXTEXTROWS (WM_USER+60)
720 #define TB_GETTEXTROWS (WM_USER+61)
721 #define TB_GETOBJECT (WM_USER+62)
722 #define TB_GETBUTTONINFO32W (WM_USER+63)
723 #define TB_GETBUTTONINFO32A (WM_USER+65)
724 #define TB_GETBUTTONINFO WINELIB_NAME_AW(TB_GETBUTTONINFO)
725 #define TB_SETBUTTONINFO32W (WM_USER+64)
726 #define TB_SETBUTTONINFO32A (WM_USER+66)
727 #define TB_SETBUTTONINFO WINELIB_NAME_AW(TB_SETBUTTONINFO)
728 #define TB_SETDRAWTEXTFLAGS (WM_USER+70)
729 #define TB_GETHOTITEM (WM_USER+71)
730 #define TB_SETHOTITEM (WM_USER+72)
731 #define TB_SETANCHORHIGHLIGHT (WM_USER+73)
732 #define TB_GETANCHORHIGHLIGHT (WM_USER+74)
733 #define TB_MAPACCELERATOR32A (WM_USER+78)
734 #define TB_MAPACCELERATOR32W (WM_USER+90)
735 #define TB_MAPACCELERATOR WINELIB_NAME_AW(TB_MAPACCELERATOR)
736 #define TB_GETINSERTMARK (WM_USER+79)
737 #define TB_SETINSERTMARK (WM_USER+80)
738 #define TB_INSERTMARKHITTEST (WM_USER+81)
739 #define TB_MOVEBUTTON (WM_USER+82)
740 #define TB_GETMAXSIZE (WM_USER+83)
741 #define TB_SETEXTENDEDSTYLE (WM_USER+84)
742 #define TB_GETEXTENDEDSTYLE (WM_USER+85)
743 #define TB_GETPADDING (WM_USER+86)
744 #define TB_SETPADDING (WM_USER+87)
745 #define TB_SETINSERTMARKCOLOR (WM_USER+88)
746 #define TB_GETINSERTMARKCOLOR (WM_USER+89)
747 #define TB_SETCOLORSCHEME CCM_SETCOLORSCHEME
748 #define TB_GETCOLORSCHEME CCM_GETCOLORSCHEME
749 #define TB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
750 #define TB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
752 #define TBN_FIRST (0U-700U)
753 #define TBN_LAST (0U-720U)
754 #define TBN_GETBUTTONINFO32A (TBN_FIRST-0)
755 #define TBN_GETBUTTONINFO32W (TBN_FIRST-20)
756 #define TBN_GETBUTTONINFO WINELIB_NAME_AW(TBN_GETBUTTONINFO)
757 #define TBN_GETINFOTIP32A (TBN_FIRST-18)
758 #define TBN_GETINFOTIP32W (TBN_FIRST-19)
759 #define TBN_GETINFOTIP WINELIB_NAME_AW(TBN_GETINFOTIP)
762 /* This is just for old CreateToolbar. */
763 /* Don't use it in new programs. */
764 typedef struct _OLDTBBUTTON
{
771 } OLDTBBUTTON
, *POLDTBBUTTON
, *LPOLDTBBUTTON
;
772 typedef const OLDTBBUTTON
*LPCOLDTBBUTTON
;
775 typedef struct _TBBUTTON
{
783 } TBBUTTON
, *PTBBUTTON
, *LPTBBUTTON
;
784 typedef const TBBUTTON
*LPCTBBUTTON
;
787 typedef struct _COLORMAP
{
790 } COLORMAP
, *LPCOLORMAP
;
792 typedef struct tagTBADDBITMAP
{
795 } TBADDBITMAP
, *LPTBADDBITMAP
;
797 #define HINST_COMMCTRL ((HINSTANCE32)-1)
798 #define IDB_STD_SMALL_COLOR 0
799 #define IDB_STD_LARGE_COLOR 1
800 #define IDB_VIEW_SMALL_COLOR 4
801 #define IDB_VIEW_LARGE_COLOR 5
802 #define IDB_HIST_SMALL_COLOR 8
803 #define IDB_HIST_LARGE_COLOR 9
811 #define STD_FILENEW 6
812 #define STD_FILEOPEN 7
813 #define STD_FILESAVE 8
814 #define STD_PRINTPRE 9
815 #define STD_PROPERTIES 10
818 #define STD_REPLACE 13
821 #define VIEW_LARGEICONS 0
822 #define VIEW_SMALLICONS 1
824 #define VIEW_DETAILS 3
825 #define VIEW_SORTNAME 4
826 #define VIEW_SORTSIZE 5
827 #define VIEW_SORTDATE 6
828 #define VIEW_SORTTYPE 7
829 #define VIEW_PARENTFOLDER 8
830 #define VIEW_NETCONNECT 9
831 #define VIEW_NETDISCONNECT 10
832 #define VIEW_NEWFOLDER 11
834 typedef struct tagTBSAVEPARAMSA
{
838 } TBSAVEPARAMS32A
, *LPTBSAVEPARAMS32A
;
840 typedef struct tagTBSAVEPARAMSW
{
843 LPCWSTR pszValueName
;
844 } TBSAVEPARAMSA32W
, *LPTBSAVEPARAMSA32W
;
846 #define TBSAVEPARAMS WINELIB_NAMEAW(TBSAVEPARAMS)
847 #define LPTBSAVEPARAMS WINELIB_NAMEAW(LPTBSAVEPARAMS)
861 } TBBUTTONINFO32A
, *LPTBBUTTONINFO32A
;
875 } TBBUTTONINFO32W
, *LPTBBUTTONINFO32W
;
877 #define TBBUTTONINFO WINELIB_NAMEAW(TBBUTTONINFO)
878 #define LPTBBUTTONINFO WINELIB_NAMEAW(LPTBBUTTONINFO)
880 typedef struct tagNMTBGETINFOTIPA
887 } NMTBGETINFOTIP32A
, *LPNMTBGETINFOTIP32A
;
889 typedef struct tagNMTBGETINFOTIPW
896 } NMTBGETINFOTIP32W
, *LPNMTBGETINFOTIP32W
;
898 #define NMTBGETINFOTIP WINELIB_NAMEAW(NMTBGETINFOFTIP)
899 #define LPNMTBGETINFOTIP WINELIB_NAMEAW(LPNMTBGETINFOTIP)
903 CreateToolbar(HWND32
, DWORD
, UINT32
, INT32
, HINSTANCE32
,
904 UINT32
, LPCOLDTBBUTTON
, INT32
);
907 CreateToolbarEx(HWND32
, DWORD
, UINT32
, INT32
,
908 HINSTANCE32
, UINT32
, LPCTBBUTTON
,
909 INT32
, INT32
, INT32
, INT32
, INT32
, UINT32
);
912 CreateMappedBitmap (HINSTANCE32
, INT32
, UINT32
, LPCOLORMAP
, INT32
);
917 #define TOOLTIPS_CLASS16 "tooltips_class"
918 #define TOOLTIPS_CLASS32A "tooltips_class32"
919 #define TOOLTIPS_CLASS32W L"tooltips_class32"
920 #define TOOLTIPS_CLASS WINELIB_NAME_AW(TOOLTIPS_CLASS)
922 #define INFOTIPSIZE 1024
924 #define TTS_ALWAYSTIP 0x01
925 #define TTS_NOPREFIX 0x02
927 #define TTF_IDISHWND 0x0001
928 #define TTF_CENTERTIP 0x0002
929 #define TTF_RTLREADING 0x0004
930 #define TTF_SUBCLASS 0x0010
931 #define TTF_TRACK 0x0020
932 #define TTF_ABSOLUTE 0x0080
933 #define TTF_TRANSPARENT 0x0100
934 #define TTF_DI_SETITEM 0x8000 /* valid only on the TTN_NEEDTEXT callback */
937 #define TTDT_AUTOMATIC 0
938 #define TTDT_RESHOW 1
939 #define TTDT_AUTOPOP 2
940 #define TTDT_INITIAL 3
943 #define TTM_ACTIVATE (WM_USER+1)
944 #define TTM_SETDELAYTIME (WM_USER+3)
945 #define TTM_ADDTOOL32A (WM_USER+4)
946 #define TTM_ADDTOOL32W (WM_USER+50)
947 #define TTM_ADDTOOL WINELIB_NAME_AW(TTM_ADDTOOL)
948 #define TTM_DELTOOL32A (WM_USER+5)
949 #define TTM_DELTOOL32W (WM_USER+51)
950 #define TTM_DELTOOL WINELIB_NAME_AW(TTM_DELTOOL)
951 #define TTM_NEWTOOLRECT32A (WM_USER+6)
952 #define TTM_NEWTOOLRECT32W (WM_USER+52)
953 #define TTM_NEWTOOLRECT WINELIB_NAME_AW(TTM_NEWTOOLRECT)
954 #define TTM_RELAYEVENT (WM_USER+7)
955 #define TTM_GETTOOLINFO32A (WM_USER+8)
956 #define TTM_GETTOOLINFO32W (WM_USER+53)
957 #define TTM_GETTOOLINFO WINELIB_NAME_AW(TTM_GETTOOLINFO)
958 #define TTM_SETTOOLINFO32A (WM_USER+9)
959 #define TTM_SETTOOLINFO32W (WM_USER+54)
960 #define TTM_SETTOOLINFO WINELIB_NAME_AW(TTM_SETTOOLINFO)
961 #define TTM_HITTEST32A (WM_USER+10)
962 #define TTM_HITTEST32W (WM_USER+55)
963 #define TTM_HITTEST WINELIB_NAME_AW(TTM_HITTEST)
964 #define TTM_GETTEXT32A (WM_USER+11)
965 #define TTM_GETTEXT32W (WM_USER+56)
966 #define TTM_GETTEXT WINELIB_NAME_AW(TTM_GETTEXT)
967 #define TTM_UPDATETIPTEXT32A (WM_USER+12)
968 #define TTM_UPDATETIPTEXT32W (WM_USER+57)
969 #define TTM_UPDATETIPTEXT WINELIB_NAME_AW(TTM_UPDATETIPTEXT)
970 #define TTM_GETTOOLCOUNT (WM_USER+13)
971 #define TTM_ENUMTOOLS32A (WM_USER+14)
972 #define TTM_ENUMTOOLS32W (WM_USER+58)
973 #define TTM_ENUMTOOLS WINELIB_NAME_AW(TTM_ENUMTOOLS)
974 #define TTM_GETCURRENTTOOL32A (WM_USER+15)
975 #define TTM_GETCURRENTTOOL32W (WM_USER+59)
976 #define TTM_GETCURRENTTOOL WINELIB_NAME_AW(TTM_GETCURRENTTOOL)
977 #define TTM_WINDOWFROMPOINT (WM_USER+16)
978 #define TTM_TRACKACTIVATE (WM_USER+17)
979 #define TTM_TRACKPOSITION (WM_USER+18)
980 #define TTM_SETTIPBKCOLOR (WM_USER+19)
981 #define TTM_SETTIPTEXTCOLOR (WM_USER+20)
982 #define TTM_GETDELAYTIME (WM_USER+21)
983 #define TTM_GETTIPBKCOLOR (WM_USER+22)
984 #define TTM_GETTIPTEXTCOLOR (WM_USER+23)
985 #define TTM_SETMAXTIPWIDTH (WM_USER+24)
986 #define TTM_GETMAXTIPWIDTH (WM_USER+25)
987 #define TTM_SETMARGIN (WM_USER+26)
988 #define TTM_GETMARGIN (WM_USER+27)
989 #define TTM_POP (WM_USER+28)
990 #define TTM_UPDATE (WM_USER+29)
993 #define TTN_FIRST (0U-520U)
994 #define TTN_LAST (0U-549U)
995 #define TTN_GETDISPINFO32A (TTN_FIRST-0)
996 #define TTN_GETDISPINFO32W (TTN_FIRST-10)
997 #define TTN_GETDISPINFO WINELIB_NAME_AW(TTN_GETDISPINFO)
998 #define TTN_SHOW (TTN_FIRST-1)
999 #define TTN_POP (TTN_FIRST-2)
1001 typedef struct tagTOOLINFOA
{
1010 } TTTOOLINFO32A
, *PTOOLINFO32A
, *LPTTTOOLINFO32A
;
1012 typedef struct tagTOOLINFOW
{
1021 } TTTOOLINFO32W
, *PTOOLINFO32W
, *LPTTTOOLINFO32W
;
1023 #define TTTOOLINFO WINELIB_NAME_AW(TTTOOLINFO)
1024 #define PTOOLINFO WINELIB_NAME_AW(PTOOLINFO)
1025 #define LPTTTOOLINFO WINELIB_NAME_AW(LPTTTOOLINFO)
1027 #define TTTOOLINFO_V1_SIZE32A CCSIZEOF_STRUCT(TTTOOLINFO32A, lpszText)
1028 #define TTTOOLINFO_V1_SIZE32W CCSIZEOF_STRUCT(TTTOOLINFO32W, lpszText)
1029 #define TTTOOLINFO_V1_SIZE WINELIB_NAME_AW(TTTOOLINFO_V1_SIZE)
1031 typedef struct _TT_HITTESTINFOA
1036 } TTHITTESTINFO32A
, *LPTTHITTESTINFO32A
;
1038 typedef struct _TT_HITTESTINFOW
1043 } TTHITTESTINFO32W
, *LPTTHITTESTINFO32W
;
1045 #define TTHITTESTINFO WINELIB_NAME_AW(TTHITTESTINFO)
1046 #define LPTTHITTESTINFO WINELIB_NAME_AW(LPTTHITTESTINFO)
1048 typedef struct tagNMTTDISPINFOA
1056 } NMTTDISPINFO32A
, *LPNMTTDISPINFO32A
;
1058 typedef struct tagNMTTDISPINFOW
1066 } NMTTDISPINFO32W
, *LPNMTTDISPINFO32W
;
1068 #define NMTTDISPINFO WINELIB_NAME_AW(NMTTDISPINFO)
1069 #define LPNMTTDISPINFO WINELIB_NAME_AW(LPNMTTDISPINFO)
1071 #define NMTTDISPINFO_V1_SIZE32A CCSIZEOF_STRUCT(NMTTDISPINFO32A, uFlags)
1072 #define NMTTDISPINFO_V1_SIZE32W CCSIZEOF_STRUCT(NMTTDISPINFO32W, uFlags)
1073 #define NMTTDISPINFO_V1_SIZE WINELIB_NAME_AW(NMTTDISPINFO_V1_SIZE)
1078 #define REBARCLASSNAME16 "ReBarWindow"
1079 #define REBARCLASSNAME32A "ReBarWindow32"
1080 #define REBARCLASSNAME32W L"ReBarWindow32"
1081 #define REBARCLASSNAME WINELIB_NAME_AW(REBARCLASSNAME)
1083 #define RBS_TOOLTIPS 0x0100
1084 #define RBS_VARHEIGHT 0x0200
1085 #define RBS_BANDBORDERS 0x0400
1086 #define RBS_FIXEDORDER 0x0800
1087 #define RBS_REGISTERDROP 0x1000
1088 #define RBS_AUTOSIZE 0x2000
1089 #define RBS_VERTICALGRIPPER 0x4000
1090 #define RBS_DBLCLKTOGGLE 0x8000
1092 #define RBIM_IMAGELIST 0x00000001
1094 #define RBBIM_STYLE 0x00000001
1095 #define RBBIM_COLORS 0x00000002
1096 #define RBBIM_TEXT 0x00000004
1097 #define RBBIM_IMAGE 0x00000008
1098 #define RBBIM_CHILD 0x00000010
1099 #define RBBIM_CHILDSIZE 0x00000020
1100 #define RBBIM_SIZE 0x00000040
1101 #define RBBIM_BACKGROUND 0x00000080
1102 #define RBBIM_ID 0x00000100
1103 #define RBBIM_IDEALSIZE 0x00000200
1104 #define RBBIM_LPARAM 0x00000400
1105 #define RBBIM_HEADERSIZE 0x00000800
1107 #define RBBS_BREAK 0x00000001
1108 #define RBBS_FIXEDSIZE 0x00000002
1109 #define RBBS_CHILDEDGE 0x00000004
1110 #define RBBS_HIDDEN 0x00000008
1111 #define RBBS_NOVERT 0x00000010
1112 #define RBBS_FIXEDBMP 0x00000020
1113 #define RBBS_VARIABLEHEIGHT 0x00000040
1114 #define RBBS_GRIPPERALWAYS 0x00000080
1115 #define RBBS_NOGRIPPER 0x00000100
1117 #define RBNM_ID 0x00000001
1118 #define RBNM_STYLE 0x00000002
1119 #define RBNM_LPARAM 0x00000004
1121 #define RBHT_NOWHERE 0x0001
1122 #define RBHT_CAPTION 0x0002
1123 #define RBHT_CLIENT 0x0003
1124 #define RBHT_GRABBER 0x0004
1126 #define RB_INSERTBAND32A (WM_USER+1)
1127 #define RB_INSERTBAND32W (WM_USER+10)
1128 #define RB_INSERTBAND WINELIB_NAME_AW(RB_INSERTBAND)
1129 #define RB_DELETEBAND (WM_USER+2)
1130 #define RB_GETBARINFO (WM_USER+3)
1131 #define RB_SETBARINFO (WM_USER+4)
1132 #define RB_GETBANDINFO32 (WM_USER+5) /* just for compatibility */
1133 #define RB_SETBANDINFO32A (WM_USER+6)
1134 #define RB_SETBANDINFO32W (WM_USER+11)
1135 #define RB_SETBANDINFO WINELIB_NAME_AW(RB_SETBANDINFO)
1136 #define RB_SETPARENT (WM_USER+7)
1137 #define RB_HITTEST (WM_USER+8)
1138 #define RB_GETRECT (WM_USER+9)
1139 #define RB_GETBANDCOUNT (WM_USER+12)
1140 #define RB_GETROWCOUNT (WM_USER+13)
1141 #define RB_GETROWHEIGHT (WM_USER+14)
1142 #define RB_IDTOINDEX (WM_USER+16)
1143 #define RB_GETTOOLTIPS (WM_USER+17)
1144 #define RB_SETTOOLTIPS (WM_USER+18)
1145 #define RB_SETBKCOLOR (WM_USER+19)
1146 #define RB_GETBKCOLOR (WM_USER+20)
1147 #define RB_SETTEXTCOLOR (WM_USER+21)
1148 #define RB_GETTEXTCOLOR (WM_USER+22)
1149 #define RB_SIZETORECT (WM_USER+23)
1150 #define RB_BEGINDRAG (WM_USER+24)
1151 #define RB_ENDDRAG (WM_USER+25)
1152 #define RB_DRAGMOVE (WM_USER+26)
1153 #define RB_GETBARHEIGHT (WM_USER+27)
1154 #define RB_GETBANDINFO32W (WM_USER+28)
1155 #define RB_GETBANDINFO32A (WM_USER+29)
1156 #define RB_GETBANDINFO WINELIB_NAME_AW(RB_GETBANDINFO)
1157 #define RB_MINIMIZEBAND (WM_USER+30)
1158 #define RB_MAXIMIZEBAND (WM_USER+31)
1159 #define RB_GETBANDORDERS (WM_USER+34)
1160 #define RB_SHOWBAND (WM_USER+35)
1161 #define RB_SETPALETTE (WM_USER+37)
1162 #define RB_GETPALETTE (WM_USER+38)
1163 #define RB_MOVEBAND (WM_USER+39)
1164 #define RB_GETDROPTARGET CCM_GETDROPTARGET
1165 #define RB_SETCOLORSCHEME CCM_SETCOLORSCHEME
1166 #define RB_GETCOLORSCHEME CCM_GETCOLORSCHEME
1167 #define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1168 #define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1170 #define RBN_FIRST (0U-831U)
1171 #define RBN_LAST (0U-859U)
1172 #define RBN_HEIGHTCHANGE (RBN_FIRST-0)
1173 #define RBN_GETOBJECT (RBN_FIRST-1)
1174 #define RBN_LAYOUTCHANGED (RBN_FIRST-2)
1175 #define RBN_AUTOSIZE (RBN_FIRST-3)
1176 #define RBN_BEGINDRAG (RBN_FIRST-4)
1177 #define RBN_ENDDRAG (RBN_FIRST-5)
1178 #define RBN_DELETINGBAND (RBN_FIRST-6)
1179 #define RBN_DELETEDBAND (RBN_FIRST-7)
1180 #define RBN_CHILDSIZE (RBN_FIRST-8)
1182 typedef struct tagREBARINFO
1187 } REBARINFO
, *LPREBARINFO
;
1189 typedef struct tagREBARBANDINFOA
1211 } REBARBANDINFO32A
, *LPREBARBANDINFO32A
;
1213 typedef REBARBANDINFO32A
const *LPCREBARBANDINFO32A
;
1215 typedef struct tagREBARBANDINFOW
1237 } REBARBANDINFO32W
, *LPREBARBANDINFO32W
;
1239 typedef REBARBANDINFO32W
const *LPCREBARBANDINFO32W
;
1241 #define REBARBANDINFO WINELIB_NAME_AW(REBARBANDINFO)
1242 #define LPREBARBANDINFO WINELIB_NAME_AW(LPREBARBANDINFO)
1243 #define LPCREBARBANDINFO WINELIB_NAME_AW(LPCREBARBANDINFO)
1245 #define REBARBANDINFO_V3_SIZE32A CCSIZEOF_STRUCT(REBARBANDINFO32A, wID)
1246 #define REBARBANDINFO_V3_SIZE32W CCSIZEOF_STRUCT(REBARBANDINFO32W, wID)
1247 #define REBARBANDINFO_V3_SIZE WINELIB_NAME_AW(REBARBANDINFO_V3_SIZE)
1249 typedef struct tagNMREBARCHILDSIZE
1256 } NMREBARCHILDSIZE
, *LPNMREBARCHILDSIZE
;
1258 typedef struct tagNMREBAR
1266 } NMREBAR
, *LPNMREBAR
;
1268 typedef struct tagNMRBAUTOSIZE
1274 } NMRBAUTOSIZE
, *LPNMRBAUTOSIZE
;
1276 typedef struct _RB_HITTESTINFO
1281 } RBHITTESTINFO
, *LPRBHITTESTINFO
;
1284 /* Trackbar control */
1286 #define TRACKBAR_CLASS16 "msctls_trackbar"
1287 #define TRACKBAR_CLASS32A "msctls_trackbar32"
1288 #define TRACKBAR_CLASS32W L"msctls_trackbar32"
1289 #define TRACKBAR_CLASS WINELIB_NAME_AW(TRACKBAR_CLASS)
1291 #define TBS_AUTOTICKS 0x0001
1292 #define TBS_VERT 0x0002
1293 #define TBS_HORZ 0x0000
1294 #define TBS_TOP 0x0004
1295 #define TBS_BOTTOM 0x0000
1296 #define TBS_LEFT 0x0004
1297 #define TBS_RIGHT 0x0000
1298 #define TBS_BOTH 0x0008
1299 #define TBS_NOTICKS 0x0010
1300 #define TBS_ENABLESELRANGE 0x0020
1301 #define TBS_FIXEDLENGTH 0x0040
1302 #define TBS_NOTHUMB 0x0080
1303 #define TBS_TOOLTIPS 0x0100
1307 #define TBTS_BOTTOM 2
1308 #define TBTS_RIGHT 3
1311 #define TB_LINEDOWN 1
1313 #define TB_PAGEDOWN 3
1314 #define TB_THUMBPOSITION 4
1315 #define TB_THUMBTRACK 5
1318 #define TB_ENDTRACK 8
1320 #define TBCD_TICS 0x0001
1321 #define TBCD_THUMB 0x0002
1322 #define TBCD_CHANNEL 0x0003
1324 #define TBM_GETPOS (WM_USER)
1325 #define TBM_GETRANGEMIN (WM_USER+1)
1326 #define TBM_GETRANGEMAX (WM_USER+2)
1327 #define TBM_GETTIC (WM_USER+3)
1328 #define TBM_SETTIC (WM_USER+4)
1329 #define TBM_SETPOS (WM_USER+5)
1330 #define TBM_SETRANGE (WM_USER+6)
1331 #define TBM_SETRANGEMIN (WM_USER+7)
1332 #define TBM_SETRANGEMAX (WM_USER+8)
1333 #define TBM_CLEARTICS (WM_USER+9)
1334 #define TBM_SETSEL (WM_USER+10)
1335 #define TBM_SETSELSTART (WM_USER+11)
1336 #define TBM_SETSELEND (WM_USER+12)
1337 #define TBM_GETPTICS (WM_USER+14)
1338 #define TBM_GETTICPOS (WM_USER+15)
1339 #define TBM_GETNUMTICS (WM_USER+16)
1340 #define TBM_GETSELSTART (WM_USER+17)
1341 #define TBM_GETSELEND (WM_USER+18)
1342 #define TBM_CLEARSEL (WM_USER+19)
1343 #define TBM_SETTICFREQ (WM_USER+20)
1344 #define TBM_SETPAGESIZE (WM_USER+21)
1345 #define TBM_GETPAGESIZE (WM_USER+22)
1346 #define TBM_SETLINESIZE (WM_USER+23)
1347 #define TBM_GETLINESIZE (WM_USER+24)
1348 #define TBM_GETTHUMBRECT (WM_USER+25)
1349 #define TBM_GETCHANNELRECT (WM_USER+26)
1350 #define TBM_SETTHUMBLENGTH (WM_USER+27)
1351 #define TBM_GETTHUMBLENGTH (WM_USER+28)
1352 #define TBM_SETTOOLTIPS (WM_USER+29)
1353 #define TBM_GETTOOLTIPS (WM_USER+30)
1354 #define TBM_SETTIPSIDE (WM_USER+31)
1355 #define TBM_SETBUDDY (WM_USER+32)
1356 #define TBM_GETBUDDY (WM_USER+33)
1357 #define TBM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1358 #define TBM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1363 #define WC_PAGESCROLLER32A "SysPager"
1364 #define WC_PAGESCROLLER32W L"SysPager"
1365 #define WC_PAGESCROLLER WINELIB_NAME_AW(WC_PAGESCROLLER)
1367 #define PGS_VERT 0x00000000
1368 #define PGS_HORZ 0x00000001
1369 #define PGS_AUTOSCROLL 0x00000002
1370 #define PGS_DRAGNDROP 0x00000004
1372 #define PGF_INVISIBLE 0
1373 #define PGF_NORMAL 1
1374 #define PGF_GRAYED 2
1375 #define PGF_DEPRESSED 4
1378 #define PGB_TOPORLEFT 0
1379 #define PGB_BOTTOMORRIGHT 1
1381 /* only used with PGN_SCROLL */
1382 #define PGF_SCROLLUP 1
1383 #define PGF_SCROLLDOWN 2
1384 #define PGF_SCROLLLEFT 4
1385 #define PGF_SCROLLRIGHT 8
1388 #define PGK_CONTROL 2
1391 /* only used with PGN_CALCSIZE */
1392 #define PGF_CALCWIDTH 1
1393 #define PGF_CALCHEIGHT 2
1395 #define PGM_FIRST 0x1400
1396 #define PGM_SETCHILD (PGM_FIRST+1)
1397 #define PGM_RECALCSIZE (PGM_FIRST+2)
1398 #define PGM_FORWARDMOUSE (PGM_FIRST+3)
1399 #define PGM_SETBKCOLOR (PGM_FIRST+4)
1400 #define PGM_GETBKCOLOR (PGM_FIRST+5)
1401 #define PGM_SETBORDER (PGM_FIRST+6)
1402 #define PGM_GETBORDER (PGM_FIRST+7)
1403 #define PGM_SETPOS (PGM_FIRST+8)
1404 #define PGM_GETPOS (PGM_FIRST+9)
1405 #define PGM_SETBUTTONSIZE (PGM_FIRST+10)
1406 #define PGM_GETBUTTONSIZE (PGM_FIRST+11)
1407 #define PGM_GETBUTTONSTATE (PGM_FIRST+12)
1408 #define PGM_GETDROPTARGET CCM_GETDROPTARGET
1410 #define PGN_FIRST (0U-900U)
1411 #define PGN_LAST (0U-950U)
1412 #define PGN_SCROLL (PGN_FIRST-1)
1413 #define PGN_CALCSIZE (PGN_FIRST-2)
1424 } NMPGSCROLL
, *LPNMPGSCROLL
;
1432 } NMPGCALCSIZE
, *LPNMPGCALCSIZE
;
1435 /* Treeview control */
1437 #define WC_TREEVIEW32A "SysTreeView32"
1438 #define WC_TREEVIEW32W L"SysTreeView32"
1439 #define WC_TREEVIEW WINELIB_NAME_AW(WC_TREEVIEW)
1441 #define TVSIL_NORMAL 0
1442 #define TVSIL_STATE 2
1444 #define TV_FIRST 0x1100
1445 #define TVM_INSERTITEM32A (TV_FIRST+0)
1446 #define TVM_INSERTITEM32W (TV_FIRST+50)
1447 #define TVM_INSERTITEM WINELIB_NAME_AW(TVM_INSERTITEM)
1448 #define TVM_DELETEITEM (TV_FIRST+1)
1449 #define TVM_EXPAND (TV_FIRST+2)
1450 #define TVM_GETITEMRECT (TV_FIRST+4)
1451 #define TVM_GETCOUNT (TV_FIRST+5)
1452 #define TVM_GETINDENT (TV_FIRST+6)
1453 #define TVM_SETINDENT (TV_FIRST+7)
1454 #define TVM_GETIMAGELIST (TV_FIRST+8)
1455 #define TVM_SETIMAGELIST (TV_FIRST+9)
1456 #define TVM_GETNEXTITEM (TV_FIRST+10)
1457 #define TVM_SELECTITEM (TV_FIRST+11)
1458 #define TVM_GETITEM32A (TV_FIRST+12)
1459 #define TVM_GETITEM32W (TV_FIRST+62)
1460 #define TVM_GETITEM WINELIB_NAME_AW(TVM_GETITEM)
1461 #define TVM_SETITEM32A (TV_FIRST+13)
1462 #define TVM_SETITEM32W (TV_FIRST+63)
1463 #define TVM_SETITEM WINELIB_NAME_AW(TVM_SETITEM)
1464 #define TVM_EDITLABEL32A (TV_FIRST+14)
1465 #define TVM_EDITLABEL32W (TV_FIRST+65)
1466 #define TVM_EDITLABEL WINELIB_NAME_AW(TVM_EDITLABEL)
1467 #define TVM_GETEDITCONTROL (TV_FIRST+15)
1468 #define TVM_GETVISIBLECOUNT (TV_FIRST+16)
1469 #define TVM_HITTEST (TV_FIRST+17)
1470 #define TVM_CREATEDRAGIMAGE (TV_FIRST+18)
1471 #define TVM_SORTCHILDREN (TV_FIRST+19)
1472 #define TVM_ENSUREVISIBLE (TV_FIRST+20)
1473 #define TVM_SORTCHILDRENCB (TV_FIRST+21)
1474 #define TVM_ENDEDITLABELNOW (TV_FIRST+22)
1475 #define TVM_GETISEARCHSTRING32A (TV_FIRST+23)
1476 #define TVM_GETISEARCHSTRING32W (TV_FIRST+64)
1477 #define TVM_GETISEARCHSTRING WINELIB_NAME_AW(TVM_GETISEARCHSTRING)
1478 #define TVM_SETTOOLTIPS (TV_FIRST+24)
1479 #define TVM_GETTOOLTIPS (TV_FIRST+25)
1480 #define TVM_SETINSERTMARK (TV_FIRST+26)
1481 #define TVM_SETITEMHEIGHT (TV_FIRST+27)
1482 #define TVM_GETITEMHEIGHT (TV_FIRST+28)
1483 #define TVM_SETBKCOLOR (TV_FIRST+29)
1484 #define TVM_SETTEXTCOLOR (TV_FIRST+30)
1485 #define TVM_GETBKCOLOR (TV_FIRST+31)
1486 #define TVM_GETTEXTCOLOR (TV_FIRST+32)
1487 #define TVM_SETSCROLLTIME (TV_FIRST+33)
1488 #define TVM_GETSCROLLTIME (TV_FIRST+34)
1489 #define TVM_SETINSERTMARKCOLOR (TV_FIRST+37)
1490 #define TVM_GETINSERTMARKCOLOR (TV_FIRST+38)
1491 #define TVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1492 #define TVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1494 #define TVN_FIRST (0U-400U)
1495 #define TVN_LAST (0U-499U)
1497 #define TVN_SELCHANGING (TVN_FIRST-1)
1498 #define TVN_SELCHANGED (TVN_FIRST-2)
1499 #define TVN_GETDISPINFO (TVN_FIRST-3)
1500 #define TVN_SETDISPINFO (TVN_FIRST-4)
1501 #define TVN_ITEMEXPANDING (TVN_FIRST-5)
1502 #define TVN_ITEMEXPANDED (TVN_FIRST-6)
1503 #define TVN_BEGINDRAG (TVN_FIRST-7)
1504 #define TVN_BEGINRDRAG (TVN_FIRST-8)
1505 #define TVN_DELETEITEM (TVN_FIRST-9)
1506 #define TVN_BEGINLABELEDIT (TVN_FIRST-10)
1507 #define TVN_ENDLABELEDIT (TVN_FIRST-11)
1508 #define TVN_KEYDOWN (TVN_FIRST-12)
1509 #define TVN_GETINFOTIPA (TVN_FIRST-13)
1510 #define TVN_GETINFOTIPW (TVN_FIRST-14)
1511 #define TVN_SINGLEEXPAND (TVN_FIRST-15)
1514 #define TVN_SELCHANGINGW (TVN_FIRST-50)
1515 #define TVN_SELCHANGEDW (TVN_FIRST-51)
1516 #define TVN_GETDISPINFOW (TVN_FIRST-52)
1517 #define TVN_SETDISPINFOW (TVN_FIRST-53)
1518 #define TVN_ITEMEXPANDINGW (TVN_FIRST-54)
1519 #define TVN_ITEMEXPANDEDW (TVN_FIRST-55)
1520 #define TVN_BEGINDRAGW (TVN_FIRST-56)
1521 #define TVN_BEGINRDRAGW (TVN_FIRST-57)
1522 #define TVN_DELETEITEMW (TVN_FIRST-58)
1523 #define TVN_BEGINLABELEDITW (TVN_FIRST-59)
1524 #define TVN_ENDLABELEDITW (TVN_FIRST-60)
1528 #define TVIF_TEXT 0x0001
1529 #define TVIF_IMAGE 0x0002
1530 #define TVIF_PARAM 0x0004
1531 #define TVIF_STATE 0x0008
1532 #define TVIF_HANDLE 0x0010
1533 #define TVIF_SELECTEDIMAGE 0x0020
1534 #define TVIF_CHILDREN 0x0040
1535 #define TVIF_INTEGRAL 0x0080
1536 #define TVIF_DI_SETITEM 0x1000
1538 #define TVI_ROOT 0xffff0000 /* -65536 */
1539 #define TVI_FIRST 0xffff0001 /* -65535 */
1540 #define TVI_LAST 0xffff0002 /* -65534 */
1541 #define TVI_SORT 0xffff0003 /* -65533 */
1543 #define TVIS_FOCUSED 0x0001
1544 #define TVIS_SELECTED 0x0002
1545 #define TVIS_CUT 0x0004
1546 #define TVIS_DROPHILITED 0x0008
1547 #define TVIS_BOLD 0x0010
1548 #define TVIS_EXPANDED 0x0020
1549 #define TVIS_EXPANDEDONCE 0x0040
1550 #define TVIS_OVERLAYMASK 0x0f00
1551 #define TVIS_STATEIMAGEMASK 0xf000
1552 #define TVIS_USERMASK 0xf000
1554 #define TVHT_NOWHERE 0x0001
1555 #define TVHT_ONITEMICON 0x0002
1556 #define TVHT_ONITEMLABEL 0x0004
1557 #define TVHT_ONITEMINDENT 0x0008
1558 #define TVHT_ONITEMBUTTON 0x0010
1559 #define TVHT_ONITEMRIGHT 0x0020
1560 #define TVHT_ONITEMSTATEICON 0x0040
1561 #define TVHT_ONITEM 0x0046
1562 #define TVHT_ABOVE 0x0100
1563 #define TVHT_BELOW 0x0200
1564 #define TVHT_TORIGHT 0x0400
1565 #define TVHT_TOLEFT 0x0800
1567 #define TVS_HASBUTTONS 0x0001
1568 #define TVS_HASLINES 0x0002
1569 #define TVS_LINESATROOT 0x0004
1570 #define TVS_EDITLABELS 0x0008
1571 #define TVS_DISABLEDRAGDROP 0x0010
1572 #define TVS_SHOWSELALWAYS 0x0020
1573 #define TVS_RTLREADING 0x0040
1574 #define TVS_NOTOOLTIPS 0x0080
1575 #define TVS_CHECKBOXES 0x0100
1576 #define TVS_TRACKSELECT 0x0200
1577 #define TVS_SINGLEEXPAND 0x0400
1578 #define TVS_INFOTIP 0x0800
1579 #define TVS_FULLROWSELECT 0x1000
1580 #define TVS_NOSCROLL 0x2000
1581 #define TVS_NONEVENHEIGHT 0x4000
1583 #define TVS_SHAREDIMAGELISTS 0x0000
1584 #define TVS_PRIVATEIMAGELISTS 0x0400
1587 #define TVE_COLLAPSE 0x0001
1588 #define TVE_EXPAND 0x0002
1589 #define TVE_TOGGLE 0x0003
1590 #define TVE_EXPANDPARTIAL 0x4000
1591 #define TVE_COLLAPSERESET 0x8000
1595 #define TVGN_PREVIOUS 2
1596 #define TVGN_PARENT 3
1597 #define TVGN_CHILD 4
1598 #define TVGN_FIRSTVISIBLE 5
1599 #define TVGN_NEXTVISIBLE 6
1600 #define TVGN_PREVIOUSVISIBLE 7
1601 #define TVGN_DROPHILITE 8
1602 #define TVGN_CARET 9
1603 #define TVGN_LASTVISIBLE 10
1605 #define TVC_UNKNOWN 0x00
1606 #define TVC_BYMOUSE 0x01
1607 #define TVC_BYKEYBOARD 0x02
1610 typedef HANDLE32 HTREEITEM
;
1623 } TV_ITEM
, *LPTVITEM
;
1637 } TV_ITEMEX
, *LPTVITEMEX
;
1639 #define TVITEM TV_ITEM
1643 typedef struct tagTVINSERTSTRUCT
{
1645 HTREEITEM hInsertAfter
;
1647 } TVINSERTSTRUCT
, *LPTVINSERTSTRUCT
;
1649 typedef struct tagNMTREEVIEW
{
1655 } NMTREEVIEW
, *LPNMTREEVIEW
;
1657 typedef struct tagTVDISPINFO
{
1660 } NMTVDISPINFO
, *LPNMTVDISPINFO
;
1664 typedef struct tagTVHITTESTINFO
{
1668 } TVHITTESTINFO
, *LPTVHITTESTINFO
;
1671 #define TreeView_InsertItem(hwndHD, phdi) \
1672 (INT32)SendMessage32A((hwnd), TVM_INSERTITEM, 0, \
1673 (LPARAM)(LPTV_INSERTSTRUCT)(phdi))
1674 #define TreeView_DeleteItem(hwnd, hItem) \
1675 (BOOL32)SendMessage32A((hwnd), TVM_DELETEITEM, 0, (LPARAM)(HTREEITEM)(hItem))
1676 #define TreeView_DeleteAllItems(hwnd) \
1677 (BOOL32)SendMessage32A((hwnd), TVM_DELETEITEM, 0, (LPARAM)TVI_ROOT)
1678 #define TreeView_Expand(hwnd, hitem, code) \
1679 (BOOL32)SendMessage32A((hwnd), TVM_EXPAND, (WPARAM)code, \
1680 (LPARAM)(HTREEITEM)(hitem))
1682 #define TreeView_GetItemRect(hwnd, hitem, prc, code) \
1683 (*(HTREEITEM *)prc = (hitem), (BOOL)SendMessage32A((hwnd), \
1684 TVM_GETITEMRECT, (WPARAM32)(code), (LPARAM)(RECT *)(prc)))
1686 #define TreeView_GetCount(hwnd) \
1687 (UINT32)SendMessage32A((hwnd), TVM_GETCOUNT, 0, 0)
1688 #define TreeView_GetIndent(hwnd) \
1689 (UINT32)SendMessage32A((hwnd), TVM_GETINDENT, 0, 0)
1690 #define TreeView_SetIndent(hwnd, indent) \
1691 (BOOL32)SendMessage32A((hwnd), TVM_SETINDENT, (WPARAM)indent, 0)
1693 #define TreeView_GetImageList(hwnd, iImage) \
1694 (HIMAGELIST)SendMessage32A((hwnd), TVM_GETIMAGELIST, iImage, 0)
1696 #define TreeView_SetImageList(hwnd, himl, iImage) \
1697 (HIMAGELIST)SendMessage32A((hwnd), TVM_SETIMAGELIST, iImage, \
1698 (LPARAM)(UINT32)(HIMAGELIST)(himl))
1700 #define TreeView_GetNextItem(hwnd, hitem, code) \
1701 (HTREEITEM)SendMessage32A((hwnd), TVM_GETNEXTITEM, (WPARAM)code,\
1702 (LPARAM)(HTREEITEM) (hitem))
1704 #define TreeView_GetChild(hwnd, hitem) \
1705 TreeView_GetNextItem(hwnd, hitem , TVGN_CHILD)
1706 #define TreeView_GetNextSibling(hwnd, hitem) \
1707 TreeView_GetNextItem(hwnd, hitem , TVGN_NEXT)
1708 #define TreeView_GetPrevSibling(hwnd, hitem) \
1709 TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUS)
1710 #define TreeView_GetParent(hwnd, hitem) \
1711 TreeView_GetNextItem(hwnd, hitem , TVGN_PARENT)
1712 #define TreeView_GetFirstVisible(hwnd) \
1713 TreeView_GetNextItem(hwnd, NULL, TVGN_FIRSTVISIBLE)
1714 #define TreeView_GetLastVisible(hwnd) \
1715 TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE)
1716 #define TreeView_GetNextVisible(hwnd, hitem) \
1717 TreeView_GetNextItem(hwnd, hitem , TVGN_NEXTVISIBLE)
1718 #define TreeView_GetPrevVisible(hwnd, hitem) \
1719 TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUSVISIBLE)
1720 #define TreeView_GetSelection(hwnd) \
1721 TreeView_GetNextItem(hwnd, NULL, TVGN_CARET)
1722 #define TreeView_GetDropHilight(hwnd) \
1723 TreeView_GetNextItem(hwnd, NULL, TVGN_DROPHILITE)
1724 #define TreeView_GetRoot(hwnd) \
1725 TreeView_GetNextItem(hwnd, NULL, TVGN_ROOT)
1726 #define TreeView_GetLastVisible(hwnd) \
1727 TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE)
1730 #define TreeView_Select(hwnd, hitem, code) \
1731 (UINT32)SendMessage32A((hwnd), TVM_SELECTITEM, (WPARAM)code, \
1732 (LPARAM)(UINT32)(hitem))
1735 #define TreeView_SelectItem(hwnd, hitem) \
1736 TreeView_Select(hwnd, hitem, TVGN_CARET)
1737 #define TreeView_SelectDropTarget(hwnd, hitem) \
1738 TreeView_Select(hwnd, hitem, TVGN_DROPHILITE)
1740 #define TreeView_SelectSetFirstVisible(hwnd, hitem) \
1741 TreeView_Select(hwnd, hitem, TVGN_FIRSTVISIBLE)
1744 #define TreeView_GetItem(hwnd, pitem) \
1745 (BOOL32)SendMessage32A((hwnd), TVM_GETITEM, 0, (LPARAM) (TV_ITEM *)(pitem))
1747 #define TreeView_SetItem(hwnd, pitem) \
1748 (BOOL32)SendMessage32A((hwnd), TVM_SETITEM, 0, (LPARAM)(const TV_ITEM *)(pitem))
1750 #define TreeView_EditLabel(hwnd, hitem) \
1751 (HWND)SendMessage32A((hwnd), TVM_EDITLABEL, 0, (LPARAM)(HTREEITEM)(hitem))
1754 #define TreeView_GetEditControl(hwnd) \
1755 (HWND)SendMessage32A((hwnd), TVM_GETEDITCONTROL, 0, 0)
1757 #define TreeView_GetVisibleCount(hwnd) \
1758 (UINT32)SendMessage32A((hwnd), TVM_GETVISIBLECOUNT, 0, 0)
1760 #define TreeView_HitTest(hwnd, lpht) \
1761 (HTREEITEM)SendMessage32A((hwnd), TVM_HITTEST, 0,\
1762 (LPARAM)(LPTV_HITTESTINFO)(lpht))
1764 #define TreeView_CreateDragImage(hwnd, hitem) \
1765 (HIMAGELIST)SendMessage32A((hwnd), TVM_CREATEDRAGIMAGE, 0,\
1766 (LPARAM)(HTREEITEM)(hitem))
1768 #define TreeView_SortChildren(hwnd, hitem, recurse) \
1769 (BOOL)SendMessage32A((hwnd), TVM_SORTCHILDREN, (WPARAM)recurse,\
1770 (LPARAM)(HTREEITEM)(hitem))
1772 #define TreeView_EnsureVisible(hwnd, hitem) \
1773 (BOOL)SendMessage32A((hwnd), TVM_ENSUREVISIBLE, 0, (LPARAM)(UINT32)(hitem))
1775 #define TreeView_SortChildrenCB(hwnd, psort, recurse) \
1776 (BOOL)SendMessage32A((hwnd), TVM_SORTCHILDRENCB, (WPARAM)recurse, \
1777 (LPARAM)(LPTV_SORTCB)(psort))
1779 #define TreeView_EndEditLabelNow(hwnd, fCancel) \
1780 (BOOL)SendMessage32A((hwnd), TVM_ENDEDITLABELNOW, (WPARAM)fCancel, 0)
1782 #define TreeView_GetISearchString(hwndTV, lpsz) \
1783 (BOOL)SendMessage32A((hwndTV), TVM_GETISEARCHSTRING, 0, \
1784 (LPARAM)(LPTSTR)lpsz)
1786 #define TreeView_SetItemHeight(hwnd, iHeight) \
1787 (INT32)SendMessage32A((hwnd), TVM_SETITEMHEIGHT, (WPARAM)iHeight, 0)
1788 #define TreeView_GetItemHeight(hwnd) \
1789 (INT32)SendMessage32A((hwnd), TVM_GETITEMHEIGHT, 0, 0)
1791 #define TreeView_SetBkColor(hwnd, clr) \
1792 (COLORREF)SendMessage32A((hwnd), TVM_SETBKCOLOR, 0, (LPARAM)clr)
1794 #define TreeView_SetTextColor(hwnd, clr) \
1795 (COLORREF)SendMessage32A((hwnd), TVM_SETTEXTCOLOR, 0, (LPARAM)clr)
1797 #define TreeView_GetBkColor(hwnd) \
1798 (COLORREF)SendMessage32A((hwnd), TVM_GETBKCOLOR, 0, 0)
1800 #define TreeView_GetTextColor(hwnd) \
1801 (COLORREF)SendMessage32A((hwnd), TVM_GETTEXTCOLOR, 0, 0)
1803 #define TreeView_SetScrollTime(hwnd, uTime) \
1804 (UINT32)SendMessage32A((hwnd), TVM_SETSCROLLTIME, uTime, 0)
1806 #define TreeView_GetScrollTime(hwnd) \
1807 (UINT32)SendMessage32A((hwnd), TVM_GETSCROLLTIME, 0, 0)
1809 #define TreeView_SetInsertMarkColor(hwnd, clr) \
1810 (COLORREF)SendMessage32A((hwnd), TVM_SETINSERTMARKCOLOR, 0, (LPARAM)clr)
1811 #define TreeView_GetInsertMarkColor(hwnd) \
1812 (COLORREF)SendMessage32A((hwnd), TVM_GETINSERTMARKCOLOR, 0, 0)
1822 /* Listview control */
1824 #define WC_LISTVIEW32A "SysListView32"
1825 #define WC_LISTVIEW32W L"SysListView32"
1826 #define WC_LISTVIEW WINELIB_NAME_AW(WC_LISTVIEW)
1828 #define LVS_ICON 0x0000
1829 #define LVS_REPORT 0x0001
1830 #define LVS_SMALLICON 0x0002
1831 #define LVS_LIST 0x0003
1832 #define LVS_TYPEMASK 0x0003
1833 #define LVS_SINGLESEL 0x0004
1834 #define LVS_SHOWSELALWAYS 0x0008
1835 #define LVS_SORTASCENDING 0x0010
1836 #define LVS_SORTDESCENDING 0x0020
1837 #define LVS_SHAREIMAGELISTS 0x0040
1838 #define LVS_NOLABELWRAP 0x0080
1839 #define LVS_AUTOARRANGE 0x0100
1840 #define LVS_EDITLABELS 0x0200
1841 #define LVS_OWNERDATA 0x1000
1842 #define LVS_NOSCROLL 0x2000
1843 #define LVS_TYPESTYLEMASK 0xfc00
1844 #define LVS_ALIGNTOP 0x0000
1845 #define LVS_ALIGNLEFT 0x0800
1846 #define LVS_ALIGNMASK 0x0c00
1847 #define LVS_OWNERDRAWFIXED 0x0400
1848 #define LVS_NOCOLUMNHEADER 0x4000
1849 #define LVS_NOSORTHEADER 0x8000
1851 #define LVCF_FMT 0x0001
1852 #define LVCF_WIDTH 0x0002
1853 #define LVCF_TEXT 0x0004
1854 #define LVCF_SUBITEM 0x0008
1855 #define LVCF_IMAGE 0x0010
1856 #define LVCF_ORDER 0x0020
1858 #define LVCFMT_LEFT 0x0000
1859 #define LVCFMT_RIGHT 0x0001
1860 #define LVCFMT_CENTER 0x0002
1861 #define LVCFMT_JUSTIFYMASK 0x0003
1862 #define LVCFMT_IMAGE 0x0800
1863 #define LVCFMT_BITMAP_ON_RIGHT 0x1000
1864 #define LVCFMT_COL_HAS_IMAGES 0x8000
1866 #define LVSIL_NORMAL 0
1867 #define LVSIL_SMALL 1
1868 #define LVSIL_STATE 2
1870 #define LVIF_TEXT 0x0001
1871 #define LVIF_IMAGE 0x0002
1872 #define LVIF_PARAM 0x0004
1873 #define LVIF_STATE 0x0008
1874 #define LVIF_INDENT 0x0010
1875 #define LVIF_NORECOMPUTE 0x0800
1877 #define LVIS_FOCUSED 0x0001
1878 #define LVIS_SELECTED 0x0002
1879 #define LVIS_CUT 0x0004
1880 #define LVIS_DROPHILITED 0x0008
1881 #define LVIS_ACTIVATING 0x0020
1883 #define LVIS_OVERLAYMASK 0x0F00
1884 #define LVIS_STATEIMAGEMASK 0xF000
1886 #define LVNI_ALL 0x0000
1887 #define LVNI_FOCUSED 0x0001
1888 #define LVNI_SELECTED 0x0002
1889 #define LVNI_CUT 0x0004
1890 #define LVNI_DROPHILITED 0x0008
1892 #define LVNI_ABOVE 0x0100
1893 #define LVNI_BELOW 0x0200
1894 #define LVNI_TOLEFT 0x0400
1895 #define LVNI_TORIGHT 0x0800
1897 #define LVHT_NOWHERE 0x0001
1898 #define LVHT_ONITEMICON 0x0002
1899 #define LVHT_ONITEMLABEL 0x0004
1900 #define LVHT_ONITEMSTATEICON 0x0008
1901 #define LVHT_ONITEM (LVHT_ONITEMICON|LVHT_ONITEMLABEL|LVHT_ONITEMSTATEICON)
1903 #define LVHT_ABOVE 0x0008
1904 #define LVHT_BELOW 0x0010
1905 #define LVHT_TORIGHT 0x0020
1906 #define LVHT_TOLEFT 0x0040
1908 #define LVM_FIRST 0x1000
1909 #define LVM_GETBKCOLOR (LVM_FIRST+0)
1910 #define LVM_SETBKCOLOR (LVM_FIRST+1)
1911 #define LVM_GETIMAGELIST (LVM_FIRST+2)
1912 #define LVM_SETIMAGELIST (LVM_FIRST+3)
1913 #define LVM_GETITEMCOUNT (LVM_FIRST+4)
1914 #define LVM_GETITEM32A (LVM_FIRST+5)
1915 #define LVM_GETITEM32W (LVM_FIRST+75)
1916 #define LVM_GETITEM WINELIB_NAME_AW(LVM_GETITEM)
1917 #define LVM_SETITEM32A (LVM_FIRST+6)
1918 #define LVM_SETITEM32W (LVM_FIRST+76)
1919 #define LVM_SETITEM WINELIB_NAME_AW(LVM_SETITEM)
1920 #define LVM_INSERTITEM32A (LVM_FIRST+7)
1921 #define LVM_INSERTITEM32W (LVM_FIRST+77)
1922 #define LVM_INSERTITEM WINELIB_NAME_AW(LVM_INSERTITEM)
1923 #define LVM_DELETEITEM (LVM_FIRST+8)
1924 #define LVM_DELETEALLITEMS (LVM_FIRST+9)
1925 #define LVM_GETCALLBACKMASK (LVM_FIRST+10)
1926 #define LVM_SETCALLBACKMASK (LVM_FIRST+11)
1927 #define LVM_GETNEXTITEM (LVM_FIRST+12)
1928 #define LVM_FINDITEM32A (LVM_FIRST+13)
1929 #define LVM_FINDITEM32W (LVM_FIRST+83)
1930 #define LVM_FINDITEM WINELIB_NAME_AW(LVM_FINDITEM)
1931 #define LVM_GETITEMRECT (LVM_FIRST+14)
1932 #define LVM_SETITEMPOSITION (LVM_FIRST+15)
1933 #define LVM_GETITEMPOSITION (LVM_FIRST+16)
1934 #define LVM_GETSTRINGWIDTH32A (LVM_FIRST+17)
1935 #define LVM_GETSTRINGWIDTH32W (LVM_FIRST+87)
1936 #define LVM_GETSTRINGWIDTH WINELIB_NAME_AW(LVM_GETSTRINGWIDTH)
1937 #define LVM_HITTEST (LVM_FIRST+18)
1938 #define LVM_ENSUREVISIBLE (LVM_FIRST+19)
1939 #define LVM_SCROLL (LVM_FIRST+20)
1940 #define LVM_REDRAWITEMS (LVM_FIRST+21)
1941 #define LVM_ARRANGE (LVM_FIRST+22)
1942 #define LVM_EDITLABEL32A (LVM_FIRST+23)
1943 #define LVM_EDITLABEL32W (LVM_FIRST+118)
1944 #define LVM_EDITLABEL WINELIB_NAME_AW(LVM_EDITLABEL)
1945 #define LVM_GETEDITCONTROL (LVM_FIRST+24)
1946 #define LVM_GETCOLUMN32A (LVM_FIRST+25)
1947 #define LVM_GETCOLUMN32W (LVM_FIRST+95)
1948 #define LVM_GETCOLUMN WINELIB_NAME_AW(LVM_GETCOLUMN)
1949 #define LVM_SETCOLUMN32A (LVM_FIRST+26)
1950 #define LVM_SETCOLUMN32W (LVM_FIRST+96)
1951 #define LVM_SETCOLUMN WINELIB_NAME_AW(LVM_SETCOLUMN)
1952 #define LVM_INSERTCOLUMN32A (LVM_FIRST+27)
1953 #define LVM_INSERTCOLUMN32W (LVM_FIRST+97)
1954 #define LVM_INSERTCOLUMN WINELIB_NAME_AW(LVM_INSERTCOLUMN)
1955 #define LVM_DELETECOLUMN (LVM_FIRST+28)
1956 #define LVM_GETCOLUMNWIDTH (LVM_FIRST+29)
1957 #define LVM_SETCOLUMNWIDTH (LVM_FIRST+30)
1958 #define LVM_GETHEADER (LVM_FIRST+31)
1960 #define LVM_CREATEDRAGIMAGE (LVM_FIRST+33)
1961 #define LVM_GETVIEWRECT (LVM_FIRST+34)
1962 #define LVM_GETTEXTCOLOR (LVM_FIRST+35)
1963 #define LVM_SETTEXTCOLOR (LVM_FIRST+36)
1964 #define LVM_GETTEXTBKCOLOR (LVM_FIRST+37)
1965 #define LVM_SETTEXTBKCOLOR (LVM_FIRST+38)
1966 #define LVM_GETTOPINDEX (LVM_FIRST+39)
1967 #define LVM_GETCOUNTPERPAGE (LVM_FIRST+40)
1968 #define LVM_GETORIGIN (LVM_FIRST+41)
1969 #define LVM_UPDATE (LVM_FIRST+42)
1970 #define LVM_SETITEMSTATE (LVM_FIRST+43)
1971 #define LVM_GETITEMSTATE (LVM_FIRST+44)
1972 #define LVM_GETITEMTEXT32A (LVM_FIRST+45)
1973 #define LVM_GETITEMTEXT32W (LVM_FIRST+115)
1974 #define LVM_GETITEMTEXT WINELIB_NAME_AW(LVM_GETITEMTEXT)
1975 #define LVM_SETITEMTEXT32A (LVM_FIRST+46)
1976 #define LVM_SETITEMTEXT32W (LVM_FIRST+116)
1977 #define LVM_SETITEMTEXT WINELIB_NAME_AW(LVM_SETITEMTEXT)
1978 #define LVM_SETITEMCOUNT (LVM_FIRST+47)
1979 #define LVM_SORTITEMS (LVM_FIRST+48)
1980 #define LVM_SETITEMPOSITION32 (LVM_FIRST+49)
1981 #define LVM_GETSELECTEDCOUNT (LVM_FIRST+50)
1982 #define LVM_GETITEMSPACING (LVM_FIRST+51)
1983 #define LVM_GETISEARCHSTRING32A (LVM_FIRST+52)
1984 #define LVM_GETISEARCHSTRING32W (LVM_FIRST+117)
1985 #define LVM_GETISEARCHSTRING WINELIB_NAME_AW(LVM_GETISEARCHSTRING)
1986 #define LVM_SETICONSPACING (LVM_FIRST+53)
1987 #define LVM_SETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+54)
1988 #define LVM_GETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+55)
1989 #define LVM_GETSUBITEMRECT (LVM_FIRST+56)
1990 #define LVM_SUBITEMHITTEST (LVM_FIRST+57)
1991 #define LVM_SETCOLUMNORDERARRAY (LVM_FIRST+58)
1992 #define LVM_GETCOLUMNORDERARRAY (LVM_FIRST+59)
1993 #define LVM_SETHOTITEM (LVM_FIRST+60)
1994 #define LVM_GETHOTITEM (LVM_FIRST+61)
1995 #define LVM_SETHOTCURSOR (LVM_FIRST+62)
1996 #define LVM_GETHOTCURSOR (LVM_FIRST+63)
1997 #define LVM_APPROXIMATEVIEWRECT (LVM_FIRST+64)
1998 #define LVM_SETWORKAREAS (LVM_FIRST+65)
1999 #define LVM_GETSELECTIONMARK (LVM_FIRST+66)
2000 #define LVM_SETSELECTIONMARK (LVM_FIRST+67)
2001 #define LVM_SETBKIMAGE32A (LVM_FIRST+68)
2002 #define LVM_SETBKIMAGE32W (LVM_FIRST+138)
2003 #define LVM_SETBKIMAGE WINELIB_NAME_AW(LVM_SETBKIMAGE)
2004 #define LVM_GETBKIMAGE32A (LVM_FIRST+69)
2005 #define LVM_GETBKIMAGE32W (LVM_FIRST+139)
2006 #define LVM_GETBKIMAGE WINELIB_NAME_AW(LVM_GETBKIMAGE)
2007 #define LVM_GETWORKAREAS (LVM_FIRST+70)
2008 #define LVM_SETHOVERTIME (LVM_FIRST+71)
2009 #define LVM_GETHOVERTIME (LVM_FIRST+72)
2010 #define LVM_GETNUMBEROFWORKAREAS (LVM_FIRST+73)
2011 #define LVM_SETTOOLTIPS (LVM_FIRST+74)
2013 #define LVM_GETTOOLTIPS (LVM_FIRST+78)
2015 #define LVN_FIRST (0U-100U)
2016 #define LVN_LAST (0U-199U)
2017 #define LVN_ITEMCHANGING (LVN_FIRST-0)
2018 #define LVN_ITEMCHANGED (LVN_FIRST-1)
2019 #define LVN_INSERTITEM (LVN_FIRST-2)
2020 #define LVN_DELETEITEM (LVN_FIRST-3)
2021 #define LVN_DELETEALLITEMS (LVN_FIRST-4)
2022 #define LVN_BEGINLABELEDIT32A (LVN_FIRST-5)
2023 #define LVN_BEGINLABELEDIT32W (LVN_FIRST-75)
2024 #define LVN_BEGINLABELEDIT WINELIB_NAME_AW(LVN_BEGINLABELEDIT)
2025 #define LVN_ENDLABELEDIT32A (LVN_FIRST-6)
2026 #define LVN_ENDLABELEDIT32W (LVN_FIRST-76)
2027 #define LVN_ENDLABELEDIT WINELIB_NAME_AW(LVN_ENDLABELEDIT)
2028 #define LVN_COLUMNCLICK (LVN_FIRST-8)
2029 #define LVN_BEGINDRAG (LVN_FIRST-9)
2030 #define LVN_BEGINRDRAG (LVN_FIRST-11)
2031 #define LVN_ODCACHEHINT (LVN_FIRST-13)
2032 #define LVN_ODFINDITEM32A (LVN_FIRST-52)
2033 #define LVN_ODFINDITEM32W (LVN_FIRST-79)
2034 #define LVN_ODFINDITEM WINELIB_NAME_AW(LVN_ODFINDITEM)
2035 #define LVN_ITEMACTIVATE (LVN_FIRST-14)
2036 #define LVN_ODSTATECHANGED (LVN_FIRST-15)
2037 #define LVN_HOTTRACK (LVN_FIRST-21)
2038 #define LVN_GETDISPINFO32A (LVN_FIRST-50)
2039 #define LVN_GETDISPINFO32W (LVN_FIRST-77)
2040 #define LVN_GETDISPINFO WINELIB_NAME_AW(LVN_GETDISPINFO)
2041 #define LVN_SETDISPINFO32A (LVN_FIRST-51)
2042 #define LVN_SETDISPINFO32W (LVN_FIRST-78)
2043 #define LVN_SETDISPINFO WINELIB_NAME_AW(LVN_SETDISPINFO)
2046 typedef struct tagLVITEMA
2057 INT32 iIndent
; /* (_WIN32_IE >= 0x0300) */
2058 } LVITEM32A
, *LPLVITEM32A
;
2060 typedef struct tagLVITEMW
2071 INT32 iIndent
; /* (_WIN32_IE >= 0x0300) */
2072 } LVITEM32W
, *LPLVITEM32W
;
2074 #define LVITEM32 WINELIB_NAME_AW(LVITEM)
2075 #define LPLVITEM32 WINELIB_NAME_AW(LPLVITEM)
2077 #define LVITEM_V1_SIZE32A CCSIZEOF_STRUCT(LVITEM32A, lParam)
2078 #define LVITEM_V1_SIZE32W CCSIZEOF_STRUCT(LVITEM32W, lParam)
2079 #define LVITEM_V1_SIZE WINELIB_NAME_AW(LVITEM_V1_SIZE)
2081 #define LV_ITEM LVITEM
2083 typedef struct tagLVCOLUMNA
2091 INT32 iImage
; /* (_WIN32_IE >= 0x0300) */
2092 INT32 iOrder
; /* (_WIN32_IE >= 0x0300) */
2093 } LVCOLUMN32A
, *LPLVCOLUMN32A
;
2095 typedef struct tagLVCOLUMNW
2103 INT32 iImage
; /* (_WIN32_IE >= 0x0300) */
2104 INT32 iOrder
; /* (_WIN32_IE >= 0x0300) */
2105 } LVCOLUMN32W
, *LPLVCOLUMN32W
;
2107 #define LVCOLUMN WINELIB_NAME_AW(LVCOLUMN)
2108 #define LPLVCOLUMN WINELIB_NAME_AW(LPLVCOLUMN)
2110 #define LVCOLUMN_V1_SIZE32A CCSIZEOF_STRUCT(LVCOLUMN32A, iSubItem)
2111 #define LVCOLUMN_V1_SIZE32W CCSIZEOF_STRUCT(LVCOLUMN32W, iSubItem)
2112 #define LVCOLUMN_V1_SIZE WINELIB_NAME_AW(LVCOLUMN_V1_SIZE)
2114 #define LV_COLUMN LVCOLUMN
2117 typedef struct tagNMLISTVIEW
2127 } NMLISTVIEW
, *LPNMLISTVIEW
;
2129 #define LPNM_LISTVIEW LPNMLISTVIEW
2130 #define NM_LISTVIEW NMLISTVIEW
2133 typedef struct tagLVDISPINFO
2137 } NMLVDISPINFO32A
, *LPNMLVDISPINFO32A
;
2139 typedef struct tagLVDISPINFOW
2143 } NMLVDISPINFO32W
, *LPNMLVDISPINFO32W
;
2145 #define NMLVDISPINFO WINELIB_NAME_AW(NMLVDISPINFO)
2146 #define LPNMLVDISPINFO WINELIB_NAME_AW(LPNMLVDISPINFO)
2148 #define LV_DISPINFO NMLVDISPINFO
2151 typedef struct tagLVHITTESTINFO
2157 } LVHITTESTINFO
, *LPLVHITTESTINFO
;
2159 #define LV_HITTESTINFO LVHITTESTINFO
2160 #define _LV_HITTESTINFO tagLVHITTESTINFO
2161 #define LVHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(LVHITTESTINFO,iItem)
2163 typedef INT32 (CALLBACK
*PFNLVCOMPARE
)(LPARAM
, LPARAM
, LPARAM
);
2165 #define ListView_SetBkColor(hwnd,clrBk) \
2166 (BOOL32)SendMessage32A((hwnd),LVM_SETBKCOLOR,0,(LPARAM)(COLORREF)(clrBk))
2167 #define ListView_GetImageList(hwnd,iImageList) \
2168 (HIMAGELIST)SendMessage32A((hwnd),LVM_GETIMAGELIST,(WPARAM)(INT32)(iImageList),0L)
2169 #define ListView_SetImageList(hwnd,himl,iImageList) \
2170 (HIMAGELIST)(UINT32)SendMessage32A((hwnd),LVM_SETIMAGELIST,(WPARAM32)(iImageList),(LPARAM)(UINT32)(HIMAGELIST)(himl))
2171 #define ListView_GetItemCount(hwnd) \
2172 (INT32)SendMessage32A((hwnd),LVM_GETITEMCOUNT,0,0L)
2173 #define ListView_GetItem32A(hwnd,pitem) \
2174 (BOOL32)SendMessage32A((hwnd),LVM_GETITEM32A,0,(LPARAM)(LVITEM32A *)(pitem))
2175 #define ListView_GetItem32W(hwnd,pitem) \
2176 (BOOL32)SendMessage32W((hwnd),LVM_GETITEM32W,0,(LPARAM)(LVITEM32W *)(pitem))
2177 #define ListView_GetItem WINELIB_NAME_AW(ListView_GetItem)
2178 #define ListView_HitTest(hwnd,pinfo) \
2179 (INT32)SendMessage32A((hwnd),LVMHITTEST,0,(LPARAM)(LPLVHITTESTINFO)(pinfo))
2180 #define ListView_InsertItem32A(hwnd,pitem) \
2181 (INT32)SendMessage32A((hwnd),LVM_INSERTITEM32A,0,(LPARAM)(const LVITEM32A *)(pitem))
2182 #define ListView_InsertItem32W(hwnd,pitem) \
2183 (INT32)SendMessage32W((hwnd),LVM_INSERTITEM32W,0,(LPARAM)(const LVITEM32W *)(pitem))
2184 #define ListView_InsertItem WINELIB_NAME_AW(ListView_InsertItem)
2185 #define ListView_DeleteAllItems(hwnd) \
2186 (BOOL32)SendMessage32A((hwnd),LVM_DELETEALLITEMS,0,0L)
2187 #define ListView_InsertColumn32A(hwnd,iCol,pcol) \
2188 (INT32)SendMessage32A((hwnd),LVM_INSERTCOLUMN32A,(WPARAM32)(INT32)(iCol),(LPARAM)(const LVCOLUMN32A *)(pcol))
2189 #define ListView_InsertColumn32W(hwnd,iCol,pcol) \
2190 (INT32)SendMessage32W((hwnd),LVM_INSERTCOLUMN32W,(WPARAM32)(INT32)(iCol),(LPARAM)(const LVCOLUMN32W *)(pcol))
2191 #define ListView_InsertColumn WINELIB_NAME_AW(ListView_InsertColumn)
2192 #define ListView_SortItems(hwndLV,_pfnCompare,_lPrm) \
2193 (BOOL32)SendMessage32A((hwndLV),LVM_SORTITEMS,(WPARAM32)(LPARAM)_lPrm,(LPARAM)(PFNLVCOMPARE)_pfnCompare)
2194 #define ListView_SetItemPosition(hwndLV, i, x, y) \
2195 (BOOL32)SendMessage32A((hwndLV),LVM_SETITEMPOSITION,(WPARAM32)(INT32)(i),MAKELPARAM((x),(y)))
2196 #define ListView_GetSelectedCount(hwndLV) \
2197 (UINT32)SendMessage32A((hwndLV),LVM_GETSELECTEDCOUNT,0,0L)
2202 #define WC_TABCONTROL16 "SysTabControl"
2203 #define WC_TABCONTROL32A "SysTabControl32"
2204 #define WC_TABCONTROL32W L"SysTabControl32"
2206 #define WC_TABCONTROL WINELIB_NAME_AW(WC_TABCONTROL)
2208 #define TCM_FIRST 0x1300
2210 #define TCM_GETITEMCOUNT (TCM_FIRST + 4)
2211 #define TCM_INSERTITEM (TCM_FIRST + 7)
2212 #define TCM_GETCURSEL (TCM_FIRST + 11)
2213 #define TCM_SETITEMEXTRA (TCM_FIRST + 14)
2215 #define TCIF_TEXT 0x0001
2216 #define TCIF_IMAGE 0x0002
2217 #define TCIF_RTLREADING 0x0004
2218 #define TCIF_PARAM 0x0008
2220 typedef struct tagTCITEM
{
2228 } TCITEM
, *LPTCITEM
;
2230 #define TCN_FIRST (0U-550U)
2231 #define TCN_LAST (0U-580U)
2232 #define TCN_KEYDOWN (TCN_FIRST - 0)
2233 #define TCN_SELCHANGE (TCN_FIRST - 1)
2234 #define TCN_SELCHANGING (TCN_FIRST - 2)
2237 /* ComboBoxEx control */
2239 #define WC_COMBOBOXEX32A "ComboBoxEx32"
2240 #define WC_COMBOBOXEX32W L"ComboBoxEx32"
2241 #define WC_COMBOBOXEX WINELIB_NAME_AW(WC_COMBOBOXEX)
2243 #define CBEM_INSERTITEM32A (WM_USER+1)
2244 #define CBEM_INSERTITEM32W (WM_USER+11)
2245 #define CBEM_INSERTITEM WINELIB_NAME_AW(CBEM_INSERTITEM)
2246 #define CBEM_SETIMAGELIST (WM_USER+2)
2247 #define CBEM_GETIMAGELIST (WM_USER+3)
2248 #define CBEM_GETITEM32A (WM_USER+4)
2249 #define CBEM_GETITEM32W (WM_USER+13)
2250 #define CBEM_GETITEM WINELIB_NAME_AW(CBEM_GETITEM)
2251 #define CBEM_SETITEM32A (WM_USER+5)
2252 #define CBEM_SETITEM32W (WM_USER+12)
2253 #define CBEM_SETITEM WINELIB_NAME_AW(CBEM_SETITEM)
2254 #define CBEM_GETCOMBOCONTROL (WM_USER+6)
2255 #define CBEM_GETEDITCONTROL (WM_USER+7)
2256 #define CBEM_SETEXSTYLE (WM_USER+8)
2257 #define CBEM_GETEXSTYLE (WM_USER+9)
2258 #define CBEM_GETEXTENDEDSTYLE (WM_USER+9)
2259 #define CBEM_SETEXTENDEDSTYLE (WM_USER+14)
2260 #define CBEM_HASEDITCHANGED (WM_USER+10)
2261 #define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
2262 #define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
2264 #define CBEN_FIRST (0U-800U)
2265 #define CBEN_LAST (0U-830U)
2268 /* Hotkey control */
2270 #define HOTKEY_CLASS16 "msctls_hotkey"
2271 #define HOTKEY_CLASS32A "msctls_hotkey32"
2272 #define HOTKEY_CLASS32W L"msctls_hotkey32"
2273 #define HOTKEY_CLASS WINELIB_NAME_AW(HOTKEY_CLASS)
2275 #define HOTKEYF_SHIFT 0x01
2276 #define HOTKEYF_CONTROL 0x02
2277 #define HOTKEYF_ALT 0x04
2278 #define HOTKEYF_EXT 0x08
2280 #define HKCOMB_NONE 0x0001
2281 #define HKCOMB_S 0x0002
2282 #define HKCOMB_C 0x0004
2283 #define HKCOMB_A 0x0008
2284 #define HKCOMB_SC 0x0010
2285 #define HKCOMB_SA 0x0020
2286 #define HKCOMB_CA 0x0040
2287 #define HKCOMB_SCA 0x0080
2289 #define HKM_SETHOTKEY (WM_USER+1)
2290 #define HKM_GETHOTKEY (WM_USER+2)
2291 #define HKM_SETRULES (WM_USER+3)
2294 /* animate control */
2296 #define ANIMATE_CLASS32A "SysAnimate32"
2297 #define ANIMATE_CLASS32W L"SysAnimate32"
2298 #define ANIMATE_CLASS WINELIB_NAME_AW(ANIMATE_CLASS)
2300 #define ACS_CENTER 0x0001
2301 #define ACS_TRANSPARENT 0x0002
2302 #define ACS_AUTOPLAY 0x0004
2303 #define ACS_TIMER 0x0008 /* no threads, just timers */
2305 #define ACM_OPEN32A (WM_USER+100)
2306 #define ACM_OPEN32W (WM_USER+103)
2307 #define ACM_OPEN WINELIB_NAME_AW(ACM_OPEN)
2308 #define ACM_PLAY (WM_USER+101)
2309 #define ACM_STOP (WM_USER+102)
2314 #define Animate_Create32A(hwndP,id,dwStyle,hInstance) \
2315 CreateWindow32A(ANIMATE_CLASS32A,NULL,dwStyle,0,0,0,0,hwndP,(HMENU32)(id),hInstance,NULL)
2316 #define Animate_Create32W(hwndP,id,dwStyle,hInstance) \
2317 CreateWindow32W(ANIMATE_CLASS32W,NULL,dwStyle,0,0,0,0,hwndP,(HMENU32)(id),hInstance,NULL)
2318 #define Animate_Create WINELIB_NAME_AW(Animate_Create)
2319 #define Animate_Open32A(hwnd,szName) \
2320 (BOOL32)SendMessage32A(hwnd,ACM_OPEN32A,0,(LPARAM)(LPSTR)(szName))
2321 #define Animate_Open32W(hwnd,szName) \
2322 (BOOL32)SendMessage32W(hwnd,ACM_OPEN32W,0,(LPARAM)(LPWSTR)(szName))
2323 #define Animate_Open WINELIB_NAME_AW(Animate_Open)
2324 #define Animate_OpenEx32A(hwnd,hInst,szName) \
2325 (BOOL32)SendMessage32A(hwnd,ACM_OPEN32A,(WPARAM32)hInst,(LPARAM)(LPSTR)(szName))
2326 #define Animate_OpenEx32W(hwnd,hInst,szName) \
2327 (BOOL32)SendMessage32W(hwnd,ACM_OPEN32W,(WPARAM32)hInst,(LPARAM)(LPWSTR)(szName))
2328 #define Animate_OpenEx WINELIB_NAME_AW(Animate_OpenEx)
2329 #define Animate_Play(hwnd,from,to,rep) \
2330 (BOOL32)SendMessage32A(hwnd,ACM_PLAY,(WPARAM32)(UINT32)(rep),(LPARAM)MAKELONG(from,to))
2331 #define Animate_Stop(hwnd) \
2332 (BOOL32)SendMessage32A(hwnd,ACM_STOP,0,0)
2333 #define Animate_Close(hwnd) \
2334 (BOOL32)SendMessage32A(hwnd,ACM_OPEN32A,0,0)
2335 #define Animate_Seek(hwnd,frame) \
2336 (BOOL32)SendMessage32A(hwnd,ACM_PLAY,1,(LPARAM)MAKELONG(frame,frame))
2339 /**************************************************************************
2340 * IP Address control
2343 #define WC_IPADDRESS32A "SysIPAddress32"
2344 #define WC_IPADDRESS32W L"SysIPAddress32"
2345 #define WC_IPADDRESS WINELIB_NAME_AW(WC_IPADDRESS)
2347 #define IPM_CLEARADDRESS (WM_USER+100)
2348 #define IPM_SETADDRESS (WM_USER+101)
2349 #define IPM_GETADDRESS (WM_USER+102)
2350 #define IPM_SETRANGE (WM_USER+103)
2351 #define IPM_SETFOCUS (WM_USER+104)
2352 #define IPM_ISBLANK (WM_USER+105)
2354 #define IPN_FIELDCHANGED (IPN_FIRST-0)
2356 typedef struct tagNMIPADDRESS
2361 } NMIPADDRESS
, *LPNMIPADDRESS
;
2363 #define MAKEIPRANGE(low,high) \
2364 ((LPARAM)(WORD)(((BYTE)(high)<<8)+(BYTE)(low)))
2365 #define MAKEIPADDRESS(b1,b2,b3,b4) \
2366 ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<16)+((DWORD)(b3)<<8)+((DWORD)(b4))))
2368 #define FIRST_IPADDRESS(x) (((x)>>24)&0xff)
2369 #define SECOND_IPADDRESS(x) (((x)>>16)&0xff)
2370 #define THIRD_IPADDRESS(x) (((x)>>8)&0xff)
2371 #define FOURTH_IPADDRESS(x) ((x)&0xff)
2374 /**************************************************************************
2375 * Native Font control
2378 #define WC_NATIVEFONTCTL32A "NativeFontCtl"
2379 #define WC_NATIVEFONTCTL32W L"NativeFontCtl"
2380 #define WC_NATIVEFONTCTL WINELIB_NAME_AW(WC_NATIVEFONTCTL)
2382 #define NFS_EDIT 0x0001
2383 #define NFS_STATIC 0x0002
2384 #define NFS_LISTCOMBO 0x0004
2385 #define NFS_BUTTON 0x0008
2386 #define NFS_ALL 0x0010
2389 /**************************************************************************
2390 * Month calendar control
2393 #define MONTHCAL_CLASS32A "SysMonthCal32"
2394 #define MONTHCAL_CLASS32W L"SysMonthCal32"
2395 #define MONTHCAL_CLASS WINELIB_NAME_AW(MONTHCAL_CLASS)
2398 /**************************************************************************
2399 * Date and time picker control
2402 #define DATETIMEPICK_CLASS32A "SysDateTimePick32"
2403 #define DATETIMEPICK_CLASS32W L"SysDateTimePick32"
2404 #define DATETIMEPICK_CLASS WINELIB_NAME_AW(DATETIMEPICK_CLASS)
2407 /**************************************************************************
2408 * UNDOCUMENTED functions
2411 /* private heap memory functions */
2413 LPVOID WINAPI
COMCTL32_Alloc (DWORD
);
2414 LPVOID WINAPI
COMCTL32_ReAlloc (LPVOID
, DWORD
);
2415 BOOL32 WINAPI
COMCTL32_Free (LPVOID
);
2416 DWORD WINAPI
COMCTL32_GetSize (LPVOID
);
2419 INT32 WINAPI
Str_GetPtr32A (LPCSTR
, LPSTR
, INT32
);
2420 BOOL32 WINAPI
Str_SetPtr32A (LPSTR
*, LPCSTR
);
2421 INT32 WINAPI
Str_GetPtr32W (LPCWSTR
, LPWSTR
, INT32
);
2422 BOOL32 WINAPI
Str_SetPtr32W (LPWSTR
*, LPCWSTR
);
2423 #define Str_GetPtr WINELIB_NAME_AW(Str_GetPtr)
2424 #define Str_SetPtr WINELIB_NAME_AW(Str_SetPtr)
2427 /* Dynamic Storage Array */
2438 HDSA WINAPI
DSA_Create (INT32
, INT32
);
2439 BOOL32 WINAPI
DSA_DeleteAllItems (const HDSA
);
2440 INT32 WINAPI
DSA_DeleteItem (const HDSA
, INT32
);
2441 BOOL32 WINAPI
DSA_Destroy (const HDSA
);
2442 BOOL32 WINAPI
DSA_GetItem (const HDSA
, INT32
, LPVOID
);
2443 LPVOID WINAPI
DSA_GetItemPtr (const HDSA
, INT32
);
2444 INT32 WINAPI
DSA_InsertItem (const HDSA
, INT32
, LPVOID
);
2445 BOOL32 WINAPI
DSA_SetItem (const HDSA
, INT32
, LPVOID
);
2447 typedef INT32 (CALLBACK
*DSAENUMPROC
)(LPVOID
, DWORD
);
2448 VOID WINAPI
DSA_EnumCallback (const HDSA
, DSAENUMPROC
, LPARAM
);
2449 BOOL32 WINAPI
DSA_DestroyCallback (const HDSA
, DSAENUMPROC
, LPARAM
);
2452 /* Dynamic Pointer Array */
2463 HDPA WINAPI
DPA_Create (INT32
);
2464 HDPA WINAPI
DPA_CreateEx (INT32
, HANDLE32
);
2465 BOOL32 WINAPI
DPA_Destroy (const HDPA
);
2466 HDPA WINAPI
DPA_Clone (const HDPA
, const HDPA
);
2467 LPVOID WINAPI
DPA_GetPtr (const HDPA
, INT32
);
2468 INT32 WINAPI
DPA_GetPtrIndex (const HDPA
, LPVOID
);
2469 BOOL32 WINAPI
DPA_Grow (const HDPA
, INT32
);
2470 BOOL32 WINAPI
DPA_SetPtr (const HDPA
, INT32
, LPVOID
);
2471 INT32 WINAPI
DPA_InsertPtr (const HDPA
, INT32
, LPVOID
);
2472 LPVOID WINAPI
DPA_DeletePtr (const HDPA
, INT32
);
2473 BOOL32 WINAPI
DPA_DeleteAllPtrs (const HDPA
);
2475 typedef INT32 (CALLBACK
*PFNDPACOMPARE
)(LPVOID
, LPVOID
, LPARAM
);
2476 BOOL32 WINAPI
DPA_Sort (const HDPA
, PFNDPACOMPARE
, LPARAM
);
2478 #define DPAS_SORTED 0x0001
2479 #define DPAS_INSERTBEFORE 0x0002
2480 #define DPAS_INSERTAFTER 0x0004
2482 INT32 WINAPI
DPA_Search (const HDPA
, LPVOID
, INT32
, PFNDPACOMPARE
, LPARAM
, UINT32
);
2484 #define DPAM_SORT 0x0001
2486 BOOL32 WINAPI
DPA_Merge (const HDPA
, const HDPA
, DWORD
, PFNDPACOMPARE
, LPVOID
, LPARAM
);
2488 typedef INT32 (CALLBACK
*DPAENUMPROC
)(LPVOID
, DWORD
);
2489 VOID WINAPI
DPA_EnumCallback (const HDPA
, DPAENUMPROC
, LPARAM
);
2490 BOOL32 WINAPI
DPA_DestroyCallback (const HDPA
, DPAENUMPROC
, LPARAM
);
2493 #define DPA_GetPtrCount(hdpa) (*(INT32*)(hdpa))
2494 #define DPA_GetPtrPtr(hdpa) (*((LPVOID**)((BYTE*)(hdpa)+sizeof(INT32))))
2495 #define DPA_FastGetPtr(hdpa,i) (DPA_GetPtrPtr(hdpa)[i])
2498 /* notification helper functions */
2500 LRESULT WINAPI
COMCTL32_SendNotify (HWND32
, HWND32
, UINT32
, LPNMHDR
);
2502 /* type and functionality of last parameter is still unknown */
2503 LRESULT WINAPI
COMCTL32_SendNotifyEx (HWND32
, HWND32
, UINT32
, LPNMHDR
, DWORD
);
2509 #endif /* __WINE_COMMCTRL_H */