32-bit clipboard support.
[wine/multimedia.git] / include / commctrl.h
blob182992d55ac32e4ed08c241e17b242d3a7c6f2ee
1 /*
2 * Common controls definitions
3 */
5 #ifndef __WINE_COMMCTRL_H
6 #define __WINE_COMMCTRL_H
8 #include "windows.h"
9 #include "imagelist.h"
11 BOOL32 WINAPI ShowHideMenuCtl (HWND32, UINT32, LPINT32);
12 VOID WINAPI GetEffectiveClientRect (HWND32, LPRECT32, LPINT32);
13 VOID WINAPI InitCommonControls (VOID);
15 typedef struct tagINITCOMMONCONTROLSEX {
16 DWORD dwSize;
17 DWORD dwICC;
18 } INITCOMMONCONTROLSEX, *LPINITCOMMONCONTROLSEX;
20 BOOL32 WINAPI InitCommonControlsEx (LPINITCOMMONCONTROLSEX);
22 #define ICC_LISTVIEW_CLASSES 0x00000001 /* listview, header */
23 #define ICC_TREEVIEW_CLASSES 0x00000002 /* treeview, tooltips */
24 #define ICC_BAR_CLASSES 0x00000004 /* toolbar, statusbar, trackbar, tooltips */
25 #define ICC_TAB_CLASSES 0x00000008 /* tab, tooltips */
26 #define ICC_UPDOWN_CLASS 0x00000010 /* updown */
27 #define ICC_PROGRESS_CLASS 0x00000020 /* progress */
28 #define ICC_HOTKEY_CLASS 0x00000040 /* hotkey */
29 #define ICC_ANIMATE_CLASS 0x00000080 /* animate */
30 #define ICC_WIN95_CLASSES 0x000000FF
31 #define ICC_DATE_CLASSES 0x00000100 /* month picker, date picker, time picker, updown */
32 #define ICC_USEREX_CLASSES 0x00000200 /* comboex */
33 #define ICC_COOL_CLASSES 0x00000400 /* rebar (coolbar) */
34 #define ICC_INTERNET_CLASSES 0x00000800 /* IP address, ... */
35 #define ICC_PAGESCROLLER_CLASS 0x00001000 /* page scroller */
36 #define ICC_NATIVEFNTCTL_CLASS 0x00002000 /* native font control ???*/
39 /* common control styles */
40 #define CCS_TOP 0x00000001L
41 #define CCS_NOMOVEY 0x00000002L
42 #define CCS_BOTTOM 0x00000003L
43 #define CCS_NORESIZE 0x00000004L
44 #define CCS_NOPARENTALIGN 0x00000008L
45 #define CCS_ADJUSTABLE 0x00000020L
46 #define CCS_NODIVIDER 0x00000040L
47 #define CCS_VERT 0x00000080L
48 #define CCS_LEFT (CCS_VERT|CCS_TOP)
49 #define CCS_RIGHT (CCS_VERT|CCS_BOTTOM)
50 #define CCS_NOMOVEX (CCS_VERT|CCS_NOMOVEY)
53 /* common control shared messages */
54 #define CCM_FIRST 0x2000
56 #define CCM_SETBKCOLOR (CCM_FIRST+1) /* lParam = bkColor */
57 #define CCM_SETCOLORSCHEME (CCM_FIRST+2)
58 #define CCM_GETCOLORSCHEME (CCM_FIRST+3)
59 #define CCM_GETDROPTARGET (CCM_FIRST+4)
60 #define CCM_SETUNICODEFORMAT (CCM_FIRST+5)
61 #define CCM_GETUNICODEFORMAT (CCM_FIRST+6)
64 /* common notification codes (WM_NOTIFY)*/
65 #define NM_FIRST (0U- 0U)
66 #define NM_LAST (0U- 99U)
67 #define NM_OUTOFMEMORY (NM_FIRST-1)
68 #define NM_CLICK (NM_FIRST-2)
69 #define NM_DBLCLK (NM_FIRST-3)
70 #define NM_RETURN (NM_FIRST-4)
71 #define NM_RCLICK (NM_FIRST-5)
72 #define NM_RDBLCLK (NM_FIRST-6)
73 #define NM_SETFOCUS (NM_FIRST-7)
74 #define NM_KILLFOCUS (NM_FIRST-8)
75 #define NM_CUSTOMDRAW (NM_FIRST-12)
76 #define NM_HOVER (NM_FIRST-13)
77 #define NM_NCHITTEST (NM_FIRST-14)
78 #define NM_KEYDOWN (NM_FIRST-15)
79 #define NM_RELEASEDCAPTURE (NM_FIRST-16)
80 #define NM_SETCURSOR (NM_FIRST-17)
81 #define NM_CHAR (NM_FIRST-18)
82 #define NM_TOOLTIPSCREATED (NM_FIRST-19)
85 /* callback constants */
86 #define LPSTR_TEXTCALLBACK32A ((LPSTR)-1L)
87 #define LPSTR_TEXTCALLBACK32W ((LPWSTR)-1L)
88 #define LPSTR_TEXTCALLBACK WINELIB_NAME_AW(LPSTR_TEXTCALLBACK)
90 #define I_IMAGECALLBACK (-1)
91 #define I_INDENTCALLBACK (-1)
94 /* owner drawn types */
95 #define ODT_HEADER 100
96 #define ODT_TAB 101
97 #define ODT_LISTVIEW 102
99 /* common notification structures */
100 typedef struct tagNMTOOLTIPSCREATED
102 NMHDR hdr;
103 HWND32 hwndToolTips;
104 } NMTOOLTIPSCREATED, *LPNMTOOLTIPSCREATED;
107 #ifndef CCSIZEOF_STRUCT
108 #define CCSIZEOF_STRUCT(name, member) \
109 (((INT32)((LPBYTE)(&((name*)0)->member)-((LPBYTE)((name*)0))))+ \
110 sizeof(((name*)0)->member))
111 #endif
113 #define SNDMSG WINELIB_NAME_AW(SendMessage)
116 /* StatusWindow */
118 #define STATUSCLASSNAME16 "msctls_statusbar"
119 #define STATUSCLASSNAME32A "msctls_statusbar32"
120 #define STATUSCLASSNAME32W L"msctls_statusbar32"
121 #define STATUSCLASSNAME WINELIB_NAME_AW(STATUSCLASSNAME)
123 #define SBT_NOBORDERS 0x0100
124 #define SBT_POPOUT 0x0200
125 #define SBT_RTLREADING 0x0400 /* not supported */
126 #define SBT_TOOLTIPS 0x0800
127 #define SBT_OWNERDRAW 0x1000
129 #define SBARS_SIZEGRIP 0x0100
131 #define SB_SETTEXT32A (WM_USER+1)
132 #define SB_SETTEXT32W (WM_USER+11)
133 #define SB_SETTEXT WINELIB_NAME_AW(SB_SETTEXT)
134 #define SB_GETTEXT32A (WM_USER+2)
135 #define SB_GETTEXT32W (WM_USER+13)
136 #define SB_GETTEXT WINELIB_NAME_AW(SB_GETTEXT)
137 #define SB_GETTEXTLENGTH32A (WM_USER+3)
138 #define SB_GETTEXTLENGTH32W (WM_USER+12)
139 #define SB_GETTEXTLENGTH WINELIB_NAME_AW(SB_GETTEXTLENGTH)
141 #define SB_SETPARTS (WM_USER+4)
142 #define SB_GETPARTS (WM_USER+6)
143 #define SB_GETBORDERS (WM_USER+7)
144 #define SB_SETMINHEIGHT (WM_USER+8)
145 #define SB_SIMPLE (WM_USER+9)
146 #define SB_GETRECT (WM_USER+10)
147 #define SB_ISSIMPLE (WM_USER+14)
148 #define SB_SETICON (WM_USER+15)
149 #define SB_SETTIPTEXT32A (WM_USER+16)
150 #define SB_SETTIPTEXT32W (WM_USER+17)
151 #define SB_SETTIPTEXT WINELIB_NAME_AW(SB_SETTIPTEXT)
152 #define SB_GETTIPTEXT32A (WM_USER+18)
153 #define SB_GETTIPTEXT32W (WM_USER+19)
154 #define SB_GETTIPTEXT WINELIB_NAME_AW(SB_GETTIPTEXT)
155 #define SB_GETICON (WM_USER+20)
156 #define SB_SETBKCOLOR CCM_SETBKCOLOR /* lParam = bkColor */
158 #define SBN_FIRST (0U-880U)
159 #define SBN_LAST (0U-899U)
160 #define SBN_SIMPLEMODECHANGE (SBN_FIRST-0)
162 HWND32 WINAPI CreateStatusWindow32A (INT32, LPCSTR, HWND32, UINT32);
163 HWND32 WINAPI CreateStatusWindow32W (INT32, LPCWSTR, HWND32, UINT32);
164 #define CreateStatusWindow WINELIB_NAME_AW(CreateStatusWindow)
165 VOID WINAPI DrawStatusText32A (HDC32, LPRECT32, LPCSTR, UINT32);
166 VOID WINAPI DrawStatusText32W (HDC32, LPRECT32, LPCWSTR, UINT32);
167 #define DrawStatusText WINELIB_NAME_AW(DrawStatusText)
168 VOID WINAPI MenuHelp (UINT32, WPARAM32, LPARAM, HMENU32,
169 HINSTANCE32, HWND32, LPUINT32);
172 /* UpDown */
174 #define UPDOWN_CLASS16 "msctls_updown"
175 #define UPDOWN_CLASS32A "msctls_updown32"
176 #define UPDOWN_CLASS32W L"msctls_updown32"
177 #define UPDOWN_CLASS WINELIB_NAME_AW(UPDOWN_CLASS)
179 typedef struct tagUDACCEL
181 UINT32 nSec;
182 UINT32 nInc;
183 } UDACCEL;
185 #define UD_MAXVAL 0x7fff
186 #define UD_MINVAL 0x8001
188 #define UDS_WRAP 0x0001
189 #define UDS_SETBUDDYINT 0x0002
190 #define UDS_ALIGNRIGHT 0x0004
191 #define UDS_ALIGNLEFT 0x0008
192 #define UDS_AUTOBUDDY 0x0010
193 #define UDS_ARROWKEYS 0x0020
194 #define UDS_HORZ 0x0040
195 #define UDS_NOTHOUSANDS 0x0080
197 #define UDN_FIRST (0U-721)
198 #define UDN_LAST (0U-740)
199 #define UDN_DELTAPOS (UDN_FIRST-1)
201 #define UDM_SETRANGE (WM_USER+101)
202 #define UDM_GETRANGE (WM_USER+102)
203 #define UDM_SETPOS (WM_USER+103)
204 #define UDM_GETPOS (WM_USER+104)
205 #define UDM_SETBUDDY (WM_USER+105)
206 #define UDM_GETBUDDY (WM_USER+106)
207 #define UDM_SETACCEL (WM_USER+107)
208 #define UDM_GETACCEL (WM_USER+108)
209 #define UDM_SETBASE (WM_USER+109)
210 #define UDM_GETBASE (WM_USER+110)
211 #define UDM_SETRANGE32 (WM_USER+111)
212 #define UDM_GETRANGE32 (WM_USER+112)
214 HWND32 WINAPI CreateUpDownControl (DWORD, INT32, INT32, INT32, INT32,
215 HWND32, INT32, HINSTANCE32, HWND32,
216 INT32, INT32, INT32);
218 /* Progress Bar */
220 #define PROGRESS_CLASS32A "msctls_progress32"
221 #define PROGRESS_CLASS32W L"msctls_progress32"
222 #define PROGRESS_CLASS16 "msctls_progress"
223 #define PROGRESS_CLASS WINELIB_NAME_AW(PROGRESS_CLASS)
225 #define PBM_SETRANGE (WM_USER+1)
226 #define PBM_SETPOS (WM_USER+2)
227 #define PBM_DELTAPOS (WM_USER+3)
228 #define PBM_SETSTEP (WM_USER+4)
229 #define PBM_STEPIT (WM_USER+5)
230 #define PBM_SETRANGE32 (WM_USER+6)
231 #define PBM_GETRANGE (WM_USER+7)
232 #define PBM_GETPOS (WM_USER+8)
233 #define PBM_SETBARCOLOR (WM_USER+9)
234 #define PBM_SETBKCOLOR CCM_SETBKCOLOR
236 #define PBS_SMOOTH 0x01
237 #define PBS_VERTICAL 0x04
239 typedef struct
241 INT32 iLow;
242 INT32 iHigh;
243 } PBRANGE, *PPBRANGE;
246 /* ImageList */
248 #if !defined(__WINE__) || !defined(__WINE_IMAGELIST_C)
249 struct _IMAGELIST;
250 typedef struct _IMAGELIST *HIMAGELIST;
251 #endif */ /* __WINE__ */
253 #define CLR_NONE 0xFFFFFFFF
254 #define CLR_DEFAULT 0xFF000000
255 #define CLR_HILIGHT CLR_DEFAULT
257 #define ILC_MASK 0x0001
258 #define ILC_COLOR 0x0000
259 #define ILC_COLORDDB 0x00FE
260 #define ILC_COLOR4 0x0004
261 #define ILC_COLOR8 0x0008
262 #define ILC_COLOR16 0x0010
263 #define ILC_COLOR24 0x0018
264 #define ILC_COLOR32 0x0020
265 #define ILC_PALETTE 0x0800 /* no longer supported by M$ */
267 #define ILD_NORMAL 0x0000
268 #define ILD_TRANSPARENT 0x0001
269 #define ILD_BLEND25 0x0002
270 #define ILD_BLEND50 0x0004
271 #define ILD_MASK 0x0010
272 #define ILD_IMAGE 0x0020
273 #define ILD_ROP 0x0040
274 #define ILD_OVERLAYMASK 0x0F00
276 #define ILD_SELECTED ILD_BLEND50
277 #define ILD_FOCUS ILD_BLEND25
278 #define ILD_BLEND ILD_BLEND50
280 #define INDEXTOOVERLAYMASK(i) ((i)<<8)
282 #define ILCF_MOVE (0x00000000)
283 #define ILCF_SWAP (0x00000001)
286 typedef struct _IMAGEINFO
288 HBITMAP32 hbmImage;
289 HBITMAP32 hbmMask;
290 INT32 Unused1;
291 INT32 Unused2;
292 RECT32 rcImage;
293 } IMAGEINFO;
296 typedef struct _IMAGELISTDRAWPARAMS
298 DWORD cbSize;
299 HIMAGELIST himl;
300 INT32 i;
301 HDC32 hdcDst;
302 INT32 x;
303 INT32 y;
304 INT32 cx;
305 INT32 cy;
306 INT32 xBitmap; /* x offest from the upperleft of bitmap */
307 INT32 yBitmap; /* y offset from the upperleft of bitmap */
308 COLORREF rgbBk;
309 COLORREF rgbFg;
310 UINT32 fStyle;
311 DWORD dwRop;
312 } IMAGELISTDRAWPARAMS, *LPIMAGELISTDRAWPARAMS;
315 INT32 WINAPI ImageList_Add(HIMAGELIST,HBITMAP32,HBITMAP32);
316 INT32 WINAPI ImageList_AddIcon (HIMAGELIST, HICON32);
317 INT32 WINAPI ImageList_AddMasked(HIMAGELIST,HBITMAP32,COLORREF);
318 BOOL32 WINAPI ImageList_BeginDrag(HIMAGELIST,INT32,INT32,INT32);
319 BOOL32 WINAPI ImageList_Copy(HIMAGELIST,INT32,HIMAGELIST,INT32,INT32);
320 HIMAGELIST WINAPI ImageList_Create(INT32,INT32,UINT32,INT32,INT32);
321 BOOL32 WINAPI ImageList_Destroy(HIMAGELIST);
322 BOOL32 WINAPI ImageList_DragEnter(HWND32,INT32,INT32);
323 BOOL32 WINAPI ImageList_DragLeave(HWND32);
324 BOOL32 WINAPI ImageList_DragMove(INT32,INT32);
325 BOOL32 WINAPI ImageList_DragShowNolock (BOOL32);
326 BOOL32 WINAPI ImageList_Draw(HIMAGELIST,INT32,HDC32,INT32,INT32,UINT32);
327 BOOL32 WINAPI ImageList_DrawEx(HIMAGELIST,INT32,HDC32,INT32,INT32,INT32,
328 INT32,COLORREF,COLORREF,UINT32);
329 BOOL32 WINAPI ImageList_DrawIndirect(IMAGELISTDRAWPARAMS*);
330 HIMAGELIST WINAPI ImageList_Duplicate(HIMAGELIST);
331 BOOL32 WINAPI ImageList_EndDrag(VOID);
332 COLORREF WINAPI ImageList_GetBkColor(HIMAGELIST);
333 HIMAGELIST WINAPI ImageList_GetDragImage(POINT32*,POINT32*);
334 HICON32 WINAPI ImageList_GetIcon(HIMAGELIST,INT32,UINT32);
335 BOOL32 WINAPI ImageList_GetIconSize(HIMAGELIST,INT32*,INT32*);
336 INT32 WINAPI ImageList_GetImageCount(HIMAGELIST);
337 BOOL32 WINAPI ImageList_GetImageInfo(HIMAGELIST,INT32,IMAGEINFO*);
338 BOOL32 WINAPI ImageList_GetImageRect(HIMAGELIST,INT32,LPRECT32);
339 HIMAGELIST WINAPI ImageList_LoadImage32A(HINSTANCE32,LPCSTR,INT32,INT32,
340 COLORREF,UINT32,UINT32);
341 HIMAGELIST WINAPI ImageList_LoadImage32W(HINSTANCE32,LPCWSTR,INT32,INT32,
342 COLORREF,UINT32,UINT32);
343 #define ImageList_LoadImage WINELIB_NAME_AW(ImageList_LoadImage)
344 HIMAGELIST WINAPI ImageList_Merge(HIMAGELIST,INT32,HIMAGELIST,INT32,INT32,INT32);
345 #ifdef __IStream_INTREFACE_DEFINED__
346 HIMAGELIST WINAPI ImageList_Read(LPSTREAM32);
347 #endif
348 BOOL32 WINAPI ImageList_Remove(HIMAGELIST,INT32);
349 BOOL32 WINAPI ImageList_Replace(HIMAGELIST,INT32,HBITMAP32,HBITMAP32);
350 INT32 WINAPI ImageList_ReplaceIcon(HIMAGELIST,INT32,HICON32);
351 COLORREF WINAPI ImageList_SetBkColor(HIMAGELIST,COLORREF);
352 BOOL32 WINAPI ImageList_SetDragCursorImage(HIMAGELIST,INT32,INT32,INT32);
354 BOOL32 WINAPI ImageList_SetIconSize(HIMAGELIST,INT32,INT32);
355 BOOL32 WINAPI ImageList_SetImageCount(HIMAGELIST,INT32);
356 BOOL32 WINAPI ImageList_SetOverlayImage(HIMAGELIST,INT32,INT32);
357 #ifdef __IStream_INTREFACE_DEFINED__
358 BOOL32 WINAPI ImageList_Write(HIMAGELIST, LPSTREAM32);
359 #endif
361 #ifndef __WINE__
362 #define ImageList_AddIcon(himl,hicon) ImageList_ReplaceIcon(himl,-1,hicon)
363 #endif
364 #define ImageList_ExtractIcon(hi,himl,i) ImageList_GetIcon(himl,i,0)
365 #define ImageList_LoadBitmap(hi,lpbmp,cx,cGrow,crMask) \
366 ImageList_LoadImage(hi,lpbmp,cx,cGrow,crMask,IMAGE_BITMAP,0)
367 #define ImageList_RemoveAll(himl) ImageList_Remove(himl,-1)
370 /* Header control */
372 #define WC_HEADER16 "SysHeader"
373 #define WC_HEADER32A "SysHeader32"
374 #define WC_HEADER32W L"SysHeader32"
375 #define WC_HEADER WINELIB_NAME_AW(WC_HEADER)
377 #define HDS_HORZ 0x0000
378 #define HDS_BUTTONS 0x0002
379 #define HDS_HOTTRACK 0x0004
380 #define HDS_HIDDEN 0x0008
381 #define HDS_DRAGDROP 0x0040
382 #define HDS_FULLDRAG 0x0080
384 #define HDI_WIDTH 0x0001
385 #define HDI_HEIGHT HDI_WIDTH
386 #define HDI_TEXT 0x0002
387 #define HDI_FORMAT 0x0004
388 #define HDI_LPARAM 0x0008
389 #define HDI_BITMAP 0x0010
390 #define HDI_IMAGE 0x0020
391 #define HDI_DI_SETITEM 0x0040
392 #define HDI_ORDER 0x0080
394 #define HDF_LEFT 0x0000
395 #define HDF_RIGHT 0x0001
396 #define HDF_CENTER 0x0002
397 #define HDF_JUSTIFYMASK 0x0003
399 #define HDF_IMAGE 0x0800
400 #define HDF_BITMAP_ON_RIGHT 0x1000
401 #define HDF_BITMAP 0x2000
402 #define HDF_STRING 0x4000
403 #define HDF_OWNERDRAW 0x8000
405 #define HHT_NOWHERE 0x0001
406 #define HHT_ONHEADER 0x0002
407 #define HHT_ONDIVIDER 0x0004
408 #define HHT_ONDIVOPEN 0x0008
409 #define HHT_ABOVE 0x0100
410 #define HHT_BELOW 0x0200
411 #define HHT_TORIGHT 0x0400
412 #define HHT_TOLEFT 0x0800
414 #define HDM_FIRST 0x1200
415 #define HDM_GETITEMCOUNT (HDM_FIRST+0)
416 #define HDM_INSERTITEM32A (HDM_FIRST+1)
417 #define HDM_INSERTITEM32W (HDM_FIRST+10)
418 #define HDM_INSERTITEM WINELIB_NAME_AW(HDM_INSERTITEM)
419 #define HDM_DELETEITEM (HDM_FIRST+2)
420 #define HDM_GETITEM32A (HDM_FIRST+3)
421 #define HDM_GETITEM32W (HDM_FIRST+11)
422 #define HDM_GETITEM WINELIB_NAME_AW(HDM_GETITEM)
423 #define HDM_SETITEM32A (HDM_FIRST+4)
424 #define HDM_SETITEM32W (HDM_FIRST+12)
425 #define HDM_SETITEM WINELIB_NAME_AW(HDM_SETITEM)
426 #define HDM_LAYOUT (HDM_FIRST+5)
427 #define HDM_HITTEST (HDM_FIRST+6)
428 #define HDM_GETITEMRECT (HDM_FIRST+7)
429 #define HDM_SETIMAGELIST (HDM_FIRST+8)
430 #define HDM_GETIMAGELIST (HDM_FIRST+9)
432 #define HDM_ORDERTOINDEX (HDM_FIRST+15)
433 #define HDM_CREATEDRAGIMAGE (HDM_FIRST+16)
434 #define HDM_GETORDERARRAY (HDM_FIRST+17)
435 #define HDM_SETORDERARRAY (HDM_FIRST+18)
436 #define HDM_SETHOTDIVIDER (HDM_FIRST+19)
437 #define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
438 #define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
440 #define HDN_FIRST (0U-300U)
441 #define HDN_LAST (0U-399U)
442 #define HDN_ITEMCHANGING32A (HDN_FIRST-0)
443 #define HDN_ITEMCHANGING32W (HDN_FIRST-20)
444 #define HDN_ITEMCHANGING WINELIB_NAME_AW(HDN_ITEMCHANGING)
445 #define HDN_ITEMCHANGED32A (HDN_FIRST-1)
446 #define HDN_ITEMCHANGED32W (HDN_FIRST-21)
447 #define HDN_ITEMCHANGED WINELIB_NAME_AW(HDN_ITEMCHANGED)
448 #define HDN_ITEMCLICK32A (HDN_FIRST-2)
449 #define HDN_ITEMCLICK32W (HDN_FIRST-22)
450 #define HDN_ITEMCLICK WINELIB_NAME_AW(HDN_ITEMCLICK)
451 #define HDN_ITEMDBLCLICK32A (HDN_FIRST-3)
452 #define HDN_ITEMDBLCLICK32W (HDN_FIRST-23)
453 #define HDN_ITEMDBLCLICK WINELIB_NAME_AW(HDN_ITEMDBLCLICK)
454 #define HDN_DIVIDERDBLCLICK32A (HDN_FIRST-5)
455 #define HDN_DIVIDERDBLCLICK32W (HDN_FIRST-25)
456 #define HDN_DIVIDERDBLCLICK WINELIB_NAME_AW(HDN_DIVIDERDBLCLICK)
457 #define HDN_BEGINTRACK32A (HDN_FIRST-6)
458 #define HDN_BEGINTRACK32W (HDN_FIRST-26)
459 #define HDN_BEGINTRACK WINELIB_NAME_AW(HDN_BEGINTRACK)
460 #define HDN_ENDTRACK32A (HDN_FIRST-7)
461 #define HDN_ENDTRACK32W (HDN_FIRST-27)
462 #define HDN_ENDTRACK WINELIB_NAME_AW(HDN_ENDTRACK)
463 #define HDN_TRACK32A (HDN_FIRST-8)
464 #define HDN_TRACK32W (HDN_FIRST-28)
465 #define HDN_TRACK WINELIB_NAME_AW(HDN_TRACK)
466 #define HDN_GETDISPINFO32A (HDN_FIRST-9)
467 #define HDN_GETDISPINFO32W (HDN_FIRST-29)
468 #define HDN_GETDISPINFO WINELIB_NAME_AW(HDN_GETDISPINFO)
469 #define HDN_BEGINDRACK (HDN_FIRST-10)
470 #define HDN_ENDDRACK (HDN_FIRST-11)
472 typedef struct _HD_LAYOUT
474 RECT32 *prc;
475 WINDOWPOS32 *pwpos;
476 } HDLAYOUT, *LPHDLAYOUT;
478 #define HD_LAYOUT HDLAYOUT
480 typedef struct _HD_ITEM32A
482 UINT32 mask;
483 INT32 cxy;
484 LPSTR pszText;
485 HBITMAP32 hbm;
486 INT32 cchTextMax;
487 INT32 fmt;
488 LPARAM lParam;
489 INT32 iImage;
490 INT32 iOrder;
491 } HDITEM32A, *LPHDITEM32A;
493 typedef struct _HD_ITEM32W
495 UINT32 mask;
496 INT32 cxy;
497 LPWSTR pszText;
498 HBITMAP32 hbm;
499 INT32 cchTextMax;
500 INT32 fmt;
501 LPARAM lParam;
502 INT32 iImage;
503 INT32 iOrder;
504 } HDITEM32W, *LPHDITEM32W;
506 #define HDITEM WINELIB_NAME_AW(HDITEM)
507 #define LPHDITEM WINELIB_NAME_AW(LPHDITEM)
509 #define HDITEM_V1_SIZE32A CCSIZEOF_STRUCT(HDITEM32A, lParam)
510 #define HDITEM_V1_SIZE32W CCSIZEOF_STRUCT(HDITEM32W, lParam)
511 #define HDITEM_V1_SIZE WINELIB_NAME_AW(HDITEM_V1_SIZE)
513 typedef struct _HD_HITTESTINFO
515 POINT32 pt;
516 UINT32 flags;
517 INT32 iItem;
518 } HDHITTESTINFO, *LPHDHITTESTINFO;
520 #define HD_HITTESTINFO HDHITTESTINFO
522 typedef struct tagNMHEADER32A
524 NMHDR hdr;
525 INT32 iItem;
526 INT32 iButton;
527 HDITEM32A *pitem;
528 } NMHEADER32A, *LPNMHEADER32A;
530 typedef struct tagNMHEADER32W
532 NMHDR hdr;
533 INT32 iItem;
534 INT32 iButton;
535 HDITEM32W *pitem;
536 } NMHEADER32W, *LPNMHEADER32W;
538 #define NMHEADER WINELIB_NAME_AW(NMHEADER)
539 #define LPNMHEADER WINELIB_NAME_AW(LPNMHEADER)
541 typedef struct tagNMHDDISPINFO32A
543 NMHDR hdr;
544 INT32 iItem;
545 UINT32 mask;
546 LPSTR pszText;
547 INT32 cchTextMax;
548 INT32 iImage;
549 LPARAM lParam;
550 } NMHDDISPINFO32A, *LPNMHDDISPINFO32A;
552 typedef struct tagNMHDDISPINFO32W
554 NMHDR hdr;
555 INT32 iItem;
556 UINT32 mask;
557 LPWSTR pszText;
558 INT32 cchTextMax;
559 INT32 iImage;
560 LPARAM lParam;
561 } NMHDDISPINFO32W, *LPNMHDDISPINFO32W;
563 #define NMHDDISPINFO WINELIB_NAME_AW(NMHDDISPINFO)
564 #define LPNMHDDISPINFO WINELIB_NAME_AW(LPNMHDDISPINFO)
566 #define Header_GetItemCount(hwndHD) \
567 (INT32)SendMessage32A((hwndHD),HDM_GETITEMCOUNT,0,0L)
568 #define Header_InsertItem32A(hwndHD,i,phdi) \
569 (INT32)SendMessage32A((hwndHD),HDM_INSERTITEM32A,(WPARAM32)(INT32)(i),(LPARAM)(const HDITEM32A*)(phdi))
570 #define Header_InsertItem32W(hwndHD,i,phdi) \
571 (INT32)SendMessage32W((hwndHD),HDM_INSERTITEM32W,(WPARAM32)(INT32)(i),(LPARAM)(const HDITEM32W*)(phdi))
572 #define Header_InsertItem WINELIB_NAME_AW(Header_InsertItem)
573 #define Header_DeleteItem(hwndHD,i) \
574 (BOOL32)SendMessage32A((hwndHD),HDM_DELETEITEM,(WPARAM32)(INT32)(i),0L)
575 #define Header_GetItem32A(hwndHD,i,phdi) \
576 (BOOL32)SendMessage32A((hwndHD),HDM_GETITEM32A,(WPARAM32)(INT32)(i),(LPARAM)(HDITEM32A*)(phdi))
577 #define Header_GetItem32W(hwndHD,i,phdi) \
578 (BOOL32)SendMessage32W((hwndHD),HDM_GETITEM32W,(WPARAM32)(INT32)(i),(LPARAM)(HDITEM32W*)(phdi))
579 #define Header_GetItem WINELIB_NAME_AW(Header_GetItem)
580 #define Header_SetItem32A(hwndHD,i,phdi) \
581 (BOOL32)SendMessage32A((hwndHD),HDM_SETITEM32A,(WPARAM32)(INT32)(i),(LPARAM)(const HDITEM32A*)(phdi))
582 #define Header_SetItem32W(hwndHD,i,phdi) \
583 (BOOL32)SendMessage32W((hwndHD),HDM_SETITEM32W,(WPARAM32)(INT32)(i),(LPARAM)(const HDITEM32W*)(phdi))
584 #define Header_SetItem WINELIB_NAME_AW(Header_SetItem)
585 #define Header_Layout(hwndHD,playout) \
586 (BOOL32)SendMessage32A((hwndHD),HDM_LAYOUT,0,(LPARAM)(LPHDLAYOUT)(playout))
587 #define Header_GetItemRect(hwnd,iItem,lprc) \
588 (BOOL32)SendMessage32A((hwnd),HDM_GETITEMRECT,(WPARAM32)iItem,(LPARAM)lprc)
589 #define Header_SetImageList(hwnd,himl) \
590 (HIMAGELIST)SendMessage32A((hwnd),HDM_SETIMAGELIST,0,(LPARAM)himl)
591 #define Header_GetImageList(hwnd) \
592 (HIMAGELIST)SendMessage32A((hwnd),HDM_GETIMAGELIST,0,0)
593 #define Header_OrderToIndex(hwnd,i) \
594 (INT32)SendMessage32A((hwnd),HDM_ORDERTOINDEX,(WPARAM32)i,0)
595 #define Header_CreateDragImage(hwnd,i) \
596 (HIMAGELIST)SendMessage32A((hwnd),HDM_CREATEDRAGIMAGE,(WPARAM32)i,0)
597 #define Header_GetOrderArray(hwnd,iCount,lpi) \
598 (BOOL32)SendMessage32A((hwnd),HDM_GETORDERARRAY,(WPARAM32)iCount,(LPARAM)lpi)
599 #define Header_SetOrderArray(hwnd,iCount,lpi) \
600 (BOOL32)SendMessage32A((hwnd),HDM_SETORDERARRAY,(WPARAM32)iCount,(LPARAM)lpi)
601 #define Header_SetHotDivider(hwnd,fPos,dw) \
602 (INT32)SendMessage32A((hwnd),HDM_SETHOTDIVIDER,(WPARAM32)fPos,(LPARAM)dw)
603 #define Header_SetUnicodeFormat(hwnd,fUnicode) \
604 (BOOL32)SendMessage32A((hwnd),HDM_SETUNICODEFORMAT,(WPARAM32)(fUnicode),0)
605 #define Header_GetUnicodeFormat(hwnd) \
606 (BOOL32)SendMessage32A((hwnd),HDM_GETUNICODEFORMAT,0,0)
609 /* Toolbar */
611 #define TOOLBARCLASSNAME16 "ToolbarWindow"
612 #define TOOLBARCLASSNAME32W L"ToolbarWindow32"
613 #define TOOLBARCLASSNAME32A "ToolbarWindow32"
614 #define TOOLBARCLASSNAME WINELIB_NAME_AW(TOOLBARCLASSNAME)
616 #define CMB_MASKED 0x02
618 #define TBSTATE_CHECKED 0x01
619 #define TBSTATE_PRESSED 0x02
620 #define TBSTATE_ENABLED 0x04
621 #define TBSTATE_HIDDEN 0x08
622 #define TBSTATE_INDETERMINATE 0x10
623 #define TBSTATE_WRAP 0x20
624 #define TBSTATE_ELLIPSES 0x40
625 #define TBSTATE_MARKED 0x80
627 #define TBSTYLE_BUTTON 0x00
628 #define TBSTYLE_SEP 0x01
629 #define TBSTYLE_CHECK 0x02
630 #define TBSTYLE_GROUP 0x04
631 #define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK)
632 #define TBSTYLE_DROPDOWN 0x08
634 #define TBSTYLE_TOOLTIPS 0x0100
635 #define TBSTYLE_WRAPABLE 0x0200
636 #define TBSTYLE_ALTDRAG 0x0400
637 #define TBSTYLE_FLAT 0x0800
638 #define TBSTYLE_LIST 0x1000
639 #define TBSTYLE_CUSTOMERASE 0x2000
641 #define TBIF_IMAGE 0x00000001
642 #define TBIF_TEXT 0x00000002
643 #define TBIF_STATE 0x00000004
644 #define TBIF_STYLE 0x00000008
645 #define TBIF_LPARAM 0x00000010
646 #define TBIF_COMMAND 0x00000020
647 #define TBIF_SIZE 0x00000040
649 #define TBBF_LARGE 0x0001
651 #define TB_ENABLEBUTTON (WM_USER+1)
652 #define TB_CHECKBUTTON (WM_USER+2)
653 #define TB_PRESSBUTTON (WM_USER+3)
654 #define TB_HIDEBUTTON (WM_USER+4)
655 #define TB_INDETERMINATE (WM_USER+5)
656 #define TB_ISBUTTONENABLED (WM_USER+9)
657 #define TB_ISBUTTONCHECKED (WM_USER+10)
658 #define TB_ISBUTTONPRESSED (WM_USER+11)
659 #define TB_ISBUTTONHIDDEN (WM_USER+12)
660 #define TB_ISBUTTONINDETERMINATE (WM_USER+13)
661 #define TB_ISBUTTONHIGHLIGHTED (WM_USER+14)
662 #define TB_SETSTATE (WM_USER+17)
663 #define TB_GETSTATE (WM_USER+18)
664 #define TB_ADDBITMAP (WM_USER+19)
665 #define TB_ADDBUTTONS32A (WM_USER+20)
666 #define TB_ADDBUTTONS32W (WM_USER+68)
667 #define TB_ADDBUTTONS WINELIB_NAME_AW(TB_ADDBUTTONS)
668 #define TB_HITTEST (WM_USER+69)
669 #define TB_INSERTBUTTON32A (WM_USER+21)
670 #define TB_INSERTBUTTON32W (WM_USER+67)
671 #define TB_INSERTBUTTON WINELIB_NAME_AW(TB_INSERTBUTTON)
672 #define TB_DELETEBUTTON (WM_USER+22)
673 #define TB_GETBUTTON (WM_USER+23)
674 #define TB_BUTTONCOUNT (WM_USER+24)
675 #define TB_COMMANDTOINDEX (WM_USER+25)
676 #define TB_SAVERESTORE32A (WM_USER+26)
677 #define TB_SAVERESTORE32W (WM_USER+76)
678 #define TB_SAVERESTORE WINELIB_NAME_AW(TB_SAVERESTORE)
679 #define TB_CUSTOMIZE (WM_USER+27)
680 #define TB_ADDSTRING32A (WM_USER+28)
681 #define TB_ADDSTRING32W (WM_USER+77)
682 #define TB_ADDSTRING WINELIB_NAME_AW(TB_ADDSTRING)
683 #define TB_GETITEMRECT (WM_USER+29)
684 #define TB_BUTTONSTRUCTSIZE (WM_USER+30)
685 #define TB_SETBUTTONSIZE (WM_USER+31)
686 #define TB_SETBITMAPSIZE (WM_USER+32)
687 #define TB_AUTOSIZE (WM_USER+33)
688 #define TB_GETTOOLTIPS (WM_USER+35)
689 #define TB_SETTOOLTIPS (WM_USER+36)
690 #define TB_SETPARENT (WM_USER+37)
691 #define TB_SETROWS (WM_USER+39)
692 #define TB_GETROWS (WM_USER+40)
693 #define TB_GETBITMAPFLAGS (WM_USER+41)
694 #define TB_SETCMDID (WM_USER+42)
695 #define TB_CHANGEBITMAP (WM_USER+43)
696 #define TB_GETBITMAP (WM_USER+44)
697 #define TB_GETBUTTONTEXT32A (WM_USER+45)
698 #define TB_GETBUTTONTEXT32W (WM_USER+75)
699 #define TB_GETBUTTONTEXT WINELIB_NAME_AW(TB_GETBUTTONTEXT)
700 #define TB_REPLACEBITMAP (WM_USER+46)
701 #define TB_SETINDENT (WM_USER+47)
702 #define TB_SETIMAGELIST (WM_USER+48)
703 #define TB_GETIMAGELIST (WM_USER+49)
704 #define TB_LOADIMAGES (WM_USER+50)
705 #define TB_GETRECT (WM_USER+51) /* wParam is the Cmd instead of index */
706 #define TB_SETHOTIMAGELIST (WM_USER+52)
707 #define TB_GETHOTIMAGELIST (WM_USER+53)
708 #define TB_SETDISABLEDIMAGELIST (WM_USER+54)
709 #define TB_GETDISABLEDIMAGELIST (WM_USER+55)
710 #define TB_SETSTYLE (WM_USER+56)
711 #define TB_GETSTYLE (WM_USER+57)
712 #define TB_GETBUTTONSIZE (WM_USER+58)
713 #define TB_SETBUTTONWIDTH (WM_USER+59)
714 #define TB_SETMAXTEXTROWS (WM_USER+60)
715 #define TB_GETTEXTROWS (WM_USER+61)
716 #define TB_GETOBJECT (WM_USER+62)
717 #define TB_GETBUTTONINFO32W (WM_USER+63)
718 #define TB_GETBUTTONINFO32A (WM_USER+65)
719 #define TB_GETBUTTONINFO WINELIB_NAME_AW(TB_GETBUTTONINFO)
720 #define TB_SETBUTTONINFO32W (WM_USER+64)
721 #define TB_SETBUTTONINFO32A (WM_USER+66)
722 #define TB_SETBUTTONINFO WINELIB_NAME_AW(TB_SETBUTTONINFO)
723 #define TB_SETDRAWTEXTFLAGS (WM_USER+70)
724 #define TB_GETHOTITEM (WM_USER+71)
725 #define TB_SETHOTITEM (WM_USER+72)
726 #define TB_SETANCHORHIGHLIGHT (WM_USER+73)
727 #define TB_GETANCHORHIGHLIGHT (WM_USER+74)
728 #define TB_MAPACCELERATOR32A (WM_USER+78)
729 #define TB_MAPACCELERATOR32W (WM_USER+90)
730 #define TB_MAPACCELERATOR WINELIB_NAME_AW(TB_MAPACCELERATOR)
731 #define TB_GETINSERTMARK (WM_USER+79)
732 #define TB_SETINSERTMARK (WM_USER+80)
733 #define TB_INSERTMARKHITTEST (WM_USER+81)
734 #define TB_MOVEBUTTON (WM_USER+82)
735 #define TB_GETMAXSIZE (WM_USER+83)
736 #define TB_SETEXTENDEDSTYLE (WM_USER+84)
737 #define TB_GETEXTENDEDSTYLE (WM_USER+85)
738 #define TB_GETPADDING (WM_USER+86)
739 #define TB_SETPADDING (WM_USER+87)
740 #define TB_SETINSERTMARKCOLOR (WM_USER+88)
741 #define TB_GETINSERTMARKCOLOR (WM_USER+89)
742 #define TB_SETCOLORSCHEME CCM_SETCOLORSCHEME
743 #define TB_GETCOLORSCHEME CCM_GETCOLORSCHEME
744 #define TB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
745 #define TB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
747 #define TBN_FIRST (0U-700U)
748 #define TBN_LAST (0U-720U)
749 #define TBN_GETBUTTONINFO32A (TBN_FIRST-0)
750 #define TBN_GETBUTTONINFO32W (TBN_FIRST-20)
751 #define TBN_GETBUTTONINFO WINELIB_NAME_AW(TBN_GETBUTTONINFO)
752 #define TBN_GETINFOTIP32A (TBN_FIRST-18)
753 #define TBN_GETINFOTIP32W (TBN_FIRST-19)
754 #define TBN_GETINFOTIP WINELIB_NAME_AW(TBN_GETINFOTIP)
757 /* This is just for old CreateToolbar. */
758 /* Don't use it in new programs. */
759 typedef struct _OLDTBBUTTON {
760 INT32 iBitmap;
761 INT32 idCommand;
762 BYTE fsState;
763 BYTE fsStyle;
764 BYTE bReserved[2];
765 DWORD dwData;
766 } OLDTBBUTTON, *POLDTBBUTTON, *LPOLDTBBUTTON;
767 typedef const OLDTBBUTTON *LPCOLDTBBUTTON;
770 typedef struct _TBBUTTON {
771 INT32 iBitmap;
772 INT32 idCommand;
773 BYTE fsState;
774 BYTE fsStyle;
775 BYTE bReserved[2];
776 DWORD dwData;
777 INT32 iString;
778 } TBBUTTON, *PTBBUTTON, *LPTBBUTTON;
779 typedef const TBBUTTON *LPCTBBUTTON;
782 typedef struct _COLORMAP {
783 COLORREF from;
784 COLORREF to;
785 } COLORMAP, *LPCOLORMAP;
787 typedef struct tagTBADDBITMAP {
788 HINSTANCE32 hInst;
789 UINT32 nID;
790 } TBADDBITMAP, *LPTBADDBITMAP;
792 #define HINST_COMMCTRL ((HINSTANCE32)-1)
795 typedef struct tagTBSAVEPARAMSA {
796 HKEY hkr;
797 LPCSTR pszSubKey;
798 LPCSTR pszValueName;
799 } TBSAVEPARAMS32A, *LPTBSAVEPARAMS32A;
801 typedef struct tagTBSAVEPARAMSW {
802 HKEY hkr;
803 LPCWSTR pszSubKey;
804 LPCWSTR pszValueName;
805 } TBSAVEPARAMSA32W, *LPTBSAVEPARAMSA32W;
807 #define TBSAVEPARAMS WINELIB_NAMEAW(TBSAVEPARAMS)
808 #define LPTBSAVEPARAMS WINELIB_NAMEAW(LPTBSAVEPARAMS)
810 typedef struct
812 UINT32 cbSize;
813 DWORD dwMask;
814 INT32 idCommand;
815 INT32 iImage;
816 BYTE fsState;
817 BYTE fsStyle;
818 WORD cx;
819 DWORD lParam;
820 LPSTR pszText;
821 INT32 cchText;
822 } TBBUTTONINFO32A, *LPTBBUTTONINFO32A;
824 typedef struct
826 UINT32 cbSize;
827 DWORD dwMask;
828 INT32 idCommand;
829 INT32 iImage;
830 BYTE fsState;
831 BYTE fsStyle;
832 WORD cx;
833 DWORD lParam;
834 LPWSTR pszText;
835 INT32 cchText;
836 } TBBUTTONINFO32W, *LPTBBUTTONINFO32W;
838 #define TBBUTTONINFO WINELIB_NAMEAW(TBBUTTONINFO)
839 #define LPTBBUTTONINFO WINELIB_NAMEAW(LPTBBUTTONINFO)
841 typedef struct tagNMTBGETINFOTIPA
843 NMHDR hdr;
844 LPSTR pszText;
845 INT32 cchTextMax;
846 INT32 iItem;
847 LPARAM lParam;
848 } NMTBGETINFOTIP32A, *LPNMTBGETINFOTIP32A;
850 typedef struct tagNMTBGETINFOTIPW
852 NMHDR hdr;
853 LPWSTR pszText;
854 INT32 cchTextMax;
855 INT32 iItem;
856 LPARAM lParam;
857 } NMTBGETINFOTIP32W, *LPNMTBGETINFOTIP32W;
859 #define NMTBGETINFOTIP WINELIB_NAMEAW(NMTBGETINFOFTIP)
860 #define LPNMTBGETINFOTIP WINELIB_NAMEAW(LPNMTBGETINFOTIP)
863 HWND32 WINAPI
864 CreateToolbar(HWND32, DWORD, UINT32, INT32, HINSTANCE32,
865 UINT32, LPCOLDTBBUTTON, INT32);
867 HWND32 WINAPI
868 CreateToolbarEx(HWND32, DWORD, UINT32, INT32,
869 HINSTANCE32, UINT32, LPCTBBUTTON,
870 INT32, INT32, INT32, INT32, INT32, UINT32);
872 HBITMAP32 WINAPI
873 CreateMappedBitmap (HINSTANCE32, INT32, UINT32, LPCOLORMAP, INT32);
876 /* Tool tips */
878 #define TOOLTIPS_CLASS16 "tooltips_class"
879 #define TOOLTIPS_CLASS32A "tooltips_class32"
880 #define TOOLTIPS_CLASS32W L"tooltips_class32"
881 #define TOOLTIPS_CLASS WINELIB_NAME_AW(TOOLTIPS_CLASS)
883 #define INFOTIPSIZE 1024
885 #define TTS_ALWAYSTIP 0x01
886 #define TTS_NOPREFIX 0x02
888 #define TTF_IDISHWND 0x0001
889 #define TTF_CENTERTIP 0x0002
890 #define TTF_RTLREADING 0x0004
891 #define TTF_SUBCLASS 0x0010
892 #define TTF_TRACK 0x0020
893 #define TTF_ABSOLUTE 0x0080
894 #define TTF_TRANSPARENT 0x0100
895 #define TTF_DI_SETITEM 0x8000 /* valid only on the TTN_NEEDTEXT callback */
898 #define TTDT_AUTOMATIC 0
899 #define TTDT_RESHOW 1
900 #define TTDT_AUTOPOP 2
901 #define TTDT_INITIAL 3
904 #define TTM_ACTIVATE (WM_USER+1)
905 #define TTM_SETDELAYTIME (WM_USER+3)
906 #define TTM_ADDTOOL32A (WM_USER+4)
907 #define TTM_ADDTOOL32W (WM_USER+50)
908 #define TTM_ADDTOOL WINELIB_NAME_AW(TTM_ADDTOOL)
909 #define TTM_DELTOOL32A (WM_USER+5)
910 #define TTM_DELTOOL32W (WM_USER+51)
911 #define TTM_DELTOOL WINELIB_NAME_AW(TTM_DELTOOL)
912 #define TTM_NEWTOOLRECT32A (WM_USER+6)
913 #define TTM_NEWTOOLRECT32W (WM_USER+52)
914 #define TTM_NEWTOOLRECT WINELIB_NAME_AW(TTM_NEWTOOLRECT)
915 #define TTM_RELAYEVENT (WM_USER+7)
916 #define TTM_GETTOOLINFO32A (WM_USER+8)
917 #define TTM_GETTOOLINFO32W (WM_USER+53)
918 #define TTM_GETTOOLINFO WINELIB_NAME_AW(TTM_GETTOOLINFO)
919 #define TTM_SETTOOLINFO32A (WM_USER+9)
920 #define TTM_SETTOOLINFO32W (WM_USER+54)
921 #define TTM_SETTOOLINFO WINELIB_NAME_AW(TTM_SETTOOLINFO)
922 #define TTM_HITTEST32A (WM_USER+10)
923 #define TTM_HITTEST32W (WM_USER+55)
924 #define TTM_HITTEST WINELIB_NAME_AW(TTM_HITTEST)
925 #define TTM_GETTEXT32A (WM_USER+11)
926 #define TTM_GETTEXT32W (WM_USER+56)
927 #define TTM_GETTEXT WINELIB_NAME_AW(TTM_GETTEXT)
928 #define TTM_UPDATETIPTEXT32A (WM_USER+12)
929 #define TTM_UPDATETIPTEXT32W (WM_USER+57)
930 #define TTM_UPDATETIPTEXT WINELIB_NAME_AW(TTM_UPDATETIPTEXT)
931 #define TTM_GETTOOLCOUNT (WM_USER+13)
932 #define TTM_ENUMTOOLS32A (WM_USER+14)
933 #define TTM_ENUMTOOLS32W (WM_USER+58)
934 #define TTM_ENUMTOOLS WINELIB_NAME_AW(TTM_ENUMTOOLS)
935 #define TTM_GETCURRENTTOOL32A (WM_USER+15)
936 #define TTM_GETCURRENTTOOL32W (WM_USER+59)
937 #define TTM_GETCURRENTTOOL WINELIB_NAME_AW(TTM_GETCURRENTTOOL)
938 #define TTM_WINDOWFROMPOINT (WM_USER+16)
939 #define TTM_TRACKACTIVATE (WM_USER+17)
940 #define TTM_TRACKPOSITION (WM_USER+18)
941 #define TTM_SETTIPBKCOLOR (WM_USER+19)
942 #define TTM_SETTIPTEXTCOLOR (WM_USER+20)
943 #define TTM_GETDELAYTIME (WM_USER+21)
944 #define TTM_GETTIPBKCOLOR (WM_USER+22)
945 #define TTM_GETTIPTEXTCOLOR (WM_USER+23)
946 #define TTM_SETMAXTIPWIDTH (WM_USER+24)
947 #define TTM_GETMAXTIPWIDTH (WM_USER+25)
948 #define TTM_SETMARGIN (WM_USER+26)
949 #define TTM_GETMARGIN (WM_USER+27)
950 #define TTM_POP (WM_USER+28)
951 #define TTM_UPDATE (WM_USER+29)
954 #define TTN_FIRST (0U-520U)
955 #define TTN_LAST (0U-549U)
956 #define TTN_GETDISPINFO32A (TTN_FIRST-0)
957 #define TTN_GETDISPINFO32W (TTN_FIRST-10)
958 #define TTN_GETDISPINFO WINELIB_NAME_AW(TTN_GETDISPINFO)
959 #define TTN_SHOW (TTN_FIRST-1)
960 #define TTN_POP (TTN_FIRST-2)
962 typedef struct tagTOOLINFOA {
963 UINT32 cbSize;
964 UINT32 uFlags;
965 HWND32 hwnd;
966 UINT32 uId;
967 RECT32 rect;
968 HINSTANCE32 hinst;
969 LPSTR lpszText;
970 LPARAM lParam;
971 } TTTOOLINFO32A, *PTOOLINFO32A, *LPTTTOOLINFO32A;
973 typedef struct tagTOOLINFOW {
974 UINT32 cbSize;
975 UINT32 uFlags;
976 HWND32 hwnd;
977 UINT32 uId;
978 RECT32 rect;
979 HINSTANCE32 hinst;
980 LPWSTR lpszText;
981 LPARAM lParam;
982 } TTTOOLINFO32W, *PTOOLINFO32W, *LPTTTOOLINFO32W;
984 #define TTTOOLINFO WINELIB_NAME_AW(TTTOOLINFO)
985 #define PTOOLINFO WINELIB_NAME_AW(PTOOLINFO)
986 #define LPTTTOOLINFO WINELIB_NAME_AW(LPTTTOOLINFO)
988 #define TTTOOLINFO_V1_SIZE32A CCSIZEOF_STRUCT(TTTOOLINFO32A, lpszText)
989 #define TTTOOLINFO_V1_SIZE32W CCSIZEOF_STRUCT(TTTOOLINFO32W, lpszText)
990 #define TTTOOLINFO_V1_SIZE WINELIB_NAME_AW(TTTOOLINFO_V1_SIZE)
992 typedef struct _TT_HITTESTINFOA
994 HWND32 hwnd;
995 POINT32 pt;
996 TTTOOLINFO32A ti;
997 } TTHITTESTINFO32A, *LPTTHITTESTINFO32A;
999 typedef struct _TT_HITTESTINFOW
1001 HWND32 hwnd;
1002 POINT32 pt;
1003 TTTOOLINFO32W ti;
1004 } TTHITTESTINFO32W, *LPTTHITTESTINFO32W;
1006 #define TTHITTESTINFO WINELIB_NAME_AW(TTHITTESTINFO)
1007 #define LPTTHITTESTINFO WINELIB_NAME_AW(LPTTHITTESTINFO)
1009 typedef struct tagNMTTDISPINFOA
1011 NMHDR hdr;
1012 LPSTR lpszText;
1013 CHAR szText[80];
1014 HINSTANCE32 hinst;
1015 UINT32 uFlags;
1016 LPARAM lParam;
1017 } NMTTDISPINFO32A, *LPNMTTDISPINFO32A;
1019 typedef struct tagNMTTDISPINFOW
1021 NMHDR hdr;
1022 LPWSTR lpszText;
1023 WCHAR szText[80];
1024 HINSTANCE32 hinst;
1025 UINT32 uFlags;
1026 LPARAM lParam;
1027 } NMTTDISPINFO32W, *LPNMTTDISPINFO32W;
1029 #define NMTTDISPINFO WINELIB_NAME_AW(NMTTDISPINFO)
1030 #define LPNMTTDISPINFO WINELIB_NAME_AW(LPNMTTDISPINFO)
1032 #define NMTTDISPINFO_V1_SIZE32A CCSIZEOF_STRUCT(NMTTDISPINFO32A, uFlags)
1033 #define NMTTDISPINFO_V1_SIZE32W CCSIZEOF_STRUCT(NMTTDISPINFO32W, uFlags)
1034 #define NMTTDISPINFO_V1_SIZE WINELIB_NAME_AW(NMTTDISPINFO_V1_SIZE)
1037 /* Rebar control */
1039 #define REBARCLASSNAME16 "ReBarWindow"
1040 #define REBARCLASSNAME32A "ReBarWindow32"
1041 #define REBARCLASSNAME32W L"ReBarWindow32"
1042 #define REBARCLASSNAME WINELIB_NAME_AW(REBARCLASSNAME)
1044 #define RBS_TOOLTIPS 0x0100
1045 #define RBS_VARHEIGHT 0x0200
1046 #define RBS_BANDBORDERS 0x0400
1047 #define RBS_FIXEDORDER 0x0800
1048 #define RBS_REGISTERDROP 0x1000
1049 #define RBS_AUTOSIZE 0x2000
1050 #define RBS_VERTICALGRIPPER 0x4000
1051 #define RBS_DBLCLKTOGGLE 0x8000
1053 #define RBIM_IMAGELIST 0x00000001
1055 #define RBBIM_STYLE 0x00000001
1056 #define RBBIM_COLORS 0x00000002
1057 #define RBBIM_TEXT 0x00000004
1058 #define RBBIM_IMAGE 0x00000008
1059 #define RBBIM_CHILD 0x00000010
1060 #define RBBIM_CHILDSIZE 0x00000020
1061 #define RBBIM_SIZE 0x00000040
1062 #define RBBIM_BACKGROUND 0x00000080
1063 #define RBBIM_ID 0x00000100
1064 #define RBBIM_IDEALSIZE 0x00000200
1065 #define RBBIM_LPARAM 0x00000400
1066 #define RBBIM_HEADERSIZE 0x00000800
1068 #define RBBS_BREAK 0x00000001
1069 #define RBBS_FIXEDSIZE 0x00000002
1070 #define RBBS_CHILDEDGE 0x00000004
1071 #define RBBS_HIDDEN 0x00000008
1072 #define RBBS_NOVERT 0x00000010
1073 #define RBBS_FIXEDBMP 0x00000020
1074 #define RBBS_VARIABLEHEIGHT 0x00000040
1075 #define RBBS_GRIPPERALWAYS 0x00000080
1076 #define RBBS_NOGRIPPER 0x00000100
1078 #define RBNM_ID 0x00000001
1079 #define RBNM_STYLE 0x00000002
1080 #define RBNM_LPARAM 0x00000004
1082 #define RBHT_NOWHERE 0x0001
1083 #define RBHT_CAPTION 0x0002
1084 #define RBHT_CLIENT 0x0003
1085 #define RBHT_GRABBER 0x0004
1087 #define RB_INSERTBAND32A (WM_USER+1)
1088 #define RB_INSERTBAND32W (WM_USER+10)
1089 #define RB_INSERTBAND WINELIB_NAME_AW(RB_INSERTBAND)
1090 #define RB_DELETEBAND (WM_USER+2)
1091 #define RB_GETBARINFO (WM_USER+3)
1092 #define RB_SETBARINFO (WM_USER+4)
1093 #define RB_GETBANDINFO32 (WM_USER+5) /* just for compatibility */
1094 #define RB_SETBANDINFO32A (WM_USER+6)
1095 #define RB_SETBANDINFO32W (WM_USER+11)
1096 #define RB_SETBANDINFO WINELIB_NAME_AW(RB_SETBANDINFO)
1097 #define RB_SETPARENT (WM_USER+7)
1098 #define RB_HITTEST (WM_USER+8)
1099 #define RB_GETRECT (WM_USER+9)
1100 #define RB_GETBANDCOUNT (WM_USER+12)
1101 #define RB_GETROWCOUNT (WM_USER+13)
1102 #define RB_GETROWHEIGHT (WM_USER+14)
1103 #define RB_IDTOINDEX (WM_USER+16)
1104 #define RB_GETTOOLTIPS (WM_USER+17)
1105 #define RB_SETTOOLTIPS (WM_USER+18)
1106 #define RB_SETBKCOLOR (WM_USER+19)
1107 #define RB_GETBKCOLOR (WM_USER+20)
1108 #define RB_SETTEXTCOLOR (WM_USER+21)
1109 #define RB_GETTEXTCOLOR (WM_USER+22)
1110 #define RB_SIZETORECT (WM_USER+23)
1111 #define RB_BEGINDRAG (WM_USER+24)
1112 #define RB_ENDDRAG (WM_USER+25)
1113 #define RB_DRAGMOVE (WM_USER+26)
1114 #define RB_GETBARHEIGHT (WM_USER+27)
1115 #define RB_GETBANDINFO32W (WM_USER+28)
1116 #define RB_GETBANDINFO32A (WM_USER+29)
1117 #define RB_GETBANDINFO WINELIB_NAME_AW(RB_GETBANDINFO)
1118 #define RB_MINIMIZEBAND (WM_USER+30)
1119 #define RB_MAXIMIZEBAND (WM_USER+31)
1120 #define RB_GETBANDORDERS (WM_USER+34)
1121 #define RB_SHOWBAND (WM_USER+35)
1122 #define RB_SETPALETTE (WM_USER+37)
1123 #define RB_GETPALETTE (WM_USER+38)
1124 #define RB_MOVEBAND (WM_USER+39)
1125 #define RB_GETDROPTARGET CCS_GETDROPTARGET
1126 #define RB_SETCOLORSCHEME CCS_SETCOLORSCHEME
1127 #define RB_GETCOLORSCHEME CCS_GETCOLORSCHEME
1128 #define RB_SETUNICODEFORMAT CCS_SETUNICODEFORMAT
1129 #define RB_GETUNICODEFORMAT CCS_GETUNICODEFORMAT
1131 #define RBN_FIRST (0U-831U)
1132 #define RBN_LAST (0U-859U)
1133 #define RBN_HEIGHTCHANGE (RBN_FIRST-0)
1134 #define RBN_GETOBJECT (RBN_FIRST-1)
1135 #define RBN_LAYOUTCHANGED (RBN_FIRST-2)
1136 #define RBN_AUTOSIZE (RBN_FIRST-3)
1137 #define RBN_BEGINDRAG (RBN_FIRST-4)
1138 #define RBN_ENDDRAG (RBN_FIRST-5)
1139 #define RBN_DELETINGBAND (RBN_FIRST-6)
1140 #define RBN_DELETEDBAND (RBN_FIRST-7)
1141 #define RBN_CHILDSIZE (RBN_FIRST-8)
1143 typedef struct tagREBARINFO
1145 UINT32 cbSize;
1146 UINT32 fMask;
1147 HIMAGELIST himl;
1148 } REBARINFO, *LPREBARINFO;
1150 typedef struct tagREBARBANDINFOA
1152 UINT32 cbSize;
1153 UINT32 fMask;
1154 UINT32 fStyle;
1155 COLORREF clrFore;
1156 COLORREF clrBack;
1157 LPSTR lpText;
1158 UINT32 cch;
1159 INT32 iImage;
1160 HWND32 hwndChild;
1161 UINT32 cxMinChild;
1162 UINT32 cyMinChild;
1163 UINT32 cx;
1164 HBITMAP32 hbmBack;
1165 UINT32 wID;
1166 UINT32 cyChild;
1167 UINT32 cyMaxChild;
1168 UINT32 cyIntegral;
1169 UINT32 cxIdeal;
1170 LPARAM lParam;
1171 UINT32 cxHeader;
1172 } REBARBANDINFO32A, *LPREBARBANDINFO32A;
1174 typedef REBARBANDINFO32A const *LPCREBARBANDINFO32A;
1176 typedef struct tagREBARBANDINFOW
1178 UINT32 cbSize;
1179 UINT32 fMask;
1180 UINT32 fStyle;
1181 COLORREF clrFore;
1182 COLORREF clrBack;
1183 LPSTR lpText;
1184 UINT32 cch;
1185 INT32 iImage;
1186 HWND32 hwndChild;
1187 UINT32 cxMinChild;
1188 UINT32 cyMinChild;
1189 UINT32 cx;
1190 HBITMAP32 hbmBack;
1191 UINT32 wID;
1192 UINT32 cyChild;
1193 UINT32 cyMaxChild;
1194 UINT32 cyIntegral;
1195 UINT32 cxIdeal;
1196 LPARAM lParam;
1197 UINT32 cxHeader;
1198 } REBARBANDINFO32W, *LPREBARBANDINFO32W;
1200 typedef REBARBANDINFO32W const *LPCREBARBANDINFO32W;
1202 #define REBARBANDINFO WINELIB_NAME_AW(REBARBANDINFO)
1203 #define LPREBARBANDINFO WINELIB_NAME_AW(LPREBARBANDINFO)
1204 #define LPCREBARBANDINFO WINELIB_NAME_AW(LPCREBARBANDINFO)
1206 #define REBARBANDINFO_V3_SIZE32A CCSIZEOF_STRUCT(REBARBANDINFO32A, wID)
1207 #define REBARBANDINFO_V3_SIZE32W CCSIZEOF_STRUCT(REBARBANDINFO32W, wID)
1208 #define REBARBANDINFO_V3_SIZE WINELIB_NAME_AW(REBARBANDINFO_V3_SIZE)
1210 typedef struct tagNMREBARCHILDSIZE
1212 NMHDR hdr;
1213 UINT32 iBand;
1214 UINT32 wID;
1215 RECT32 rcChild;
1216 RECT32 rcBand;
1217 } NMREBARCHILDSIZE, *LPNMREBARCHILDSIZE;
1219 typedef struct tagNMREBAR
1221 NMHDR hdr;
1222 DWORD dwMask;
1223 UINT32 uBand;
1224 UINT32 fStyle;
1225 UINT32 wID;
1226 LPARAM lParam;
1227 } NMREBAR, *LPNMREBAR;
1229 typedef struct tagNMRBAUTOSIZE
1231 NMHDR hdr;
1232 BOOL32 fChanged;
1233 RECT32 rcTarget;
1234 RECT32 rcActual;
1235 } NMRBAUTOSIZE, *LPNMRBAUTOSIZE;
1237 typedef struct _RB_HITTESTINFO
1239 POINT32 pt;
1240 UINT32 flags;
1241 INT32 iBand;
1242 } RBHITTESTINFO, *LPRBHITTESTINFO;
1245 /* Trackbar control */
1247 #define TRACKBAR_CLASS16 "msctls_trackbar"
1248 #define TRACKBAR_CLASS32A "msctls_trackbar32"
1249 #define TRACKBAR_CLASS32W L"msctls_trackbar32"
1250 #define TRACKBAR_CLASS WINELIB_NAME_AW(TRACKBAR_CLASS)
1252 #define TBS_AUTOTICKS 0x0001
1253 #define TBS_VERT 0x0002
1254 #define TBS_HORZ 0x0000
1255 #define TBS_TOP 0x0004
1256 #define TBS_BOTTOM 0x0000
1257 #define TBS_LEFT 0x0004
1258 #define TBS_RIGHT 0x0000
1259 #define TBS_BOTH 0x0008
1260 #define TBS_NOTICKS 0x0010
1261 #define TBS_ENABLESELRANGE 0x0020
1262 #define TBS_FIXEDLENGTH 0x0040
1263 #define TBS_NOTHUMB 0x0080
1264 #define TBS_TOOLTIPS 0x0100
1266 #define TBTS_TOP 0
1267 #define TBTS_LEFT 1
1268 #define TBTS_BOTTOM 2
1269 #define TBTS_RIGHT 3
1271 #define TB_LINEUP 0
1272 #define TB_LINEDOWN 1
1273 #define TB_PAGEUP 2
1274 #define TB_PAGEDOWN 3
1275 #define TB_THUMBPOSITION 4
1276 #define TB_THUMBTRACK 5
1277 #define TB_TOP 6
1278 #define TB_BOTTOM 7
1279 #define TB_ENDTRACK 8
1281 #define TBCD_TICS 0x0001
1282 #define TBCD_THUMB 0x0002
1283 #define TBCD_CHANNEL 0x0003
1285 #define TBM_GETPOS (WM_USER)
1286 #define TBM_GETRANGEMIN (WM_USER+1)
1287 #define TBM_GETRANGEMAX (WM_USER+2)
1288 #define TBM_GETTIC (WM_USER+3)
1289 #define TBM_SETTIC (WM_USER+4)
1290 #define TBM_SETPOS (WM_USER+5)
1291 #define TBM_SETRANGE (WM_USER+6)
1292 #define TBM_SETRANGEMIN (WM_USER+7)
1293 #define TBM_SETRANGEMAX (WM_USER+8)
1294 #define TBM_CLEARTICS (WM_USER+9)
1295 #define TBM_SETSEL (WM_USER+10)
1296 #define TBM_SETSELSTART (WM_USER+11)
1297 #define TBM_SETSELEND (WM_USER+12)
1298 #define TBM_GETPTICS (WM_USER+14)
1299 #define TBM_GETTICPOS (WM_USER+15)
1300 #define TBM_GETNUMTICS (WM_USER+16)
1301 #define TBM_GETSELSTART (WM_USER+17)
1302 #define TBM_GETSELEND (WM_USER+18)
1303 #define TBM_CLEARSEL (WM_USER+19)
1304 #define TBM_SETTICFREQ (WM_USER+20)
1305 #define TBM_SETPAGESIZE (WM_USER+21)
1306 #define TBM_GETPAGESIZE (WM_USER+22)
1307 #define TBM_SETLINESIZE (WM_USER+23)
1308 #define TBM_GETLINESIZE (WM_USER+24)
1309 #define TBM_GETTHUMBRECT (WM_USER+25)
1310 #define TBM_GETCHANNELRECT (WM_USER+26)
1311 #define TBM_SETTHUMBLENGTH (WM_USER+27)
1312 #define TBM_GETTHUMBLENGTH (WM_USER+28)
1313 #define TBM_SETTOOLTIPS (WM_USER+29)
1314 #define TBM_GETTOOLTIPS (WM_USER+30)
1315 #define TBM_SETTIPSIDE (WM_USER+31)
1316 #define TBM_SETBUDDY (WM_USER+32)
1317 #define TBM_GETBUDDY (WM_USER+33)
1318 #define TBM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1319 #define TBM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1322 /* Pager control */
1324 #define WC_PAGESCROLLER32A "SysPager"
1325 #define WC_PAGESCROLLER32W L"SysPager"
1326 #define WC_PAGESCROLLER WINELIB_NAME_AW(WC_PAGESCROLLER)
1328 #define PGS_VERT 0x00000000
1329 #define PGS_HORZ 0x00000001
1330 #define PGS_AUTOSCROLL 0x00000002
1331 #define PGS_DRAGNDROP 0x00000004
1333 #define PGF_INVISIBLE 0
1334 #define PGF_NORMAL 1
1335 #define PGF_GRAYED 2
1336 #define PGF_DEPRESSED 4
1337 #define PGF_HOT 8
1339 #define PGB_TOPORLEFT 0
1340 #define PGB_BOTTOMORRIGHT 1
1342 /* only used with PGN_SCROLL */
1343 #define PGF_SCROLLUP 1
1344 #define PGF_SCROLLDOWN 2
1345 #define PGF_SCROLLLEFT 4
1346 #define PGF_SCROLLRIGHT 8
1348 #define PGK_SHIFT 1
1349 #define PGK_CONTROL 2
1350 #define PGK_MENU 4
1352 /* only used with PGN_CALCSIZE */
1353 #define PGF_CALCWIDTH 1
1354 #define PGF_CALCHEIGHT 2
1356 #define PGM_FIRST 0x1400
1357 #define PGM_SETCHILD (PGM_FIRST+1)
1358 #define PGM_RECALCSIZE (PGM_FIRST+2)
1359 #define PGM_FORWARDMOUSE (PGM_FIRST+3)
1360 #define PGM_SETBKCOLOR (PGM_FIRST+4)
1361 #define PGM_GETBKCOLOR (PGM_FIRST+5)
1362 #define PGM_SETBORDER (PGM_FIRST+6)
1363 #define PGM_GETBORDER (PGM_FIRST+7)
1364 #define PGM_SETPOS (PGM_FIRST+8)
1365 #define PGM_GETPOS (PGM_FIRST+9)
1366 #define PGM_SETBUTTONSIZE (PGM_FIRST+10)
1367 #define PGM_GETBUTTONSIZE (PGM_FIRST+11)
1368 #define PGM_GETBUTTONSTATE (PGM_FIRST+12)
1369 #define PGM_GETDROPTARGET CCM_GETDROPTARGET
1371 #define PGN_FIRST (0U-900U)
1372 #define PGN_LAST (0U-950U)
1373 #define PGN_SCROLL (PGN_FIRST-1)
1374 #define PGN_CALCSIZE (PGN_FIRST-2)
1376 typedef struct
1378 NMHDR hdr;
1379 WORD fwKeys;
1380 RECT32 rcParent;
1381 INT32 iDir;
1382 INT32 iXpos;
1383 INT32 iYpos;
1384 INT32 iScroll;
1385 } NMPGSCROLL, *LPNMPGSCROLL;
1387 typedef struct
1389 NMHDR hdr;
1390 DWORD dwFlag;
1391 INT32 iWidth;
1392 INT32 iHeight;
1393 } NMPGCALCSIZE, *LPNMPGCALCSIZE;
1396 /* Treeview control */
1398 #define WC_TREEVIEW32A "SysTreeView32"
1399 #define WC_TREEVIEW32W L"SysTreeView32"
1400 #define WC_TREEVIEW WINELIB_NAME_AW(WC_TREEVIEW)
1402 #define TVSIL_NORMAL 0
1403 #define TVSIL_STATE 2
1405 #define TV_FIRST 0x1100
1406 #define TVM_INSERTITEM32A (TV_FIRST+0)
1407 #define TVM_INSERTITEM32W (TV_FIRST+50)
1408 #define TVM_INSERTITEM WINELIB_NAME_AW(TVM_INSERTITEM)
1409 #define TVM_DELETEITEM (TV_FIRST+1)
1410 #define TVM_EXPAND (TV_FIRST+2)
1411 #define TVM_GETITEMRECT (TV_FIRST+4)
1412 #define TVM_GETCOUNT (TV_FIRST+5)
1413 #define TVM_GETINDENT (TV_FIRST+6)
1414 #define TVM_SETINDENT (TV_FIRST+7)
1415 #define TVM_GETIMAGELIST (TV_FIRST+8)
1416 #define TVM_SETIMAGELIST (TV_FIRST+9)
1417 #define TVM_GETNEXTITEM (TV_FIRST+10)
1418 #define TVM_SELECTITEM (TV_FIRST+11)
1419 #define TVM_GETITEM32A (TV_FIRST+12)
1420 #define TVM_GETITEM32W (TV_FIRST+62)
1421 #define TVM_GETITEM WINELIB_NAME_AW(TVM_GETITEM)
1422 #define TVM_SETITEM32A (TV_FIRST+13)
1423 #define TVM_SETITEM32W (TV_FIRST+63)
1424 #define TVM_SETITEM WINELIB_NAME_AW(TVM_SETITEM)
1425 #define TVM_EDITLABEL32A (TV_FIRST+14)
1426 #define TVM_EDITLABEL32W (TV_FIRST+65)
1427 #define TVM_EDITLABEL WINELIB_NAME_AW(TVM_EDITLABEL)
1428 #define TVM_GETEDITCONTROL (TV_FIRST+15)
1429 #define TVM_GETVISIBLECOUNT (TV_FIRST+16)
1430 #define TVM_HITTEST (TV_FIRST+17)
1431 #define TVM_CREATEDRAGIMAGE (TV_FIRST+18)
1432 #define TVM_SORTCHILDREN (TV_FIRST+19)
1433 #define TVM_ENSUREVISIBLE (TV_FIRST+20)
1434 #define TVM_SORTCHILDRENCB (TV_FIRST+21)
1435 #define TVM_ENDEDITLABELNOW (TV_FIRST+22)
1436 #define TVM_GETISEARCHSTRING32A (TV_FIRST+23)
1437 #define TVM_GETISEARCHSTRING32W (TV_FIRST+64)
1438 #define TVM_GETISEARCHSTRING WINELIB_NAME_AW(TVM_GETISEARCHSTRING)
1439 #define TVM_SETTOOLTIPS (TV_FIRST+24)
1440 #define TVM_GETTOOLTIPS (TV_FIRST+25)
1441 #define TVM_SETINSERTMARK (TV_FIRST+26)
1442 #define TVM_SETITEMHEIGHT (TV_FIRST+27)
1443 #define TVM_GETITEMHEIGHT (TV_FIRST+28)
1444 #define TVM_SETBKCOLOR (TV_FIRST+29)
1445 #define TVM_SETTEXTCOLOR (TV_FIRST+30)
1446 #define TVM_GETBKCOLOR (TV_FIRST+31)
1447 #define TVM_GETTEXTCOLOR (TV_FIRST+32)
1448 #define TVM_SETSCROLLTIME (TV_FIRST+33)
1449 #define TVM_GETSCROLLTIME (TV_FIRST+34)
1450 #define TVM_SETINSERTMARKCOLOR (TV_FIRST+37)
1451 #define TVM_GETINSERTMARKCOLOR (TV_FIRST+38)
1452 #define TVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1453 #define TVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1455 #define TVN_FIRST (0U-400U)
1456 #define TVN_LAST (0U-499U)
1458 #define TVN_SELCHANGING (TVN_FIRST-1)
1459 #define TVN_SELCHANGED (TVN_FIRST-2)
1460 #define TVN_GETDISPINFO (TVN_FIRST-3)
1461 #define TVN_SETDISPINFO (TVN_FIRST-4)
1462 #define TVN_ITEMEXPANDING (TVN_FIRST-5)
1463 #define TVN_ITEMEXPANDED (TVN_FIRST-6)
1464 #define TVN_BEGINDRAG (TVN_FIRST-7)
1465 #define TVN_BEGINRDRAG (TVN_FIRST-8)
1466 #define TVN_DELETEITEM (TVN_FIRST-9)
1467 #define TVN_BEGINLABELEDIT (TVN_FIRST-10)
1468 #define TVN_ENDLABELEDIT (TVN_FIRST-11)
1469 #define TVN_KEYDOWN (TVN_FIRST-12)
1470 #define TVN_GETINFOTIPA (TVN_FIRST-13)
1471 #define TVN_GETINFOTIPW (TVN_FIRST-14)
1472 #define TVN_SINGLEEXPAND (TVN_FIRST-15)
1475 #define TVN_SELCHANGINGW (TVN_FIRST-50)
1476 #define TVN_SELCHANGEDW (TVN_FIRST-51)
1477 #define TVN_GETDISPINFOW (TVN_FIRST-52)
1478 #define TVN_SETDISPINFOW (TVN_FIRST-53)
1479 #define TVN_ITEMEXPANDINGW (TVN_FIRST-54)
1480 #define TVN_ITEMEXPANDEDW (TVN_FIRST-55)
1481 #define TVN_BEGINDRAGW (TVN_FIRST-56)
1482 #define TVN_BEGINRDRAGW (TVN_FIRST-57)
1483 #define TVN_DELETEITEMW (TVN_FIRST-58)
1484 #define TVN_BEGINLABELEDITW (TVN_FIRST-59)
1485 #define TVN_ENDLABELEDITW (TVN_FIRST-60)
1489 #define TVIF_TEXT 0x0001
1490 #define TVIF_IMAGE 0x0002
1491 #define TVIF_PARAM 0x0004
1492 #define TVIF_STATE 0x0008
1493 #define TVIF_HANDLE 0x0010
1494 #define TVIF_SELECTEDIMAGE 0x0020
1495 #define TVIF_CHILDREN 0x0040
1496 #define TVIF_INTEGRAL 0x0080
1497 #define TVIF_DI_SETITEM 0x1000
1499 #define TVI_ROOT 0xffff0000 /* -65536 */
1500 #define TVI_FIRST 0xffff0001 /* -65535 */
1501 #define TVI_LAST 0xffff0002 /* -65534 */
1502 #define TVI_SORT 0xffff0003 /* -65533 */
1504 #define TVIS_FOCUSED 0x0001
1505 #define TVIS_SELECTED 0x0002
1506 #define TVIS_CUT 0x0004
1507 #define TVIS_DROPHILITED 0x0008
1508 #define TVIS_BOLD 0x0010
1509 #define TVIS_EXPANDED 0x0020
1510 #define TVIS_EXPANDEDONCE 0x0040
1511 #define TVIS_OVERLAYMASK 0x0f00
1512 #define TVIS_STATEIMAGEMASK 0xf000
1513 #define TVIS_USERMASK 0xf000
1515 #define TVHT_NOWHERE 0x0001
1516 #define TVHT_ONITEMICON 0x0002
1517 #define TVHT_ONITEMLABEL 0x0004
1518 #define TVHT_ONITEMINDENT 0x0008
1519 #define TVHT_ONITEMBUTTON 0x0010
1520 #define TVHT_ONITEMRIGHT 0x0020
1521 #define TVHT_ONITEMSTATEICON 0x0040
1522 #define TVHT_ONITEM 0x0046
1523 #define TVHT_ABOVE 0x0100
1524 #define TVHT_BELOW 0x0200
1525 #define TVHT_TORIGHT 0x0400
1526 #define TVHT_TOLEFT 0x0800
1528 #define TVS_HASBUTTONS 0x0001
1529 #define TVS_HASLINES 0x0002
1530 #define TVS_LINESATROOT 0x0004
1531 #define TVS_EDITLABELS 0x0008
1532 #define TVS_DISABLEDRAGDROP 0x0010
1533 #define TVS_SHOWSELALWAYS 0x0020
1534 #define TVS_RTLREADING 0x0040
1535 #define TVS_NOTOOLTIPS 0x0080
1536 #define TVS_CHECKBOXES 0x0100
1537 #define TVS_TRACKSELECT 0x0200
1538 #define TVS_SINGLEEXPAND 0x0400
1539 #define TVS_INFOTIP 0x0800
1540 #define TVS_FULLROWSELECT 0x1000
1541 #define TVS_NOSCROLL 0x2000
1542 #define TVS_NONEVENHEIGHT 0x4000
1544 #define TVS_SHAREDIMAGELISTS 0x0000
1545 #define TVS_PRIVATEIMAGELISTS 0x0400
1548 #define TVE_COLLAPSE 0x0001
1549 #define TVE_EXPAND 0x0002
1550 #define TVE_TOGGLE 0x0003
1551 #define TVE_EXPANDPARTIAL 0x4000
1552 #define TVE_COLLAPSERESET 0x8000
1554 #define TVGN_ROOT 0
1555 #define TVGN_NEXT 1
1556 #define TVGN_PREVIOUS 2
1557 #define TVGN_PARENT 3
1558 #define TVGN_CHILD 4
1559 #define TVGN_FIRSTVISIBLE 5
1560 #define TVGN_NEXTVISIBLE 6
1561 #define TVGN_PREVIOUSVISIBLE 7
1562 #define TVGN_DROPHILITE 8
1563 #define TVGN_CARET 9
1564 #define TVGN_LASTVISIBLE 10
1566 #define TVC_UNKNOWN 0x00
1567 #define TVC_BYMOUSE 0x01
1568 #define TVC_BYKEYBOARD 0x02
1571 typedef HANDLE32 HTREEITEM;
1573 typedef struct {
1574 UINT32 mask;
1575 HTREEITEM hItem;
1576 UINT32 state;
1577 UINT32 stateMask;
1578 LPSTR pszText;
1579 int cchTextMax;
1580 int iImage;
1581 int iSelectedImage;
1582 int cChildren;
1583 LPARAM lParam;
1584 } TV_ITEM, *LPTVITEM;
1586 typedef struct {
1587 UINT32 mask;
1588 HTREEITEM hItem;
1589 UINT32 state;
1590 UINT32 stateMask;
1591 LPSTR pszText;
1592 int cchTextMax;
1593 int iImage;
1594 int iSelectedImage;
1595 int cChildren;
1596 LPARAM lParam;
1597 int iIntegral;
1598 } TV_ITEMEX, *LPTVITEMEX;
1600 #define TVITEM TV_ITEM
1604 typedef struct tagTVINSERTSTRUCT {
1605 HTREEITEM hParent;
1606 HTREEITEM hInsertAfter;
1607 TV_ITEM item;
1608 } TVINSERTSTRUCT, *LPTVINSERTSTRUCT;
1610 typedef struct tagNMTREEVIEW {
1611 NMHDR hdr;
1612 UINT32 action;
1613 TVITEM itemOld;
1614 TVITEM itemNew;
1615 POINT32 ptDrag;
1616 } NMTREEVIEW, *LPNMTREEVIEW;
1618 typedef struct tagTVDISPINFO {
1619 NMHDR hdr;
1620 TVITEM item;
1621 } NMTVDISPINFO, *LPNMTVDISPINFO;
1625 typedef struct tagTVHITTESTINFO {
1626 POINT32 pt;
1627 UINT32 flags;
1628 HTREEITEM hItem;
1629 } TVHITTESTINFO, *LPTVHITTESTINFO;
1632 #define TreeView_InsertItem(hwndHD, phdi) \
1633 (INT32)SendMessage32A((hwnd), TVM_INSERTITEM, 0, \
1634 (LPARAM)(LPTV_INSERTSTRUCT)(phdi))
1635 #define TreeView_DeleteItem(hwnd, hItem) \
1636 (BOOL32)SendMessage32A((hwnd), TVM_DELETEITEM, 0, (LPARAM)(HTREEITEM)(hItem))
1637 #define TreeView_DeleteAllItems(hwnd) \
1638 (BOOL32)SendMessage32A((hwnd), TVM_DELETEITEM, 0, (LPARAM)TVI_ROOT)
1639 #define TreeView_Expand(hwnd, hitem, code) \
1640 (BOOL32)SendMessage32A((hwnd), TVM_EXPAND, (WPARAM)code, \
1641 (LPARAM)(HTREEITEM)(hitem))
1643 #define TreeView_GetItemRect(hwnd, hitem, prc, code) \
1644 (*(HTREEITEM *)prc = (hitem), (BOOL)SendMessage32A((hwnd), \
1645 TVM_GETITEMRECT, (WPARAM32)(code), (LPARAM)(RECT *)(prc)))
1647 #define TreeView_GetCount(hwnd) \
1648 (UINT32)SendMessage32A((hwnd), TVM_GETCOUNT, 0, 0)
1649 #define TreeView_GetIndent(hwnd) \
1650 (UINT32)SendMessage32A((hwnd), TVM_GETINDENT, 0, 0)
1651 #define TreeView_SetIndent(hwnd, indent) \
1652 (BOOL32)SendMessage32A((hwnd), TVM_SETINDENT, (WPARAM)indent, 0)
1654 #define TreeView_GetImageList(hwnd, iImage) \
1655 (HIMAGELIST)SendMessage32A((hwnd), TVM_GETIMAGELIST, iImage, 0)
1657 #define TreeView_SetImageList(hwnd, himl, iImage) \
1658 (HIMAGELIST)SendMessage32A((hwnd), TVM_SETIMAGELIST, iImage, \
1659 (LPARAM)(UINT32)(HIMAGELIST)(himl))
1661 #define TreeView_GetNextItem(hwnd, hitem, code) \
1662 (HTREEITEM)SendMessage32A((hwnd), TVM_GETNEXTITEM, (WPARAM)code,\
1663 (LPARAM)(HTREEITEM) (hitem))
1665 #define TreeView_GetChild(hwnd, hitem) \
1666 TreeView_GetNextItem(hwnd, hitem , TVGN_CHILD)
1667 #define TreeView_GetNextSibling(hwnd, hitem) \
1668 TreeView_GetNextItem(hwnd, hitem , TVGN_NEXT)
1669 #define TreeView_GetPrevSibling(hwnd, hitem) \
1670 TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUS)
1671 #define TreeView_GetParent(hwnd, hitem) \
1672 TreeView_GetNextItem(hwnd, hitem , TVGN_PARENT)
1673 #define TreeView_GetFirstVisible(hwnd) \
1674 TreeView_GetNextItem(hwnd, NULL, TVGN_FIRSTVISIBLE)
1675 #define TreeView_GetLastVisible(hwnd) \
1676 TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE)
1677 #define TreeView_GetNextVisible(hwnd, hitem) \
1678 TreeView_GetNextItem(hwnd, hitem , TVGN_NEXTVISIBLE)
1679 #define TreeView_GetPrevVisible(hwnd, hitem) \
1680 TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUSVISIBLE)
1681 #define TreeView_GetSelection(hwnd) \
1682 TreeView_GetNextItem(hwnd, NULL, TVGN_CARET)
1683 #define TreeView_GetDropHilight(hwnd) \
1684 TreeView_GetNextItem(hwnd, NULL, TVGN_DROPHILITE)
1685 #define TreeView_GetRoot(hwnd) \
1686 TreeView_GetNextItem(hwnd, NULL, TVGN_ROOT)
1687 #define TreeView_GetLastVisible(hwnd) \
1688 TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE)
1691 #define TreeView_Select(hwnd, hitem, code) \
1692 (UINT32)SendMessage32A((hwnd), TVM_SELECTITEM, (WPARAM)code, \
1693 (LPARAM)(UINT32)(hitem))
1696 #define TreeView_SelectItem(hwnd, hitem) \
1697 TreeView_Select(hwnd, hitem, TVGN_CARET)
1698 #define TreeView_SelectDropTarget(hwnd, hitem) \
1699 TreeView_Select(hwnd, hitem, TVGN_DROPHILITE)
1700 /* FIXME
1701 #define TreeView_SelectSetFirstVisible(hwnd, hitem) \
1702 TreeView_Select(hwnd, hitem, TVGN_FIRSTVISIBLE)
1705 #define TreeView_GetItem(hwnd, pitem) \
1706 (BOOL32)SendMessage32A((hwnd), TVM_GETITEM, 0, (LPARAM) (TV_ITEM *)(pitem))
1708 #define TreeView_SetItem(hwnd, pitem) \
1709 (BOOL32)SendMessage32A((hwnd), TVM_SETITEM, 0, (LPARAM)(const TV_ITEM *)(pitem))
1711 #define TreeView_EditLabel(hwnd, hitem) \
1712 (HWND)SendMessage32A((hwnd), TVM_EDITLABEL, 0, (LPARAM)(HTREEITEM)(hitem))
1715 #define TreeView_GetEditControl(hwnd) \
1716 (HWND)SendMessage32A((hwnd), TVM_GETEDITCONTROL, 0, 0)
1718 #define TreeView_GetVisibleCount(hwnd) \
1719 (UINT32)SendMessage32A((hwnd), TVM_GETVISIBLECOUNT, 0, 0)
1721 #define TreeView_HitTest(hwnd, lpht) \
1722 (HTREEITEM)SendMessage32A((hwnd), TVM_HITTEST, 0,\
1723 (LPARAM)(LPTV_HITTESTINFO)(lpht))
1725 #define TreeView_CreateDragImage(hwnd, hitem) \
1726 (HIMAGELIST)SendMessage32A((hwnd), TVM_CREATEDRAGIMAGE, 0,\
1727 (LPARAM)(HTREEITEM)(hitem))
1729 #define TreeView_SortChildren(hwnd, hitem, recurse) \
1730 (BOOL)SendMessage32A((hwnd), TVM_SORTCHILDREN, (WPARAM)recurse,\
1731 (LPARAM)(HTREEITEM)(hitem))
1733 #define TreeView_EnsureVisible(hwnd, hitem) \
1734 (BOOL)SendMessage32A((hwnd), TVM_ENSUREVISIBLE, 0, (LPARAM)(UINT32)(hitem))
1736 #define TreeView_SortChildrenCB(hwnd, psort, recurse) \
1737 (BOOL)SendMessage32A((hwnd), TVM_SORTCHILDRENCB, (WPARAM)recurse, \
1738 (LPARAM)(LPTV_SORTCB)(psort))
1740 #define TreeView_EndEditLabelNow(hwnd, fCancel) \
1741 (BOOL)SendMessage32A((hwnd), TVM_ENDEDITLABELNOW, (WPARAM)fCancel, 0)
1743 #define TreeView_GetISearchString(hwndTV, lpsz) \
1744 (BOOL)SendMessage32A((hwndTV), TVM_GETISEARCHSTRING, 0, \
1745 (LPARAM)(LPTSTR)lpsz)
1747 #define TreeView_SetItemHeight(hwnd, iHeight) \
1748 (INT32)SendMessage32A((hwnd), TVM_SETITEMHEIGHT, (WPARAM)iHeight, 0)
1749 #define TreeView_GetItemHeight(hwnd) \
1750 (INT32)SendMessage32A((hwnd), TVM_GETITEMHEIGHT, 0, 0)
1752 #define TreeView_SetBkColor(hwnd, clr) \
1753 (COLORREF)SendMessage32A((hwnd), TVM_SETBKCOLOR, 0, (LPARAM)clr)
1755 #define TreeView_SetTextColor(hwnd, clr) \
1756 (COLORREF)SendMessage32A((hwnd), TVM_SETTEXTCOLOR, 0, (LPARAM)clr)
1758 #define TreeView_GetBkColor(hwnd) \
1759 (COLORREF)SendMessage32A((hwnd), TVM_GETBKCOLOR, 0, 0)
1761 #define TreeView_GetTextColor(hwnd) \
1762 (COLORREF)SendMessage32A((hwnd), TVM_GETTEXTCOLOR, 0, 0)
1764 #define TreeView_SetScrollTime(hwnd, uTime) \
1765 (UINT32)SendMessage32A((hwnd), TVM_SETSCROLLTIME, uTime, 0)
1767 #define TreeView_GetScrollTime(hwnd) \
1768 (UINT32)SendMessage32A((hwnd), TVM_GETSCROLLTIME, 0, 0)
1770 #define TreeView_SetInsertMarkColor(hwnd, clr) \
1771 (COLORREF)SendMessage32A((hwnd), TVM_SETINSERTMARKCOLOR, 0, (LPARAM)clr)
1772 #define TreeView_GetInsertMarkColor(hwnd) \
1773 (COLORREF)SendMessage32A((hwnd), TVM_GETINSERTMARKCOLOR, 0, 0)
1783 /* Listview control */
1785 #define WC_LISTVIEW32A "SysListView32"
1786 #define WC_LISTVIEW32W L"SysListView32"
1787 #define WC_LISTVIEW WINELIB_NAME_AW(WC_LISTVIEW)
1789 #define LVS_ICON 0x0000
1790 #define LVS_REPORT 0x0001
1791 #define LVS_SMALLICON 0x0002
1792 #define LVS_LIST 0x0003
1793 #define LVS_TYPEMASK 0x0003
1794 #define LVS_SINGLESEL 0x0004
1795 #define LVS_SHOWSELALWAYS 0x0008
1796 #define LVS_SORTASCENDING 0x0010
1797 #define LVS_SORTDESCENDING 0x0020
1798 #define LVS_SHAREIMAGELISTS 0x0040
1799 #define LVS_NOLABELWRAP 0x0080
1800 #define LVS_AUTOARRANGE 0x0100
1801 #define LVS_EDITLABELS 0x0200
1802 #define LVS_OWNERDATA 0x1000
1803 #define LVS_NOSCROLL 0x2000
1804 #define LVS_TYPESTYLEMASK 0xfc00
1805 #define LVS_ALIGNTOP 0x0000
1806 #define LVS_ALIGNLEFT 0x0800
1807 #define LVS_ALIGNMASK 0x0c00
1808 #define LVS_OWNERDRAWFIXED 0x0400
1809 #define LVS_NOCOLUMNHEADER 0x4000
1810 #define LVS_NOSORTHEADER 0x8000
1812 #define LVCF_FMT 0x0001
1813 #define LVCF_WIDTH 0x0002
1814 #define LVCF_TEXT 0x0004
1815 #define LVCF_SUBITEM 0x0008
1816 #define LVCF_IMAGE 0x0010
1817 #define LVCF_ORDER 0x0020
1819 #define LVCFMT_LEFT 0x0000
1820 #define LVCFMT_RIGHT 0x0001
1821 #define LVCFMT_CENTER 0x0002
1822 #define LVCFMT_JUSTIFYMASK 0x0003
1823 #define LVCFMT_IMAGE 0x0800
1824 #define LVCFMT_BITMAP_ON_RIGHT 0x1000
1825 #define LVCFMT_COL_HAS_IMAGES 0x8000
1827 #define LVSIL_NORMAL 0
1828 #define LVSIL_SMALL 1
1829 #define LVSIL_STATE 2
1831 #define LVIF_TEXT 0x0001
1832 #define LVIF_IMAGE 0x0002
1833 #define LVIF_PARAM 0x0004
1834 #define LVIF_STATE 0x0008
1835 #define LVIF_INDENT 0x0010
1836 #define LVIF_NORECOMPUTE 0x0800
1838 #define LVIS_FOCUSED 0x0001
1839 #define LVIS_SELECTED 0x0002
1840 #define LVIS_CUT 0x0004
1841 #define LVIS_DROPHILITED 0x0008
1842 #define LVIS_ACTIVATING 0x0020
1844 #define LVIS_OVERLAYMASK 0x0F00
1845 #define LVIS_STATEIMAGEMASK 0xF000
1847 #define LVNI_ALL 0x0000
1848 #define LVNI_FOCUSED 0x0001
1849 #define LVNI_SELECTED 0x0002
1850 #define LVNI_CUT 0x0004
1851 #define LVNI_DROPHILITED 0x0008
1853 #define LVNI_ABOVE 0x0100
1854 #define LVNI_BELOW 0x0200
1855 #define LVNI_TOLEFT 0x0400
1856 #define LVNI_TORIGHT 0x0800
1858 #define LVM_FIRST 0x1000
1859 #define LVM_GETBKCOLOR (LVM_FIRST+0)
1860 #define LVM_SETBKCOLOR (LVM_FIRST+1)
1861 #define LVM_GETIMAGELIST (LVM_FIRST+2)
1862 #define LVM_SETIMAGELIST (LVM_FIRST+3)
1863 #define LVM_GETITEMCOUNT (LVM_FIRST+4)
1864 #define LVM_GETITEM32A (LVM_FIRST+5)
1865 #define LVM_GETITEM32W (LVM_FIRST+75)
1866 #define LVM_GETITEM WINELIB_NAME_AW(LVM_GETITEM)
1867 #define LVM_SETITEM32A (LVM_FIRST+6)
1868 #define LVM_SETITEM32W (LVM_FIRST+76)
1869 #define LVM_SETITEM WINELIB_NAME_AW(LVM_SETITEM)
1870 #define LVM_INSERTITEM32A (LVM_FIRST+7)
1871 #define LVM_INSERTITEM32W (LVM_FIRST+77)
1872 #define LVM_INSERTITEM WINELIB_NAME_AW(LVM_INSERTITEM)
1873 #define LVM_DELETEITEM (LVM_FIRST+8)
1874 #define LVM_DELETEALLITEMS (LVM_FIRST+9)
1875 #define LVM_GETCALLBACKMASK (LVM_FIRST+10)
1876 #define LVM_SETCALLBACKMASK (LVM_FIRST+11)
1877 #define LVM_GETNEXTITEM (LVM_FIRST+12)
1878 #define LVM_FINDITEM32A (LVM_FIRST+13)
1879 #define LVM_FINDITEM32W (LVM_FIRST+83)
1880 #define LVM_FINDITEM WINELIB_NAME_AW(LVM_FINDITEM)
1881 #define LVM_GETITEMRECT (LVM_FIRST+14)
1882 #define LVM_SETITEMPOSITION (LVM_FIRST+15)
1883 #define LVM_GETITEMPOSITION (LVM_FIRST+16)
1884 #define LVM_GETSTRINGWIDTH32A (LVM_FIRST+17)
1885 #define LVM_GETSTRINGWIDTH32W (LVM_FIRST+87)
1886 #define LVM_GETSTRINGWIDTH WINELIB_NAME_AW(LVM_GETSTRINGWIDTH)
1887 #define LVM_HITTEST (LVM_FIRST+18)
1888 #define LVM_ENSUREVISIBLE (LVM_FIRST+19)
1889 #define LVM_SCROLL (LVM_FIRST+20)
1890 #define LVM_REDRAWITEMS (LVM_FIRST+21)
1891 #define LVM_ARRANGE (LVM_FIRST+22)
1892 #define LVM_EDITLABEL32A (LVM_FIRST+23)
1893 #define LVM_EDITLABEL32W (LVM_FIRST+118)
1894 #define LVM_EDITLABEL WINELIB_NAME_AW(LVM_EDITLABEL)
1895 #define LVM_GETEDITCONTROL (LVM_FIRST+24)
1896 #define LVM_GETCOLUMN32A (LVM_FIRST+25)
1897 #define LVM_GETCOLUMN32W (LVM_FIRST+95)
1898 #define LVM_GETCOLUMN WINELIB_NAME_AW(LVM_GETCOLUMN)
1899 #define LVM_SETCOLUMN32A (LVM_FIRST+26)
1900 #define LVM_SETCOLUMN32W (LVM_FIRST+96)
1901 #define LVM_SETCOLUMN WINELIB_NAME_AW(LVM_SETCOLUMN)
1902 #define LVM_INSERTCOLUMN32A (LVM_FIRST+27)
1903 #define LVM_INSERTCOLUMN32W (LVM_FIRST+97)
1904 #define LVM_INSERTCOLUMN WINELIB_NAME_AW(LVM_INSERTCOLUMN)
1905 #define LVM_DELETECOLUMN (LVM_FIRST+28)
1906 #define LVM_GETCOLUMNWIDTH (LVM_FIRST+29)
1907 #define LVM_SETCOLUMNWIDTH (LVM_FIRST+30)
1908 #define LVM_GETHEADER (LVM_FIRST+31)
1910 #define LVM_CREATEDRAGIMAGE (LVM_FIRST+33)
1911 #define LVM_GETVIEWRECT (LVM_FIRST+34)
1912 #define LVM_GETTEXTCOLOR (LVM_FIRST+35)
1913 #define LVM_SETTEXTCOLOR (LVM_FIRST+36)
1914 #define LVM_GETTEXTBKCOLOR (LVM_FIRST+37)
1915 #define LVM_SETTEXTBKCOLOR (LVM_FIRST+38)
1916 #define LVM_GETTOPINDEX (LVM_FIRST+39)
1917 #define LVM_GETCOUNTPERPAGE (LVM_FIRST+40)
1918 #define LVM_GETORIGIN (LVM_FIRST+41)
1919 #define LVM_UPDATE (LVM_FIRST+42)
1920 #define LVM_SETITEMSTATE (LVM_FIRST+43)
1921 #define LVM_GETITEMSTATE (LVM_FIRST+44)
1922 #define LVM_GETITEMTEXT32A (LVM_FIRST+45)
1923 #define LVM_GETITEMTEXT32W (LVM_FIRST+115)
1924 #define LVM_GETITEMTEXT WINELIB_NAME_AW(LVM_GETITEMTEXT)
1925 #define LVM_SETITEMTEXT32A (LVM_FIRST+46)
1926 #define LVM_SETITEMTEXT32W (LVM_FIRST+116)
1927 #define LVM_SETITEMTEXT WINELIB_NAME_AW(LVM_SETITEMTEXT)
1928 #define LVM_SETITEMCOUNT (LVM_FIRST+47)
1929 #define LVM_SORTITEMS (LVM_FIRST+48)
1930 #define LVM_SETITEMPOSITION32 (LVM_FIRST+49)
1931 #define LVM_GETSELECTEDCOUNT (LVM_FIRST+50)
1932 #define LVM_GETITEMSPACING (LVM_FIRST+51)
1933 #define LVM_GETISEARCHSTRING32A (LVM_FIRST+52)
1934 #define LVM_GETISEARCHSTRING32W (LVM_FIRST+117)
1935 #define LVM_GETISEARCHSTRING WINELIB_NAME_AW(LVM_GETISEARCHSTRING)
1936 #define LVM_SETICONSPACING (LVM_FIRST+53)
1937 #define LVM_SETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+54)
1938 #define LVM_GETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+55)
1939 #define LVM_GETSUBITEMRECT (LVM_FIRST+56)
1940 #define LVM_SUBITEMHITTEST (LVM_FIRST+57)
1941 #define LVM_SETCOLUMNORDERARRAY (LVM_FIRST+58)
1942 #define LVM_GETCOLUMNORDERARRAY (LVM_FIRST+59)
1943 #define LVM_SETHOTITEM (LVM_FIRST+60)
1944 #define LVM_GETHOTITEM (LVM_FIRST+61)
1945 #define LVM_SETHOTCURSOR (LVM_FIRST+62)
1946 #define LVM_GETHOTCURSOR (LVM_FIRST+63)
1947 #define LVM_APPROXIMATEVIEWRECT (LVM_FIRST+64)
1948 #define LVM_SETWORKAREAS (LVM_FIRST+65)
1949 #define LVM_GETSELECTIONMARK (LVM_FIRST+66)
1950 #define LVM_SETSELECTIONMARK (LVM_FIRST+67)
1951 #define LVM_SETBKIMAGE32A (LVM_FIRST+68)
1952 #define LVM_SETBKIMAGE32W (LVM_FIRST+138)
1953 #define LVM_SETBKIMAGE WINELIB_NAME_AW(LVM_SETBKIMAGE)
1954 #define LVM_GETBKIMAGE32A (LVM_FIRST+69)
1955 #define LVM_GETBKIMAGE32W (LVM_FIRST+139)
1956 #define LVM_GETBKIMAGE WINELIB_NAME_AW(LVM_GETBKIMAGE)
1957 #define LVM_GETWORKAREAS (LVM_FIRST+70)
1958 #define LVM_SETHOVERTIME (LVM_FIRST+71)
1959 #define LVM_GETHOVERTIME (LVM_FIRST+72)
1960 #define LVM_GETNUMBEROFWORKAREAS (LVM_FIRST+73)
1961 #define LVM_SETTOOLTIPS (LVM_FIRST+74)
1963 #define LVM_GETTOOLTIPS (LVM_FIRST+78)
1965 #define LVN_FIRST (0U-100U)
1966 #define LVN_LAST (0U-199U)
1967 #define LVN_ITEMCHANGING (LVN_FIRST-0)
1968 #define LVN_ITEMCHANGED (LVN_FIRST-1)
1969 #define LVN_INSERTITEM (LVN_FIRST-2)
1970 #define LVN_DELETEITEM (LVN_FIRST-3)
1971 #define LVN_DELETEALLITEMS (LVN_FIRST-4)
1972 #define LVN_BEGINLABELEDIT32A (LVN_FIRST-5)
1973 #define LVN_BEGINLABELEDIT32W (LVN_FIRST-75)
1974 #define LVN_BEGINLABELEDIT WINELIB_NAME_AW(LVN_BEGINLABELEDIT)
1975 #define LVN_ENDLABELEDIT32A (LVN_FIRST-6)
1976 #define LVN_ENDLABELEDIT32W (LVN_FIRST-76)
1977 #define LVN_ENDLABELEDIT WINELIB_NAME_AW(LVN_ENDLABELEDIT)
1978 #define LVN_COLUMNCLICK (LVN_FIRST-8)
1979 #define LVN_BEGINDRAG (LVN_FIRST-9)
1980 #define LVN_BEGINRDRAG (LVN_FIRST-11)
1981 #define LVN_ODCACHEHINT (LVN_FIRST-13)
1982 #define LVN_ODFINDITEM32A (LVN_FIRST-52)
1983 #define LVN_ODFINDITEM32W (LVN_FIRST-79)
1984 #define LVN_ODFINDITEM WINELIB_NAME_AW(LVN_ODFINDITEM)
1985 #define LVN_ITEMACTIVATE (LVN_FIRST-14)
1986 #define LVN_ODSTATECHANGED (LVN_FIRST-15)
1987 #define LVN_HOTTRACK (LVN_FIRST-21)
1988 #define LVN_GETDISPINFO32A (LVN_FIRST-50)
1989 #define LVN_GETDISPINFO32W (LVN_FIRST-77)
1990 #define LVN_GETDISPINFO WINELIB_NAME_AW(LVN_GETDISPINFO)
1991 #define LVN_SETDISPINFO32A (LVN_FIRST-51)
1992 #define LVN_SETDISPINFO32W (LVN_FIRST-78)
1993 #define LVN_SETDISPINFO WINELIB_NAME_AW(LVN_SETDISPINFO)
1996 typedef struct tagLVITEMA
1998 UINT32 mask;
1999 INT32 iItem;
2000 INT32 iSubItem;
2001 UINT32 state;
2002 UINT32 stateMask;
2003 LPSTR pszText;
2004 INT32 cchTextMax;
2005 INT32 iImage;
2006 LPARAM lParam;
2007 INT32 iIndent; /* (_WIN32_IE >= 0x0300) */
2008 } LVITEM32A, *LPLVITEM32A;
2010 typedef struct tagLVITEMW
2012 UINT32 mask;
2013 INT32 iItem;
2014 INT32 iSubItem;
2015 UINT32 state;
2016 UINT32 stateMask;
2017 LPWSTR pszText;
2018 INT32 cchTextMax;
2019 INT32 iImage;
2020 LPARAM lParam;
2021 INT32 iIndent; /* (_WIN32_IE >= 0x0300) */
2022 } LVITEM32W, *LPLVITEM32W;
2024 #define LVITEM32 WINELIB_NAME_AW(LVITEM)
2025 #define LPLVITEM32 WINELIB_NAME_AW(LPLVITEM)
2027 #define LVITEM_V1_SIZE32A CCSIZEOF_STRUCT(LVITEM32A, lParam)
2028 #define LVITEM_V1_SIZE32W CCSIZEOF_STRUCT(LVITEM32W, lParam)
2029 #define LVITEM_V1_SIZE WINELIB_NAME_AW(LVITEM_V1_SIZE)
2031 #define LV_ITEM LVITEM
2033 typedef struct tagLVCOLUMNA
2035 UINT32 mask;
2036 INT32 fmt;
2037 INT32 cx;
2038 LPSTR pszText;
2039 INT32 cchTextMax;
2040 INT32 iSubItem;
2041 INT32 iImage; /* (_WIN32_IE >= 0x0300) */
2042 INT32 iOrder; /* (_WIN32_IE >= 0x0300) */
2043 } LVCOLUMN32A, *LPLVCOLUMN32A;
2045 typedef struct tagLVCOLUMNW
2047 UINT32 mask;
2048 INT32 fmt;
2049 INT32 cx;
2050 LPWSTR pszText;
2051 INT32 cchTextMax;
2052 INT32 iSubItem;
2053 INT32 iImage; /* (_WIN32_IE >= 0x0300) */
2054 INT32 iOrder; /* (_WIN32_IE >= 0x0300) */
2055 } LVCOLUMN32W, *LPLVCOLUMN32W;
2057 #define LVCOLUMN WINELIB_NAME_AW(LVCOLUMN)
2058 #define LPLVCOLUMN WINELIB_NAME_AW(LPLVCOLUMN)
2060 #define LVCOLUMN_V1_SIZE32A CCSIZEOF_STRUCT(LVCOLUMN32A, iSubItem)
2061 #define LVCOLUMN_V1_SIZE32W CCSIZEOF_STRUCT(LVCOLUMN32W, iSubItem)
2062 #define LVCOLUMN_V1_SIZE WINELIB_NAME_AW(LVCOLUMN_V1_SIZE)
2064 #define LV_COLUMN LVCOLUMN
2067 typedef struct tagNMLISTVIEW
2069 NMHDR hdr;
2070 INT32 iItem;
2071 INT32 iSubItem;
2072 UINT32 uNewState;
2073 UINT32 uOldState;
2074 UINT32 uChanged;
2075 POINT32 ptAction;
2076 LPARAM lParam;
2077 } NMLISTVIEW, *LPNMLISTVIEW;
2079 #define LPNM_LISTVIEW LPNMLISTVIEW
2080 #define NM_LISTVIEW NMLISTVIEW
2083 typedef struct tagLVDISPINFO
2085 NMHDR hdr;
2086 LVITEM32A item;
2087 } NMLVDISPINFO32A, *LPNMLVDISPINFO32A;
2089 typedef struct tagLVDISPINFOW
2091 NMHDR hdr;
2092 LVITEM32W item;
2093 } NMLVDISPINFO32W, *LPNMLVDISPINFO32W;
2095 #define NMLVDISPINFO WINELIB_NAME_AW(NMLVDISPINFO)
2096 #define LPNMLVDISPINFO WINELIB_NAME_AW(LPNMLVDISPINFO)
2098 #define LV_DISPINFO NMLVDISPINFO
2101 typedef INT32 (CALLBACK *PFNLVCOMPARE)(LPARAM, LPARAM, LPARAM);
2103 #define ListView_SetBkColor(hwnd,clrBk) \
2104 (BOOL32)SendMessage32A((hwnd),LVM_SETBKCOLOR,0,(LPARAM)(COLORREF)(clrBk))
2105 #define ListView_GetImageList(hwnd,iImageList) \
2106 (HIMAGELIST)SendMessage32A((hwnd),LVM_GETIMAGELIST,(WPARAM)(INT32)(iImageList),0L)
2107 #define ListView_SetImageList(hwnd,himl,iImageList) \
2108 (HIMAGELIST)(UINT32)SendMessage32A((hwnd),LVM_SETIMAGELIST,(WPARAM32)(iImageList),(LPARAM)(UINT32)(HIMAGELIST)(himl))
2109 #define ListView_GetItemCount(hwnd) \
2110 (INT32)SendMessage32A((hwnd),LVM_GETITEMCOUNT,0,0L)
2111 #define ListView_GetItem32A(hwnd,pitem) \
2112 (BOOL32)SendMessage32A((hwnd),LVM_GETITEM32A,0,(LPARAM)(LVITEM32A *)(pitem))
2113 #define ListView_GetItem32W(hwnd,pitem) \
2114 (BOOL32)SendMessage32W((hwnd),LVM_GETITEM32W,0,(LPARAM)(LVITEM32W *)(pitem))
2115 #define ListView_GetItem WINELIB_NAME_AW(ListView_GetItem)
2116 #define ListView_InsertItem32A(hwnd,pitem) \
2117 (INT32)SendMessage32A((hwnd),LVM_INSERTITEM32A,0,(LPARAM)(const LVITEM32A *)(pitem))
2118 #define ListView_InsertItem32W(hwnd,pitem) \
2119 (INT32)SendMessage32W((hwnd),LVM_INSERTITEM32W,0,(LPARAM)(const LVITEM32W *)(pitem))
2120 #define ListView_InsertItem WINELIB_NAME_AW(ListView_InsertItem)
2121 #define ListView_DeleteAllItems(hwnd) \
2122 (BOOL32)SendMessage32A((hwnd),LVM_DELETEALLITEMS,0,0L)
2123 #define ListView_InsertColumn32A(hwnd,iCol,pcol) \
2124 (INT32)SendMessage32A((hwnd),LVM_INSERTCOLUMN32A,(WPARAM32)(INT32)(iCol),(LPARAM)(const LVCOLUMN32A *)(pcol))
2125 #define ListView_InsertColumn32W(hwnd,iCol,pcol) \
2126 (INT32)SendMessage32W((hwnd),LVM_INSERTCOLUMN32W,(WPARAM32)(INT32)(iCol),(LPARAM)(const LVCOLUMN32W *)(pcol))
2127 #define ListView_InsertColumn WINELIB_NAME_AW(ListView_InsertColumn)
2128 #define ListView_SortItems(hwndLV,_pfnCompare,_lPrm) \
2129 (BOOL32)SendMessage32A((hwndLV),LVM_SORTITEMS,(WPARAM32)(LPARAM)_lPrm,(LPARAM)(PFNLVCOMPARE)_pfnCompare)
2130 #define ListView_SetItemPosition(hwndLV, i, x, y) \
2131 (BOOL32)SendMessage32A((hwndLV),LVM_SETITEMPOSITION,(WPARAM32)(INT32)(i),MAKELPARAM((x),(y)))
2132 #define ListView_GetSelectedCount(hwndLV) \
2133 (UINT32)SendMessage32A((hwndLV),LVM_GETSELECTEDCOUNT,0,0L)
2136 /* Tab Control */
2138 #define WC_TABCONTROL16 "SysTabControl"
2139 #define WC_TABCONTROL32A "SysTabControl32"
2140 #define WC_TABCONTROL32W L"SysTabControl32"
2142 #define WC_TABCONTROL WINELIB_NAME_AW(WC_TABCONTROL)
2144 #define TCM_FIRST 0x1300
2146 #define TCM_GETITEMCOUNT (TCM_FIRST + 4)
2147 #define TCM_INSERTITEM (TCM_FIRST + 7)
2148 #define TCM_GETCURSEL (TCM_FIRST + 11)
2149 #define TCM_SETITEMEXTRA (TCM_FIRST + 14)
2151 #define TCIF_TEXT 0x0001
2152 #define TCIF_IMAGE 0x0002
2153 #define TCIF_RTLREADING 0x0004
2154 #define TCIF_PARAM 0x0008
2156 typedef struct tagTCITEM {
2157 UINT32 mask;
2158 UINT32 lpReserved1;
2159 UINT32 lpReserved2;
2160 LPSTR pszText;
2161 int cchTextMax;
2162 int iImage;
2163 LPARAM lParam;
2164 } TCITEM, *LPTCITEM;
2166 #define TCN_FIRST (0U-550U)
2167 #define TCN_LAST (0U-580U)
2168 #define TCN_KEYDOWN (TCN_FIRST - 0)
2169 #define TCN_SELCHANGE (TCN_FIRST - 1)
2170 #define TCN_SELCHANGING (TCN_FIRST - 2)
2173 /* ComboBoxEx control */
2175 #define WC_COMBOBOXEX32A "ComboBoxEx32"
2176 #define WC_COMBOBOXEX32W L"ComboBoxEx32"
2177 #define WC_COMBOBOXEX WINELIB_NAME_AW(WC_COMBOBOXEX)
2179 #define CBEM_INSERTITEM32A (WM_USER+1)
2180 #define CBEM_INSERTITEM32W (WM_USER+11)
2181 #define CBEM_INSERTITEM WINELIB_NAME_AW(CBEM_INSERTITEM)
2182 #define CBEM_SETIMAGELIST (WM_USER+2)
2183 #define CBEM_GETIMAGELIST (WM_USER+3)
2184 #define CBEM_GETITEM32A (WM_USER+4)
2185 #define CBEM_GETITEM32W (WM_USER+13)
2186 #define CBEM_GETITEM WINELIB_NAME_AW(CBEM_GETITEM)
2187 #define CBEM_SETITEM32A (WM_USER+5)
2188 #define CBEM_SETITEM32W (WM_USER+12)
2189 #define CBEM_SETITEM WINELIB_NAME_AW(CBEM_SETITEM)
2190 #define CBEM_GETCOMBOCONTROL (WM_USER+6)
2191 #define CBEM_GETEDITCONTROL (WM_USER+7)
2192 #define CBEM_SETEXSTYLE (WM_USER+8)
2193 #define CBEM_GETEXSTYLE (WM_USER+9)
2194 #define CBEM_GETEXTENDEDSTYLE (WM_USER+9)
2195 #define CBEM_SETEXTENDEDSTYLE (WM_USER+14)
2196 #define CBEM_HASEDITCHANGED (WM_USER+10)
2197 #define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
2198 #define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
2200 #define CBEN_FIRST (0U-800U)
2201 #define CBEN_LAST (0U-830U)
2204 /* Hotkey control */
2206 #define HOTKEY_CLASS16 "msctls_hotkey"
2207 #define HOTKEY_CLASS32A "msctls_hotkey32"
2208 #define HOTKEY_CLASS32W L"msctls_hotkey32"
2209 #define HOTKEY_CLASS WINELIB_NAME_AW(HOTKEY_CLASS)
2211 #define HOTKEYF_SHIFT 0x01
2212 #define HOTKEYF_CONTROL 0x02
2213 #define HOTKEYF_ALT 0x04
2214 #define HOTKEYF_EXT 0x08
2216 #define HKCOMB_NONE 0x0001
2217 #define HKCOMB_S 0x0002
2218 #define HKCOMB_C 0x0004
2219 #define HKCOMB_A 0x0008
2220 #define HKCOMB_SC 0x0010
2221 #define HKCOMB_SA 0x0020
2222 #define HKCOMB_CA 0x0040
2223 #define HKCOMB_SCA 0x0080
2225 #define HKM_SETHOTKEY (WM_USER+1)
2226 #define HKM_GETHOTKEY (WM_USER+2)
2227 #define HKM_SETRULES (WM_USER+3)
2230 /* animate control */
2232 #define ANIMATE_CLASS32A "SysAnimate32"
2233 #define ANIMATE_CLASS32W L"SysAnimate32"
2234 #define ANIMATE_CLASS WINELIB_NAME_AW(ANIMATE_CLASS)
2236 #define ACS_CENTER 0x0001
2237 #define ACS_TRANSPARENT 0x0002
2238 #define ACS_AUTOPLAY 0x0004
2239 #define ACS_TIMER 0x0008 /* no threads, just timers */
2241 #define ACM_OPEN32A (WM_USER+100)
2242 #define ACM_OPEN32W (WM_USER+103)
2243 #define ACM_OPEN WINELIB_NAME_AW(ACM_OPEN)
2244 #define ACM_PLAY (WM_USER+101)
2245 #define ACM_STOP (WM_USER+102)
2247 #define ACN_START 1
2248 #define ACN_STOP 2
2250 #define Animate_Create32A(hwndP,id,dwStyle,hInstance) \
2251 CreateWindow32A(ANIMATE_CLASS32A,NULL,dwStyle,0,0,0,0,hwndP,(HMENU32)(id),hInstance,NULL)
2252 #define Animate_Create32W(hwndP,id,dwStyle,hInstance) \
2253 CreateWindow32W(ANIMATE_CLASS32W,NULL,dwStyle,0,0,0,0,hwndP,(HMENU32)(id),hInstance,NULL)
2254 #define Animate_Create WINELIB_NAME_AW(Animate_Create)
2255 #define Animate_Open32A(hwnd,szName) \
2256 (BOOL32)SendMessage32A(hwnd,ACM_OPEN32A,0,(LPARAM)(LPSTR)(szName))
2257 #define Animate_Open32W(hwnd,szName) \
2258 (BOOL32)SendMessage32W(hwnd,ACM_OPEN32W,0,(LPARAM)(LPWSTR)(szName))
2259 #define Animate_Open WINELIB_NAME_AW(Animate_Open)
2260 #define Animate_OpenEx32A(hwnd,hInst,szName) \
2261 (BOOL32)SendMessage32A(hwnd,ACM_OPEN32A,(WPARAM32)hInst,(LPARAM)(LPSTR)(szName))
2262 #define Animate_OpenEx32W(hwnd,hInst,szName) \
2263 (BOOL32)SendMessage32W(hwnd,ACM_OPEN32W,(WPARAM32)hInst,(LPARAM)(LPWSTR)(szName))
2264 #define Animate_OpenEx WINELIB_NAME_AW(Animate_OpenEx)
2265 #define Animate_Play(hwnd,from,to,rep) \
2266 (BOOL32)SendMessage32A(hwnd,ACM_PLAY,(WPARAM32)(UINT32)(rep),(LPARAM)MAKELONG(from,to))
2267 #define Animate_Stop(hwnd) \
2268 (BOOL32)SendMessage32A(hwnd,ACM_STOP,0,0)
2269 #define Animate_Close(hwnd) \
2270 (BOOL32)SendMessage32A(hwnd,ACM_OPEN32A,0,0)
2271 #define Animate_Seek(hwnd,frame) \
2272 (BOOL32)SendMessage32A(hwnd,ACM_PLAY,1,(LPARAM)MAKELONG(frame,frame))
2275 /**************************************************************************
2276 * IP Address control
2279 #define WC_IPADDRESS32A "SysIPAddress32"
2280 #define WC_IPADDRESS32W L"SysIPAddress32"
2281 #define WC_IPADDRESS WINELIB_NAME_AW(WC_IPADDRESS)
2283 #define IPM_CLEARADDRESS (WM_USER+100)
2284 #define IPM_SETADDRESS (WM_USER+101)
2285 #define IPM_GETADDRESS (WM_USER+102)
2286 #define IPM_SETRANGE (WM_USER+103)
2287 #define IPM_SETFOCUS (WM_USER+104)
2288 #define IPM_ISBLANK (WM_USER+105)
2290 #define IPN_FIELDCHANGED (IPN_FIRST-0)
2292 typedef struct tagNMIPADDRESS
2294 NMHDR hdr;
2295 INT32 iField;
2296 INT32 iValue;
2297 } NMIPADDRESS, *LPNMIPADDRESS;
2299 #define MAKEIPRANGE(low,high) \
2300 ((LPARAM)(WORD)(((BYTE)(high)<<8)+(BYTE)(low)))
2301 #define MAKEIPADDRESS(b1,b2,b3,b4) \
2302 ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<16)+((DWORD)(b3)<<8)+((DWORD)(b4))))
2304 #define FIRST_IPADDRESS(x) (((x)>>24)&0xff)
2305 #define SECOND_IPADDRESS(x) (((x)>>16)&0xff)
2306 #define THIRD_IPADDRESS(x) (((x)>>8)&0xff)
2307 #define FOURTH_IPADDRESS(x) ((x)&0xff)
2310 /**************************************************************************
2311 * Native Font control
2314 #define WC_NATIVEFONTCTL32A "NativeFontCtl"
2315 #define WC_NATIVEFONTCTL32W L"NativeFontCtl"
2316 #define WC_NATIVEFONTCTL WINELIB_NAME_AW(WC_NATIVEFONTCTL)
2318 #define NFS_EDIT 0x0001
2319 #define NFS_STATIC 0x0002
2320 #define NFS_LISTCOMBO 0x0004
2321 #define NFS_BUTTON 0x0008
2322 #define NFS_ALL 0x0010
2325 /**************************************************************************
2326 * UNDOCUMENTED functions
2329 /* private heap memory functions */
2331 LPVOID WINAPI COMCTL32_Alloc (DWORD);
2332 LPVOID WINAPI COMCTL32_ReAlloc (LPVOID, DWORD);
2333 BOOL32 WINAPI COMCTL32_Free (LPVOID);
2334 DWORD WINAPI COMCTL32_GetSize (LPVOID);
2337 INT32 WINAPI Str_GetPtr32A (LPCSTR, LPSTR, INT32);
2338 BOOL32 WINAPI Str_SetPtr32A (LPSTR *, LPCSTR);
2339 INT32 WINAPI Str_GetPtr32W (LPCWSTR, LPWSTR, INT32);
2340 BOOL32 WINAPI Str_SetPtr32W (LPWSTR *, LPCWSTR);
2341 #define Str_GetPtr WINELIB_NAME_AW(Str_GetPtr)
2342 #define Str_SetPtr WINELIB_NAME_AW(Str_SetPtr)
2345 /* Dynamic Storage Array */
2347 typedef struct _DSA
2349 INT32 nItemCount;
2350 LPVOID pData;
2351 INT32 nMaxCount;
2352 INT32 nItemSize;
2353 INT32 nGrow;
2354 } DSA, *HDSA;
2356 HDSA WINAPI DSA_Create (INT32, INT32);
2357 BOOL32 WINAPI DSA_DeleteAllItems (const HDSA);
2358 INT32 WINAPI DSA_DeleteItem (const HDSA, INT32);
2359 BOOL32 WINAPI DSA_Destroy (const HDSA);
2360 BOOL32 WINAPI DSA_GetItem (const HDSA, INT32, LPVOID);
2361 LPVOID WINAPI DSA_GetItemPtr (const HDSA, INT32);
2362 INT32 WINAPI DSA_InsertItem (const HDSA, INT32, LPVOID);
2363 BOOL32 WINAPI DSA_SetItem (const HDSA, INT32, LPVOID);
2366 /* Dynamic Pointer Array */
2368 typedef struct _DPA
2370 INT32 nItemCount;
2371 LPVOID *ptrs;
2372 HANDLE32 hHeap;
2373 INT32 nGrow;
2374 INT32 nMaxCount;
2375 } DPA, *HDPA;
2377 HDPA WINAPI DPA_Create (INT32);
2378 HDPA WINAPI DPA_CreateEx (INT32, HANDLE32);
2379 BOOL32 WINAPI DPA_Destroy (const HDPA);
2380 HDPA WINAPI DPA_Clone (const HDPA, const HDPA);
2381 LPVOID WINAPI DPA_GetPtr (const HDPA, INT32);
2382 INT32 WINAPI DPA_GetPtrIndex (const HDPA, LPVOID);
2383 BOOL32 WINAPI DPA_Grow (const HDPA, INT32);
2384 BOOL32 WINAPI DPA_SetPtr (const HDPA, INT32, LPVOID);
2385 INT32 WINAPI DPA_InsertPtr (const HDPA, INT32, LPVOID);
2386 LPVOID WINAPI DPA_DeletePtr (const HDPA, INT32);
2387 BOOL32 WINAPI DPA_DeleteAllPtrs (const HDPA);
2389 typedef INT32 (CALLBACK *PFNDPACOMPARE)(LPVOID, LPVOID, LPARAM);
2390 BOOL32 WINAPI DPA_Sort (const HDPA, PFNDPACOMPARE, LPARAM);
2392 #define DPAS_SORTED 0x0001
2393 #define DPAS_INSERTBEFORE 0x0002
2394 #define DPAS_INSERTAFTER 0x0004
2396 INT32 WINAPI DPA_Search (const HDPA, LPVOID, INT32, PFNDPACOMPARE, LPARAM, UINT32);
2398 #define DPA_GetPtrCount(hdpa) (*(INT32*)(hdpa))
2399 #define DPA_GetPtrPtr(hdpa) (*((LPVOID**)((BYTE*)(hdpa)+sizeof(INT32))))
2400 #define DPA_FastGetPtr(hdpa,i) (DPA_GetPtrPtr(hdpa)[i])
2403 /* notification helper functions */
2405 LRESULT WINAPI COMCTL32_SendNotify (HWND32, HWND32, UINT32, LPNMHDR);
2407 /* type and functionality of last parameter is still unknown */
2408 LRESULT WINAPI COMCTL32_SendNotifyEx (HWND32, HWND32, UINT32, LPNMHDR, DWORD);
2411 #endif /* __WINE_COMMCTRL_H */