2 * Common controls definitions
5 #ifndef __WINE_COMMCTRL_H
6 #define __WINE_COMMCTRL_H
12 /* c++ likes nameless unions whereas c doesnt */
13 /* (used in property sheet structures) */
15 #define DUMMYUNIONNAME
16 #define DUMMYUNIONNAME1
17 #define DUMMYUNIONNAME2
18 #define DUMMYUNIONNAME3
19 #define DUMMYUNIONNAME4
20 #define DUMMYUNIONNAME5
22 #define DUMMYUNIONNAME u
23 #define DUMMYUNIONNAME1 u1
24 #define DUMMYUNIONNAME2 u2
25 #define DUMMYUNIONNAME3 u3
26 #define DUMMYUNIONNAME4 u4
27 #define DUMMYUNIONNAME5 u5
34 BOOL32 WINAPI ShowHideMenuCtl (HWND32, UINT32, LPINT32);
35 VOID WINAPI GetEffectiveClientRect (HWND32, LPRECT32, LPINT32);
36 VOID WINAPI InitCommonControls (VOID);
38 typedef struct tagINITCOMMONCONTROLSEX {
41 } INITCOMMONCONTROLSEX, *LPINITCOMMONCONTROLSEX;
43 BOOL32 WINAPI InitCommonControlsEx (LPINITCOMMONCONTROLSEX);
45 #define ICC_LISTVIEW_CLASSES 0x00000001 /* listview, header */
46 #define ICC_TREEVIEW_CLASSES 0x00000002 /* treeview, tooltips */
47 #define ICC_BAR_CLASSES 0x00000004 /* toolbar, statusbar, trackbar, tooltips */
48 #define ICC_TAB_CLASSES 0x00000008 /* tab, tooltips */
49 #define ICC_UPDOWN_CLASS 0x00000010 /* updown */
50 #define ICC_PROGRESS_CLASS 0x00000020 /* progress */
51 #define ICC_HOTKEY_CLASS 0x00000040 /* hotkey */
52 #define ICC_ANIMATE_CLASS 0x00000080 /* animate */
53 #define ICC_WIN95_CLASSES 0x000000FF
54 #define ICC_DATE_CLASSES 0x00000100 /* month picker, date picker, time picker, updown */
55 #define ICC_USEREX_CLASSES 0x00000200 /* comboex */
56 #define ICC_COOL_CLASSES 0x00000400 /* rebar (coolbar) */
57 #define ICC_INTERNET_CLASSES 0x00000800 /* IP address, ... */
58 #define ICC_PAGESCROLLER_CLASS 0x00001000 /* page scroller */
59 #define ICC_NATIVEFNTCTL_CLASS 0x00002000 /* native font control ???*/
62 /* common control styles */
63 #define CCS_TOP 0x00000001L
64 #define CCS_NOMOVEY 0x00000002L
65 #define CCS_BOTTOM 0x00000003L
66 #define CCS_NORESIZE 0x00000004L
67 #define CCS_NOPARENTALIGN 0x00000008L
68 #define CCS_ADJUSTABLE 0x00000020L
69 #define CCS_NODIVIDER 0x00000040L
70 #define CCS_VERT 0x00000080L
71 #define CCS_LEFT (CCS_VERT|CCS_TOP)
72 #define CCS_RIGHT (CCS_VERT|CCS_BOTTOM)
73 #define CCS_NOMOVEX (CCS_VERT|CCS_NOMOVEY)
76 /* common control shared messages */
77 #define CCM_FIRST 0x2000
79 #define CCM_SETBKCOLOR (CCM_FIRST+1) /* lParam = bkColor */
80 #define CCM_SETCOLORSCHEME (CCM_FIRST+2)
81 #define CCM_GETCOLORSCHEME (CCM_FIRST+3)
82 #define CCM_GETDROPTARGET (CCM_FIRST+4)
83 #define CCM_SETUNICODEFORMAT (CCM_FIRST+5)
84 #define CCM_GETUNICODEFORMAT (CCM_FIRST+6)
87 /* common notification codes (WM_NOTIFY)*/
88 #define NM_FIRST (0U- 0U)
89 #define NM_LAST (0U- 99U)
90 #define NM_OUTOFMEMORY (NM_FIRST-1)
91 #define NM_CLICK (NM_FIRST-2)
92 #define NM_DBLCLK (NM_FIRST-3)
93 #define NM_RETURN (NM_FIRST-4)
94 #define NM_RCLICK (NM_FIRST-5)
95 #define NM_RDBLCLK (NM_FIRST-6)
96 #define NM_SETFOCUS (NM_FIRST-7)
97 #define NM_KILLFOCUS (NM_FIRST-8)
98 #define NM_CUSTOMDRAW (NM_FIRST-12)
99 #define NM_HOVER (NM_FIRST-13)
100 #define NM_NCHITTEST (NM_FIRST-14)
101 #define NM_KEYDOWN (NM_FIRST-15)
102 #define NM_RELEASEDCAPTURE (NM_FIRST-16)
103 #define NM_SETCURSOR (NM_FIRST-17)
104 #define NM_CHAR (NM_FIRST-18)
105 #define NM_TOOLTIPSCREATED (NM_FIRST-19)
108 /* callback constants */
109 #define LPSTR_TEXTCALLBACK32A ((LPSTR)-1L)
110 #define LPSTR_TEXTCALLBACK32W ((LPWSTR)-1L)
111 #define LPSTR_TEXTCALLBACK WINELIB_NAME_AW(LPSTR_TEXTCALLBACK)
113 #define I_IMAGECALLBACK (-1)
114 #define I_INDENTCALLBACK (-1)
115 #define I_CHILDRENCALLBACK (-1)
118 /* owner drawn types */
119 #define ODT_HEADER 100
121 #define ODT_LISTVIEW 102
123 /* common notification structures */
124 typedef struct tagNMTOOLTIPSCREATED
128 } NMTOOLTIPSCREATED, *LPNMTOOLTIPSCREATED;
131 #ifndef CCSIZEOF_STRUCT
132 #define CCSIZEOF_STRUCT(name, member) \
133 (((INT32)((LPBYTE)(&((name*)0)->member)-((LPBYTE)((name*)0))))+ \
134 sizeof(((name*)0)->member))
138 /* This is only for Winelib applications. DON't use it wine itself!!! */
139 #define SNDMSG WINELIB_NAME_AW(SendMessage)
143 /* Custom Draw messages */
145 #define CDRF_DODEFAULT 0x0
146 #define CDRF_NEWFONT 0x00000002
147 #define CDRF_SKIPDEFAULT 0x00000004
148 #define CDRF_NOTIFYPOSTPAINT 0x00000010
149 #define CDRF_NOTIFYITEMDRAW 0x00000020
150 #define CDRF_NOTIFYSUBITEMDRAW 0x00000020
151 #define CDRF_NOTIFYPOSTERASE 0x00000040
152 /* #define CDRF_NOTIFYITEMERASE 0x00000080 obsolete ? */
155 /* drawstage flags */
157 #define CDDS_PREPAINT 1
158 #define CDDS_POSTPAINT 2
159 #define CDDS_PREERASE 3
160 #define CDDS_POSTERASE 4
162 #define CDDS_ITEM 0x00010000
163 #define CDDS_ITEMPREPAINT (CDDS_ITEM | CDDS_PREPAINT)
164 #define CDDS_ITEMPOSTPAINT (CDDS_ITEM | CDDS_POSTPAINT)
165 #define CDDS_ITEMPREERASE (CDDS_ITEM | CDDS_PREERASE)
166 #define CDDS_ITEMPOSTERASE (CDDS_ITEM | CDDS_POSTERASE)
167 #define CDDS_SUBITEM 0x00020000
169 /* itemState flags */
171 #define CDIS_SELECTED 0x0001
172 #define CDIS_GRAYED 0x0002
173 #define CDIS_DISABLED 0x0004
174 #define CDIS_CHECKED 0x0008
175 #define CDIS_FOCUS 0x0010
176 #define CDIS_DEFAULT 0x0020
177 #define CDIS_HOT 0x0040
178 #define CDIS_MARKED 0x0080
179 #define CDIS_INDETERMINATE 0x0100
182 typedef struct tagNMCUSTOMDRAWINFO
191 } NMCUSTOMDRAW, *LPNMCUSTOMDRAW;
193 typedef struct tagNMTTCUSTOMDRAW
197 } NMTTCUSTOMDRAW, *LPNMTTCUSTOMDRAW;
204 #define STATUSCLASSNAME16 "msctls_statusbar"
205 #define STATUSCLASSNAME32A "msctls_statusbar32"
206 /* Does not work. gcc creates 4 byte wide strings.
207 * #define STATUSCLASSNAME32W L"msctls_statusbar32"
209 static const WCHAR _scn32w[] = {
210 'm','s','c','t','l','s','_','s','t','a','t','u','s','b','a','r','3','2',0
212 #define STATUSCLASSNAME32W _scn32w
213 #define STATUSCLASSNAME WINELIB_NAME_AW(STATUSCLASSNAME)
215 #define SBT_NOBORDERS 0x0100
216 #define SBT_POPOUT 0x0200
217 #define SBT_RTLREADING 0x0400 /* not supported */
218 #define SBT_TOOLTIPS 0x0800
219 #define SBT_OWNERDRAW 0x1000
221 #define SBARS_SIZEGRIP 0x0100
223 #define SB_SETTEXT32A (WM_USER+1)
224 #define SB_SETTEXT32W (WM_USER+11)
225 #define SB_SETTEXT WINELIB_NAME_AW(SB_SETTEXT)
226 #define SB_GETTEXT32A (WM_USER+2)
227 #define SB_GETTEXT32W (WM_USER+13)
228 #define SB_GETTEXT WINELIB_NAME_AW(SB_GETTEXT)
229 #define SB_GETTEXTLENGTH32A (WM_USER+3)
230 #define SB_GETTEXTLENGTH32W (WM_USER+12)
231 #define SB_GETTEXTLENGTH WINELIB_NAME_AW(SB_GETTEXTLENGTH)
232 #define SB_SETPARTS (WM_USER+4)
233 #define SB_GETPARTS (WM_USER+6)
234 #define SB_GETBORDERS (WM_USER+7)
235 #define SB_SETMINHEIGHT (WM_USER+8)
236 #define SB_SIMPLE (WM_USER+9)
237 #define SB_GETRECT (WM_USER+10)
238 #define SB_ISSIMPLE (WM_USER+14)
239 #define SB_SETICON (WM_USER+15)
240 #define SB_SETTIPTEXT32A (WM_USER+16)
241 #define SB_SETTIPTEXT32W (WM_USER+17)
242 #define SB_SETTIPTEXT WINELIB_NAME_AW(SB_SETTIPTEXT)
243 #define SB_GETTIPTEXT32A (WM_USER+18)
244 #define SB_GETTIPTEXT32W (WM_USER+19)
245 #define SB_GETTIPTEXT WINELIB_NAME_AW(SB_GETTIPTEXT)
246 #define SB_GETICON (WM_USER+20)
247 #define SB_SETBKCOLOR CCM_SETBKCOLOR /* lParam = bkColor */
248 #define SB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
249 #define SB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
251 #define SBN_FIRST (0U-880U)
252 #define SBN_LAST (0U-899U)
253 #define SBN_SIMPLEMODECHANGE (SBN_FIRST-0)
255 HWND32 WINAPI CreateStatusWindow32A (INT32, LPCSTR, HWND32, UINT32);
256 HWND32 WINAPI CreateStatusWindow32W (INT32, LPCWSTR, HWND32, UINT32);
257 #define CreateStatusWindow WINELIB_NAME_AW(CreateStatusWindow)
258 VOID WINAPI DrawStatusText32A (HDC32, LPRECT32, LPCSTR, UINT32);
259 VOID WINAPI DrawStatusText32W (HDC32, LPRECT32, LPCWSTR, UINT32);
260 #define DrawStatusText WINELIB_NAME_AW(DrawStatusText)
261 VOID WINAPI MenuHelp (UINT32, WPARAM32, LPARAM, HMENU32,
262 HINSTANCE32, HWND32, LPUINT32);
264 /**************************************************************************
268 typedef struct tagDRAGLISTINFO
270 UINT32 uNotification;
273 } DRAGLISTINFO, *LPDRAGLISTINFO;
275 #define DL_BEGINDRAG (WM_USER+133)
276 #define DL_DRAGGING (WM_USER+134)
277 #define DL_DROPPED (WM_USER+135)
278 #define DL_CANCELDRAG (WM_USER+136)
280 #define DL_CURSORSET 0
281 #define DL_STOPCURSOR 1
282 #define DL_COPYCURSOR 2
283 #define DL_MOVECURSOR 3
285 #define DRAGLISTMSGSTRING TEXT("commctrl_DragListMsg")
287 BOOL32 WINAPI MakeDragList (HWND32);
288 VOID WINAPI DrawInsert (HWND32, HWND32, INT32);
289 INT32 WINAPI LBItemFromPt (HWND32, POINT32, BOOL32);
294 #define UPDOWN_CLASS16 "msctls_updown"
295 #define UPDOWN_CLASS32A "msctls_updown32"
296 #define UPDOWN_CLASS32W L"msctls_updown32"
297 #define UPDOWN_CLASS WINELIB_NAME_AW(UPDOWN_CLASS)
299 typedef struct tagUDACCEL
305 #define UD_MAXVAL 0x7fff
306 #define UD_MINVAL 0x8001
308 #define UDS_WRAP 0x0001
309 #define UDS_SETBUDDYINT 0x0002
310 #define UDS_ALIGNRIGHT 0x0004
311 #define UDS_ALIGNLEFT 0x0008
312 #define UDS_AUTOBUDDY 0x0010
313 #define UDS_ARROWKEYS 0x0020
314 #define UDS_HORZ 0x0040
315 #define UDS_NOTHOUSANDS 0x0080
317 #define UDN_FIRST (0U-721)
318 #define UDN_LAST (0U-740)
319 #define UDN_DELTAPOS (UDN_FIRST-1)
321 #define UDM_SETRANGE (WM_USER+101)
322 #define UDM_GETRANGE (WM_USER+102)
323 #define UDM_SETPOS (WM_USER+103)
324 #define UDM_GETPOS (WM_USER+104)
325 #define UDM_SETBUDDY (WM_USER+105)
326 #define UDM_GETBUDDY (WM_USER+106)
327 #define UDM_SETACCEL (WM_USER+107)
328 #define UDM_GETACCEL (WM_USER+108)
329 #define UDM_SETBASE (WM_USER+109)
330 #define UDM_GETBASE (WM_USER+110)
331 #define UDM_SETRANGE32 (WM_USER+111)
332 #define UDM_GETRANGE32 (WM_USER+112)
334 HWND32 WINAPI CreateUpDownControl (DWORD, INT32, INT32, INT32, INT32,
335 HWND32, INT32, HINSTANCE32, HWND32,
336 INT32, INT32, INT32);
340 #define PROGRESS_CLASS32A "msctls_progress32"
341 #define PROGRESS_CLASS32W L"msctls_progress32"
342 #define PROGRESS_CLASS16 "msctls_progress"
343 #define PROGRESS_CLASS WINELIB_NAME_AW(PROGRESS_CLASS)
345 #define PBM_SETRANGE (WM_USER+1)
346 #define PBM_SETPOS (WM_USER+2)
347 #define PBM_DELTAPOS (WM_USER+3)
348 #define PBM_SETSTEP (WM_USER+4)
349 #define PBM_STEPIT (WM_USER+5)
350 #define PBM_SETRANGE32 (WM_USER+6)
351 #define PBM_GETRANGE (WM_USER+7)
352 #define PBM_GETPOS (WM_USER+8)
353 #define PBM_SETBARCOLOR (WM_USER+9)
354 #define PBM_SETBKCOLOR CCM_SETBKCOLOR
356 #define PBS_SMOOTH 0x01
357 #define PBS_VERTICAL 0x04
363 } PBRANGE, *PPBRANGE;
368 #if !defined(__WINE__) || !defined(__WINE_IMAGELIST_C)
370 typedef struct _IMAGELIST *HIMAGELIST;
371 #endif */ /* __WINE__ */
373 #define CLR_NONE 0xFFFFFFFF
374 #define CLR_DEFAULT 0xFF000000
375 #define CLR_HILIGHT CLR_DEFAULT
377 #define ILC_MASK 0x0001
378 #define ILC_COLOR 0x0000
379 #define ILC_COLORDDB 0x00FE
380 #define ILC_COLOR4 0x0004
381 #define ILC_COLOR8 0x0008
382 #define ILC_COLOR16 0x0010
383 #define ILC_COLOR24 0x0018
384 #define ILC_COLOR32 0x0020
385 #define ILC_PALETTE 0x0800 /* no longer supported by M$ */
387 #define ILD_NORMAL 0x0000
388 #define ILD_TRANSPARENT 0x0001
389 #define ILD_BLEND25 0x0002
390 #define ILD_BLEND50 0x0004
391 #define ILD_MASK 0x0010
392 #define ILD_IMAGE 0x0020
393 #define ILD_ROP 0x0040
394 #define ILD_OVERLAYMASK 0x0F00
396 #define ILD_SELECTED ILD_BLEND50
397 #define ILD_FOCUS ILD_BLEND25
398 #define ILD_BLEND ILD_BLEND50
400 #define INDEXTOOVERLAYMASK(i) ((i)<<8)
402 #define ILCF_MOVE (0x00000000)
403 #define ILCF_SWAP (0x00000001)
406 typedef struct _IMAGEINFO
416 typedef struct _IMAGELISTDRAWPARAMS
426 INT32 xBitmap; /* x offest from the upperleft of bitmap */
427 INT32 yBitmap; /* y offset from the upperleft of bitmap */
432 } IMAGELISTDRAWPARAMS, *LPIMAGELISTDRAWPARAMS;
435 INT32 WINAPI ImageList_Add(HIMAGELIST,HBITMAP32,HBITMAP32);
436 INT32 WINAPI ImageList_AddIcon (HIMAGELIST, HICON32);
437 INT32 WINAPI ImageList_AddMasked(HIMAGELIST,HBITMAP32,COLORREF);
438 BOOL32 WINAPI ImageList_BeginDrag(HIMAGELIST,INT32,INT32,INT32);
439 BOOL32 WINAPI ImageList_Copy(HIMAGELIST,INT32,HIMAGELIST,INT32,INT32);
440 HIMAGELIST WINAPI ImageList_Create(INT32,INT32,UINT32,INT32,INT32);
441 BOOL32 WINAPI ImageList_Destroy(HIMAGELIST);
442 BOOL32 WINAPI ImageList_DragEnter(HWND32,INT32,INT32);
443 BOOL32 WINAPI ImageList_DragLeave(HWND32);
444 BOOL32 WINAPI ImageList_DragMove(INT32,INT32);
445 BOOL32 WINAPI ImageList_DragShowNolock (BOOL32);
446 BOOL32 WINAPI ImageList_Draw(HIMAGELIST,INT32,HDC32,INT32,INT32,UINT32);
447 BOOL32 WINAPI ImageList_DrawEx(HIMAGELIST,INT32,HDC32,INT32,INT32,INT32,
448 INT32,COLORREF,COLORREF,UINT32);
449 BOOL32 WINAPI ImageList_DrawIndirect(IMAGELISTDRAWPARAMS*);
450 HIMAGELIST WINAPI ImageList_Duplicate(HIMAGELIST);
451 BOOL32 WINAPI ImageList_EndDrag(VOID);
452 COLORREF WINAPI ImageList_GetBkColor(HIMAGELIST);
453 HIMAGELIST WINAPI ImageList_GetDragImage(POINT32*,POINT32*);
454 HICON32 WINAPI ImageList_GetIcon(HIMAGELIST,INT32,UINT32);
455 BOOL32 WINAPI ImageList_GetIconSize(HIMAGELIST,INT32*,INT32*);
456 INT32 WINAPI ImageList_GetImageCount(HIMAGELIST);
457 BOOL32 WINAPI ImageList_GetImageInfo(HIMAGELIST,INT32,IMAGEINFO*);
458 BOOL32 WINAPI ImageList_GetImageRect(HIMAGELIST,INT32,LPRECT32);
459 HIMAGELIST WINAPI ImageList_LoadImage32A(HINSTANCE32,LPCSTR,INT32,INT32,
460 COLORREF,UINT32,UINT32);
461 HIMAGELIST WINAPI ImageList_LoadImage32W(HINSTANCE32,LPCWSTR,INT32,INT32,
462 COLORREF,UINT32,UINT32);
463 #define ImageList_LoadImage WINELIB_NAME_AW(ImageList_LoadImage)
464 HIMAGELIST WINAPI ImageList_Merge(HIMAGELIST,INT32,HIMAGELIST,INT32,INT32,INT32);
465 #ifdef __IStream_INTREFACE_DEFINED__
466 HIMAGELIST WINAPI ImageList_Read(LPSTREAM32);
468 BOOL32 WINAPI ImageList_Remove(HIMAGELIST,INT32);
469 BOOL32 WINAPI ImageList_Replace(HIMAGELIST,INT32,HBITMAP32,HBITMAP32);
470 INT32 WINAPI ImageList_ReplaceIcon(HIMAGELIST,INT32,HICON32);
471 COLORREF WINAPI ImageList_SetBkColor(HIMAGELIST,COLORREF);
472 BOOL32 WINAPI ImageList_SetDragCursorImage(HIMAGELIST,INT32,INT32,INT32);
474 BOOL32 WINAPI ImageList_SetIconSize(HIMAGELIST,INT32,INT32);
475 BOOL32 WINAPI ImageList_SetImageCount(HIMAGELIST,INT32);
476 BOOL32 WINAPI ImageList_SetOverlayImage(HIMAGELIST,INT32,INT32);
477 #ifdef __IStream_INTREFACE_DEFINED__
478 BOOL32 WINAPI ImageList_Write(HIMAGELIST, LPSTREAM32);
482 #define ImageList_AddIcon(himl,hicon) ImageList_ReplaceIcon(himl,-1,hicon)
484 #define ImageList_ExtractIcon(hi,himl,i) ImageList_GetIcon(himl,i,0)
485 #define ImageList_LoadBitmap(hi,lpbmp,cx,cGrow,crMask) \
486 ImageList_LoadImage(hi,lpbmp,cx,cGrow,crMask,IMAGE_BITMAP,0)
487 #define ImageList_RemoveAll(himl) ImageList_Remove(himl,-1)
490 /* Flat Scrollbar control */
492 #define FLATSB_CLASS16 "flatsb_class"
493 #define FLATSB_CLASS32A "flatsb_class32"
494 #define FLATSB_CLASS32W L"flatsb_class32"
495 #define FLATSB_CLASS WINELIB_NAME_AW(FLATSB_CLASS)
497 BOOL32 WINAPI FlatSB_EnableScrollBar(HWND32, INT32, UINT32);
498 BOOL32 WINAPI FlatSB_ShowScrollBar(HWND32, INT32, BOOL32);
499 BOOL32 WINAPI FlatSB_GetScrollRange(HWND32, INT32, LPINT32, LPINT32);
500 BOOL32 WINAPI FlatSB_GetScrollInfo(HWND32, INT32, LPSCROLLINFO);
501 INT32 WINAPI FlatSB_GetScrollPos(HWND32, INT32);
502 BOOL32 WINAPI FlatSB_GetScrollProp(HWND32, INT32, LPINT32);
503 INT32 WINAPI FlatSB_SetScrollPos(HWND32, INT32, INT32, BOOL32);
504 INT32 WINAPI FlatSB_SetScrollInfo(HWND32, INT32, LPSCROLLINFO, BOOL32);
505 INT32 WINAPI FlatSB_SetScrollRange(HWND32, INT32, INT32, INT32, BOOL32);
506 BOOL32 WINAPI FlatSB_SetScrollProp(HWND32, UINT32, INT32, BOOL32);
507 BOOL32 WINAPI InitializeFlatSB(HWND32);
508 HRESULT WINAPI UninitializeFlatSB(HWND32);
513 #define WC_HEADER16 "SysHeader"
514 #define WC_HEADER32A "SysHeader32"
515 #define WC_HEADER32W L"SysHeader32"
516 #define WC_HEADER WINELIB_NAME_AW(WC_HEADER)
518 #define HDS_HORZ 0x0000
519 #define HDS_BUTTONS 0x0002
520 #define HDS_HOTTRACK 0x0004
521 #define HDS_HIDDEN 0x0008
522 #define HDS_DRAGDROP 0x0040
523 #define HDS_FULLDRAG 0x0080
525 #define HDI_WIDTH 0x0001
526 #define HDI_HEIGHT HDI_WIDTH
527 #define HDI_TEXT 0x0002
528 #define HDI_FORMAT 0x0004
529 #define HDI_LPARAM 0x0008
530 #define HDI_BITMAP 0x0010
531 #define HDI_IMAGE 0x0020
532 #define HDI_DI_SETITEM 0x0040
533 #define HDI_ORDER 0x0080
535 #define HDF_LEFT 0x0000
536 #define HDF_RIGHT 0x0001
537 #define HDF_CENTER 0x0002
538 #define HDF_JUSTIFYMASK 0x0003
540 #define HDF_IMAGE 0x0800
541 #define HDF_BITMAP_ON_RIGHT 0x1000
542 #define HDF_BITMAP 0x2000
543 #define HDF_STRING 0x4000
544 #define HDF_OWNERDRAW 0x8000
546 #define HHT_NOWHERE 0x0001
547 #define HHT_ONHEADER 0x0002
548 #define HHT_ONDIVIDER 0x0004
549 #define HHT_ONDIVOPEN 0x0008
550 #define HHT_ABOVE 0x0100
551 #define HHT_BELOW 0x0200
552 #define HHT_TORIGHT 0x0400
553 #define HHT_TOLEFT 0x0800
555 #define HDM_FIRST 0x1200
556 #define HDM_GETITEMCOUNT (HDM_FIRST+0)
557 #define HDM_INSERTITEM32A (HDM_FIRST+1)
558 #define HDM_INSERTITEM32W (HDM_FIRST+10)
559 #define HDM_INSERTITEM WINELIB_NAME_AW(HDM_INSERTITEM)
560 #define HDM_DELETEITEM (HDM_FIRST+2)
561 #define HDM_GETITEM32A (HDM_FIRST+3)
562 #define HDM_GETITEM32W (HDM_FIRST+11)
563 #define HDM_GETITEM WINELIB_NAME_AW(HDM_GETITEM)
564 #define HDM_SETITEM32A (HDM_FIRST+4)
565 #define HDM_SETITEM32W (HDM_FIRST+12)
566 #define HDM_SETITEM WINELIB_NAME_AW(HDM_SETITEM)
567 #define HDM_LAYOUT (HDM_FIRST+5)
568 #define HDM_HITTEST (HDM_FIRST+6)
569 #define HDM_GETITEMRECT (HDM_FIRST+7)
570 #define HDM_SETIMAGELIST (HDM_FIRST+8)
571 #define HDM_GETIMAGELIST (HDM_FIRST+9)
573 #define HDM_ORDERTOINDEX (HDM_FIRST+15)
574 #define HDM_CREATEDRAGIMAGE (HDM_FIRST+16)
575 #define HDM_GETORDERARRAY (HDM_FIRST+17)
576 #define HDM_SETORDERARRAY (HDM_FIRST+18)
577 #define HDM_SETHOTDIVIDER (HDM_FIRST+19)
578 #define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
579 #define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
581 #define HDN_FIRST (0U-300U)
582 #define HDN_LAST (0U-399U)
583 #define HDN_ITEMCHANGING32A (HDN_FIRST-0)
584 #define HDN_ITEMCHANGING32W (HDN_FIRST-20)
585 #define HDN_ITEMCHANGING WINELIB_NAME_AW(HDN_ITEMCHANGING)
586 #define HDN_ITEMCHANGED32A (HDN_FIRST-1)
587 #define HDN_ITEMCHANGED32W (HDN_FIRST-21)
588 #define HDN_ITEMCHANGED WINELIB_NAME_AW(HDN_ITEMCHANGED)
589 #define HDN_ITEMCLICK32A (HDN_FIRST-2)
590 #define HDN_ITEMCLICK32W (HDN_FIRST-22)
591 #define HDN_ITEMCLICK WINELIB_NAME_AW(HDN_ITEMCLICK)
592 #define HDN_ITEMDBLCLICK32A (HDN_FIRST-3)
593 #define HDN_ITEMDBLCLICK32W (HDN_FIRST-23)
594 #define HDN_ITEMDBLCLICK WINELIB_NAME_AW(HDN_ITEMDBLCLICK)
595 #define HDN_DIVIDERDBLCLICK32A (HDN_FIRST-5)
596 #define HDN_DIVIDERDBLCLICK32W (HDN_FIRST-25)
597 #define HDN_DIVIDERDBLCLICK WINELIB_NAME_AW(HDN_DIVIDERDBLCLICK)
598 #define HDN_BEGINTRACK32A (HDN_FIRST-6)
599 #define HDN_BEGINTRACK32W (HDN_FIRST-26)
600 #define HDN_BEGINTRACK WINELIB_NAME_AW(HDN_BEGINTRACK)
601 #define HDN_ENDTRACK32A (HDN_FIRST-7)
602 #define HDN_ENDTRACK32W (HDN_FIRST-27)
603 #define HDN_ENDTRACK WINELIB_NAME_AW(HDN_ENDTRACK)
604 #define HDN_TRACK32A (HDN_FIRST-8)
605 #define HDN_TRACK32W (HDN_FIRST-28)
606 #define HDN_TRACK WINELIB_NAME_AW(HDN_TRACK)
607 #define HDN_GETDISPINFO32A (HDN_FIRST-9)
608 #define HDN_GETDISPINFO32W (HDN_FIRST-29)
609 #define HDN_GETDISPINFO WINELIB_NAME_AW(HDN_GETDISPINFO)
610 #define HDN_BEGINDRACK (HDN_FIRST-10)
611 #define HDN_ENDDRACK (HDN_FIRST-11)
613 typedef struct _HD_LAYOUT
617 } HDLAYOUT, *LPHDLAYOUT;
619 #define HD_LAYOUT HDLAYOUT
621 typedef struct _HD_ITEM32A
632 } HDITEM32A, *LPHDITEM32A;
634 typedef struct _HD_ITEM32W
645 } HDITEM32W, *LPHDITEM32W;
647 #define HDITEM WINELIB_NAME_AW(HDITEM)
648 #define LPHDITEM WINELIB_NAME_AW(LPHDITEM)
649 #define HD_ITEM HDITEM
651 #define HDITEM_V1_SIZE32A CCSIZEOF_STRUCT(HDITEM32A, lParam)
652 #define HDITEM_V1_SIZE32W CCSIZEOF_STRUCT(HDITEM32W, lParam)
653 #define HDITEM_V1_SIZE WINELIB_NAME_AW(HDITEM_V1_SIZE)
655 typedef struct _HD_HITTESTINFO
660 } HDHITTESTINFO, *LPHDHITTESTINFO;
662 #define HD_HITTESTINFO HDHITTESTINFO
664 typedef struct tagNMHEADER32A
670 } NMHEADER32A, *LPNMHEADER32A;
672 typedef struct tagNMHEADER32W
678 } NMHEADER32W, *LPNMHEADER32W;
680 #define NMHEADER WINELIB_NAME_AW(NMHEADER)
681 #define LPNMHEADER WINELIB_NAME_AW(LPNMHEADER)
682 #define HD_NOTIFY NMHEADER
684 typedef struct tagNMHDDISPINFO32A
693 } NMHDDISPINFO32A, *LPNMHDDISPINFO32A;
695 typedef struct tagNMHDDISPINFO32W
704 } NMHDDISPINFO32W, *LPNMHDDISPINFO32W;
706 #define NMHDDISPINFO WINELIB_NAME_AW(NMHDDISPINFO)
707 #define LPNMHDDISPINFO WINELIB_NAME_AW(LPNMHDDISPINFO)
709 #define Header_GetItemCount(hwndHD) \
710 (INT32)SendMessage32A((hwndHD),HDM_GETITEMCOUNT,0,0L)
711 #define Header_InsertItem32A(hwndHD,i,phdi) \
712 (INT32)SendMessage32A((hwndHD),HDM_INSERTITEM32A,(WPARAM32)(INT32)(i),(LPARAM)(const HDITEM32A*)(phdi))
713 #define Header_InsertItem32W(hwndHD,i,phdi) \
714 (INT32)SendMessage32W((hwndHD),HDM_INSERTITEM32W,(WPARAM32)(INT32)(i),(LPARAM)(const HDITEM32W*)(phdi))
715 #define Header_InsertItem WINELIB_NAME_AW(Header_InsertItem)
716 #define Header_DeleteItem(hwndHD,i) \
717 (BOOL32)SendMessage32A((hwndHD),HDM_DELETEITEM,(WPARAM32)(INT32)(i),0L)
718 #define Header_GetItem32A(hwndHD,i,phdi) \
719 (BOOL32)SendMessage32A((hwndHD),HDM_GETITEM32A,(WPARAM32)(INT32)(i),(LPARAM)(HDITEM32A*)(phdi))
720 #define Header_GetItem32W(hwndHD,i,phdi) \
721 (BOOL32)SendMessage32W((hwndHD),HDM_GETITEM32W,(WPARAM32)(INT32)(i),(LPARAM)(HDITEM32W*)(phdi))
722 #define Header_GetItem WINELIB_NAME_AW(Header_GetItem)
723 #define Header_SetItem32A(hwndHD,i,phdi) \
724 (BOOL32)SendMessage32A((hwndHD),HDM_SETITEM32A,(WPARAM32)(INT32)(i),(LPARAM)(const HDITEM32A*)(phdi))
725 #define Header_SetItem32W(hwndHD,i,phdi) \
726 (BOOL32)SendMessage32W((hwndHD),HDM_SETITEM32W,(WPARAM32)(INT32)(i),(LPARAM)(const HDITEM32W*)(phdi))
727 #define Header_SetItem WINELIB_NAME_AW(Header_SetItem)
728 #define Header_Layout(hwndHD,playout) \
729 (BOOL32)SendMessage32A((hwndHD),HDM_LAYOUT,0,(LPARAM)(LPHDLAYOUT)(playout))
730 #define Header_GetItemRect(hwnd,iItem,lprc) \
731 (BOOL32)SendMessage32A((hwnd),HDM_GETITEMRECT,(WPARAM32)iItem,(LPARAM)lprc)
732 #define Header_SetImageList(hwnd,himl) \
733 (HIMAGELIST)SendMessage32A((hwnd),HDM_SETIMAGELIST,0,(LPARAM)himl)
734 #define Header_GetImageList(hwnd) \
735 (HIMAGELIST)SendMessage32A((hwnd),HDM_GETIMAGELIST,0,0)
736 #define Header_OrderToIndex(hwnd,i) \
737 (INT32)SendMessage32A((hwnd),HDM_ORDERTOINDEX,(WPARAM32)i,0)
738 #define Header_CreateDragImage(hwnd,i) \
739 (HIMAGELIST)SendMessage32A((hwnd),HDM_CREATEDRAGIMAGE,(WPARAM32)i,0)
740 #define Header_GetOrderArray(hwnd,iCount,lpi) \
741 (BOOL32)SendMessage32A((hwnd),HDM_GETORDERARRAY,(WPARAM32)iCount,(LPARAM)lpi)
742 #define Header_SetOrderArray(hwnd,iCount,lpi) \
743 (BOOL32)SendMessage32A((hwnd),HDM_SETORDERARRAY,(WPARAM32)iCount,(LPARAM)lpi)
744 #define Header_SetHotDivider(hwnd,fPos,dw) \
745 (INT32)SendMessage32A((hwnd),HDM_SETHOTDIVIDER,(WPARAM32)fPos,(LPARAM)dw)
746 #define Header_SetUnicodeFormat(hwnd,fUnicode) \
747 (BOOL32)SendMessage32A((hwnd),HDM_SETUNICODEFORMAT,(WPARAM32)(fUnicode),0)
748 #define Header_GetUnicodeFormat(hwnd) \
749 (BOOL32)SendMessage32A((hwnd),HDM_GETUNICODEFORMAT,0,0)
754 #define TOOLBARCLASSNAME16 "ToolbarWindow"
755 #define TOOLBARCLASSNAME32W L"ToolbarWindow32"
756 #define TOOLBARCLASSNAME32A "ToolbarWindow32"
757 #define TOOLBARCLASSNAME WINELIB_NAME_AW(TOOLBARCLASSNAME)
759 #define CMB_MASKED 0x02
761 #define TBSTATE_CHECKED 0x01
762 #define TBSTATE_PRESSED 0x02
763 #define TBSTATE_ENABLED 0x04
764 #define TBSTATE_HIDDEN 0x08
765 #define TBSTATE_INDETERMINATE 0x10
766 #define TBSTATE_WRAP 0x20
767 #define TBSTATE_ELLIPSES 0x40
768 #define TBSTATE_MARKED 0x80
770 #define TBSTYLE_BUTTON 0x00
771 #define TBSTYLE_SEP 0x01
772 #define TBSTYLE_CHECK 0x02
773 #define TBSTYLE_GROUP 0x04
774 #define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK)
775 #define TBSTYLE_DROPDOWN 0x08
777 #define TBSTYLE_TOOLTIPS 0x0100
778 #define TBSTYLE_WRAPABLE 0x0200
779 #define TBSTYLE_ALTDRAG 0x0400
780 #define TBSTYLE_FLAT 0x0800
781 #define TBSTYLE_LIST 0x1000
782 #define TBSTYLE_CUSTOMERASE 0x2000
784 #define TBIF_IMAGE 0x00000001
785 #define TBIF_TEXT 0x00000002
786 #define TBIF_STATE 0x00000004
787 #define TBIF_STYLE 0x00000008
788 #define TBIF_LPARAM 0x00000010
789 #define TBIF_COMMAND 0x00000020
790 #define TBIF_SIZE 0x00000040
792 #define TBBF_LARGE 0x0001
794 #define TB_ENABLEBUTTON (WM_USER+1)
795 #define TB_CHECKBUTTON (WM_USER+2)
796 #define TB_PRESSBUTTON (WM_USER+3)
797 #define TB_HIDEBUTTON (WM_USER+4)
798 #define TB_INDETERMINATE (WM_USER+5)
799 #define TB_ISBUTTONENABLED (WM_USER+9)
800 #define TB_ISBUTTONCHECKED (WM_USER+10)
801 #define TB_ISBUTTONPRESSED (WM_USER+11)
802 #define TB_ISBUTTONHIDDEN (WM_USER+12)
803 #define TB_ISBUTTONINDETERMINATE (WM_USER+13)
804 #define TB_ISBUTTONHIGHLIGHTED (WM_USER+14)
805 #define TB_SETSTATE (WM_USER+17)
806 #define TB_GETSTATE (WM_USER+18)
807 #define TB_ADDBITMAP (WM_USER+19)
808 #define TB_ADDBUTTONS32A (WM_USER+20)
809 #define TB_ADDBUTTONS32W (WM_USER+68)
810 #define TB_ADDBUTTONS WINELIB_NAME_AW(TB_ADDBUTTONS)
811 #define TB_HITTEST (WM_USER+69)
812 #define TB_INSERTBUTTON32A (WM_USER+21)
813 #define TB_INSERTBUTTON32W (WM_USER+67)
814 #define TB_INSERTBUTTON WINELIB_NAME_AW(TB_INSERTBUTTON)
815 #define TB_DELETEBUTTON (WM_USER+22)
816 #define TB_GETBUTTON (WM_USER+23)
817 #define TB_BUTTONCOUNT (WM_USER+24)
818 #define TB_COMMANDTOINDEX (WM_USER+25)
819 #define TB_SAVERESTORE32A (WM_USER+26)
820 #define TB_SAVERESTORE32W (WM_USER+76)
821 #define TB_SAVERESTORE WINELIB_NAME_AW(TB_SAVERESTORE)
822 #define TB_CUSTOMIZE (WM_USER+27)
823 #define TB_ADDSTRING32A (WM_USER+28)
824 #define TB_ADDSTRING32W (WM_USER+77)
825 #define TB_ADDSTRING WINELIB_NAME_AW(TB_ADDSTRING)
826 #define TB_GETITEMRECT (WM_USER+29)
827 #define TB_BUTTONSTRUCTSIZE (WM_USER+30)
828 #define TB_SETBUTTONSIZE (WM_USER+31)
829 #define TB_SETBITMAPSIZE (WM_USER+32)
830 #define TB_AUTOSIZE (WM_USER+33)
831 #define TB_GETTOOLTIPS (WM_USER+35)
832 #define TB_SETTOOLTIPS (WM_USER+36)
833 #define TB_SETPARENT (WM_USER+37)
834 #define TB_SETROWS (WM_USER+39)
835 #define TB_GETROWS (WM_USER+40)
836 #define TB_GETBITMAPFLAGS (WM_USER+41)
837 #define TB_SETCMDID (WM_USER+42)
838 #define TB_CHANGEBITMAP (WM_USER+43)
839 #define TB_GETBITMAP (WM_USER+44)
840 #define TB_GETBUTTONTEXT32A (WM_USER+45)
841 #define TB_GETBUTTONTEXT32W (WM_USER+75)
842 #define TB_GETBUTTONTEXT WINELIB_NAME_AW(TB_GETBUTTONTEXT)
843 #define TB_REPLACEBITMAP (WM_USER+46)
844 #define TB_SETINDENT (WM_USER+47)
845 #define TB_SETIMAGELIST (WM_USER+48)
846 #define TB_GETIMAGELIST (WM_USER+49)
847 #define TB_LOADIMAGES (WM_USER+50)
848 #define TB_GETRECT (WM_USER+51) /* wParam is the Cmd instead of index */
849 #define TB_SETHOTIMAGELIST (WM_USER+52)
850 #define TB_GETHOTIMAGELIST (WM_USER+53)
851 #define TB_SETDISABLEDIMAGELIST (WM_USER+54)
852 #define TB_GETDISABLEDIMAGELIST (WM_USER+55)
853 #define TB_SETSTYLE (WM_USER+56)
854 #define TB_GETSTYLE (WM_USER+57)
855 #define TB_GETBUTTONSIZE (WM_USER+58)
856 #define TB_SETBUTTONWIDTH (WM_USER+59)
857 #define TB_SETMAXTEXTROWS (WM_USER+60)
858 #define TB_GETTEXTROWS (WM_USER+61)
859 #define TB_GETOBJECT (WM_USER+62)
860 #define TB_GETBUTTONINFO32W (WM_USER+63)
861 #define TB_GETBUTTONINFO32A (WM_USER+65)
862 #define TB_GETBUTTONINFO WINELIB_NAME_AW(TB_GETBUTTONINFO)
863 #define TB_SETBUTTONINFO32W (WM_USER+64)
864 #define TB_SETBUTTONINFO32A (WM_USER+66)
865 #define TB_SETBUTTONINFO WINELIB_NAME_AW(TB_SETBUTTONINFO)
866 #define TB_SETDRAWTEXTFLAGS (WM_USER+70)
867 #define TB_GETHOTITEM (WM_USER+71)
868 #define TB_SETHOTITEM (WM_USER+72)
869 #define TB_SETANCHORHIGHLIGHT (WM_USER+73)
870 #define TB_GETANCHORHIGHLIGHT (WM_USER+74)
871 #define TB_MAPACCELERATOR32A (WM_USER+78)
872 #define TB_MAPACCELERATOR32W (WM_USER+90)
873 #define TB_MAPACCELERATOR WINELIB_NAME_AW(TB_MAPACCELERATOR)
874 #define TB_GETINSERTMARK (WM_USER+79)
875 #define TB_SETINSERTMARK (WM_USER+80)
876 #define TB_INSERTMARKHITTEST (WM_USER+81)
877 #define TB_MOVEBUTTON (WM_USER+82)
878 #define TB_GETMAXSIZE (WM_USER+83)
879 #define TB_SETEXTENDEDSTYLE (WM_USER+84)
880 #define TB_GETEXTENDEDSTYLE (WM_USER+85)
881 #define TB_GETPADDING (WM_USER+86)
882 #define TB_SETPADDING (WM_USER+87)
883 #define TB_SETINSERTMARKCOLOR (WM_USER+88)
884 #define TB_GETINSERTMARKCOLOR (WM_USER+89)
885 #define TB_SETCOLORSCHEME CCM_SETCOLORSCHEME
886 #define TB_GETCOLORSCHEME CCM_GETCOLORSCHEME
887 #define TB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
888 #define TB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
890 #define TBN_FIRST (0U-700U)
891 #define TBN_LAST (0U-720U)
892 #define TBN_GETBUTTONINFO32A (TBN_FIRST-0)
893 #define TBN_GETBUTTONINFO32W (TBN_FIRST-20)
894 #define TBN_GETBUTTONINFO WINELIB_NAME_AW(TBN_GETBUTTONINFO)
895 #define TBN_GETINFOTIP32A (TBN_FIRST-18)
896 #define TBN_GETINFOTIP32W (TBN_FIRST-19)
897 #define TBN_GETINFOTIP WINELIB_NAME_AW(TBN_GETINFOTIP)
900 /* This is just for old CreateToolbar. */
901 /* Don't use it in new programs. */
902 typedef struct _OLDTBBUTTON {
909 } OLDTBBUTTON, *POLDTBBUTTON, *LPOLDTBBUTTON;
910 typedef const OLDTBBUTTON *LPCOLDTBBUTTON;
913 typedef struct _TBBUTTON {
921 } TBBUTTON, *PTBBUTTON, *LPTBBUTTON;
922 typedef const TBBUTTON *LPCTBBUTTON;
925 typedef struct _COLORMAP {
928 } COLORMAP, *LPCOLORMAP;
930 typedef struct tagTBADDBITMAP {
933 } TBADDBITMAP, *LPTBADDBITMAP;
935 #define HINST_COMMCTRL ((HINSTANCE32)-1)
936 #define IDB_STD_SMALL_COLOR 0
937 #define IDB_STD_LARGE_COLOR 1
938 #define IDB_VIEW_SMALL_COLOR 4
939 #define IDB_VIEW_LARGE_COLOR 5
940 #define IDB_HIST_SMALL_COLOR 8
941 #define IDB_HIST_LARGE_COLOR 9
949 #define STD_FILENEW 6
950 #define STD_FILEOPEN 7
951 #define STD_FILESAVE 8
952 #define STD_PRINTPRE 9
953 #define STD_PROPERTIES 10
956 #define STD_REPLACE 13
959 #define VIEW_LARGEICONS 0
960 #define VIEW_SMALLICONS 1
962 #define VIEW_DETAILS 3
963 #define VIEW_SORTNAME 4
964 #define VIEW_SORTSIZE 5
965 #define VIEW_SORTDATE 6
966 #define VIEW_SORTTYPE 7
967 #define VIEW_PARENTFOLDER 8
968 #define VIEW_NETCONNECT 9
969 #define VIEW_NETDISCONNECT 10
970 #define VIEW_NEWFOLDER 11
972 typedef struct tagTBSAVEPARAMSA {
976 } TBSAVEPARAMS32A, *LPTBSAVEPARAMS32A;
978 typedef struct tagTBSAVEPARAMSW {
981 LPCWSTR pszValueName;
982 } TBSAVEPARAMSA32W, *LPTBSAVEPARAMSA32W;
984 #define TBSAVEPARAMS WINELIB_NAME_AW(TBSAVEPARAMS)
985 #define LPTBSAVEPARAMS WINELIB_NAME_AW(LPTBSAVEPARAMS)
999 } TBBUTTONINFO32A, *LPTBBUTTONINFO32A;
1013 } TBBUTTONINFO32W, *LPTBBUTTONINFO32W;
1015 #define TBBUTTONINFO WINELIB_NAME_AW(TBBUTTONINFO)
1016 #define LPTBBUTTONINFO WINELIB_NAME_AW(LPTBBUTTONINFO)
1018 typedef struct tagNMTBGETINFOTIPA
1025 } NMTBGETINFOTIP32A, *LPNMTBGETINFOTIP32A;
1027 typedef struct tagNMTBGETINFOTIPW
1034 } NMTBGETINFOTIP32W, *LPNMTBGETINFOTIP32W;
1036 #define NMTBGETINFOTIP WINELIB_NAME_AW(NMTBGETINFOFTIP)
1037 #define LPNMTBGETINFOTIP WINELIB_NAME_AW(LPNMTBGETINFOTIP)
1041 HINSTANCE32 hInstOld;
1043 HINSTANCE32 hInstNew;
1046 } TBREPLACEBITMAP, *LPTBREPLACEBITMAP;
1049 CreateToolbar(HWND32, DWORD, UINT32, INT32, HINSTANCE32,
1050 UINT32, LPCOLDTBBUTTON, INT32);
1053 CreateToolbarEx(HWND32, DWORD, UINT32, INT32,
1054 HINSTANCE32, UINT32, LPCTBBUTTON,
1055 INT32, INT32, INT32, INT32, INT32, UINT32);
1058 CreateMappedBitmap (HINSTANCE32, INT32, UINT32, LPCOLORMAP, INT32);
1063 #define TOOLTIPS_CLASS16 "tooltips_class"
1064 #define TOOLTIPS_CLASS32A "tooltips_class32"
1065 #define TOOLTIPS_CLASS32W L"tooltips_class32"
1066 #define TOOLTIPS_CLASS WINELIB_NAME_AW(TOOLTIPS_CLASS)
1068 #define INFOTIPSIZE 1024
1070 #define TTS_ALWAYSTIP 0x01
1071 #define TTS_NOPREFIX 0x02
1073 #define TTF_IDISHWND 0x0001
1074 #define TTF_CENTERTIP 0x0002
1075 #define TTF_RTLREADING 0x0004
1076 #define TTF_SUBCLASS 0x0010
1077 #define TTF_TRACK 0x0020
1078 #define TTF_ABSOLUTE 0x0080
1079 #define TTF_TRANSPARENT 0x0100
1080 #define TTF_DI_SETITEM 0x8000 /* valid only on the TTN_NEEDTEXT callback */
1083 #define TTDT_AUTOMATIC 0
1084 #define TTDT_RESHOW 1
1085 #define TTDT_AUTOPOP 2
1086 #define TTDT_INITIAL 3
1089 #define TTM_ACTIVATE (WM_USER+1)
1090 #define TTM_SETDELAYTIME (WM_USER+3)
1091 #define TTM_ADDTOOL32A (WM_USER+4)
1092 #define TTM_ADDTOOL32W (WM_USER+50)
1093 #define TTM_ADDTOOL WINELIB_NAME_AW(TTM_ADDTOOL)
1094 #define TTM_DELTOOL32A (WM_USER+5)
1095 #define TTM_DELTOOL32W (WM_USER+51)
1096 #define TTM_DELTOOL WINELIB_NAME_AW(TTM_DELTOOL)
1097 #define TTM_NEWTOOLRECT32A (WM_USER+6)
1098 #define TTM_NEWTOOLRECT32W (WM_USER+52)
1099 #define TTM_NEWTOOLRECT WINELIB_NAME_AW(TTM_NEWTOOLRECT)
1100 #define TTM_RELAYEVENT (WM_USER+7)
1101 #define TTM_GETTOOLINFO32A (WM_USER+8)
1102 #define TTM_GETTOOLINFO32W (WM_USER+53)
1103 #define TTM_GETTOOLINFO WINELIB_NAME_AW(TTM_GETTOOLINFO)
1104 #define TTM_SETTOOLINFO32A (WM_USER+9)
1105 #define TTM_SETTOOLINFO32W (WM_USER+54)
1106 #define TTM_SETTOOLINFO WINELIB_NAME_AW(TTM_SETTOOLINFO)
1107 #define TTM_HITTEST32A (WM_USER+10)
1108 #define TTM_HITTEST32W (WM_USER+55)
1109 #define TTM_HITTEST WINELIB_NAME_AW(TTM_HITTEST)
1110 #define TTM_GETTEXT32A (WM_USER+11)
1111 #define TTM_GETTEXT32W (WM_USER+56)
1112 #define TTM_GETTEXT WINELIB_NAME_AW(TTM_GETTEXT)
1113 #define TTM_UPDATETIPTEXT32A (WM_USER+12)
1114 #define TTM_UPDATETIPTEXT32W (WM_USER+57)
1115 #define TTM_UPDATETIPTEXT WINELIB_NAME_AW(TTM_UPDATETIPTEXT)
1116 #define TTM_GETTOOLCOUNT (WM_USER+13)
1117 #define TTM_ENUMTOOLS32A (WM_USER+14)
1118 #define TTM_ENUMTOOLS32W (WM_USER+58)
1119 #define TTM_ENUMTOOLS WINELIB_NAME_AW(TTM_ENUMTOOLS)
1120 #define TTM_GETCURRENTTOOL32A (WM_USER+15)
1121 #define TTM_GETCURRENTTOOL32W (WM_USER+59)
1122 #define TTM_GETCURRENTTOOL WINELIB_NAME_AW(TTM_GETCURRENTTOOL)
1123 #define TTM_WINDOWFROMPOINT (WM_USER+16)
1124 #define TTM_TRACKACTIVATE (WM_USER+17)
1125 #define TTM_TRACKPOSITION (WM_USER+18)
1126 #define TTM_SETTIPBKCOLOR (WM_USER+19)
1127 #define TTM_SETTIPTEXTCOLOR (WM_USER+20)
1128 #define TTM_GETDELAYTIME (WM_USER+21)
1129 #define TTM_GETTIPBKCOLOR (WM_USER+22)
1130 #define TTM_GETTIPTEXTCOLOR (WM_USER+23)
1131 #define TTM_SETMAXTIPWIDTH (WM_USER+24)
1132 #define TTM_GETMAXTIPWIDTH (WM_USER+25)
1133 #define TTM_SETMARGIN (WM_USER+26)
1134 #define TTM_GETMARGIN (WM_USER+27)
1135 #define TTM_POP (WM_USER+28)
1136 #define TTM_UPDATE (WM_USER+29)
1139 #define TTN_FIRST (0U-520U)
1140 #define TTN_LAST (0U-549U)
1141 #define TTN_GETDISPINFO32A (TTN_FIRST-0)
1142 #define TTN_GETDISPINFO32W (TTN_FIRST-10)
1143 #define TTN_GETDISPINFO WINELIB_NAME_AW(TTN_GETDISPINFO)
1144 #define TTN_SHOW (TTN_FIRST-1)
1145 #define TTN_POP (TTN_FIRST-2)
1147 #define TTN_NEEDTEXT TTN_GETDISPINFO
1148 #define TTN_NEEDTEXTA TTN_GETDISPINFO32A
1149 #define TTN_NEEDTEXTW TTN_GETDISPINFO32W
1151 typedef struct tagTOOLINFOA {
1160 } TTTOOLINFO32A, *LPTOOLINFO32A, *PTOOLINFO32A, *LPTTTOOLINFO32A;
1162 typedef struct tagTOOLINFOW {
1171 } TTTOOLINFO32W, *LPTOOLINFO32W, *PTOOLINFO32W, *LPTTTOOLINFO32W;
1173 #define TTTOOLINFO WINELIB_NAME_AW(TTTOOLINFO)
1174 #define TOOLINFO WINELIB_NAME_AW(TTTOOLINFO)
1175 #define PTOOLINFO WINELIB_NAME_AW(PTOOLINFO)
1176 #define LPTTTOOLINFO WINELIB_NAME_AW(LPTTTOOLINFO)
1177 #define LPTOOLINFO WINELIB_NAME_AW(LPTOOLINFO)
1179 #define TTTOOLINFO_V1_SIZE32A CCSIZEOF_STRUCT(TTTOOLINFO32A, lpszText)
1180 #define TTTOOLINFO_V1_SIZE32W CCSIZEOF_STRUCT(TTTOOLINFO32W, lpszText)
1181 #define TTTOOLINFO_V1_SIZE WINELIB_NAME_AW(TTTOOLINFO_V1_SIZE)
1183 typedef struct _TT_HITTESTINFOA
1188 } TTHITTESTINFO32A, *LPTTHITTESTINFO32A;
1190 typedef struct _TT_HITTESTINFOW
1195 } TTHITTESTINFO32W, *LPTTHITTESTINFO32W;
1197 #define TTHITTESTINFO WINELIB_NAME_AW(TTHITTESTINFO)
1198 #define LPTTHITTESTINFO WINELIB_NAME_AW(LPTTHITTESTINFO)
1200 typedef struct tagNMTTDISPINFOA
1208 } NMTTDISPINFO32A, *LPNMTTDISPINFO32A;
1210 typedef struct tagNMTTDISPINFOW
1218 } NMTTDISPINFO32W, *LPNMTTDISPINFO32W;
1220 #define NMTTDISPINFO WINELIB_NAME_AW(NMTTDISPINFO)
1221 #define LPNMTTDISPINFO WINELIB_NAME_AW(LPNMTTDISPINFO)
1223 #define NMTTDISPINFO_V1_SIZE32A CCSIZEOF_STRUCT(NMTTDISPINFO32A, uFlags)
1224 #define NMTTDISPINFO_V1_SIZE32W CCSIZEOF_STRUCT(NMTTDISPINFO32W, uFlags)
1225 #define NMTTDISPINFO_V1_SIZE WINELIB_NAME_AW(NMTTDISPINFO_V1_SIZE)
1227 #define TOOLTIPTEXTW NMTTDISPINFO32W
1228 #define TOOLTIPTEXTA NMTTDISPINFO32A
1229 #define TOOLTIPTEXT NMTTDISPINFO
1230 #define LPTOOLTIPTEXTW LPNMTTDISPINFOW
1231 #define LPTOOLTIPTEXTA LPNMTTDISPINFOA
1232 #define LPTOOLTIPTEXT LPNMTTDISPINFO
1237 #define REBARCLASSNAME16 "ReBarWindow"
1238 #define REBARCLASSNAME32A "ReBarWindow32"
1239 #define REBARCLASSNAME32W L"ReBarWindow32"
1240 #define REBARCLASSNAME WINELIB_NAME_AW(REBARCLASSNAME)
1242 #define RBS_TOOLTIPS 0x0100
1243 #define RBS_VARHEIGHT 0x0200
1244 #define RBS_BANDBORDERS 0x0400
1245 #define RBS_FIXEDORDER 0x0800
1246 #define RBS_REGISTERDROP 0x1000
1247 #define RBS_AUTOSIZE 0x2000
1248 #define RBS_VERTICALGRIPPER 0x4000
1249 #define RBS_DBLCLKTOGGLE 0x8000
1251 #define RBIM_IMAGELIST 0x00000001
1253 #define RBBIM_STYLE 0x00000001
1254 #define RBBIM_COLORS 0x00000002
1255 #define RBBIM_TEXT 0x00000004
1256 #define RBBIM_IMAGE 0x00000008
1257 #define RBBIM_CHILD 0x00000010
1258 #define RBBIM_CHILDSIZE 0x00000020
1259 #define RBBIM_SIZE 0x00000040
1260 #define RBBIM_BACKGROUND 0x00000080
1261 #define RBBIM_ID 0x00000100
1262 #define RBBIM_IDEALSIZE 0x00000200
1263 #define RBBIM_LPARAM 0x00000400
1264 #define RBBIM_HEADERSIZE 0x00000800
1266 #define RBBS_BREAK 0x00000001
1267 #define RBBS_FIXEDSIZE 0x00000002
1268 #define RBBS_CHILDEDGE 0x00000004
1269 #define RBBS_HIDDEN 0x00000008
1270 #define RBBS_NOVERT 0x00000010
1271 #define RBBS_FIXEDBMP 0x00000020
1272 #define RBBS_VARIABLEHEIGHT 0x00000040
1273 #define RBBS_GRIPPERALWAYS 0x00000080
1274 #define RBBS_NOGRIPPER 0x00000100
1276 #define RBNM_ID 0x00000001
1277 #define RBNM_STYLE 0x00000002
1278 #define RBNM_LPARAM 0x00000004
1280 #define RBHT_NOWHERE 0x0001
1281 #define RBHT_CAPTION 0x0002
1282 #define RBHT_CLIENT 0x0003
1283 #define RBHT_GRABBER 0x0004
1285 #define RB_INSERTBAND32A (WM_USER+1)
1286 #define RB_INSERTBAND32W (WM_USER+10)
1287 #define RB_INSERTBAND WINELIB_NAME_AW(RB_INSERTBAND)
1288 #define RB_DELETEBAND (WM_USER+2)
1289 #define RB_GETBARINFO (WM_USER+3)
1290 #define RB_SETBARINFO (WM_USER+4)
1291 #define RB_GETBANDINFO32 (WM_USER+5) /* just for compatibility */
1292 #define RB_SETBANDINFO32A (WM_USER+6)
1293 #define RB_SETBANDINFO32W (WM_USER+11)
1294 #define RB_SETBANDINFO WINELIB_NAME_AW(RB_SETBANDINFO)
1295 #define RB_SETPARENT (WM_USER+7)
1296 #define RB_HITTEST (WM_USER+8)
1297 #define RB_GETRECT (WM_USER+9)
1298 #define RB_GETBANDCOUNT (WM_USER+12)
1299 #define RB_GETROWCOUNT (WM_USER+13)
1300 #define RB_GETROWHEIGHT (WM_USER+14)
1301 #define RB_IDTOINDEX (WM_USER+16)
1302 #define RB_GETTOOLTIPS (WM_USER+17)
1303 #define RB_SETTOOLTIPS (WM_USER+18)
1304 #define RB_SETBKCOLOR (WM_USER+19)
1305 #define RB_GETBKCOLOR (WM_USER+20)
1306 #define RB_SETTEXTCOLOR (WM_USER+21)
1307 #define RB_GETTEXTCOLOR (WM_USER+22)
1308 #define RB_SIZETORECT (WM_USER+23)
1309 #define RB_BEGINDRAG (WM_USER+24)
1310 #define RB_ENDDRAG (WM_USER+25)
1311 #define RB_DRAGMOVE (WM_USER+26)
1312 #define RB_GETBARHEIGHT (WM_USER+27)
1313 #define RB_GETBANDINFO32W (WM_USER+28)
1314 #define RB_GETBANDINFO32A (WM_USER+29)
1315 #define RB_GETBANDINFO WINELIB_NAME_AW(RB_GETBANDINFO)
1316 #define RB_MINIMIZEBAND (WM_USER+30)
1317 #define RB_MAXIMIZEBAND (WM_USER+31)
1318 #define RB_GETBANDBORDERS (WM_USER+34)
1319 #define RB_SHOWBAND (WM_USER+35)
1320 #define RB_SETPALETTE (WM_USER+37)
1321 #define RB_GETPALETTE (WM_USER+38)
1322 #define RB_MOVEBAND (WM_USER+39)
1323 #define RB_GETDROPTARGET CCM_GETDROPTARGET
1324 #define RB_SETCOLORSCHEME CCM_SETCOLORSCHEME
1325 #define RB_GETCOLORSCHEME CCM_GETCOLORSCHEME
1326 #define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1327 #define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1329 #define RBN_FIRST (0U-831U)
1330 #define RBN_LAST (0U-859U)
1331 #define RBN_HEIGHTCHANGE (RBN_FIRST-0)
1332 #define RBN_GETOBJECT (RBN_FIRST-1)
1333 #define RBN_LAYOUTCHANGED (RBN_FIRST-2)
1334 #define RBN_AUTOSIZE (RBN_FIRST-3)
1335 #define RBN_BEGINDRAG (RBN_FIRST-4)
1336 #define RBN_ENDDRAG (RBN_FIRST-5)
1337 #define RBN_DELETINGBAND (RBN_FIRST-6)
1338 #define RBN_DELETEDBAND (RBN_FIRST-7)
1339 #define RBN_CHILDSIZE (RBN_FIRST-8)
1341 typedef struct tagREBARINFO
1346 } REBARINFO, *LPREBARINFO;
1348 typedef struct tagREBARBANDINFOA
1370 } REBARBANDINFO32A, *LPREBARBANDINFO32A;
1372 typedef REBARBANDINFO32A const *LPCREBARBANDINFO32A;
1374 typedef struct tagREBARBANDINFOW
1396 } REBARBANDINFO32W, *LPREBARBANDINFO32W;
1398 typedef REBARBANDINFO32W const *LPCREBARBANDINFO32W;
1400 #define REBARBANDINFO WINELIB_NAME_AW(REBARBANDINFO)
1401 #define LPREBARBANDINFO WINELIB_NAME_AW(LPREBARBANDINFO)
1402 #define LPCREBARBANDINFO WINELIB_NAME_AW(LPCREBARBANDINFO)
1404 #define REBARBANDINFO_V3_SIZE32A CCSIZEOF_STRUCT(REBARBANDINFO32A, wID)
1405 #define REBARBANDINFO_V3_SIZE32W CCSIZEOF_STRUCT(REBARBANDINFO32W, wID)
1406 #define REBARBANDINFO_V3_SIZE WINELIB_NAME_AW(REBARBANDINFO_V3_SIZE)
1408 typedef struct tagNMREBARCHILDSIZE
1415 } NMREBARCHILDSIZE, *LPNMREBARCHILDSIZE;
1417 typedef struct tagNMREBAR
1425 } NMREBAR, *LPNMREBAR;
1427 typedef struct tagNMRBAUTOSIZE
1433 } NMRBAUTOSIZE, *LPNMRBAUTOSIZE;
1435 typedef struct _RB_HITTESTINFO
1440 } RBHITTESTINFO, *LPRBHITTESTINFO;
1443 /* Trackbar control */
1445 #define TRACKBAR_CLASS16 "msctls_trackbar"
1446 #define TRACKBAR_CLASS32A "msctls_trackbar32"
1447 #define TRACKBAR_CLASS32W L"msctls_trackbar32"
1448 #define TRACKBAR_CLASS WINELIB_NAME_AW(TRACKBAR_CLASS)
1450 #define TBS_AUTOTICKS 0x0001
1451 #define TBS_VERT 0x0002
1452 #define TBS_HORZ 0x0000
1453 #define TBS_TOP 0x0004
1454 #define TBS_BOTTOM 0x0000
1455 #define TBS_LEFT 0x0004
1456 #define TBS_RIGHT 0x0000
1457 #define TBS_BOTH 0x0008
1458 #define TBS_NOTICKS 0x0010
1459 #define TBS_ENABLESELRANGE 0x0020
1460 #define TBS_FIXEDLENGTH 0x0040
1461 #define TBS_NOTHUMB 0x0080
1462 #define TBS_TOOLTIPS 0x0100
1466 #define TBTS_BOTTOM 2
1467 #define TBTS_RIGHT 3
1470 #define TB_LINEDOWN 1
1472 #define TB_PAGEDOWN 3
1473 #define TB_THUMBPOSITION 4
1474 #define TB_THUMBTRACK 5
1477 #define TB_ENDTRACK 8
1479 #define TBCD_TICS 0x0001
1480 #define TBCD_THUMB 0x0002
1481 #define TBCD_CHANNEL 0x0003
1483 #define TBM_GETPOS (WM_USER)
1484 #define TBM_GETRANGEMIN (WM_USER+1)
1485 #define TBM_GETRANGEMAX (WM_USER+2)
1486 #define TBM_GETTIC (WM_USER+3)
1487 #define TBM_SETTIC (WM_USER+4)
1488 #define TBM_SETPOS (WM_USER+5)
1489 #define TBM_SETRANGE (WM_USER+6)
1490 #define TBM_SETRANGEMIN (WM_USER+7)
1491 #define TBM_SETRANGEMAX (WM_USER+8)
1492 #define TBM_CLEARTICS (WM_USER+9)
1493 #define TBM_SETSEL (WM_USER+10)
1494 #define TBM_SETSELSTART (WM_USER+11)
1495 #define TBM_SETSELEND (WM_USER+12)
1496 #define TBM_GETPTICS (WM_USER+14)
1497 #define TBM_GETTICPOS (WM_USER+15)
1498 #define TBM_GETNUMTICS (WM_USER+16)
1499 #define TBM_GETSELSTART (WM_USER+17)
1500 #define TBM_GETSELEND (WM_USER+18)
1501 #define TBM_CLEARSEL (WM_USER+19)
1502 #define TBM_SETTICFREQ (WM_USER+20)
1503 #define TBM_SETPAGESIZE (WM_USER+21)
1504 #define TBM_GETPAGESIZE (WM_USER+22)
1505 #define TBM_SETLINESIZE (WM_USER+23)
1506 #define TBM_GETLINESIZE (WM_USER+24)
1507 #define TBM_GETTHUMBRECT (WM_USER+25)
1508 #define TBM_GETCHANNELRECT (WM_USER+26)
1509 #define TBM_SETTHUMBLENGTH (WM_USER+27)
1510 #define TBM_GETTHUMBLENGTH (WM_USER+28)
1511 #define TBM_SETTOOLTIPS (WM_USER+29)
1512 #define TBM_GETTOOLTIPS (WM_USER+30)
1513 #define TBM_SETTIPSIDE (WM_USER+31)
1514 #define TBM_SETBUDDY (WM_USER+32)
1515 #define TBM_GETBUDDY (WM_USER+33)
1516 #define TBM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1517 #define TBM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1522 #define WC_PAGESCROLLER32A "SysPager"
1523 #define WC_PAGESCROLLER32W L"SysPager"
1524 #define WC_PAGESCROLLER WINELIB_NAME_AW(WC_PAGESCROLLER)
1526 #define PGS_VERT 0x00000000
1527 #define PGS_HORZ 0x00000001
1528 #define PGS_AUTOSCROLL 0x00000002
1529 #define PGS_DRAGNDROP 0x00000004
1531 #define PGF_INVISIBLE 0
1532 #define PGF_NORMAL 1
1533 #define PGF_GRAYED 2
1534 #define PGF_DEPRESSED 4
1537 #define PGB_TOPORLEFT 0
1538 #define PGB_BOTTOMORRIGHT 1
1540 /* only used with PGN_SCROLL */
1541 #define PGF_SCROLLUP 1
1542 #define PGF_SCROLLDOWN 2
1543 #define PGF_SCROLLLEFT 4
1544 #define PGF_SCROLLRIGHT 8
1547 #define PGK_CONTROL 2
1550 /* only used with PGN_CALCSIZE */
1551 #define PGF_CALCWIDTH 1
1552 #define PGF_CALCHEIGHT 2
1554 #define PGM_FIRST 0x1400
1555 #define PGM_SETCHILD (PGM_FIRST+1)
1556 #define PGM_RECALCSIZE (PGM_FIRST+2)
1557 #define PGM_FORWARDMOUSE (PGM_FIRST+3)
1558 #define PGM_SETBKCOLOR (PGM_FIRST+4)
1559 #define PGM_GETBKCOLOR (PGM_FIRST+5)
1560 #define PGM_SETBORDER (PGM_FIRST+6)
1561 #define PGM_GETBORDER (PGM_FIRST+7)
1562 #define PGM_SETPOS (PGM_FIRST+8)
1563 #define PGM_GETPOS (PGM_FIRST+9)
1564 #define PGM_SETBUTTONSIZE (PGM_FIRST+10)
1565 #define PGM_GETBUTTONSIZE (PGM_FIRST+11)
1566 #define PGM_GETBUTTONSTATE (PGM_FIRST+12)
1567 #define PGM_GETDROPTARGET CCM_GETDROPTARGET
1569 #define PGN_FIRST (0U-900U)
1570 #define PGN_LAST (0U-950U)
1571 #define PGN_SCROLL (PGN_FIRST-1)
1572 #define PGN_CALCSIZE (PGN_FIRST-2)
1583 } NMPGSCROLL, *LPNMPGSCROLL;
1591 } NMPGCALCSIZE, *LPNMPGCALCSIZE;
1594 /* Treeview control */
1596 #define WC_TREEVIEW32A "SysTreeView32"
1597 #define WC_TREEVIEW32W L"SysTreeView32"
1598 #define WC_TREEVIEW WINELIB_NAME_AW(WC_TREEVIEW)
1600 #define TVSIL_NORMAL 0
1601 #define TVSIL_STATE 2
1603 #define TV_FIRST 0x1100
1604 #define TVM_INSERTITEM32A (TV_FIRST+0)
1605 #define TVM_INSERTITEM32W (TV_FIRST+50)
1606 #define TVM_INSERTITEM WINELIB_NAME_AW(TVM_INSERTITEM)
1607 #define TVM_DELETEITEM (TV_FIRST+1)
1608 #define TVM_EXPAND (TV_FIRST+2)
1609 #define TVM_GETITEMRECT (TV_FIRST+4)
1610 #define TVM_GETCOUNT (TV_FIRST+5)
1611 #define TVM_GETINDENT (TV_FIRST+6)
1612 #define TVM_SETINDENT (TV_FIRST+7)
1613 #define TVM_GETIMAGELIST (TV_FIRST+8)
1614 #define TVM_SETIMAGELIST (TV_FIRST+9)
1615 #define TVM_GETNEXTITEM (TV_FIRST+10)
1616 #define TVM_SELECTITEM (TV_FIRST+11)
1617 #define TVM_GETITEM32A (TV_FIRST+12)
1618 #define TVM_GETITEM32W (TV_FIRST+62)
1619 #define TVM_GETITEM WINELIB_NAME_AW(TVM_GETITEM)
1620 #define TVM_SETITEM32A (TV_FIRST+13)
1621 #define TVM_SETITEM32W (TV_FIRST+63)
1622 #define TVM_SETITEM WINELIB_NAME_AW(TVM_SETITEM)
1623 #define TVM_EDITLABEL32A (TV_FIRST+14)
1624 #define TVM_EDITLABEL32W (TV_FIRST+65)
1625 #define TVM_EDITLABEL WINELIB_NAME_AW(TVM_EDITLABEL)
1626 #define TVM_GETEDITCONTROL (TV_FIRST+15)
1627 #define TVM_GETVISIBLECOUNT (TV_FIRST+16)
1628 #define TVM_HITTEST (TV_FIRST+17)
1629 #define TVM_CREATEDRAGIMAGE (TV_FIRST+18)
1630 #define TVM_SORTCHILDREN (TV_FIRST+19)
1631 #define TVM_ENSUREVISIBLE (TV_FIRST+20)
1632 #define TVM_SORTCHILDRENCB (TV_FIRST+21)
1633 #define TVM_ENDEDITLABELNOW (TV_FIRST+22)
1634 #define TVM_GETISEARCHSTRING32A (TV_FIRST+23)
1635 #define TVM_GETISEARCHSTRING32W (TV_FIRST+64)
1636 #define TVM_GETISEARCHSTRING WINELIB_NAME_AW(TVM_GETISEARCHSTRING)
1637 #define TVM_SETTOOLTIPS (TV_FIRST+24)
1638 #define TVM_GETTOOLTIPS (TV_FIRST+25)
1639 #define TVM_SETINSERTMARK (TV_FIRST+26)
1640 #define TVM_SETITEMHEIGHT (TV_FIRST+27)
1641 #define TVM_GETITEMHEIGHT (TV_FIRST+28)
1642 #define TVM_SETBKCOLOR (TV_FIRST+29)
1643 #define TVM_SETTEXTCOLOR (TV_FIRST+30)
1644 #define TVM_GETBKCOLOR (TV_FIRST+31)
1645 #define TVM_GETTEXTCOLOR (TV_FIRST+32)
1646 #define TVM_SETSCROLLTIME (TV_FIRST+33)
1647 #define TVM_GETSCROLLTIME (TV_FIRST+34)
1648 #define TVM_UNKNOWN35 (TV_FIRST+35)
1649 #define TVM_UNKNOWN36 (TV_FIRST+36)
1650 #define TVM_SETINSERTMARKCOLOR (TV_FIRST+37)
1651 #define TVM_GETINSERTMARKCOLOR (TV_FIRST+38)
1652 #define TVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1653 #define TVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1655 #define TVN_FIRST (0U-400U)
1656 #define TVN_LAST (0U-499U)
1658 #define TVN_SELCHANGING (TVN_FIRST-1)
1659 #define TVN_SELCHANGED (TVN_FIRST-2)
1660 #define TVN_GETDISPINFO (TVN_FIRST-3)
1661 #define TVN_SETDISPINFO (TVN_FIRST-4)
1662 #define TVN_ITEMEXPANDING (TVN_FIRST-5)
1663 #define TVN_ITEMEXPANDED (TVN_FIRST-6)
1664 #define TVN_BEGINDRAG (TVN_FIRST-7)
1665 #define TVN_BEGINRDRAG (TVN_FIRST-8)
1666 #define TVN_DELETEITEM (TVN_FIRST-9)
1667 #define TVN_BEGINLABELEDIT (TVN_FIRST-10)
1668 #define TVN_ENDLABELEDIT (TVN_FIRST-11)
1669 #define TVN_KEYDOWN (TVN_FIRST-12)
1670 #define TVN_GETINFOTIPA (TVN_FIRST-13)
1671 #define TVN_GETINFOTIPW (TVN_FIRST-14)
1672 #define TVN_SINGLEEXPAND (TVN_FIRST-15)
1675 #define TVN_SELCHANGINGW (TVN_FIRST-50)
1676 #define TVN_SELCHANGEDW (TVN_FIRST-51)
1677 #define TVN_GETDISPINFOW (TVN_FIRST-52)
1678 #define TVN_SETDISPINFOW (TVN_FIRST-53)
1679 #define TVN_ITEMEXPANDINGW (TVN_FIRST-54)
1680 #define TVN_ITEMEXPANDEDW (TVN_FIRST-55)
1681 #define TVN_BEGINDRAGW (TVN_FIRST-56)
1682 #define TVN_BEGINRDRAGW (TVN_FIRST-57)
1683 #define TVN_DELETEITEMW (TVN_FIRST-58)
1684 #define TVN_BEGINLABELEDITW (TVN_FIRST-59)
1685 #define TVN_ENDLABELEDITW (TVN_FIRST-60)
1689 #define TVIF_TEXT 0x0001
1690 #define TVIF_IMAGE 0x0002
1691 #define TVIF_PARAM 0x0004
1692 #define TVIF_STATE 0x0008
1693 #define TVIF_HANDLE 0x0010
1694 #define TVIF_SELECTEDIMAGE 0x0020
1695 #define TVIF_CHILDREN 0x0040
1696 #define TVIF_INTEGRAL 0x0080
1697 #define TVIF_DI_SETITEM 0x1000
1699 #define TVI_ROOT ((HTREEITEM)0xffff0000) /* -65536 */
1700 #define TVI_FIRST ((HTREEITEM)0xffff0001) /* -65535 */
1701 #define TVI_LAST ((HTREEITEM)0xffff0002) /* -65534 */
1702 #define TVI_SORT ((HTREEITEM)0xffff0003) /* -65533 */
1704 #define TVIS_FOCUSED 0x0001
1705 #define TVIS_SELECTED 0x0002
1706 #define TVIS_CUT 0x0004
1707 #define TVIS_DROPHILITED 0x0008
1708 #define TVIS_BOLD 0x0010
1709 #define TVIS_EXPANDED 0x0020
1710 #define TVIS_EXPANDEDONCE 0x0040
1711 #define TVIS_OVERLAYMASK 0x0f00
1712 #define TVIS_STATEIMAGEMASK 0xf000
1713 #define TVIS_USERMASK 0xf000
1715 #define TVHT_NOWHERE 0x0001
1716 #define TVHT_ONITEMICON 0x0002
1717 #define TVHT_ONITEMLABEL 0x0004
1718 #define TVHT_ONITEMINDENT 0x0008
1719 #define TVHT_ONITEMBUTTON 0x0010
1720 #define TVHT_ONITEMRIGHT 0x0020
1721 #define TVHT_ONITEMSTATEICON 0x0040
1722 #define TVHT_ONITEM 0x0046
1723 #define TVHT_ABOVE 0x0100
1724 #define TVHT_BELOW 0x0200
1725 #define TVHT_TORIGHT 0x0400
1726 #define TVHT_TOLEFT 0x0800
1728 #define TVS_HASBUTTONS 0x0001
1729 #define TVS_HASLINES 0x0002
1730 #define TVS_LINESATROOT 0x0004
1731 #define TVS_EDITLABELS 0x0008
1732 #define TVS_DISABLEDRAGDROP 0x0010
1733 #define TVS_SHOWSELALWAYS 0x0020
1734 #define TVS_RTLREADING 0x0040
1735 #define TVS_NOTOOLTIPS 0x0080
1736 #define TVS_CHECKBOXES 0x0100
1737 #define TVS_TRACKSELECT 0x0200
1738 #define TVS_SINGLEEXPAND 0x0400
1739 #define TVS_INFOTIP 0x0800
1740 #define TVS_FULLROWSELECT 0x1000
1741 #define TVS_NOSCROLL 0x2000
1742 #define TVS_NONEVENHEIGHT 0x4000
1744 #define TVS_SHAREDIMAGELISTS 0x0000
1745 #define TVS_PRIVATEIMAGELISTS 0x0400
1748 #define TVE_COLLAPSE 0x0001
1749 #define TVE_EXPAND 0x0002
1750 #define TVE_TOGGLE 0x0003
1751 #define TVE_EXPANDPARTIAL 0x4000
1752 #define TVE_COLLAPSERESET 0x8000
1756 #define TVGN_PREVIOUS 2
1757 #define TVGN_PARENT 3
1758 #define TVGN_CHILD 4
1759 #define TVGN_FIRSTVISIBLE 5
1760 #define TVGN_NEXTVISIBLE 6
1761 #define TVGN_PREVIOUSVISIBLE 7
1762 #define TVGN_DROPHILITE 8
1763 #define TVGN_CARET 9
1764 #define TVGN_LASTVISIBLE 10
1766 #define TVC_UNKNOWN 0x00
1767 #define TVC_BYMOUSE 0x01
1768 #define TVC_BYKEYBOARD 0x02
1771 typedef struct _TREEITEM *HTREEITEM;
1781 INT32 iSelectedImage;
1784 } TVITEM32A, *LPTVITEM32A;
1794 INT32 iSelectedImage;
1797 } TVITEM32W, *LPTVITEM32W;
1799 #define TVITEM WINELIB_NAME_AW(TVITEM)
1800 #define LPTVITEM WINELIB_NAME_AW(LPTVITEM)
1802 #define TV_ITEM TVITEM
1812 INT32 iSelectedImage;
1816 } TVITEMEX32A, *LPTVITEMEX32A;
1826 INT32 iSelectedImage;
1830 } TVITEMEX32W, *LPTVITEMEX32W;
1832 #define TVITEMEX WINELIB_NAME_AW(TVITEMEX)
1833 #define LPTVITEMEX WINELIB_NAME_AW(LPTVITEMEX)
1836 typedef struct tagTVINSERTSTRUCT32A {
1838 HTREEITEM hInsertAfter;
1843 } TVINSERTSTRUCT32A, *LPTVINSERTSTRUCT32A;
1845 typedef struct tagTVINSERTSTRUCT32W {
1847 HTREEITEM hInsertAfter;
1852 } TVINSERTSTRUCT32W, *LPTVINSERTSTRUCT32W;
1854 #define TV_INSERTSTRUCT WINELIB_NAME_AW(TVINSERTSTRUCT)
1855 #define LPTV_INSERTSTRUCT WINELIB_NAME_AW(LPTVINSERTSTRUCT)
1857 #define TVINSERTSTRUCT_V1_SIZE32A CCSIZEOF_STRUCT(TVINSERTSTRUCT32A, item)
1858 #define TVINSERTSTRUCT_V1_SIZE32W CCSIZEOF_STRUCT(TVINSERTSTRUCT32W, item)
1859 #define TVINSERTSTRUCT_V1_SIZE WINELIB_NAME_AW(TVINSERTSTRUCT_V1_SIZE)
1864 typedef struct tagNMTREEVIEW32A {
1870 } NMTREEVIEW32A, *LPNMTREEVIEW32A;
1872 typedef struct tagNMTREEVIEW32W {
1878 } NMTREEVIEW32W, *LPNMTREEVIEW32W;
1880 #define NMTREEVIEW WINELIB_NAME_AW(NMTREEVIEW)
1881 #define NM_TREEVIEW WINELIB_NAME_AW(NMTREEVIEW)
1882 #define LPNMTREEVIEW WINELIB_NAME_AW(LPNMTREEVIEW)
1884 typedef struct tagTVDISPINFO32A {
1887 } NMTVDISPINFO32A, *LPNMTVDISPINFO32A;
1889 typedef struct tagTVDISPINFO32W {
1892 } NMTVDISPINFO32W, *LPNMTVDISPINFO32W;
1894 #define NMTVDISPINFO WINELIB_NAME_AW(NMTVDISPINFO)
1895 #define LPNMTVDISPINFO WINELIB_NAME_AW(LPNMTVDISPINFO)
1896 #define TV_DISPINFO NMTVDISPINFO
1898 typedef INT32 (CALLBACK *PFNTVCOMPARE)(LPARAM, LPARAM, LPARAM);
1900 typedef struct tagTVSORTCB
1903 PFNTVCOMPARE lpfnCompare;
1905 } TVSORTCB, *LPTVSORTCB;
1907 #define TV_SORTCB TVSORTCB
1908 #define LPTV_SORTCB LPTVSORTCB
1910 typedef struct tagTVHITTESTINFO {
1914 } TVHITTESTINFO, *LPTVHITTESTINFO;
1916 #define TV_HITTESTINFO TVHITTESTINFO
1919 /* Custom Draw Treeview */
1921 #define NMTVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMTVCUSTOMDRAW, clrTextBk)
1923 #define TVCDRF_NOIMAGES 0x00010000
1925 typedef struct tagNMTVCUSTOMDRAW
1930 INT32 iLevel; /* IE>0x0400 */
1931 } NMTVCUSTOMDRAW, *LPNMTVCUSTOMDRAW;
1933 /* Treeview tooltips */
1935 typedef struct tagNMTVGETINFOTIP32A
1942 } NMTVGETINFOTIP32A, *LPNMTVGETINFOTIP32A;
1944 typedef struct tagNMTVGETINFOTIP32W
1951 } NMTVGETINFOTIP32W, *LPNMTVGETINFOTIP32W;
1954 #define NMTVGETINFOTIP WINELIB_NAME(NMTVGETINFOTIP)
1960 #define TreeView_InsertItem32A(hwnd, phdi) \
1961 (INT32)SendMessage32A((hwnd), TVM_INSERTITEM32A, 0, \
1962 (LPARAM)(LPTVINSERTSTRUCT32A)(phdi))
1963 #define TreeView_DeleteItem(hwnd, hItem) \
1964 (BOOL32)SendMessage32A((hwnd), TVM_DELETEITEM, 0, (LPARAM)(HTREEITEM)(hItem))
1965 #define TreeView_DeleteAllItems(hwnd) \
1966 (BOOL32)SendMessage32A((hwnd), TVM_DELETEITEM, 0, (LPARAM)TVI_ROOT)
1967 #define TreeView_Expand(hwnd, hitem, code) \
1968 (BOOL32)SendMessage32A((hwnd), TVM_EXPAND, (WPARAM)code, \
1969 (LPARAM)(HTREEITEM)(hitem))
1971 #define TreeView_GetItemRect(hwnd, hitem, prc, code) \
1972 (*(HTREEITEM *)prc = (hitem), (BOOL)SendMessage32A((hwnd), \
1973 TVM_GETITEMRECT, (WPARAM32)(code), (LPARAM)(RECT *)(prc)))
1975 #define TreeView_GetCount(hwnd) \
1976 (UINT32)SendMessage32A((hwnd), TVM_GETCOUNT, 0, 0)
1977 #define TreeView_GetIndent(hwnd) \
1978 (UINT32)SendMessage32A((hwnd), TVM_GETINDENT, 0, 0)
1979 #define TreeView_SetIndent(hwnd, indent) \
1980 (BOOL32)SendMessage32A((hwnd), TVM_SETINDENT, (WPARAM)indent, 0)
1982 #define TreeView_GetImageList(hwnd, iImage) \
1983 (HIMAGELIST)SendMessage32A((hwnd), TVM_GETIMAGELIST, iImage, 0)
1985 #define TreeView_SetImageList(hwnd, himl, iImage) \
1986 (HIMAGELIST)SendMessage32A((hwnd), TVM_SETIMAGELIST, iImage, \
1987 (LPARAM)(UINT32)(HIMAGELIST)(himl))
1989 #define TreeView_GetNextItem(hwnd, hitem, code) \
1990 (HTREEITEM)SendMessage32A((hwnd), TVM_GETNEXTITEM, (WPARAM)code,\
1991 (LPARAM)(HTREEITEM) (hitem))
1993 #define TreeView_GetChild(hwnd, hitem) \
1994 TreeView_GetNextItem(hwnd, hitem , TVGN_CHILD)
1995 #define TreeView_GetNextSibling(hwnd, hitem) \
1996 TreeView_GetNextItem(hwnd, hitem , TVGN_NEXT)
1997 #define TreeView_GetPrevSibling(hwnd, hitem) \
1998 TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUS)
1999 #define TreeView_GetParent(hwnd, hitem) \
2000 TreeView_GetNextItem(hwnd, hitem , TVGN_PARENT)
2001 #define TreeView_GetFirstVisible(hwnd) \
2002 TreeView_GetNextItem(hwnd, NULL, TVGN_FIRSTVISIBLE)
2003 #define TreeView_GetLastVisible(hwnd) \
2004 TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE)
2005 #define TreeView_GetNextVisible(hwnd, hitem) \
2006 TreeView_GetNextItem(hwnd, hitem , TVGN_NEXTVISIBLE)
2007 #define TreeView_GetPrevVisible(hwnd, hitem) \
2008 TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUSVISIBLE)
2009 #define TreeView_GetSelection(hwnd) \
2010 TreeView_GetNextItem(hwnd, NULL, TVGN_CARET)
2011 #define TreeView_GetDropHilight(hwnd) \
2012 TreeView_GetNextItem(hwnd, NULL, TVGN_DROPHILITE)
2013 #define TreeView_GetRoot(hwnd) \
2014 TreeView_GetNextItem(hwnd, NULL, TVGN_ROOT)
2015 #define TreeView_GetLastVisible(hwnd) \
2016 TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE)
2019 #define TreeView_Select(hwnd, hitem, code) \
2020 (UINT32)SendMessage32A((hwnd), TVM_SELECTITEM, (WPARAM32)code, \
2021 (LPARAM)(UINT32)(hitem))
2024 #define TreeView_SelectItem(hwnd, hitem) \
2025 TreeView_Select(hwnd, hitem, TVGN_CARET)
2026 #define TreeView_SelectDropTarget(hwnd, hitem) \
2027 TreeView_Select(hwnd, hitem, TVGN_DROPHILITE)
2029 #define TreeView_SelectSetFirstVisible(hwnd, hitem) \
2030 TreeView_Select(hwnd, hitem, TVGN_FIRSTVISIBLE)
2033 #define TreeView_GetItem32A(hwnd, pitem) \
2034 (BOOL32)SendMessage32A((hwnd), TVM_GETITEM32A, 0, (LPARAM) (TVITEM32A *)(pitem))
2036 #define TreeView_SetItem32A(hwnd, pitem) \
2037 (BOOL32)SendMessage32A((hwnd), TVM_SETITEM32A, 0, (LPARAM)(const TVITEM32A *)(pitem))
2039 #define TreeView_EditLabel(hwnd, hitem) \
2040 (HWND)SendMessage32A((hwnd), TVM_EDITLABEL, 0, (LPARAM)(HTREEITEM)(hitem))
2043 #define TreeView_GetEditControl(hwnd) \
2044 (HWND)SendMessage32A((hwnd), TVM_GETEDITCONTROL, 0, 0)
2046 #define TreeView_GetVisibleCount(hwnd) \
2047 (UINT32)SendMessage32A((hwnd), TVM_GETVISIBLECOUNT, 0, 0)
2049 #define TreeView_HitTest(hwnd, lpht) \
2050 (HTREEITEM)SendMessage32A((hwnd), TVM_HITTEST, 0,\
2051 (LPARAM)(LPTVHITTESTINFO)(lpht))
2053 #define TreeView_CreateDragImage(hwnd, hitem) \
2054 (HIMAGELIST)SendMessage32A((hwnd), TVM_CREATEDRAGIMAGE, 0,\
2055 (LPARAM)(HTREEITEM)(hitem))
2057 #define TreeView_SortChildren(hwnd, hitem, recurse) \
2058 (BOOL32)SendMessage32A((hwnd), TVM_SORTCHILDREN, (WPARAM32)recurse,\
2059 (LPARAM)(HTREEITEM)(hitem))
2061 #define TreeView_EnsureVisible(hwnd, hitem) \
2062 (BOOL32)SendMessage32A((hwnd), TVM_ENSUREVISIBLE, 0, (LPARAM)(UINT32)(hitem))
2064 #define TreeView_SortChildrenCB(hwnd, psort, recurse) \
2065 (BOOL32)SendMessage32A((hwnd), TVM_SORTCHILDRENCB, (WPARAM32)recurse, \
2066 (LPARAM)(LPTV_SORTCB)(psort))
2068 #define TreeView_EndEditLabelNow(hwnd, fCancel) \
2069 (BOOL32)SendMessage32A((hwnd), TVM_ENDEDITLABELNOW, (WPARAM32)fCancel, 0)
2071 #define TreeView_GetISearchString(hwndTV, lpsz) \
2072 (BOOL32)SendMessage32A((hwndTV), TVM_GETISEARCHSTRING, 0, \
2073 (LPARAM)(LPTSTR)lpsz)
2075 #define TreeView_SetItemHeight(hwnd, iHeight) \
2076 (INT32)SendMessage32A((hwnd), TVM_SETITEMHEIGHT, (WPARAM32)iHeight, 0)
2077 #define TreeView_GetItemHeight(hwnd) \
2078 (INT32)SendMessage32A((hwnd), TVM_GETITEMHEIGHT, 0, 0)
2080 #define TreeView_SetBkColor(hwnd, clr) \
2081 (COLORREF)SendMessage32A((hwnd), TVM_SETBKCOLOR, 0, (LPARAM)clr)
2083 #define TreeView_SetTextColor(hwnd, clr) \
2084 (COLORREF)SendMessage32A((hwnd), TVM_SETTEXTCOLOR, 0, (LPARAM)clr)
2086 #define TreeView_GetBkColor(hwnd) \
2087 (COLORREF)SendMessage32A((hwnd), TVM_GETBKCOLOR, 0, 0)
2089 #define TreeView_GetTextColor(hwnd) \
2090 (COLORREF)SendMessage32A((hwnd), TVM_GETTEXTCOLOR, 0, 0)
2092 #define TreeView_SetScrollTime(hwnd, uTime) \
2093 (UINT32)SendMessage32A((hwnd), TVM_SETSCROLLTIME, uTime, 0)
2095 #define TreeView_GetScrollTime(hwnd) \
2096 (UINT32)SendMessage32A((hwnd), TVM_GETSCROLLTIME, 0, 0)
2098 #define TreeView_SetInsertMarkColor(hwnd, clr) \
2099 (COLORREF)SendMessage32A((hwnd), TVM_SETINSERTMARKCOLOR, 0, (LPARAM)clr)
2100 #define TreeView_GetInsertMarkColor(hwnd) \
2101 (COLORREF)SendMessage32A((hwnd), TVM_GETINSERTMARKCOLOR, 0, 0)
2111 /* Listview control */
2113 #define WC_LISTVIEW32A "SysListView32"
2114 #define WC_LISTVIEW32W L"SysListView32"
2115 #define WC_LISTVIEW WINELIB_NAME_AW(WC_LISTVIEW)
2117 #define LVS_ICON 0x0000
2118 #define LVS_REPORT 0x0001
2119 #define LVS_SMALLICON 0x0002
2120 #define LVS_LIST 0x0003
2121 #define LVS_TYPEMASK 0x0003
2122 #define LVS_SINGLESEL 0x0004
2123 #define LVS_SHOWSELALWAYS 0x0008
2124 #define LVS_SORTASCENDING 0x0010
2125 #define LVS_SORTDESCENDING 0x0020
2126 #define LVS_SHAREIMAGELISTS 0x0040
2127 #define LVS_NOLABELWRAP 0x0080
2128 #define LVS_AUTOARRANGE 0x0100
2129 #define LVS_EDITLABELS 0x0200
2130 #define LVS_OWNERDATA 0x1000
2131 #define LVS_NOSCROLL 0x2000
2132 #define LVS_TYPESTYLEMASK 0xfc00
2133 #define LVS_ALIGNTOP 0x0000
2134 #define LVS_ALIGNLEFT 0x0800
2135 #define LVS_ALIGNMASK 0x0c00
2136 #define LVS_OWNERDRAWFIXED 0x0400
2137 #define LVS_NOCOLUMNHEADER 0x4000
2138 #define LVS_NOSORTHEADER 0x8000
2140 #define LVCF_FMT 0x0001
2141 #define LVCF_WIDTH 0x0002
2142 #define LVCF_TEXT 0x0004
2143 #define LVCF_SUBITEM 0x0008
2144 #define LVCF_IMAGE 0x0010
2145 #define LVCF_ORDER 0x0020
2147 #define LVCFMT_LEFT 0x0000
2148 #define LVCFMT_RIGHT 0x0001
2149 #define LVCFMT_CENTER 0x0002
2150 #define LVCFMT_JUSTIFYMASK 0x0003
2151 #define LVCFMT_IMAGE 0x0800
2152 #define LVCFMT_BITMAP_ON_RIGHT 0x1000
2153 #define LVCFMT_COL_HAS_IMAGES 0x8000
2155 #define LVSIL_NORMAL 0
2156 #define LVSIL_SMALL 1
2157 #define LVSIL_STATE 2
2159 #define LVIF_TEXT 0x0001
2160 #define LVIF_IMAGE 0x0002
2161 #define LVIF_PARAM 0x0004
2162 #define LVIF_STATE 0x0008
2163 #define LVIF_INDENT 0x0010
2164 #define LVIF_NORECOMPUTE 0x0800
2166 #define LVIS_FOCUSED 0x0001
2167 #define LVIS_SELECTED 0x0002
2168 #define LVIS_CUT 0x0004
2169 #define LVIS_DROPHILITED 0x0008
2170 #define LVIS_ACTIVATING 0x0020
2172 #define LVIS_OVERLAYMASK 0x0F00
2173 #define LVIS_STATEIMAGEMASK 0xF000
2175 #define LVNI_ALL 0x0000
2176 #define LVNI_FOCUSED 0x0001
2177 #define LVNI_SELECTED 0x0002
2178 #define LVNI_CUT 0x0004
2179 #define LVNI_DROPHILITED 0x0008
2181 #define LVNI_ABOVE 0x0100
2182 #define LVNI_BELOW 0x0200
2183 #define LVNI_TOLEFT 0x0400
2184 #define LVNI_TORIGHT 0x0800
2186 #define LVHT_NOWHERE 0x0001
2187 #define LVHT_ONITEMICON 0x0002
2188 #define LVHT_ONITEMLABEL 0x0004
2189 #define LVHT_ONITEMSTATEICON 0x0008
2190 #define LVHT_ONITEM (LVHT_ONITEMICON|LVHT_ONITEMLABEL|LVHT_ONITEMSTATEICON)
2192 #define LVHT_ABOVE 0x0008
2193 #define LVHT_BELOW 0x0010
2194 #define LVHT_TORIGHT 0x0020
2195 #define LVHT_TOLEFT 0x0040
2197 #define LVM_FIRST 0x1000
2198 #define LVM_GETBKCOLOR (LVM_FIRST+0)
2199 #define LVM_SETBKCOLOR (LVM_FIRST+1)
2200 #define LVM_GETIMAGELIST (LVM_FIRST+2)
2201 #define LVM_SETIMAGELIST (LVM_FIRST+3)
2202 #define LVM_GETITEMCOUNT (LVM_FIRST+4)
2203 #define LVM_GETITEM32A (LVM_FIRST+5)
2204 #define LVM_GETITEM32W (LVM_FIRST+75)
2205 #define LVM_GETITEM WINELIB_NAME_AW(LVM_GETITEM)
2206 #define LVM_SETITEM32A (LVM_FIRST+6)
2207 #define LVM_SETITEM32W (LVM_FIRST+76)
2208 #define LVM_SETITEM WINELIB_NAME_AW(LVM_SETITEM)
2209 #define LVM_INSERTITEM32A (LVM_FIRST+7)
2210 #define LVM_INSERTITEM32W (LVM_FIRST+77)
2211 #define LVM_INSERTITEM WINELIB_NAME_AW(LVM_INSERTITEM)
2212 #define LVM_DELETEITEM (LVM_FIRST+8)
2213 #define LVM_DELETEALLITEMS (LVM_FIRST+9)
2214 #define LVM_GETCALLBACKMASK (LVM_FIRST+10)
2215 #define LVM_SETCALLBACKMASK (LVM_FIRST+11)
2216 #define LVM_GETNEXTITEM (LVM_FIRST+12)
2217 #define LVM_FINDITEM32A (LVM_FIRST+13)
2218 #define LVM_FINDITEM32W (LVM_FIRST+83)
2219 #define LVM_FINDITEM WINELIB_NAME_AW(LVM_FINDITEM)
2220 #define LVM_GETITEMRECT (LVM_FIRST+14)
2221 #define LVM_SETITEMPOSITION (LVM_FIRST+15)
2222 #define LVM_GETITEMPOSITION (LVM_FIRST+16)
2223 #define LVM_GETSTRINGWIDTH32A (LVM_FIRST+17)
2224 #define LVM_GETSTRINGWIDTH32W (LVM_FIRST+87)
2225 #define LVM_GETSTRINGWIDTH WINELIB_NAME_AW(LVM_GETSTRINGWIDTH)
2226 #define LVM_HITTEST (LVM_FIRST+18)
2227 #define LVM_ENSUREVISIBLE (LVM_FIRST+19)
2228 #define LVM_SCROLL (LVM_FIRST+20)
2229 #define LVM_REDRAWITEMS (LVM_FIRST+21)
2230 #define LVM_ARRANGE (LVM_FIRST+22)
2231 #define LVM_EDITLABEL32A (LVM_FIRST+23)
2232 #define LVM_EDITLABEL32W (LVM_FIRST+118)
2233 #define LVM_EDITLABEL WINELIB_NAME_AW(LVM_EDITLABEL)
2234 #define LVM_GETEDITCONTROL (LVM_FIRST+24)
2235 #define LVM_GETCOLUMN32A (LVM_FIRST+25)
2236 #define LVM_GETCOLUMN32W (LVM_FIRST+95)
2237 #define LVM_GETCOLUMN WINELIB_NAME_AW(LVM_GETCOLUMN)
2238 #define LVM_SETCOLUMN32A (LVM_FIRST+26)
2239 #define LVM_SETCOLUMN32W (LVM_FIRST+96)
2240 #define LVM_SETCOLUMN WINELIB_NAME_AW(LVM_SETCOLUMN)
2241 #define LVM_INSERTCOLUMN32A (LVM_FIRST+27)
2242 #define LVM_INSERTCOLUMN32W (LVM_FIRST+97)
2243 #define LVM_INSERTCOLUMN WINELIB_NAME_AW(LVM_INSERTCOLUMN)
2244 #define LVM_DELETECOLUMN (LVM_FIRST+28)
2245 #define LVM_GETCOLUMNWIDTH (LVM_FIRST+29)
2246 #define LVM_SETCOLUMNWIDTH (LVM_FIRST+30)
2247 #define LVM_GETHEADER (LVM_FIRST+31)
2249 #define LVM_CREATEDRAGIMAGE (LVM_FIRST+33)
2250 #define LVM_GETVIEWRECT (LVM_FIRST+34)
2251 #define LVM_GETTEXTCOLOR (LVM_FIRST+35)
2252 #define LVM_SETTEXTCOLOR (LVM_FIRST+36)
2253 #define LVM_GETTEXTBKCOLOR (LVM_FIRST+37)
2254 #define LVM_SETTEXTBKCOLOR (LVM_FIRST+38)
2255 #define LVM_GETTOPINDEX (LVM_FIRST+39)
2256 #define LVM_GETCOUNTPERPAGE (LVM_FIRST+40)
2257 #define LVM_GETORIGIN (LVM_FIRST+41)
2258 #define LVM_UPDATE (LVM_FIRST+42)
2259 #define LVM_SETITEMSTATE (LVM_FIRST+43)
2260 #define LVM_GETITEMSTATE (LVM_FIRST+44)
2261 #define LVM_GETITEMTEXT32A (LVM_FIRST+45)
2262 #define LVM_GETITEMTEXT32W (LVM_FIRST+115)
2263 #define LVM_GETITEMTEXT WINELIB_NAME_AW(LVM_GETITEMTEXT)
2264 #define LVM_SETITEMTEXT32A (LVM_FIRST+46)
2265 #define LVM_SETITEMTEXT32W (LVM_FIRST+116)
2266 #define LVM_SETITEMTEXT WINELIB_NAME_AW(LVM_SETITEMTEXT)
2267 #define LVM_SETITEMCOUNT (LVM_FIRST+47)
2268 #define LVM_SORTITEMS (LVM_FIRST+48)
2269 #define LVM_SETITEMPOSITION32 (LVM_FIRST+49)
2270 #define LVM_GETSELECTEDCOUNT (LVM_FIRST+50)
2271 #define LVM_GETITEMSPACING (LVM_FIRST+51)
2272 #define LVM_GETISEARCHSTRING32A (LVM_FIRST+52)
2273 #define LVM_GETISEARCHSTRING32W (LVM_FIRST+117)
2274 #define LVM_GETISEARCHSTRING WINELIB_NAME_AW(LVM_GETISEARCHSTRING)
2275 #define LVM_SETICONSPACING (LVM_FIRST+53)
2276 #define LVM_SETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+54)
2277 #define LVM_GETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+55)
2278 #define LVM_GETSUBITEMRECT (LVM_FIRST+56)
2279 #define LVM_SUBITEMHITTEST (LVM_FIRST+57)
2280 #define LVM_SETCOLUMNORDERARRAY (LVM_FIRST+58)
2281 #define LVM_GETCOLUMNORDERARRAY (LVM_FIRST+59)
2282 #define LVM_SETHOTITEM (LVM_FIRST+60)
2283 #define LVM_GETHOTITEM (LVM_FIRST+61)
2284 #define LVM_SETHOTCURSOR (LVM_FIRST+62)
2285 #define LVM_GETHOTCURSOR (LVM_FIRST+63)
2286 #define LVM_APPROXIMATEVIEWRECT (LVM_FIRST+64)
2287 #define LVM_SETWORKAREAS (LVM_FIRST+65)
2288 #define LVM_GETSELECTIONMARK (LVM_FIRST+66)
2289 #define LVM_SETSELECTIONMARK (LVM_FIRST+67)
2290 #define LVM_SETBKIMAGE32A (LVM_FIRST+68)
2291 #define LVM_SETBKIMAGE32W (LVM_FIRST+138)
2292 #define LVM_SETBKIMAGE WINELIB_NAME_AW(LVM_SETBKIMAGE)
2293 #define LVM_GETBKIMAGE32A (LVM_FIRST+69)
2294 #define LVM_GETBKIMAGE32W (LVM_FIRST+139)
2295 #define LVM_GETBKIMAGE WINELIB_NAME_AW(LVM_GETBKIMAGE)
2296 #define LVM_GETWORKAREAS (LVM_FIRST+70)
2297 #define LVM_SETHOVERTIME (LVM_FIRST+71)
2298 #define LVM_GETHOVERTIME (LVM_FIRST+72)
2299 #define LVM_GETNUMBEROFWORKAREAS (LVM_FIRST+73)
2300 #define LVM_SETTOOLTIPS (LVM_FIRST+74)
2302 #define LVM_GETTOOLTIPS (LVM_FIRST+78)
2304 #define LVN_FIRST (0U-100U)
2305 #define LVN_LAST (0U-199U)
2306 #define LVN_ITEMCHANGING (LVN_FIRST-0)
2307 #define LVN_ITEMCHANGED (LVN_FIRST-1)
2308 #define LVN_INSERTITEM (LVN_FIRST-2)
2309 #define LVN_DELETEITEM (LVN_FIRST-3)
2310 #define LVN_DELETEALLITEMS (LVN_FIRST-4)
2311 #define LVN_BEGINLABELEDIT32A (LVN_FIRST-5)
2312 #define LVN_BEGINLABELEDIT32W (LVN_FIRST-75)
2313 #define LVN_BEGINLABELEDIT WINELIB_NAME_AW(LVN_BEGINLABELEDIT)
2314 #define LVN_ENDLABELEDIT32A (LVN_FIRST-6)
2315 #define LVN_ENDLABELEDIT32W (LVN_FIRST-76)
2316 #define LVN_ENDLABELEDIT WINELIB_NAME_AW(LVN_ENDLABELEDIT)
2317 #define LVN_COLUMNCLICK (LVN_FIRST-8)
2318 #define LVN_BEGINDRAG (LVN_FIRST-9)
2319 #define LVN_BEGINRDRAG (LVN_FIRST-11)
2320 #define LVN_ODCACHEHINT (LVN_FIRST-13)
2321 #define LVN_ODFINDITEM32A (LVN_FIRST-52)
2322 #define LVN_ODFINDITEM32W (LVN_FIRST-79)
2323 #define LVN_ODFINDITEM WINELIB_NAME_AW(LVN_ODFINDITEM)
2324 #define LVN_ITEMACTIVATE (LVN_FIRST-14)
2325 #define LVN_ODSTATECHANGED (LVN_FIRST-15)
2326 #define LVN_HOTTRACK (LVN_FIRST-21)
2327 #define LVN_GETDISPINFO32A (LVN_FIRST-50)
2328 #define LVN_GETDISPINFO32W (LVN_FIRST-77)
2329 #define LVN_GETDISPINFO WINELIB_NAME_AW(LVN_GETDISPINFO)
2330 #define LVN_SETDISPINFO32A (LVN_FIRST-51)
2331 #define LVN_SETDISPINFO32W (LVN_FIRST-78)
2332 #define LVN_SETDISPINFO WINELIB_NAME_AW(LVN_SETDISPINFO)
2335 typedef struct tagLVITEMA
2346 INT32 iIndent; /* (_WIN32_IE >= 0x0300) */
2347 } LVITEM32A, *LPLVITEM32A;
2349 typedef struct tagLVITEMW
2360 INT32 iIndent; /* (_WIN32_IE >= 0x0300) */
2361 } LVITEM32W, *LPLVITEM32W;
2363 #define LVITEM WINELIB_NAME_AW(LVITEM)
2364 #define LPLVITEM WINELIB_NAME_AW(LPLVITEM)
2366 #define LVITEM_V1_SIZE32A CCSIZEOF_STRUCT(LVITEM32A, lParam)
2367 #define LVITEM_V1_SIZE32W CCSIZEOF_STRUCT(LVITEM32W, lParam)
2368 #define LVITEM_V1_SIZE WINELIB_NAME_AW(LVITEM_V1_SIZE)
2370 #define LV_ITEM LVITEM
2372 typedef struct tagLVCOLUMNA
2380 INT32 iImage; /* (_WIN32_IE >= 0x0300) */
2381 INT32 iOrder; /* (_WIN32_IE >= 0x0300) */
2382 } LVCOLUMN32A, *LPLVCOLUMN32A;
2384 typedef struct tagLVCOLUMNW
2392 INT32 iImage; /* (_WIN32_IE >= 0x0300) */
2393 INT32 iOrder; /* (_WIN32_IE >= 0x0300) */
2394 } LVCOLUMN32W, *LPLVCOLUMN32W;
2396 #define LVCOLUMN WINELIB_NAME_AW(LVCOLUMN)
2397 #define LPLVCOLUMN WINELIB_NAME_AW(LPLVCOLUMN)
2399 #define LVCOLUMN_V1_SIZE32A CCSIZEOF_STRUCT(LVCOLUMN32A, iSubItem)
2400 #define LVCOLUMN_V1_SIZE32W CCSIZEOF_STRUCT(LVCOLUMN32W, iSubItem)
2401 #define LVCOLUMN_V1_SIZE WINELIB_NAME_AW(LVCOLUMN_V1_SIZE)
2403 #define LV_COLUMN LVCOLUMN
2406 typedef struct tagNMLISTVIEW
2416 } NMLISTVIEW, *LPNMLISTVIEW;
2418 #define LPNM_LISTVIEW LPNMLISTVIEW
2419 #define NM_LISTVIEW NMLISTVIEW
2422 typedef struct tagLVDISPINFO
2426 } NMLVDISPINFO32A, *LPNMLVDISPINFO32A;
2428 typedef struct tagLVDISPINFOW
2432 } NMLVDISPINFO32W, *LPNMLVDISPINFO32W;
2434 #define NMLVDISPINFO WINELIB_NAME_AW(NMLVDISPINFO)
2435 #define LPNMLVDISPINFO WINELIB_NAME_AW(LPNMLVDISPINFO)
2437 #define LV_DISPINFO NMLVDISPINFO
2439 #define LVN_KEYDOWN (LVN_FIRST-55)
2441 typedef struct tagLVKEYDOWN
2446 } NMLVKEYDOWN, *LPNMLVKEYDOWN;
2448 #define LV_KEYDOWN NMLVKEYDOWN
2450 typedef struct tagLVHITTESTINFO
2456 } LVHITTESTINFO, *LPLVHITTESTINFO;
2458 #define LV_HITTESTINFO LVHITTESTINFO
2459 #define _LV_HITTESTINFO tagLVHITTESTINFO
2460 #define LVHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(LVHITTESTINFO,iItem)
2462 typedef struct tagLVFINDINFO
2469 } LVFINDINFO, *LPLVFINDINFO;
2471 #define LV_FINDINFO LVFINDINFO
2473 typedef struct tagTCHITTESTINFO
2477 } TCHITTESTINFO, *LPTCHITTESTINFO;
2479 #define TC_HITTESTINFO TCHITTESTINFO
2481 typedef INT32 (CALLBACK *PFNLVCOMPARE)(LPARAM, LPARAM, LPARAM);
2483 #define ListView_SetBkColor(hwnd,clrBk) \
2484 (BOOL32)SendMessage32A((hwnd),LVM_SETBKCOLOR,0,(LPARAM)(COLORREF)(clrBk))
2485 #define ListView_GetImageList(hwnd,iImageList) \
2486 (HIMAGELIST)SendMessage32A((hwnd),LVM_GETIMAGELIST,(WPARAM)(INT32)(iImageList),0L)
2487 #define ListView_SetImageList(hwnd,himl,iImageList) \
2488 (HIMAGELIST)(UINT32)SendMessage32A((hwnd),LVM_SETIMAGELIST,(WPARAM32)(iImageList),(LPARAM)(UINT32)(HIMAGELIST)(himl))
2489 #define ListView_GetItemCount(hwnd) \
2490 (INT32)SendMessage32A((hwnd),LVM_GETITEMCOUNT,0,0L)
2491 #define ListView_GetItem32A(hwnd,pitem) \
2492 (BOOL32)SendMessage32A((hwnd),LVM_GETITEM32A,0,(LPARAM)(LVITEM32A *)(pitem))
2493 #define ListView_GetItem32W(hwnd,pitem) \
2494 (BOOL32)SendMessage32W((hwnd),LVM_GETITEM32W,0,(LPARAM)(LVITEM32W *)(pitem))
2495 #define ListView_GetItem WINELIB_NAME_AW(ListView_GetItem)
2496 #define ListView_HitTest(hwnd,pinfo) \
2497 (INT32)SendMessage32A((hwnd),LVMHITTEST,0,(LPARAM)(LPLVHITTESTINFO)(pinfo))
2498 #define ListView_InsertItem32A(hwnd,pitem) \
2499 (INT32)SendMessage32A((hwnd),LVM_INSERTITEM32A,0,(LPARAM)(const LVITEM32A *)(pitem))
2500 #define ListView_InsertItem32W(hwnd,pitem) \
2501 (INT32)SendMessage32W((hwnd),LVM_INSERTITEM32W,0,(LPARAM)(const LVITEM32W *)(pitem))
2502 #define ListView_InsertItem WINELIB_NAME_AW(ListView_InsertItem)
2503 #define ListView_DeleteAllItems(hwnd) \
2504 (BOOL32)SendMessage32A((hwnd),LVM_DELETEALLITEMS,0,0L)
2505 #define ListView_InsertColumn32A(hwnd,iCol,pcol) \
2506 (INT32)SendMessage32A((hwnd),LVM_INSERTCOLUMN32A,(WPARAM32)(INT32)(iCol),(LPARAM)(const LVCOLUMN32A *)(pcol))
2507 #define ListView_InsertColumn32W(hwnd,iCol,pcol) \
2508 (INT32)SendMessage32W((hwnd),LVM_INSERTCOLUMN32W,(WPARAM32)(INT32)(iCol),(LPARAM)(const LVCOLUMN32W *)(pcol))
2509 #define ListView_InsertColumn WINELIB_NAME_AW(ListView_InsertColumn)
2510 #define ListView_SortItems(hwndLV,_pfnCompare,_lPrm) \
2511 (BOOL32)SendMessage32A((hwndLV),LVM_SORTITEMS,(WPARAM32)(LPARAM)_lPrm,(LPARAM)(PFNLVCOMPARE)_pfnCompare)
2512 #define ListView_SetItemPosition(hwndLV, i, x, y) \
2513 (BOOL32)SendMessage32A((hwndLV),LVM_SETITEMPOSITION,(WPARAM32)(INT32)(i),MAKELPARAM((x),(y)))
2514 #define ListView_GetSelectedCount(hwndLV) \
2515 (UINT32)SendMessage32A((hwndLV),LVM_GETSELECTEDCOUNT,0,0L)
2520 #define WC_TABCONTROL16 "SysTabControl"
2521 #define WC_TABCONTROL32A "SysTabControl32"
2522 #define WC_TABCONTROL32W L"SysTabControl32"
2524 #define WC_TABCONTROL WINELIB_NAME_AW(WC_TABCONTROL)
2526 /* tab control styles */
2527 #define TCS_SCROLLOPPOSITE 0x0001 /* assumes multiline tab */
2528 #define TCS_BOTTOM 0x0002
2529 #define TCS_RIGHT 0x0002
2530 #define TCS_MULTISELECT 0x0004 /* allow multi-select in button mode */
2531 #define TCS_FLATBUTTONS 0x0008
2532 #define TCS_FORCEICONLEFT 0x0010
2533 #define TCS_FORCELABELLEFT 0x0020
2534 #define TCS_HOTTRACK 0x0040
2535 #define TCS_VERTICAL 0x0080
2536 #define TCS_TABS 0x0000
2537 #define TCS_BUTTONS 0x0100
2538 #define TCS_SINGLELINE 0x0000
2539 #define TCS_MULTILINE 0x0200
2540 #define TCS_RIGHTJUSTIFY 0x0000
2541 #define TCS_FIXEDWIDTH 0x0400
2542 #define TCS_RAGGEDRIGHT 0x0800
2543 #define TCS_FOCUSONBUTTONDOWN 0x1000
2544 #define TCS_OWNERDRAWFIXED 0x2000
2545 #define TCS_TOOLTIPS 0x4000
2546 #define TCS_FOCUSNEVER 0x8000
2547 #define TCS_EX_FLATSEPARATORS 0x00000001 /* to be used with */
2548 #define TCS_EX_REGISTERDROP 0x00000002 /* TCM_SETEXTENDEDSTYLE */
2551 #define TCM_FIRST 0x1300
2553 #define TCM_GETIMAGELIST (TCM_FIRST + 2)
2554 #define TCM_SETIMAGELIST (TCM_FIRST + 3)
2555 #define TCM_GETITEMCOUNT (TCM_FIRST + 4)
2556 #define TCM_GETITEM WINELIB_NAME_AW(TCM_GETITEM)
2557 #define TCM_GETITEM32A (TCM_FIRST + 5)
2558 #define TCM_GETITEM32W (TCM_FIRST + 60)
2559 #define TCM_SETITEM32A (TCM_FIRST + 6)
2560 #define TCM_SETITEM32W (TCM_FIRST + 61)
2561 #define TCM_SETITEM WINELIB_NAME_AW(TCM_SETITEM)
2562 #define TCM_INSERTITEM32A (TCM_FIRST + 7)
2563 #define TCM_INSERTITEM32W (TCM_FIRST + 62)
2564 #define TCM_INSERTITEM WINELIB_NAME_AW(TCM_INSERTITEM)
2565 #define TCM_DELETEITEM (TCM_FIRST + 8)
2566 #define TCM_DELETEALLITEMS (TCM_FIRST + 9)
2567 #define TCM_GETITEMRECT (TCM_FIRST + 10)
2568 #define TCM_GETCURSEL (TCM_FIRST + 11)
2569 #define TCM_SETCURSEL (TCM_FIRST + 12)
2570 #define TCM_HITTEST (TCM_FIRST + 13)
2571 #define TCM_SETITEMEXTRA (TCM_FIRST + 14)
2572 #define TCM_ADJUSTRECT (TCM_FIRST + 40)
2573 #define TCM_SETITEMSIZE (TCM_FIRST + 41)
2574 #define TCM_REMOVEIMAGE (TCM_FIRST + 42)
2575 #define TCM_SETPADDING (TCM_FIRST + 43)
2576 #define TCM_GETROWCOUNT (TCM_FIRST + 44)
2577 #define TCM_GETTOOLTIPS (TCM_FIRST + 45)
2578 #define TCM_SETTOOLTIPS (TCM_FIRST + 46)
2579 #define TCM_GETCURFOCUS (TCM_FIRST + 47)
2580 #define TCM_SETCURFOCUS (TCM_FIRST + 48)
2581 #define TCM_SETMINTTABWIDTH (TCM_FIRST + 49)
2582 #define TCM_DESELECTALL (TCM_FIRST + 50)
2583 #define TCM_HIGHLIGHTITEM (TCM_FIRST + 51)
2584 #define TCM_SETEXTENDEDSTYLE (TCM_FIRST + 52)
2585 #define TCM_GETEXTENDEDSTYLE (TCM_FIRST + 53)
2586 #define TCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
2587 #define TCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
2590 #define TCIF_TEXT 0x0001
2591 #define TCIF_IMAGE 0x0002
2592 #define TCIF_RTLREADING 0x0004
2593 #define TCIF_PARAM 0x0008
2594 #define TCIF_STATE 0x0010
2596 #define TCIS_BUTTONPRESSED 0x0001
2597 #define TCIS_HIGHLIGHTED 0x0002
2600 /* constants for TCHITTESTINFO */
2602 #define TCHT_NOWHERE 0x01
2603 #define TCHT_ONITEMICON 0x02
2604 #define TCHT_ONITEMLABEL 0x04
2605 #define TCHT_ONITEM (TCHT_ONITEMICON | TCHT_ONITEMLABEL)
2608 typedef struct tagTCITEM32A {
2616 } TCITEM32A, *LPTCITEM32A;
2618 typedef struct tagTCITEM32W
2627 } TCITEM32W, *LPTCITEM32W;
2629 #define TCITEM WINELIB_NAME_AW(TCITEM)
2630 #define LPTCITEM WINELIB_NAME_AW(LPTCITEM)
2631 #define TC_ITEM TCITEM
2633 #define TCN_FIRST (0U-550U)
2634 #define TCN_LAST (0U-580U)
2635 #define TCN_KEYDOWN (TCN_FIRST - 0)
2636 #define TCN_SELCHANGE (TCN_FIRST - 1)
2637 #define TCN_SELCHANGING (TCN_FIRST - 2)
2638 #define TCN_GETOBJECT (TCN_FIRST - 3)
2641 /* ComboBoxEx control */
2643 #define WC_COMBOBOXEX32A "ComboBoxEx32"
2644 #define WC_COMBOBOXEX32W L"ComboBoxEx32"
2645 #define WC_COMBOBOXEX WINELIB_NAME_AW(WC_COMBOBOXEX)
2647 #define CBEM_INSERTITEM32A (WM_USER+1)
2648 #define CBEM_INSERTITEM32W (WM_USER+11)
2649 #define CBEM_INSERTITEM WINELIB_NAME_AW(CBEM_INSERTITEM)
2650 #define CBEM_SETIMAGELIST (WM_USER+2)
2651 #define CBEM_GETIMAGELIST (WM_USER+3)
2652 #define CBEM_GETITEM32A (WM_USER+4)
2653 #define CBEM_GETITEM32W (WM_USER+13)
2654 #define CBEM_GETITEM WINELIB_NAME_AW(CBEM_GETITEM)
2655 #define CBEM_SETITEM32A (WM_USER+5)
2656 #define CBEM_SETITEM32W (WM_USER+12)
2657 #define CBEM_SETITEM WINELIB_NAME_AW(CBEM_SETITEM)
2658 #define CBEM_GETCOMBOCONTROL (WM_USER+6)
2659 #define CBEM_GETEDITCONTROL (WM_USER+7)
2660 #define CBEM_SETEXSTYLE (WM_USER+8)
2661 #define CBEM_GETEXSTYLE (WM_USER+9)
2662 #define CBEM_GETEXTENDEDSTYLE (WM_USER+9)
2663 #define CBEM_SETEXTENDEDSTYLE (WM_USER+14)
2664 #define CBEM_HASEDITCHANGED (WM_USER+10)
2665 #define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
2666 #define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
2668 #define CBEN_FIRST (0U-800U)
2669 #define CBEN_LAST (0U-830U)
2672 /* Hotkey control */
2674 #define HOTKEY_CLASS16 "msctls_hotkey"
2675 #define HOTKEY_CLASS32A "msctls_hotkey32"
2676 #define HOTKEY_CLASS32W L"msctls_hotkey32"
2677 #define HOTKEY_CLASS WINELIB_NAME_AW(HOTKEY_CLASS)
2679 #define HOTKEYF_SHIFT 0x01
2680 #define HOTKEYF_CONTROL 0x02
2681 #define HOTKEYF_ALT 0x04
2682 #define HOTKEYF_EXT 0x08
2684 #define HKCOMB_NONE 0x0001
2685 #define HKCOMB_S 0x0002
2686 #define HKCOMB_C 0x0004
2687 #define HKCOMB_A 0x0008
2688 #define HKCOMB_SC 0x0010
2689 #define HKCOMB_SA 0x0020
2690 #define HKCOMB_CA 0x0040
2691 #define HKCOMB_SCA 0x0080
2693 #define HKM_SETHOTKEY (WM_USER+1)
2694 #define HKM_GETHOTKEY (WM_USER+2)
2695 #define HKM_SETRULES (WM_USER+3)
2698 /* animate control */
2700 #define ANIMATE_CLASS32A "SysAnimate32"
2701 #define ANIMATE_CLASS32W L"SysAnimate32"
2702 #define ANIMATE_CLASS WINELIB_NAME_AW(ANIMATE_CLASS)
2704 #define ACS_CENTER 0x0001
2705 #define ACS_TRANSPARENT 0x0002
2706 #define ACS_AUTOPLAY 0x0004
2707 #define ACS_TIMER 0x0008 /* no threads, just timers */
2709 #define ACM_OPEN32A (WM_USER+100)
2710 #define ACM_OPEN32W (WM_USER+103)
2711 #define ACM_OPEN WINELIB_NAME_AW(ACM_OPEN)
2712 #define ACM_PLAY (WM_USER+101)
2713 #define ACM_STOP (WM_USER+102)
2718 #define Animate_Create32A(hwndP,id,dwStyle,hInstance) \
2719 CreateWindow32A(ANIMATE_CLASS32A,NULL,dwStyle,0,0,0,0,hwndP,(HMENU32)(id),hInstance,NULL)
2720 #define Animate_Create32W(hwndP,id,dwStyle,hInstance) \
2721 CreateWindow32W(ANIMATE_CLASS32W,NULL,dwStyle,0,0,0,0,hwndP,(HMENU32)(id),hInstance,NULL)
2722 #define Animate_Create WINELIB_NAME_AW(Animate_Create)
2723 #define Animate_Open32A(hwnd,szName) \
2724 (BOOL32)SendMessage32A(hwnd,ACM_OPEN32A,0,(LPARAM)(LPSTR)(szName))
2725 #define Animate_Open32W(hwnd,szName) \
2726 (BOOL32)SendMessage32W(hwnd,ACM_OPEN32W,0,(LPARAM)(LPWSTR)(szName))
2727 #define Animate_Open WINELIB_NAME_AW(Animate_Open)
2728 #define Animate_OpenEx32A(hwnd,hInst,szName) \
2729 (BOOL32)SendMessage32A(hwnd,ACM_OPEN32A,(WPARAM32)hInst,(LPARAM)(LPSTR)(szName))
2730 #define Animate_OpenEx32W(hwnd,hInst,szName) \
2731 (BOOL32)SendMessage32W(hwnd,ACM_OPEN32W,(WPARAM32)hInst,(LPARAM)(LPWSTR)(szName))
2732 #define Animate_OpenEx WINELIB_NAME_AW(Animate_OpenEx)
2733 #define Animate_Play(hwnd,from,to,rep) \
2734 (BOOL32)SendMessage32A(hwnd,ACM_PLAY,(WPARAM32)(UINT32)(rep),(LPARAM)MAKELONG(from,to))
2735 #define Animate_Stop(hwnd) \
2736 (BOOL32)SendMessage32A(hwnd,ACM_STOP,0,0)
2737 #define Animate_Close(hwnd) \
2738 (BOOL32)SendMessage32A(hwnd,ACM_OPEN32A,0,0)
2739 #define Animate_Seek(hwnd,frame) \
2740 (BOOL32)SendMessage32A(hwnd,ACM_PLAY,1,(LPARAM)MAKELONG(frame,frame))
2743 /**************************************************************************
2744 * IP Address control
2747 #define WC_IPADDRESS32A "SysIPAddress32"
2748 #define WC_IPADDRESS32W L"SysIPAddress32"
2749 #define WC_IPADDRESS WINELIB_NAME_AW(WC_IPADDRESS)
2751 #define IPM_CLEARADDRESS (WM_USER+100)
2752 #define IPM_SETADDRESS (WM_USER+101)
2753 #define IPM_GETADDRESS (WM_USER+102)
2754 #define IPM_SETRANGE (WM_USER+103)
2755 #define IPM_SETFOCUS (WM_USER+104)
2756 #define IPM_ISBLANK (WM_USER+105)
2758 #define IPN_FIRST (0U-860U)
2759 #define IPN_LAST (0U-879U)
2760 #define IPN_FIELDCHANGED (IPN_FIRST-0)
2762 typedef struct tagNMIPADDRESS
2767 } NMIPADDRESS, *LPNMIPADDRESS;
2769 #define MAKEIPRANGE(low,high) \
2770 ((LPARAM)(WORD)(((BYTE)(high)<<8)+(BYTE)(low)))
2771 #define MAKEIPADDRESS(b1,b2,b3,b4) \
2772 ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<16)+((DWORD)(b3)<<8)+((DWORD)(b4))))
2774 #define FIRST_IPADDRESS(x) (((x)>>24)&0xff)
2775 #define SECOND_IPADDRESS(x) (((x)>>16)&0xff)
2776 #define THIRD_IPADDRESS(x) (((x)>>8)&0xff)
2777 #define FOURTH_IPADDRESS(x) ((x)&0xff)
2780 /**************************************************************************
2781 * Native Font control
2784 #define WC_NATIVEFONTCTL32A "NativeFontCtl"
2785 #define WC_NATIVEFONTCTL32W L"NativeFontCtl"
2786 #define WC_NATIVEFONTCTL WINELIB_NAME_AW(WC_NATIVEFONTCTL)
2788 #define NFS_EDIT 0x0001
2789 #define NFS_STATIC 0x0002
2790 #define NFS_LISTCOMBO 0x0004
2791 #define NFS_BUTTON 0x0008
2792 #define NFS_ALL 0x0010
2795 /**************************************************************************
2796 * Month calendar control
2799 #define MONTHCAL_CLASS32A "SysMonthCal32"
2800 #define MONTHCAL_CLASS32W L"SysMonthCal32"
2801 #define MONTHCAL_CLASS WINELIB_NAME_AW(MONTHCAL_CLASS)
2804 /**************************************************************************
2805 * Date and time picker control
2808 #define DATETIMEPICK_CLASS32A "SysDateTimePick32"
2809 #define DATETIMEPICK_CLASS32W L"SysDateTimePick32"
2810 #define DATETIMEPICK_CLASS WINELIB_NAME_AW(DATETIMEPICK_CLASS)
2812 #define DTM_FIRST 0x1000
2814 #define DTM_GETSYSTEMTIME (DTM_FIRST+1)
2815 #define DTM_SETSYSTEMTIME (DTM_FIRST+2)
2816 #define DTM_GETRANGE (DTM_FIRST+3)
2817 #define DTM_SETRANGE (DTM_FIRST+4)
2818 #define DTM_SETFORMAT32A (DTM_FIRST+5)
2819 #define DTM_SETFORMAT32W (DTM_FIRST + 50)
2820 #define DTM_SETFORMAT WINELIB_NAME_AW(DTM_SETFORMAT)
2821 #define DTM_SETMCCOLOR (DTM_FIRST+6)
2822 #define DTM_GETMCCOLOR (DTM_FIRST+7)
2824 #define DTM_GETMONTHCAL (DTM_FIRST+8)
2826 #define DTM_SETMCFONT (DTM_FIRST+9)
2827 #define DTM_GETMCFONT (DTM_FIRST+10)
2832 #define GDT_ERROR -1
2836 #define GDTR_MIN 0x0001
2837 #define GDTR_MAX 0x0002
2841 /**************************************************************************
2842 * UNDOCUMENTED functions
2845 /* private heap memory functions */
2847 LPVOID WINAPI COMCTL32_Alloc (DWORD);
2848 LPVOID WINAPI COMCTL32_ReAlloc (LPVOID, DWORD);
2849 BOOL32 WINAPI COMCTL32_Free (LPVOID);
2850 DWORD WINAPI COMCTL32_GetSize (LPVOID);
2853 INT32 WINAPI Str_GetPtr32A (LPCSTR, LPSTR, INT32);
2854 BOOL32 WINAPI Str_SetPtr32A (LPSTR *, LPCSTR);
2855 INT32 WINAPI Str_GetPtr32W (LPCWSTR, LPWSTR, INT32);
2856 BOOL32 WINAPI Str_SetPtr32W (LPWSTR *, LPCWSTR);
2857 #define Str_GetPtr WINELIB_NAME_AW(Str_GetPtr)
2858 #define Str_SetPtr WINELIB_NAME_AW(Str_SetPtr)
2861 /* Dynamic Storage Array */
2872 HDSA WINAPI DSA_Create (INT32, INT32);
2873 BOOL32 WINAPI DSA_DeleteAllItems (const HDSA);
2874 INT32 WINAPI DSA_DeleteItem (const HDSA, INT32);
2875 BOOL32 WINAPI DSA_Destroy (const HDSA);
2876 BOOL32 WINAPI DSA_GetItem (const HDSA, INT32, LPVOID);
2877 LPVOID WINAPI DSA_GetItemPtr (const HDSA, INT32);
2878 INT32 WINAPI DSA_InsertItem (const HDSA, INT32, LPVOID);
2879 BOOL32 WINAPI DSA_SetItem (const HDSA, INT32, LPVOID);
2881 typedef INT32 (CALLBACK *DSAENUMPROC)(LPVOID, DWORD);
2882 VOID WINAPI DSA_EnumCallback (const HDSA, DSAENUMPROC, LPARAM);
2883 BOOL32 WINAPI DSA_DestroyCallback (const HDSA, DSAENUMPROC, LPARAM);
2886 /* Dynamic Pointer Array */
2897 HDPA WINAPI DPA_Create (INT32);
2898 HDPA WINAPI DPA_CreateEx (INT32, HANDLE32);
2899 BOOL32 WINAPI DPA_Destroy (const HDPA);
2900 HDPA WINAPI DPA_Clone (const HDPA, const HDPA);
2901 LPVOID WINAPI DPA_GetPtr (const HDPA, INT32);
2902 INT32 WINAPI DPA_GetPtrIndex (const HDPA, LPVOID);
2903 BOOL32 WINAPI DPA_Grow (const HDPA, INT32);
2904 BOOL32 WINAPI DPA_SetPtr (const HDPA, INT32, LPVOID);
2905 INT32 WINAPI DPA_InsertPtr (const HDPA, INT32, LPVOID);
2906 LPVOID WINAPI DPA_DeletePtr (const HDPA, INT32);
2907 BOOL32 WINAPI DPA_DeleteAllPtrs (const HDPA);
2909 typedef INT32 (CALLBACK *PFNDPACOMPARE)(LPVOID, LPVOID, LPARAM);
2910 BOOL32 WINAPI DPA_Sort (const HDPA, PFNDPACOMPARE, LPARAM);
2912 #define DPAS_SORTED 0x0001
2913 #define DPAS_INSERTBEFORE 0x0002
2914 #define DPAS_INSERTAFTER 0x0004
2916 INT32 WINAPI DPA_Search (const HDPA, LPVOID, INT32, PFNDPACOMPARE, LPARAM, UINT32);
2918 #define DPAM_SORT 0x0001
2920 BOOL32 WINAPI DPA_Merge (const HDPA, const HDPA, DWORD, PFNDPACOMPARE, LPVOID, LPARAM);
2922 typedef INT32 (CALLBACK *DPAENUMPROC)(LPVOID, DWORD);
2923 VOID WINAPI DPA_EnumCallback (const HDPA, DPAENUMPROC, LPARAM);
2924 BOOL32 WINAPI DPA_DestroyCallback (const HDPA, DPAENUMPROC, LPARAM);
2927 #define DPA_GetPtrCount(hdpa) (*(INT32*)(hdpa))
2928 #define DPA_GetPtrPtr(hdpa) (*((LPVOID**)((BYTE*)(hdpa)+sizeof(INT32))))
2929 #define DPA_FastGetPtr(hdpa,i) (DPA_GetPtrPtr(hdpa)[i])
2932 /* notification helper functions */
2934 LRESULT WINAPI COMCTL32_SendNotify (HWND32, HWND32, UINT32, LPNMHDR);
2936 /* type and functionality of last parameter is still unknown */
2937 LRESULT WINAPI COMCTL32_SendNotifyEx (HWND32, HWND32, UINT32, LPNMHDR, DWORD);
2943 #endif /* __WINE_COMMCTRL_H */