Fix number and type of args in debugging statements.
[wine.git] / include / commctrl.h
blob4c919191f8162555edc28aace1cdf73e22f46d13
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 #ifdef __cplusplus
12 extern "C" {
13 #endif
15 BOOL32 WINAPI ShowHideMenuCtl (HWND32, UINT32, LPINT32);
16 VOID WINAPI GetEffectiveClientRect (HWND32, LPRECT32, LPINT32);
17 VOID WINAPI InitCommonControls (VOID);
19 typedef struct tagINITCOMMONCONTROLSEX {
20 DWORD dwSize;
21 DWORD dwICC;
22 } INITCOMMONCONTROLSEX, *LPINITCOMMONCONTROLSEX;
24 BOOL32 WINAPI InitCommonControlsEx (LPINITCOMMONCONTROLSEX);
26 #define ICC_LISTVIEW_CLASSES 0x00000001 /* listview, header */
27 #define ICC_TREEVIEW_CLASSES 0x00000002 /* treeview, tooltips */
28 #define ICC_BAR_CLASSES 0x00000004 /* toolbar, statusbar, trackbar, tooltips */
29 #define ICC_TAB_CLASSES 0x00000008 /* tab, tooltips */
30 #define ICC_UPDOWN_CLASS 0x00000010 /* updown */
31 #define ICC_PROGRESS_CLASS 0x00000020 /* progress */
32 #define ICC_HOTKEY_CLASS 0x00000040 /* hotkey */
33 #define ICC_ANIMATE_CLASS 0x00000080 /* animate */
34 #define ICC_WIN95_CLASSES 0x000000FF
35 #define ICC_DATE_CLASSES 0x00000100 /* month picker, date picker, time picker, updown */
36 #define ICC_USEREX_CLASSES 0x00000200 /* comboex */
37 #define ICC_COOL_CLASSES 0x00000400 /* rebar (coolbar) */
38 #define ICC_INTERNET_CLASSES 0x00000800 /* IP address, ... */
39 #define ICC_PAGESCROLLER_CLASS 0x00001000 /* page scroller */
40 #define ICC_NATIVEFNTCTL_CLASS 0x00002000 /* native font control ???*/
43 /* common control styles */
44 #define CCS_TOP 0x00000001L
45 #define CCS_NOMOVEY 0x00000002L
46 #define CCS_BOTTOM 0x00000003L
47 #define CCS_NORESIZE 0x00000004L
48 #define CCS_NOPARENTALIGN 0x00000008L
49 #define CCS_ADJUSTABLE 0x00000020L
50 #define CCS_NODIVIDER 0x00000040L
51 #define CCS_VERT 0x00000080L
52 #define CCS_LEFT (CCS_VERT|CCS_TOP)
53 #define CCS_RIGHT (CCS_VERT|CCS_BOTTOM)
54 #define CCS_NOMOVEX (CCS_VERT|CCS_NOMOVEY)
57 /* common control shared messages */
58 #define CCM_FIRST 0x2000
60 #define CCM_SETBKCOLOR (CCM_FIRST+1) /* lParam = bkColor */
61 #define CCM_SETCOLORSCHEME (CCM_FIRST+2)
62 #define CCM_GETCOLORSCHEME (CCM_FIRST+3)
63 #define CCM_GETDROPTARGET (CCM_FIRST+4)
64 #define CCM_SETUNICODEFORMAT (CCM_FIRST+5)
65 #define CCM_GETUNICODEFORMAT (CCM_FIRST+6)
68 /* common notification codes (WM_NOTIFY)*/
69 #define NM_FIRST (0U- 0U)
70 #define NM_LAST (0U- 99U)
71 #define NM_OUTOFMEMORY (NM_FIRST-1)
72 #define NM_CLICK (NM_FIRST-2)
73 #define NM_DBLCLK (NM_FIRST-3)
74 #define NM_RETURN (NM_FIRST-4)
75 #define NM_RCLICK (NM_FIRST-5)
76 #define NM_RDBLCLK (NM_FIRST-6)
77 #define NM_SETFOCUS (NM_FIRST-7)
78 #define NM_KILLFOCUS (NM_FIRST-8)
79 #define NM_CUSTOMDRAW (NM_FIRST-12)
80 #define NM_HOVER (NM_FIRST-13)
81 #define NM_NCHITTEST (NM_FIRST-14)
82 #define NM_KEYDOWN (NM_FIRST-15)
83 #define NM_RELEASEDCAPTURE (NM_FIRST-16)
84 #define NM_SETCURSOR (NM_FIRST-17)
85 #define NM_CHAR (NM_FIRST-18)
86 #define NM_TOOLTIPSCREATED (NM_FIRST-19)
89 /* callback constants */
90 #define LPSTR_TEXTCALLBACK32A ((LPSTR)-1L)
91 #define LPSTR_TEXTCALLBACK32W ((LPWSTR)-1L)
92 #define LPSTR_TEXTCALLBACK WINELIB_NAME_AW(LPSTR_TEXTCALLBACK)
94 #define I_IMAGECALLBACK (-1)
95 #define I_INDENTCALLBACK (-1)
98 /* owner drawn types */
99 #define ODT_HEADER 100
100 #define ODT_TAB 101
101 #define ODT_LISTVIEW 102
103 /* common notification structures */
104 typedef struct tagNMTOOLTIPSCREATED
106 NMHDR hdr;
107 HWND32 hwndToolTips;
108 } NMTOOLTIPSCREATED, *LPNMTOOLTIPSCREATED;
111 #ifndef CCSIZEOF_STRUCT
112 #define CCSIZEOF_STRUCT(name, member) \
113 (((INT32)((LPBYTE)(&((name*)0)->member)-((LPBYTE)((name*)0))))+ \
114 sizeof(((name*)0)->member))
115 #endif
117 #define SNDMSG WINELIB_NAME_AW(SendMessage)
120 /* StatusWindow */
122 #define STATUSCLASSNAME16 "msctls_statusbar"
123 #define STATUSCLASSNAME32A "msctls_statusbar32"
124 #define STATUSCLASSNAME32W L"msctls_statusbar32"
125 #define STATUSCLASSNAME WINELIB_NAME_AW(STATUSCLASSNAME)
127 #define SBT_NOBORDERS 0x0100
128 #define SBT_POPOUT 0x0200
129 #define SBT_RTLREADING 0x0400 /* not supported */
130 #define SBT_TOOLTIPS 0x0800
131 #define SBT_OWNERDRAW 0x1000
133 #define SBARS_SIZEGRIP 0x0100
135 #define SB_SETTEXT32A (WM_USER+1)
136 #define SB_SETTEXT32W (WM_USER+11)
137 #define SB_SETTEXT WINELIB_NAME_AW(SB_SETTEXT)
138 #define SB_GETTEXT32A (WM_USER+2)
139 #define SB_GETTEXT32W (WM_USER+13)
140 #define SB_GETTEXT WINELIB_NAME_AW(SB_GETTEXT)
141 #define SB_GETTEXTLENGTH32A (WM_USER+3)
142 #define SB_GETTEXTLENGTH32W (WM_USER+12)
143 #define SB_GETTEXTLENGTH WINELIB_NAME_AW(SB_GETTEXTLENGTH)
144 #define SB_SETPARTS (WM_USER+4)
145 #define SB_GETPARTS (WM_USER+6)
146 #define SB_GETBORDERS (WM_USER+7)
147 #define SB_SETMINHEIGHT (WM_USER+8)
148 #define SB_SIMPLE (WM_USER+9)
149 #define SB_GETRECT (WM_USER+10)
150 #define SB_ISSIMPLE (WM_USER+14)
151 #define SB_SETICON (WM_USER+15)
152 #define SB_SETTIPTEXT32A (WM_USER+16)
153 #define SB_SETTIPTEXT32W (WM_USER+17)
154 #define SB_SETTIPTEXT WINELIB_NAME_AW(SB_SETTIPTEXT)
155 #define SB_GETTIPTEXT32A (WM_USER+18)
156 #define SB_GETTIPTEXT32W (WM_USER+19)
157 #define SB_GETTIPTEXT WINELIB_NAME_AW(SB_GETTIPTEXT)
158 #define SB_GETICON (WM_USER+20)
159 #define SB_SETBKCOLOR CCM_SETBKCOLOR /* lParam = bkColor */
160 #define SB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
161 #define SB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
163 #define SBN_FIRST (0U-880U)
164 #define SBN_LAST (0U-899U)
165 #define SBN_SIMPLEMODECHANGE (SBN_FIRST-0)
167 HWND32 WINAPI CreateStatusWindow32A (INT32, LPCSTR, HWND32, UINT32);
168 HWND32 WINAPI CreateStatusWindow32W (INT32, LPCWSTR, HWND32, UINT32);
169 #define CreateStatusWindow WINELIB_NAME_AW(CreateStatusWindow)
170 VOID WINAPI DrawStatusText32A (HDC32, LPRECT32, LPCSTR, UINT32);
171 VOID WINAPI DrawStatusText32W (HDC32, LPRECT32, LPCWSTR, UINT32);
172 #define DrawStatusText WINELIB_NAME_AW(DrawStatusText)
173 VOID WINAPI MenuHelp (UINT32, WPARAM32, LPARAM, HMENU32,
174 HINSTANCE32, HWND32, LPUINT32);
176 /* Drag List */
178 typedef struct tagDRAGLISTINFO {
179 UINT32 uNotification;
180 HWND32 hWnd;
181 POINT32 ptCursor;
182 } DRAGLISTINFO, *LPDRAGLISTINFO;
184 #define DL_BEGINDRAG (WM_USER+133)
185 #define DL_DRAGGING (WM_USER+134)
186 #define DL_DROPPED (WM_USER+135)
187 #define DL_CANCELDRAG (WM_USER+136)
189 #define DL_CURSORSET 0
190 #define DL_STOPCURSOR 1
191 #define DL_COPYCURSOR 2
192 #define DL_MOVECURSOR 3
194 #define DRAGLISTMSGSTRING TEXT("commctrl_DragListMsg")
196 BOOL32 WINAPI MakeDragList(HWND32 hLB);
197 void WINAPI DrawInsert(HWND32 handParent, HWND32 hLB, int nItem);
198 int WINAPI LBItemFromPt(HWND32 hLB, POINT32 pt, BOOL32 bAutoScroll);
200 /* UpDown */
202 #define UPDOWN_CLASS16 "msctls_updown"
203 #define UPDOWN_CLASS32A "msctls_updown32"
204 #define UPDOWN_CLASS32W L"msctls_updown32"
205 #define UPDOWN_CLASS WINELIB_NAME_AW(UPDOWN_CLASS)
207 typedef struct tagUDACCEL
209 UINT32 nSec;
210 UINT32 nInc;
211 } UDACCEL;
213 #define UD_MAXVAL 0x7fff
214 #define UD_MINVAL 0x8001
216 #define UDS_WRAP 0x0001
217 #define UDS_SETBUDDYINT 0x0002
218 #define UDS_ALIGNRIGHT 0x0004
219 #define UDS_ALIGNLEFT 0x0008
220 #define UDS_AUTOBUDDY 0x0010
221 #define UDS_ARROWKEYS 0x0020
222 #define UDS_HORZ 0x0040
223 #define UDS_NOTHOUSANDS 0x0080
225 #define UDN_FIRST (0U-721)
226 #define UDN_LAST (0U-740)
227 #define UDN_DELTAPOS (UDN_FIRST-1)
229 #define UDM_SETRANGE (WM_USER+101)
230 #define UDM_GETRANGE (WM_USER+102)
231 #define UDM_SETPOS (WM_USER+103)
232 #define UDM_GETPOS (WM_USER+104)
233 #define UDM_SETBUDDY (WM_USER+105)
234 #define UDM_GETBUDDY (WM_USER+106)
235 #define UDM_SETACCEL (WM_USER+107)
236 #define UDM_GETACCEL (WM_USER+108)
237 #define UDM_SETBASE (WM_USER+109)
238 #define UDM_GETBASE (WM_USER+110)
239 #define UDM_SETRANGE32 (WM_USER+111)
240 #define UDM_GETRANGE32 (WM_USER+112)
242 HWND32 WINAPI CreateUpDownControl (DWORD, INT32, INT32, INT32, INT32,
243 HWND32, INT32, HINSTANCE32, HWND32,
244 INT32, INT32, INT32);
246 /* Progress Bar */
248 #define PROGRESS_CLASS32A "msctls_progress32"
249 #define PROGRESS_CLASS32W L"msctls_progress32"
250 #define PROGRESS_CLASS16 "msctls_progress"
251 #define PROGRESS_CLASS WINELIB_NAME_AW(PROGRESS_CLASS)
253 #define PBM_SETRANGE (WM_USER+1)
254 #define PBM_SETPOS (WM_USER+2)
255 #define PBM_DELTAPOS (WM_USER+3)
256 #define PBM_SETSTEP (WM_USER+4)
257 #define PBM_STEPIT (WM_USER+5)
258 #define PBM_SETRANGE32 (WM_USER+6)
259 #define PBM_GETRANGE (WM_USER+7)
260 #define PBM_GETPOS (WM_USER+8)
261 #define PBM_SETBARCOLOR (WM_USER+9)
262 #define PBM_SETBKCOLOR CCM_SETBKCOLOR
264 #define PBS_SMOOTH 0x01
265 #define PBS_VERTICAL 0x04
267 typedef struct
269 INT32 iLow;
270 INT32 iHigh;
271 } PBRANGE, *PPBRANGE;
274 /* ImageList */
276 #if !defined(__WINE__) || !defined(__WINE_IMAGELIST_C)
277 struct _IMAGELIST;
278 typedef struct _IMAGELIST *HIMAGELIST;
279 #endif */ /* __WINE__ */
281 #define CLR_NONE 0xFFFFFFFF
282 #define CLR_DEFAULT 0xFF000000
283 #define CLR_HILIGHT CLR_DEFAULT
285 #define ILC_MASK 0x0001
286 #define ILC_COLOR 0x0000
287 #define ILC_COLORDDB 0x00FE
288 #define ILC_COLOR4 0x0004
289 #define ILC_COLOR8 0x0008
290 #define ILC_COLOR16 0x0010
291 #define ILC_COLOR24 0x0018
292 #define ILC_COLOR32 0x0020
293 #define ILC_PALETTE 0x0800 /* no longer supported by M$ */
295 #define ILD_NORMAL 0x0000
296 #define ILD_TRANSPARENT 0x0001
297 #define ILD_BLEND25 0x0002
298 #define ILD_BLEND50 0x0004
299 #define ILD_MASK 0x0010
300 #define ILD_IMAGE 0x0020
301 #define ILD_ROP 0x0040
302 #define ILD_OVERLAYMASK 0x0F00
304 #define ILD_SELECTED ILD_BLEND50
305 #define ILD_FOCUS ILD_BLEND25
306 #define ILD_BLEND ILD_BLEND50
308 #define INDEXTOOVERLAYMASK(i) ((i)<<8)
310 #define ILCF_MOVE (0x00000000)
311 #define ILCF_SWAP (0x00000001)
314 typedef struct _IMAGEINFO
316 HBITMAP32 hbmImage;
317 HBITMAP32 hbmMask;
318 INT32 Unused1;
319 INT32 Unused2;
320 RECT32 rcImage;
321 } IMAGEINFO;
324 typedef struct _IMAGELISTDRAWPARAMS
326 DWORD cbSize;
327 HIMAGELIST himl;
328 INT32 i;
329 HDC32 hdcDst;
330 INT32 x;
331 INT32 y;
332 INT32 cx;
333 INT32 cy;
334 INT32 xBitmap; /* x offest from the upperleft of bitmap */
335 INT32 yBitmap; /* y offset from the upperleft of bitmap */
336 COLORREF rgbBk;
337 COLORREF rgbFg;
338 UINT32 fStyle;
339 DWORD dwRop;
340 } IMAGELISTDRAWPARAMS, *LPIMAGELISTDRAWPARAMS;
343 INT32 WINAPI ImageList_Add(HIMAGELIST,HBITMAP32,HBITMAP32);
344 INT32 WINAPI ImageList_AddIcon (HIMAGELIST, HICON32);
345 INT32 WINAPI ImageList_AddMasked(HIMAGELIST,HBITMAP32,COLORREF);
346 BOOL32 WINAPI ImageList_BeginDrag(HIMAGELIST,INT32,INT32,INT32);
347 BOOL32 WINAPI ImageList_Copy(HIMAGELIST,INT32,HIMAGELIST,INT32,INT32);
348 HIMAGELIST WINAPI ImageList_Create(INT32,INT32,UINT32,INT32,INT32);
349 BOOL32 WINAPI ImageList_Destroy(HIMAGELIST);
350 BOOL32 WINAPI ImageList_DragEnter(HWND32,INT32,INT32);
351 BOOL32 WINAPI ImageList_DragLeave(HWND32);
352 BOOL32 WINAPI ImageList_DragMove(INT32,INT32);
353 BOOL32 WINAPI ImageList_DragShowNolock (BOOL32);
354 BOOL32 WINAPI ImageList_Draw(HIMAGELIST,INT32,HDC32,INT32,INT32,UINT32);
355 BOOL32 WINAPI ImageList_DrawEx(HIMAGELIST,INT32,HDC32,INT32,INT32,INT32,
356 INT32,COLORREF,COLORREF,UINT32);
357 BOOL32 WINAPI ImageList_DrawIndirect(IMAGELISTDRAWPARAMS*);
358 HIMAGELIST WINAPI ImageList_Duplicate(HIMAGELIST);
359 BOOL32 WINAPI ImageList_EndDrag(VOID);
360 COLORREF WINAPI ImageList_GetBkColor(HIMAGELIST);
361 HIMAGELIST WINAPI ImageList_GetDragImage(POINT32*,POINT32*);
362 HICON32 WINAPI ImageList_GetIcon(HIMAGELIST,INT32,UINT32);
363 BOOL32 WINAPI ImageList_GetIconSize(HIMAGELIST,INT32*,INT32*);
364 INT32 WINAPI ImageList_GetImageCount(HIMAGELIST);
365 BOOL32 WINAPI ImageList_GetImageInfo(HIMAGELIST,INT32,IMAGEINFO*);
366 BOOL32 WINAPI ImageList_GetImageRect(HIMAGELIST,INT32,LPRECT32);
367 HIMAGELIST WINAPI ImageList_LoadImage32A(HINSTANCE32,LPCSTR,INT32,INT32,
368 COLORREF,UINT32,UINT32);
369 HIMAGELIST WINAPI ImageList_LoadImage32W(HINSTANCE32,LPCWSTR,INT32,INT32,
370 COLORREF,UINT32,UINT32);
371 #define ImageList_LoadImage WINELIB_NAME_AW(ImageList_LoadImage)
372 HIMAGELIST WINAPI ImageList_Merge(HIMAGELIST,INT32,HIMAGELIST,INT32,INT32,INT32);
373 #ifdef __IStream_INTREFACE_DEFINED__
374 HIMAGELIST WINAPI ImageList_Read(LPSTREAM32);
375 #endif
376 BOOL32 WINAPI ImageList_Remove(HIMAGELIST,INT32);
377 BOOL32 WINAPI ImageList_Replace(HIMAGELIST,INT32,HBITMAP32,HBITMAP32);
378 INT32 WINAPI ImageList_ReplaceIcon(HIMAGELIST,INT32,HICON32);
379 COLORREF WINAPI ImageList_SetBkColor(HIMAGELIST,COLORREF);
380 BOOL32 WINAPI ImageList_SetDragCursorImage(HIMAGELIST,INT32,INT32,INT32);
382 BOOL32 WINAPI ImageList_SetIconSize(HIMAGELIST,INT32,INT32);
383 BOOL32 WINAPI ImageList_SetImageCount(HIMAGELIST,INT32);
384 BOOL32 WINAPI ImageList_SetOverlayImage(HIMAGELIST,INT32,INT32);
385 #ifdef __IStream_INTREFACE_DEFINED__
386 BOOL32 WINAPI ImageList_Write(HIMAGELIST, LPSTREAM32);
387 #endif
389 #ifndef __WINE__
390 #define ImageList_AddIcon(himl,hicon) ImageList_ReplaceIcon(himl,-1,hicon)
391 #endif
392 #define ImageList_ExtractIcon(hi,himl,i) ImageList_GetIcon(himl,i,0)
393 #define ImageList_LoadBitmap(hi,lpbmp,cx,cGrow,crMask) \
394 ImageList_LoadImage(hi,lpbmp,cx,cGrow,crMask,IMAGE_BITMAP,0)
395 #define ImageList_RemoveAll(himl) ImageList_Remove(himl,-1)
398 /* Header control */
400 #define WC_HEADER16 "SysHeader"
401 #define WC_HEADER32A "SysHeader32"
402 #define WC_HEADER32W L"SysHeader32"
403 #define WC_HEADER WINELIB_NAME_AW(WC_HEADER)
405 #define HDS_HORZ 0x0000
406 #define HDS_BUTTONS 0x0002
407 #define HDS_HOTTRACK 0x0004
408 #define HDS_HIDDEN 0x0008
409 #define HDS_DRAGDROP 0x0040
410 #define HDS_FULLDRAG 0x0080
412 #define HDI_WIDTH 0x0001
413 #define HDI_HEIGHT HDI_WIDTH
414 #define HDI_TEXT 0x0002
415 #define HDI_FORMAT 0x0004
416 #define HDI_LPARAM 0x0008
417 #define HDI_BITMAP 0x0010
418 #define HDI_IMAGE 0x0020
419 #define HDI_DI_SETITEM 0x0040
420 #define HDI_ORDER 0x0080
422 #define HDF_LEFT 0x0000
423 #define HDF_RIGHT 0x0001
424 #define HDF_CENTER 0x0002
425 #define HDF_JUSTIFYMASK 0x0003
427 #define HDF_IMAGE 0x0800
428 #define HDF_BITMAP_ON_RIGHT 0x1000
429 #define HDF_BITMAP 0x2000
430 #define HDF_STRING 0x4000
431 #define HDF_OWNERDRAW 0x8000
433 #define HHT_NOWHERE 0x0001
434 #define HHT_ONHEADER 0x0002
435 #define HHT_ONDIVIDER 0x0004
436 #define HHT_ONDIVOPEN 0x0008
437 #define HHT_ABOVE 0x0100
438 #define HHT_BELOW 0x0200
439 #define HHT_TORIGHT 0x0400
440 #define HHT_TOLEFT 0x0800
442 #define HDM_FIRST 0x1200
443 #define HDM_GETITEMCOUNT (HDM_FIRST+0)
444 #define HDM_INSERTITEM32A (HDM_FIRST+1)
445 #define HDM_INSERTITEM32W (HDM_FIRST+10)
446 #define HDM_INSERTITEM WINELIB_NAME_AW(HDM_INSERTITEM)
447 #define HDM_DELETEITEM (HDM_FIRST+2)
448 #define HDM_GETITEM32A (HDM_FIRST+3)
449 #define HDM_GETITEM32W (HDM_FIRST+11)
450 #define HDM_GETITEM WINELIB_NAME_AW(HDM_GETITEM)
451 #define HDM_SETITEM32A (HDM_FIRST+4)
452 #define HDM_SETITEM32W (HDM_FIRST+12)
453 #define HDM_SETITEM WINELIB_NAME_AW(HDM_SETITEM)
454 #define HDM_LAYOUT (HDM_FIRST+5)
455 #define HDM_HITTEST (HDM_FIRST+6)
456 #define HDM_GETITEMRECT (HDM_FIRST+7)
457 #define HDM_SETIMAGELIST (HDM_FIRST+8)
458 #define HDM_GETIMAGELIST (HDM_FIRST+9)
460 #define HDM_ORDERTOINDEX (HDM_FIRST+15)
461 #define HDM_CREATEDRAGIMAGE (HDM_FIRST+16)
462 #define HDM_GETORDERARRAY (HDM_FIRST+17)
463 #define HDM_SETORDERARRAY (HDM_FIRST+18)
464 #define HDM_SETHOTDIVIDER (HDM_FIRST+19)
465 #define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
466 #define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
468 #define HDN_FIRST (0U-300U)
469 #define HDN_LAST (0U-399U)
470 #define HDN_ITEMCHANGING32A (HDN_FIRST-0)
471 #define HDN_ITEMCHANGING32W (HDN_FIRST-20)
472 #define HDN_ITEMCHANGING WINELIB_NAME_AW(HDN_ITEMCHANGING)
473 #define HDN_ITEMCHANGED32A (HDN_FIRST-1)
474 #define HDN_ITEMCHANGED32W (HDN_FIRST-21)
475 #define HDN_ITEMCHANGED WINELIB_NAME_AW(HDN_ITEMCHANGED)
476 #define HDN_ITEMCLICK32A (HDN_FIRST-2)
477 #define HDN_ITEMCLICK32W (HDN_FIRST-22)
478 #define HDN_ITEMCLICK WINELIB_NAME_AW(HDN_ITEMCLICK)
479 #define HDN_ITEMDBLCLICK32A (HDN_FIRST-3)
480 #define HDN_ITEMDBLCLICK32W (HDN_FIRST-23)
481 #define HDN_ITEMDBLCLICK WINELIB_NAME_AW(HDN_ITEMDBLCLICK)
482 #define HDN_DIVIDERDBLCLICK32A (HDN_FIRST-5)
483 #define HDN_DIVIDERDBLCLICK32W (HDN_FIRST-25)
484 #define HDN_DIVIDERDBLCLICK WINELIB_NAME_AW(HDN_DIVIDERDBLCLICK)
485 #define HDN_BEGINTRACK32A (HDN_FIRST-6)
486 #define HDN_BEGINTRACK32W (HDN_FIRST-26)
487 #define HDN_BEGINTRACK WINELIB_NAME_AW(HDN_BEGINTRACK)
488 #define HDN_ENDTRACK32A (HDN_FIRST-7)
489 #define HDN_ENDTRACK32W (HDN_FIRST-27)
490 #define HDN_ENDTRACK WINELIB_NAME_AW(HDN_ENDTRACK)
491 #define HDN_TRACK32A (HDN_FIRST-8)
492 #define HDN_TRACK32W (HDN_FIRST-28)
493 #define HDN_TRACK WINELIB_NAME_AW(HDN_TRACK)
494 #define HDN_GETDISPINFO32A (HDN_FIRST-9)
495 #define HDN_GETDISPINFO32W (HDN_FIRST-29)
496 #define HDN_GETDISPINFO WINELIB_NAME_AW(HDN_GETDISPINFO)
497 #define HDN_BEGINDRACK (HDN_FIRST-10)
498 #define HDN_ENDDRACK (HDN_FIRST-11)
500 typedef struct _HD_LAYOUT
502 RECT32 *prc;
503 WINDOWPOS32 *pwpos;
504 } HDLAYOUT, *LPHDLAYOUT;
506 #define HD_LAYOUT HDLAYOUT
508 typedef struct _HD_ITEM32A
510 UINT32 mask;
511 INT32 cxy;
512 LPSTR pszText;
513 HBITMAP32 hbm;
514 INT32 cchTextMax;
515 INT32 fmt;
516 LPARAM lParam;
517 INT32 iImage;
518 INT32 iOrder;
519 } HDITEM32A, *LPHDITEM32A;
521 typedef struct _HD_ITEM32W
523 UINT32 mask;
524 INT32 cxy;
525 LPWSTR pszText;
526 HBITMAP32 hbm;
527 INT32 cchTextMax;
528 INT32 fmt;
529 LPARAM lParam;
530 INT32 iImage;
531 INT32 iOrder;
532 } HDITEM32W, *LPHDITEM32W;
534 #define HDITEM WINELIB_NAME_AW(HDITEM)
535 #define LPHDITEM WINELIB_NAME_AW(LPHDITEM)
537 #define HDITEM_V1_SIZE32A CCSIZEOF_STRUCT(HDITEM32A, lParam)
538 #define HDITEM_V1_SIZE32W CCSIZEOF_STRUCT(HDITEM32W, lParam)
539 #define HDITEM_V1_SIZE WINELIB_NAME_AW(HDITEM_V1_SIZE)
541 typedef struct _HD_HITTESTINFO
543 POINT32 pt;
544 UINT32 flags;
545 INT32 iItem;
546 } HDHITTESTINFO, *LPHDHITTESTINFO;
548 #define HD_HITTESTINFO HDHITTESTINFO
550 typedef struct tagNMHEADER32A
552 NMHDR hdr;
553 INT32 iItem;
554 INT32 iButton;
555 HDITEM32A *pitem;
556 } NMHEADER32A, *LPNMHEADER32A;
558 typedef struct tagNMHEADER32W
560 NMHDR hdr;
561 INT32 iItem;
562 INT32 iButton;
563 HDITEM32W *pitem;
564 } NMHEADER32W, *LPNMHEADER32W;
566 #define NMHEADER WINELIB_NAME_AW(NMHEADER)
567 #define LPNMHEADER WINELIB_NAME_AW(LPNMHEADER)
569 typedef struct tagNMHDDISPINFO32A
571 NMHDR hdr;
572 INT32 iItem;
573 UINT32 mask;
574 LPSTR pszText;
575 INT32 cchTextMax;
576 INT32 iImage;
577 LPARAM lParam;
578 } NMHDDISPINFO32A, *LPNMHDDISPINFO32A;
580 typedef struct tagNMHDDISPINFO32W
582 NMHDR hdr;
583 INT32 iItem;
584 UINT32 mask;
585 LPWSTR pszText;
586 INT32 cchTextMax;
587 INT32 iImage;
588 LPARAM lParam;
589 } NMHDDISPINFO32W, *LPNMHDDISPINFO32W;
591 #define NMHDDISPINFO WINELIB_NAME_AW(NMHDDISPINFO)
592 #define LPNMHDDISPINFO WINELIB_NAME_AW(LPNMHDDISPINFO)
594 #define Header_GetItemCount(hwndHD) \
595 (INT32)SendMessage32A((hwndHD),HDM_GETITEMCOUNT,0,0L)
596 #define Header_InsertItem32A(hwndHD,i,phdi) \
597 (INT32)SendMessage32A((hwndHD),HDM_INSERTITEM32A,(WPARAM32)(INT32)(i),(LPARAM)(const HDITEM32A*)(phdi))
598 #define Header_InsertItem32W(hwndHD,i,phdi) \
599 (INT32)SendMessage32W((hwndHD),HDM_INSERTITEM32W,(WPARAM32)(INT32)(i),(LPARAM)(const HDITEM32W*)(phdi))
600 #define Header_InsertItem WINELIB_NAME_AW(Header_InsertItem)
601 #define Header_DeleteItem(hwndHD,i) \
602 (BOOL32)SendMessage32A((hwndHD),HDM_DELETEITEM,(WPARAM32)(INT32)(i),0L)
603 #define Header_GetItem32A(hwndHD,i,phdi) \
604 (BOOL32)SendMessage32A((hwndHD),HDM_GETITEM32A,(WPARAM32)(INT32)(i),(LPARAM)(HDITEM32A*)(phdi))
605 #define Header_GetItem32W(hwndHD,i,phdi) \
606 (BOOL32)SendMessage32W((hwndHD),HDM_GETITEM32W,(WPARAM32)(INT32)(i),(LPARAM)(HDITEM32W*)(phdi))
607 #define Header_GetItem WINELIB_NAME_AW(Header_GetItem)
608 #define Header_SetItem32A(hwndHD,i,phdi) \
609 (BOOL32)SendMessage32A((hwndHD),HDM_SETITEM32A,(WPARAM32)(INT32)(i),(LPARAM)(const HDITEM32A*)(phdi))
610 #define Header_SetItem32W(hwndHD,i,phdi) \
611 (BOOL32)SendMessage32W((hwndHD),HDM_SETITEM32W,(WPARAM32)(INT32)(i),(LPARAM)(const HDITEM32W*)(phdi))
612 #define Header_SetItem WINELIB_NAME_AW(Header_SetItem)
613 #define Header_Layout(hwndHD,playout) \
614 (BOOL32)SendMessage32A((hwndHD),HDM_LAYOUT,0,(LPARAM)(LPHDLAYOUT)(playout))
615 #define Header_GetItemRect(hwnd,iItem,lprc) \
616 (BOOL32)SendMessage32A((hwnd),HDM_GETITEMRECT,(WPARAM32)iItem,(LPARAM)lprc)
617 #define Header_SetImageList(hwnd,himl) \
618 (HIMAGELIST)SendMessage32A((hwnd),HDM_SETIMAGELIST,0,(LPARAM)himl)
619 #define Header_GetImageList(hwnd) \
620 (HIMAGELIST)SendMessage32A((hwnd),HDM_GETIMAGELIST,0,0)
621 #define Header_OrderToIndex(hwnd,i) \
622 (INT32)SendMessage32A((hwnd),HDM_ORDERTOINDEX,(WPARAM32)i,0)
623 #define Header_CreateDragImage(hwnd,i) \
624 (HIMAGELIST)SendMessage32A((hwnd),HDM_CREATEDRAGIMAGE,(WPARAM32)i,0)
625 #define Header_GetOrderArray(hwnd,iCount,lpi) \
626 (BOOL32)SendMessage32A((hwnd),HDM_GETORDERARRAY,(WPARAM32)iCount,(LPARAM)lpi)
627 #define Header_SetOrderArray(hwnd,iCount,lpi) \
628 (BOOL32)SendMessage32A((hwnd),HDM_SETORDERARRAY,(WPARAM32)iCount,(LPARAM)lpi)
629 #define Header_SetHotDivider(hwnd,fPos,dw) \
630 (INT32)SendMessage32A((hwnd),HDM_SETHOTDIVIDER,(WPARAM32)fPos,(LPARAM)dw)
631 #define Header_SetUnicodeFormat(hwnd,fUnicode) \
632 (BOOL32)SendMessage32A((hwnd),HDM_SETUNICODEFORMAT,(WPARAM32)(fUnicode),0)
633 #define Header_GetUnicodeFormat(hwnd) \
634 (BOOL32)SendMessage32A((hwnd),HDM_GETUNICODEFORMAT,0,0)
637 /* Toolbar */
639 #define TOOLBARCLASSNAME16 "ToolbarWindow"
640 #define TOOLBARCLASSNAME32W L"ToolbarWindow32"
641 #define TOOLBARCLASSNAME32A "ToolbarWindow32"
642 #define TOOLBARCLASSNAME WINELIB_NAME_AW(TOOLBARCLASSNAME)
644 #define CMB_MASKED 0x02
646 #define TBSTATE_CHECKED 0x01
647 #define TBSTATE_PRESSED 0x02
648 #define TBSTATE_ENABLED 0x04
649 #define TBSTATE_HIDDEN 0x08
650 #define TBSTATE_INDETERMINATE 0x10
651 #define TBSTATE_WRAP 0x20
652 #define TBSTATE_ELLIPSES 0x40
653 #define TBSTATE_MARKED 0x80
655 #define TBSTYLE_BUTTON 0x00
656 #define TBSTYLE_SEP 0x01
657 #define TBSTYLE_CHECK 0x02
658 #define TBSTYLE_GROUP 0x04
659 #define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK)
660 #define TBSTYLE_DROPDOWN 0x08
662 #define TBSTYLE_TOOLTIPS 0x0100
663 #define TBSTYLE_WRAPABLE 0x0200
664 #define TBSTYLE_ALTDRAG 0x0400
665 #define TBSTYLE_FLAT 0x0800
666 #define TBSTYLE_LIST 0x1000
667 #define TBSTYLE_CUSTOMERASE 0x2000
669 #define TBIF_IMAGE 0x00000001
670 #define TBIF_TEXT 0x00000002
671 #define TBIF_STATE 0x00000004
672 #define TBIF_STYLE 0x00000008
673 #define TBIF_LPARAM 0x00000010
674 #define TBIF_COMMAND 0x00000020
675 #define TBIF_SIZE 0x00000040
677 #define TBBF_LARGE 0x0001
679 #define TB_ENABLEBUTTON (WM_USER+1)
680 #define TB_CHECKBUTTON (WM_USER+2)
681 #define TB_PRESSBUTTON (WM_USER+3)
682 #define TB_HIDEBUTTON (WM_USER+4)
683 #define TB_INDETERMINATE (WM_USER+5)
684 #define TB_ISBUTTONENABLED (WM_USER+9)
685 #define TB_ISBUTTONCHECKED (WM_USER+10)
686 #define TB_ISBUTTONPRESSED (WM_USER+11)
687 #define TB_ISBUTTONHIDDEN (WM_USER+12)
688 #define TB_ISBUTTONINDETERMINATE (WM_USER+13)
689 #define TB_ISBUTTONHIGHLIGHTED (WM_USER+14)
690 #define TB_SETSTATE (WM_USER+17)
691 #define TB_GETSTATE (WM_USER+18)
692 #define TB_ADDBITMAP (WM_USER+19)
693 #define TB_ADDBUTTONS32A (WM_USER+20)
694 #define TB_ADDBUTTONS32W (WM_USER+68)
695 #define TB_ADDBUTTONS WINELIB_NAME_AW(TB_ADDBUTTONS)
696 #define TB_HITTEST (WM_USER+69)
697 #define TB_INSERTBUTTON32A (WM_USER+21)
698 #define TB_INSERTBUTTON32W (WM_USER+67)
699 #define TB_INSERTBUTTON WINELIB_NAME_AW(TB_INSERTBUTTON)
700 #define TB_DELETEBUTTON (WM_USER+22)
701 #define TB_GETBUTTON (WM_USER+23)
702 #define TB_BUTTONCOUNT (WM_USER+24)
703 #define TB_COMMANDTOINDEX (WM_USER+25)
704 #define TB_SAVERESTORE32A (WM_USER+26)
705 #define TB_SAVERESTORE32W (WM_USER+76)
706 #define TB_SAVERESTORE WINELIB_NAME_AW(TB_SAVERESTORE)
707 #define TB_CUSTOMIZE (WM_USER+27)
708 #define TB_ADDSTRING32A (WM_USER+28)
709 #define TB_ADDSTRING32W (WM_USER+77)
710 #define TB_ADDSTRING WINELIB_NAME_AW(TB_ADDSTRING)
711 #define TB_GETITEMRECT (WM_USER+29)
712 #define TB_BUTTONSTRUCTSIZE (WM_USER+30)
713 #define TB_SETBUTTONSIZE (WM_USER+31)
714 #define TB_SETBITMAPSIZE (WM_USER+32)
715 #define TB_AUTOSIZE (WM_USER+33)
716 #define TB_GETTOOLTIPS (WM_USER+35)
717 #define TB_SETTOOLTIPS (WM_USER+36)
718 #define TB_SETPARENT (WM_USER+37)
719 #define TB_SETROWS (WM_USER+39)
720 #define TB_GETROWS (WM_USER+40)
721 #define TB_GETBITMAPFLAGS (WM_USER+41)
722 #define TB_SETCMDID (WM_USER+42)
723 #define TB_CHANGEBITMAP (WM_USER+43)
724 #define TB_GETBITMAP (WM_USER+44)
725 #define TB_GETBUTTONTEXT32A (WM_USER+45)
726 #define TB_GETBUTTONTEXT32W (WM_USER+75)
727 #define TB_GETBUTTONTEXT WINELIB_NAME_AW(TB_GETBUTTONTEXT)
728 #define TB_REPLACEBITMAP (WM_USER+46)
729 #define TB_SETINDENT (WM_USER+47)
730 #define TB_SETIMAGELIST (WM_USER+48)
731 #define TB_GETIMAGELIST (WM_USER+49)
732 #define TB_LOADIMAGES (WM_USER+50)
733 #define TB_GETRECT (WM_USER+51) /* wParam is the Cmd instead of index */
734 #define TB_SETHOTIMAGELIST (WM_USER+52)
735 #define TB_GETHOTIMAGELIST (WM_USER+53)
736 #define TB_SETDISABLEDIMAGELIST (WM_USER+54)
737 #define TB_GETDISABLEDIMAGELIST (WM_USER+55)
738 #define TB_SETSTYLE (WM_USER+56)
739 #define TB_GETSTYLE (WM_USER+57)
740 #define TB_GETBUTTONSIZE (WM_USER+58)
741 #define TB_SETBUTTONWIDTH (WM_USER+59)
742 #define TB_SETMAXTEXTROWS (WM_USER+60)
743 #define TB_GETTEXTROWS (WM_USER+61)
744 #define TB_GETOBJECT (WM_USER+62)
745 #define TB_GETBUTTONINFO32W (WM_USER+63)
746 #define TB_GETBUTTONINFO32A (WM_USER+65)
747 #define TB_GETBUTTONINFO WINELIB_NAME_AW(TB_GETBUTTONINFO)
748 #define TB_SETBUTTONINFO32W (WM_USER+64)
749 #define TB_SETBUTTONINFO32A (WM_USER+66)
750 #define TB_SETBUTTONINFO WINELIB_NAME_AW(TB_SETBUTTONINFO)
751 #define TB_SETDRAWTEXTFLAGS (WM_USER+70)
752 #define TB_GETHOTITEM (WM_USER+71)
753 #define TB_SETHOTITEM (WM_USER+72)
754 #define TB_SETANCHORHIGHLIGHT (WM_USER+73)
755 #define TB_GETANCHORHIGHLIGHT (WM_USER+74)
756 #define TB_MAPACCELERATOR32A (WM_USER+78)
757 #define TB_MAPACCELERATOR32W (WM_USER+90)
758 #define TB_MAPACCELERATOR WINELIB_NAME_AW(TB_MAPACCELERATOR)
759 #define TB_GETINSERTMARK (WM_USER+79)
760 #define TB_SETINSERTMARK (WM_USER+80)
761 #define TB_INSERTMARKHITTEST (WM_USER+81)
762 #define TB_MOVEBUTTON (WM_USER+82)
763 #define TB_GETMAXSIZE (WM_USER+83)
764 #define TB_SETEXTENDEDSTYLE (WM_USER+84)
765 #define TB_GETEXTENDEDSTYLE (WM_USER+85)
766 #define TB_GETPADDING (WM_USER+86)
767 #define TB_SETPADDING (WM_USER+87)
768 #define TB_SETINSERTMARKCOLOR (WM_USER+88)
769 #define TB_GETINSERTMARKCOLOR (WM_USER+89)
770 #define TB_SETCOLORSCHEME CCM_SETCOLORSCHEME
771 #define TB_GETCOLORSCHEME CCM_GETCOLORSCHEME
772 #define TB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
773 #define TB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
775 #define TBN_FIRST (0U-700U)
776 #define TBN_LAST (0U-720U)
777 #define TBN_GETBUTTONINFO32A (TBN_FIRST-0)
778 #define TBN_GETBUTTONINFO32W (TBN_FIRST-20)
779 #define TBN_GETBUTTONINFO WINELIB_NAME_AW(TBN_GETBUTTONINFO)
780 #define TBN_GETINFOTIP32A (TBN_FIRST-18)
781 #define TBN_GETINFOTIP32W (TBN_FIRST-19)
782 #define TBN_GETINFOTIP WINELIB_NAME_AW(TBN_GETINFOTIP)
785 /* This is just for old CreateToolbar. */
786 /* Don't use it in new programs. */
787 typedef struct _OLDTBBUTTON {
788 INT32 iBitmap;
789 INT32 idCommand;
790 BYTE fsState;
791 BYTE fsStyle;
792 BYTE bReserved[2];
793 DWORD dwData;
794 } OLDTBBUTTON, *POLDTBBUTTON, *LPOLDTBBUTTON;
795 typedef const OLDTBBUTTON *LPCOLDTBBUTTON;
798 typedef struct _TBBUTTON {
799 INT32 iBitmap;
800 INT32 idCommand;
801 BYTE fsState;
802 BYTE fsStyle;
803 BYTE bReserved[2];
804 DWORD dwData;
805 INT32 iString;
806 } TBBUTTON, *PTBBUTTON, *LPTBBUTTON;
807 typedef const TBBUTTON *LPCTBBUTTON;
810 typedef struct _COLORMAP {
811 COLORREF from;
812 COLORREF to;
813 } COLORMAP, *LPCOLORMAP;
815 typedef struct tagTBADDBITMAP {
816 HINSTANCE32 hInst;
817 UINT32 nID;
818 } TBADDBITMAP, *LPTBADDBITMAP;
820 #define HINST_COMMCTRL ((HINSTANCE32)-1)
821 #define IDB_STD_SMALL_COLOR 0
822 #define IDB_STD_LARGE_COLOR 1
823 #define IDB_VIEW_SMALL_COLOR 4
824 #define IDB_VIEW_LARGE_COLOR 5
825 #define IDB_HIST_SMALL_COLOR 8
826 #define IDB_HIST_LARGE_COLOR 9
828 #define STD_CUT 0
829 #define STD_COPY 1
830 #define STD_PASTE 2
831 #define STD_UNDO 3
832 #define STD_REDOW 4
833 #define STD_DELETE 5
834 #define STD_FILENEW 6
835 #define STD_FILEOPEN 7
836 #define STD_FILESAVE 8
837 #define STD_PRINTPRE 9
838 #define STD_PROPERTIES 10
839 #define STD_HELP 11
840 #define STD_FIND 12
841 #define STD_REPLACE 13
842 #define STD_PRINT 14
844 #define VIEW_LARGEICONS 0
845 #define VIEW_SMALLICONS 1
846 #define VIEW_LIST 2
847 #define VIEW_DETAILS 3
848 #define VIEW_SORTNAME 4
849 #define VIEW_SORTSIZE 5
850 #define VIEW_SORTDATE 6
851 #define VIEW_SORTTYPE 7
852 #define VIEW_PARENTFOLDER 8
853 #define VIEW_NETCONNECT 9
854 #define VIEW_NETDISCONNECT 10
855 #define VIEW_NEWFOLDER 11
857 typedef struct tagTBSAVEPARAMSA {
858 HKEY hkr;
859 LPCSTR pszSubKey;
860 LPCSTR pszValueName;
861 } TBSAVEPARAMS32A, *LPTBSAVEPARAMS32A;
863 typedef struct tagTBSAVEPARAMSW {
864 HKEY hkr;
865 LPCWSTR pszSubKey;
866 LPCWSTR pszValueName;
867 } TBSAVEPARAMSA32W, *LPTBSAVEPARAMSA32W;
869 #define TBSAVEPARAMS WINELIB_NAME_AW(TBSAVEPARAMS)
870 #define LPTBSAVEPARAMS WINELIB_NAME_AW(LPTBSAVEPARAMS)
872 typedef struct
874 UINT32 cbSize;
875 DWORD dwMask;
876 INT32 idCommand;
877 INT32 iImage;
878 BYTE fsState;
879 BYTE fsStyle;
880 WORD cx;
881 DWORD lParam;
882 LPSTR pszText;
883 INT32 cchText;
884 } TBBUTTONINFO32A, *LPTBBUTTONINFO32A;
886 typedef struct
888 UINT32 cbSize;
889 DWORD dwMask;
890 INT32 idCommand;
891 INT32 iImage;
892 BYTE fsState;
893 BYTE fsStyle;
894 WORD cx;
895 DWORD lParam;
896 LPWSTR pszText;
897 INT32 cchText;
898 } TBBUTTONINFO32W, *LPTBBUTTONINFO32W;
900 #define TBBUTTONINFO WINELIB_NAME_AW(TBBUTTONINFO)
901 #define LPTBBUTTONINFO WINELIB_NAME_AW(LPTBBUTTONINFO)
903 typedef struct tagNMTBGETINFOTIPA
905 NMHDR hdr;
906 LPSTR pszText;
907 INT32 cchTextMax;
908 INT32 iItem;
909 LPARAM lParam;
910 } NMTBGETINFOTIP32A, *LPNMTBGETINFOTIP32A;
912 typedef struct tagNMTBGETINFOTIPW
914 NMHDR hdr;
915 LPWSTR pszText;
916 INT32 cchTextMax;
917 INT32 iItem;
918 LPARAM lParam;
919 } NMTBGETINFOTIP32W, *LPNMTBGETINFOTIP32W;
921 #define NMTBGETINFOTIP WINELIB_NAME_AW(NMTBGETINFOFTIP)
922 #define LPNMTBGETINFOTIP WINELIB_NAME_AW(LPNMTBGETINFOTIP)
924 typedef struct
926 HINSTANCE32 hInstOld;
927 UINT32 nIDOld;
928 HINSTANCE32 hInstNew;
929 UINT32 nIDNew;
930 INT32 nButtons;
931 } TBREPLACEBITMAP, *LPTBREPLACEBITMAP;
933 HWND32 WINAPI
934 CreateToolbar(HWND32, DWORD, UINT32, INT32, HINSTANCE32,
935 UINT32, LPCOLDTBBUTTON, INT32);
937 HWND32 WINAPI
938 CreateToolbarEx(HWND32, DWORD, UINT32, INT32,
939 HINSTANCE32, UINT32, LPCTBBUTTON,
940 INT32, INT32, INT32, INT32, INT32, UINT32);
942 HBITMAP32 WINAPI
943 CreateMappedBitmap (HINSTANCE32, INT32, UINT32, LPCOLORMAP, INT32);
946 /* Tool tips */
948 #define TOOLTIPS_CLASS16 "tooltips_class"
949 #define TOOLTIPS_CLASS32A "tooltips_class32"
950 #define TOOLTIPS_CLASS32W L"tooltips_class32"
951 #define TOOLTIPS_CLASS WINELIB_NAME_AW(TOOLTIPS_CLASS)
953 #define INFOTIPSIZE 1024
955 #define TTS_ALWAYSTIP 0x01
956 #define TTS_NOPREFIX 0x02
958 #define TTF_IDISHWND 0x0001
959 #define TTF_CENTERTIP 0x0002
960 #define TTF_RTLREADING 0x0004
961 #define TTF_SUBCLASS 0x0010
962 #define TTF_TRACK 0x0020
963 #define TTF_ABSOLUTE 0x0080
964 #define TTF_TRANSPARENT 0x0100
965 #define TTF_DI_SETITEM 0x8000 /* valid only on the TTN_NEEDTEXT callback */
968 #define TTDT_AUTOMATIC 0
969 #define TTDT_RESHOW 1
970 #define TTDT_AUTOPOP 2
971 #define TTDT_INITIAL 3
974 #define TTM_ACTIVATE (WM_USER+1)
975 #define TTM_SETDELAYTIME (WM_USER+3)
976 #define TTM_ADDTOOL32A (WM_USER+4)
977 #define TTM_ADDTOOL32W (WM_USER+50)
978 #define TTM_ADDTOOL WINELIB_NAME_AW(TTM_ADDTOOL)
979 #define TTM_DELTOOL32A (WM_USER+5)
980 #define TTM_DELTOOL32W (WM_USER+51)
981 #define TTM_DELTOOL WINELIB_NAME_AW(TTM_DELTOOL)
982 #define TTM_NEWTOOLRECT32A (WM_USER+6)
983 #define TTM_NEWTOOLRECT32W (WM_USER+52)
984 #define TTM_NEWTOOLRECT WINELIB_NAME_AW(TTM_NEWTOOLRECT)
985 #define TTM_RELAYEVENT (WM_USER+7)
986 #define TTM_GETTOOLINFO32A (WM_USER+8)
987 #define TTM_GETTOOLINFO32W (WM_USER+53)
988 #define TTM_GETTOOLINFO WINELIB_NAME_AW(TTM_GETTOOLINFO)
989 #define TTM_SETTOOLINFO32A (WM_USER+9)
990 #define TTM_SETTOOLINFO32W (WM_USER+54)
991 #define TTM_SETTOOLINFO WINELIB_NAME_AW(TTM_SETTOOLINFO)
992 #define TTM_HITTEST32A (WM_USER+10)
993 #define TTM_HITTEST32W (WM_USER+55)
994 #define TTM_HITTEST WINELIB_NAME_AW(TTM_HITTEST)
995 #define TTM_GETTEXT32A (WM_USER+11)
996 #define TTM_GETTEXT32W (WM_USER+56)
997 #define TTM_GETTEXT WINELIB_NAME_AW(TTM_GETTEXT)
998 #define TTM_UPDATETIPTEXT32A (WM_USER+12)
999 #define TTM_UPDATETIPTEXT32W (WM_USER+57)
1000 #define TTM_UPDATETIPTEXT WINELIB_NAME_AW(TTM_UPDATETIPTEXT)
1001 #define TTM_GETTOOLCOUNT (WM_USER+13)
1002 #define TTM_ENUMTOOLS32A (WM_USER+14)
1003 #define TTM_ENUMTOOLS32W (WM_USER+58)
1004 #define TTM_ENUMTOOLS WINELIB_NAME_AW(TTM_ENUMTOOLS)
1005 #define TTM_GETCURRENTTOOL32A (WM_USER+15)
1006 #define TTM_GETCURRENTTOOL32W (WM_USER+59)
1007 #define TTM_GETCURRENTTOOL WINELIB_NAME_AW(TTM_GETCURRENTTOOL)
1008 #define TTM_WINDOWFROMPOINT (WM_USER+16)
1009 #define TTM_TRACKACTIVATE (WM_USER+17)
1010 #define TTM_TRACKPOSITION (WM_USER+18)
1011 #define TTM_SETTIPBKCOLOR (WM_USER+19)
1012 #define TTM_SETTIPTEXTCOLOR (WM_USER+20)
1013 #define TTM_GETDELAYTIME (WM_USER+21)
1014 #define TTM_GETTIPBKCOLOR (WM_USER+22)
1015 #define TTM_GETTIPTEXTCOLOR (WM_USER+23)
1016 #define TTM_SETMAXTIPWIDTH (WM_USER+24)
1017 #define TTM_GETMAXTIPWIDTH (WM_USER+25)
1018 #define TTM_SETMARGIN (WM_USER+26)
1019 #define TTM_GETMARGIN (WM_USER+27)
1020 #define TTM_POP (WM_USER+28)
1021 #define TTM_UPDATE (WM_USER+29)
1024 #define TTN_FIRST (0U-520U)
1025 #define TTN_LAST (0U-549U)
1026 #define TTN_GETDISPINFO32A (TTN_FIRST-0)
1027 #define TTN_GETDISPINFO32W (TTN_FIRST-10)
1028 #define TTN_GETDISPINFO WINELIB_NAME_AW(TTN_GETDISPINFO)
1029 #define TTN_SHOW (TTN_FIRST-1)
1030 #define TTN_POP (TTN_FIRST-2)
1032 #define TTN_NEEDTEXT TTN_GETDISPINFO
1033 #define TTN_NEEDTEXTA TTN_GETDISPINFO32A
1034 #define TTN_NEEDTEXTW TTN_GETDISPINFO32W
1036 typedef struct tagTOOLINFOA {
1037 UINT32 cbSize;
1038 UINT32 uFlags;
1039 HWND32 hwnd;
1040 UINT32 uId;
1041 RECT32 rect;
1042 HINSTANCE32 hinst;
1043 LPSTR lpszText;
1044 LPARAM lParam;
1045 } TTTOOLINFO32A, *LPTOOLINFO32A, *PTOOLINFO32A, *LPTTTOOLINFO32A;
1047 typedef struct tagTOOLINFOW {
1048 UINT32 cbSize;
1049 UINT32 uFlags;
1050 HWND32 hwnd;
1051 UINT32 uId;
1052 RECT32 rect;
1053 HINSTANCE32 hinst;
1054 LPWSTR lpszText;
1055 LPARAM lParam;
1056 } TTTOOLINFO32W, *LPTOOLINFO32W, *PTOOLINFO32W, *LPTTTOOLINFO32W;
1058 #define TTTOOLINFO WINELIB_NAME_AW(TTTOOLINFO)
1059 #define TOOLINFO WINELIB_NAME_AW(TTTOOLINFO)
1060 #define PTOOLINFO WINELIB_NAME_AW(PTOOLINFO)
1061 #define LPTTTOOLINFO WINELIB_NAME_AW(LPTTTOOLINFO)
1062 #define LPTOOLINFO WINELIB_NAME_AW(LPTOOLINFO)
1064 #define TTTOOLINFO_V1_SIZE32A CCSIZEOF_STRUCT(TTTOOLINFO32A, lpszText)
1065 #define TTTOOLINFO_V1_SIZE32W CCSIZEOF_STRUCT(TTTOOLINFO32W, lpszText)
1066 #define TTTOOLINFO_V1_SIZE WINELIB_NAME_AW(TTTOOLINFO_V1_SIZE)
1068 typedef struct _TT_HITTESTINFOA
1070 HWND32 hwnd;
1071 POINT32 pt;
1072 TTTOOLINFO32A ti;
1073 } TTHITTESTINFO32A, *LPTTHITTESTINFO32A;
1075 typedef struct _TT_HITTESTINFOW
1077 HWND32 hwnd;
1078 POINT32 pt;
1079 TTTOOLINFO32W ti;
1080 } TTHITTESTINFO32W, *LPTTHITTESTINFO32W;
1082 #define TTHITTESTINFO WINELIB_NAME_AW(TTHITTESTINFO)
1083 #define LPTTHITTESTINFO WINELIB_NAME_AW(LPTTHITTESTINFO)
1085 typedef struct tagNMTTDISPINFOA
1087 NMHDR hdr;
1088 LPSTR lpszText;
1089 CHAR szText[80];
1090 HINSTANCE32 hinst;
1091 UINT32 uFlags;
1092 LPARAM lParam;
1093 } NMTTDISPINFO32A, *LPNMTTDISPINFO32A;
1095 typedef struct tagNMTTDISPINFOW
1097 NMHDR hdr;
1098 LPWSTR lpszText;
1099 WCHAR szText[80];
1100 HINSTANCE32 hinst;
1101 UINT32 uFlags;
1102 LPARAM lParam;
1103 } NMTTDISPINFO32W, *LPNMTTDISPINFO32W;
1105 #define NMTTDISPINFO WINELIB_NAME_AW(NMTTDISPINFO)
1106 #define LPNMTTDISPINFO WINELIB_NAME_AW(LPNMTTDISPINFO)
1108 #define NMTTDISPINFO_V1_SIZE32A CCSIZEOF_STRUCT(NMTTDISPINFO32A, uFlags)
1109 #define NMTTDISPINFO_V1_SIZE32W CCSIZEOF_STRUCT(NMTTDISPINFO32W, uFlags)
1110 #define NMTTDISPINFO_V1_SIZE WINELIB_NAME_AW(NMTTDISPINFO_V1_SIZE)
1112 #define TOOLTIPTEXTW NMTTDISPINFO32W
1113 #define TOOLTIPTEXTA NMTTDISPINFO32A
1114 #define TOOLTIPTEXT NMTTDISPINFO
1115 #define LPTOOLTIPTEXTW LPNMTTDISPINFOW
1116 #define LPTOOLTIPTEXTA LPNMTTDISPINFOA
1117 #define LPTOOLTIPTEXT LPNMTTDISPINFO
1119 /* Rebar control */
1121 #define REBARCLASSNAME16 "ReBarWindow"
1122 #define REBARCLASSNAME32A "ReBarWindow32"
1123 #define REBARCLASSNAME32W L"ReBarWindow32"
1124 #define REBARCLASSNAME WINELIB_NAME_AW(REBARCLASSNAME)
1126 #define RBS_TOOLTIPS 0x0100
1127 #define RBS_VARHEIGHT 0x0200
1128 #define RBS_BANDBORDERS 0x0400
1129 #define RBS_FIXEDORDER 0x0800
1130 #define RBS_REGISTERDROP 0x1000
1131 #define RBS_AUTOSIZE 0x2000
1132 #define RBS_VERTICALGRIPPER 0x4000
1133 #define RBS_DBLCLKTOGGLE 0x8000
1135 #define RBIM_IMAGELIST 0x00000001
1137 #define RBBIM_STYLE 0x00000001
1138 #define RBBIM_COLORS 0x00000002
1139 #define RBBIM_TEXT 0x00000004
1140 #define RBBIM_IMAGE 0x00000008
1141 #define RBBIM_CHILD 0x00000010
1142 #define RBBIM_CHILDSIZE 0x00000020
1143 #define RBBIM_SIZE 0x00000040
1144 #define RBBIM_BACKGROUND 0x00000080
1145 #define RBBIM_ID 0x00000100
1146 #define RBBIM_IDEALSIZE 0x00000200
1147 #define RBBIM_LPARAM 0x00000400
1148 #define RBBIM_HEADERSIZE 0x00000800
1150 #define RBBS_BREAK 0x00000001
1151 #define RBBS_FIXEDSIZE 0x00000002
1152 #define RBBS_CHILDEDGE 0x00000004
1153 #define RBBS_HIDDEN 0x00000008
1154 #define RBBS_NOVERT 0x00000010
1155 #define RBBS_FIXEDBMP 0x00000020
1156 #define RBBS_VARIABLEHEIGHT 0x00000040
1157 #define RBBS_GRIPPERALWAYS 0x00000080
1158 #define RBBS_NOGRIPPER 0x00000100
1160 #define RBNM_ID 0x00000001
1161 #define RBNM_STYLE 0x00000002
1162 #define RBNM_LPARAM 0x00000004
1164 #define RBHT_NOWHERE 0x0001
1165 #define RBHT_CAPTION 0x0002
1166 #define RBHT_CLIENT 0x0003
1167 #define RBHT_GRABBER 0x0004
1169 #define RB_INSERTBAND32A (WM_USER+1)
1170 #define RB_INSERTBAND32W (WM_USER+10)
1171 #define RB_INSERTBAND WINELIB_NAME_AW(RB_INSERTBAND)
1172 #define RB_DELETEBAND (WM_USER+2)
1173 #define RB_GETBARINFO (WM_USER+3)
1174 #define RB_SETBARINFO (WM_USER+4)
1175 #define RB_GETBANDINFO32 (WM_USER+5) /* just for compatibility */
1176 #define RB_SETBANDINFO32A (WM_USER+6)
1177 #define RB_SETBANDINFO32W (WM_USER+11)
1178 #define RB_SETBANDINFO WINELIB_NAME_AW(RB_SETBANDINFO)
1179 #define RB_SETPARENT (WM_USER+7)
1180 #define RB_HITTEST (WM_USER+8)
1181 #define RB_GETRECT (WM_USER+9)
1182 #define RB_GETBANDCOUNT (WM_USER+12)
1183 #define RB_GETROWCOUNT (WM_USER+13)
1184 #define RB_GETROWHEIGHT (WM_USER+14)
1185 #define RB_IDTOINDEX (WM_USER+16)
1186 #define RB_GETTOOLTIPS (WM_USER+17)
1187 #define RB_SETTOOLTIPS (WM_USER+18)
1188 #define RB_SETBKCOLOR (WM_USER+19)
1189 #define RB_GETBKCOLOR (WM_USER+20)
1190 #define RB_SETTEXTCOLOR (WM_USER+21)
1191 #define RB_GETTEXTCOLOR (WM_USER+22)
1192 #define RB_SIZETORECT (WM_USER+23)
1193 #define RB_BEGINDRAG (WM_USER+24)
1194 #define RB_ENDDRAG (WM_USER+25)
1195 #define RB_DRAGMOVE (WM_USER+26)
1196 #define RB_GETBARHEIGHT (WM_USER+27)
1197 #define RB_GETBANDINFO32W (WM_USER+28)
1198 #define RB_GETBANDINFO32A (WM_USER+29)
1199 #define RB_GETBANDINFO WINELIB_NAME_AW(RB_GETBANDINFO)
1200 #define RB_MINIMIZEBAND (WM_USER+30)
1201 #define RB_MAXIMIZEBAND (WM_USER+31)
1202 #define RB_GETBANDORDERS (WM_USER+34)
1203 #define RB_SHOWBAND (WM_USER+35)
1204 #define RB_SETPALETTE (WM_USER+37)
1205 #define RB_GETPALETTE (WM_USER+38)
1206 #define RB_MOVEBAND (WM_USER+39)
1207 #define RB_GETDROPTARGET CCM_GETDROPTARGET
1208 #define RB_SETCOLORSCHEME CCM_SETCOLORSCHEME
1209 #define RB_GETCOLORSCHEME CCM_GETCOLORSCHEME
1210 #define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1211 #define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1213 #define RBN_FIRST (0U-831U)
1214 #define RBN_LAST (0U-859U)
1215 #define RBN_HEIGHTCHANGE (RBN_FIRST-0)
1216 #define RBN_GETOBJECT (RBN_FIRST-1)
1217 #define RBN_LAYOUTCHANGED (RBN_FIRST-2)
1218 #define RBN_AUTOSIZE (RBN_FIRST-3)
1219 #define RBN_BEGINDRAG (RBN_FIRST-4)
1220 #define RBN_ENDDRAG (RBN_FIRST-5)
1221 #define RBN_DELETINGBAND (RBN_FIRST-6)
1222 #define RBN_DELETEDBAND (RBN_FIRST-7)
1223 #define RBN_CHILDSIZE (RBN_FIRST-8)
1225 typedef struct tagREBARINFO
1227 UINT32 cbSize;
1228 UINT32 fMask;
1229 HIMAGELIST himl;
1230 } REBARINFO, *LPREBARINFO;
1232 typedef struct tagREBARBANDINFOA
1234 UINT32 cbSize;
1235 UINT32 fMask;
1236 UINT32 fStyle;
1237 COLORREF clrFore;
1238 COLORREF clrBack;
1239 LPSTR lpText;
1240 UINT32 cch;
1241 INT32 iImage;
1242 HWND32 hwndChild;
1243 UINT32 cxMinChild;
1244 UINT32 cyMinChild;
1245 UINT32 cx;
1246 HBITMAP32 hbmBack;
1247 UINT32 wID;
1248 UINT32 cyChild;
1249 UINT32 cyMaxChild;
1250 UINT32 cyIntegral;
1251 UINT32 cxIdeal;
1252 LPARAM lParam;
1253 UINT32 cxHeader;
1254 } REBARBANDINFO32A, *LPREBARBANDINFO32A;
1256 typedef REBARBANDINFO32A const *LPCREBARBANDINFO32A;
1258 typedef struct tagREBARBANDINFOW
1260 UINT32 cbSize;
1261 UINT32 fMask;
1262 UINT32 fStyle;
1263 COLORREF clrFore;
1264 COLORREF clrBack;
1265 LPWSTR lpText;
1266 UINT32 cch;
1267 INT32 iImage;
1268 HWND32 hwndChild;
1269 UINT32 cxMinChild;
1270 UINT32 cyMinChild;
1271 UINT32 cx;
1272 HBITMAP32 hbmBack;
1273 UINT32 wID;
1274 UINT32 cyChild;
1275 UINT32 cyMaxChild;
1276 UINT32 cyIntegral;
1277 UINT32 cxIdeal;
1278 LPARAM lParam;
1279 UINT32 cxHeader;
1280 } REBARBANDINFO32W, *LPREBARBANDINFO32W;
1282 typedef REBARBANDINFO32W const *LPCREBARBANDINFO32W;
1284 #define REBARBANDINFO WINELIB_NAME_AW(REBARBANDINFO)
1285 #define LPREBARBANDINFO WINELIB_NAME_AW(LPREBARBANDINFO)
1286 #define LPCREBARBANDINFO WINELIB_NAME_AW(LPCREBARBANDINFO)
1288 #define REBARBANDINFO_V3_SIZE32A CCSIZEOF_STRUCT(REBARBANDINFO32A, wID)
1289 #define REBARBANDINFO_V3_SIZE32W CCSIZEOF_STRUCT(REBARBANDINFO32W, wID)
1290 #define REBARBANDINFO_V3_SIZE WINELIB_NAME_AW(REBARBANDINFO_V3_SIZE)
1292 typedef struct tagNMREBARCHILDSIZE
1294 NMHDR hdr;
1295 UINT32 uBand;
1296 UINT32 wID;
1297 RECT32 rcChild;
1298 RECT32 rcBand;
1299 } NMREBARCHILDSIZE, *LPNMREBARCHILDSIZE;
1301 typedef struct tagNMREBAR
1303 NMHDR hdr;
1304 DWORD dwMask;
1305 UINT32 uBand;
1306 UINT32 fStyle;
1307 UINT32 wID;
1308 LPARAM lParam;
1309 } NMREBAR, *LPNMREBAR;
1311 typedef struct tagNMRBAUTOSIZE
1313 NMHDR hdr;
1314 BOOL32 fChanged;
1315 RECT32 rcTarget;
1316 RECT32 rcActual;
1317 } NMRBAUTOSIZE, *LPNMRBAUTOSIZE;
1319 typedef struct _RB_HITTESTINFO
1321 POINT32 pt;
1322 UINT32 flags;
1323 INT32 iBand;
1324 } RBHITTESTINFO, *LPRBHITTESTINFO;
1327 /* Trackbar control */
1329 #define TRACKBAR_CLASS16 "msctls_trackbar"
1330 #define TRACKBAR_CLASS32A "msctls_trackbar32"
1331 #define TRACKBAR_CLASS32W L"msctls_trackbar32"
1332 #define TRACKBAR_CLASS WINELIB_NAME_AW(TRACKBAR_CLASS)
1334 #define TBS_AUTOTICKS 0x0001
1335 #define TBS_VERT 0x0002
1336 #define TBS_HORZ 0x0000
1337 #define TBS_TOP 0x0004
1338 #define TBS_BOTTOM 0x0000
1339 #define TBS_LEFT 0x0004
1340 #define TBS_RIGHT 0x0000
1341 #define TBS_BOTH 0x0008
1342 #define TBS_NOTICKS 0x0010
1343 #define TBS_ENABLESELRANGE 0x0020
1344 #define TBS_FIXEDLENGTH 0x0040
1345 #define TBS_NOTHUMB 0x0080
1346 #define TBS_TOOLTIPS 0x0100
1348 #define TBTS_TOP 0
1349 #define TBTS_LEFT 1
1350 #define TBTS_BOTTOM 2
1351 #define TBTS_RIGHT 3
1353 #define TB_LINEUP 0
1354 #define TB_LINEDOWN 1
1355 #define TB_PAGEUP 2
1356 #define TB_PAGEDOWN 3
1357 #define TB_THUMBPOSITION 4
1358 #define TB_THUMBTRACK 5
1359 #define TB_TOP 6
1360 #define TB_BOTTOM 7
1361 #define TB_ENDTRACK 8
1363 #define TBCD_TICS 0x0001
1364 #define TBCD_THUMB 0x0002
1365 #define TBCD_CHANNEL 0x0003
1367 #define TBM_GETPOS (WM_USER)
1368 #define TBM_GETRANGEMIN (WM_USER+1)
1369 #define TBM_GETRANGEMAX (WM_USER+2)
1370 #define TBM_GETTIC (WM_USER+3)
1371 #define TBM_SETTIC (WM_USER+4)
1372 #define TBM_SETPOS (WM_USER+5)
1373 #define TBM_SETRANGE (WM_USER+6)
1374 #define TBM_SETRANGEMIN (WM_USER+7)
1375 #define TBM_SETRANGEMAX (WM_USER+8)
1376 #define TBM_CLEARTICS (WM_USER+9)
1377 #define TBM_SETSEL (WM_USER+10)
1378 #define TBM_SETSELSTART (WM_USER+11)
1379 #define TBM_SETSELEND (WM_USER+12)
1380 #define TBM_GETPTICS (WM_USER+14)
1381 #define TBM_GETTICPOS (WM_USER+15)
1382 #define TBM_GETNUMTICS (WM_USER+16)
1383 #define TBM_GETSELSTART (WM_USER+17)
1384 #define TBM_GETSELEND (WM_USER+18)
1385 #define TBM_CLEARSEL (WM_USER+19)
1386 #define TBM_SETTICFREQ (WM_USER+20)
1387 #define TBM_SETPAGESIZE (WM_USER+21)
1388 #define TBM_GETPAGESIZE (WM_USER+22)
1389 #define TBM_SETLINESIZE (WM_USER+23)
1390 #define TBM_GETLINESIZE (WM_USER+24)
1391 #define TBM_GETTHUMBRECT (WM_USER+25)
1392 #define TBM_GETCHANNELRECT (WM_USER+26)
1393 #define TBM_SETTHUMBLENGTH (WM_USER+27)
1394 #define TBM_GETTHUMBLENGTH (WM_USER+28)
1395 #define TBM_SETTOOLTIPS (WM_USER+29)
1396 #define TBM_GETTOOLTIPS (WM_USER+30)
1397 #define TBM_SETTIPSIDE (WM_USER+31)
1398 #define TBM_SETBUDDY (WM_USER+32)
1399 #define TBM_GETBUDDY (WM_USER+33)
1400 #define TBM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1401 #define TBM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1404 /* Pager control */
1406 #define WC_PAGESCROLLER32A "SysPager"
1407 #define WC_PAGESCROLLER32W L"SysPager"
1408 #define WC_PAGESCROLLER WINELIB_NAME_AW(WC_PAGESCROLLER)
1410 #define PGS_VERT 0x00000000
1411 #define PGS_HORZ 0x00000001
1412 #define PGS_AUTOSCROLL 0x00000002
1413 #define PGS_DRAGNDROP 0x00000004
1415 #define PGF_INVISIBLE 0
1416 #define PGF_NORMAL 1
1417 #define PGF_GRAYED 2
1418 #define PGF_DEPRESSED 4
1419 #define PGF_HOT 8
1421 #define PGB_TOPORLEFT 0
1422 #define PGB_BOTTOMORRIGHT 1
1424 /* only used with PGN_SCROLL */
1425 #define PGF_SCROLLUP 1
1426 #define PGF_SCROLLDOWN 2
1427 #define PGF_SCROLLLEFT 4
1428 #define PGF_SCROLLRIGHT 8
1430 #define PGK_SHIFT 1
1431 #define PGK_CONTROL 2
1432 #define PGK_MENU 4
1434 /* only used with PGN_CALCSIZE */
1435 #define PGF_CALCWIDTH 1
1436 #define PGF_CALCHEIGHT 2
1438 #define PGM_FIRST 0x1400
1439 #define PGM_SETCHILD (PGM_FIRST+1)
1440 #define PGM_RECALCSIZE (PGM_FIRST+2)
1441 #define PGM_FORWARDMOUSE (PGM_FIRST+3)
1442 #define PGM_SETBKCOLOR (PGM_FIRST+4)
1443 #define PGM_GETBKCOLOR (PGM_FIRST+5)
1444 #define PGM_SETBORDER (PGM_FIRST+6)
1445 #define PGM_GETBORDER (PGM_FIRST+7)
1446 #define PGM_SETPOS (PGM_FIRST+8)
1447 #define PGM_GETPOS (PGM_FIRST+9)
1448 #define PGM_SETBUTTONSIZE (PGM_FIRST+10)
1449 #define PGM_GETBUTTONSIZE (PGM_FIRST+11)
1450 #define PGM_GETBUTTONSTATE (PGM_FIRST+12)
1451 #define PGM_GETDROPTARGET CCM_GETDROPTARGET
1453 #define PGN_FIRST (0U-900U)
1454 #define PGN_LAST (0U-950U)
1455 #define PGN_SCROLL (PGN_FIRST-1)
1456 #define PGN_CALCSIZE (PGN_FIRST-2)
1458 typedef struct
1460 NMHDR hdr;
1461 WORD fwKeys;
1462 RECT32 rcParent;
1463 INT32 iDir;
1464 INT32 iXpos;
1465 INT32 iYpos;
1466 INT32 iScroll;
1467 } NMPGSCROLL, *LPNMPGSCROLL;
1469 typedef struct
1471 NMHDR hdr;
1472 DWORD dwFlag;
1473 INT32 iWidth;
1474 INT32 iHeight;
1475 } NMPGCALCSIZE, *LPNMPGCALCSIZE;
1478 /* Treeview control */
1480 #define WC_TREEVIEW32A "SysTreeView32"
1481 #define WC_TREEVIEW32W L"SysTreeView32"
1482 #define WC_TREEVIEW WINELIB_NAME_AW(WC_TREEVIEW)
1484 #define TVSIL_NORMAL 0
1485 #define TVSIL_STATE 2
1487 #define TV_FIRST 0x1100
1488 #define TVM_INSERTITEM32A (TV_FIRST+0)
1489 #define TVM_INSERTITEM32W (TV_FIRST+50)
1490 #define TVM_INSERTITEM WINELIB_NAME_AW(TVM_INSERTITEM)
1491 #define TVM_DELETEITEM (TV_FIRST+1)
1492 #define TVM_EXPAND (TV_FIRST+2)
1493 #define TVM_GETITEMRECT (TV_FIRST+4)
1494 #define TVM_GETCOUNT (TV_FIRST+5)
1495 #define TVM_GETINDENT (TV_FIRST+6)
1496 #define TVM_SETINDENT (TV_FIRST+7)
1497 #define TVM_GETIMAGELIST (TV_FIRST+8)
1498 #define TVM_SETIMAGELIST (TV_FIRST+9)
1499 #define TVM_GETNEXTITEM (TV_FIRST+10)
1500 #define TVM_SELECTITEM (TV_FIRST+11)
1501 #define TVM_GETITEM32A (TV_FIRST+12)
1502 #define TVM_GETITEM32W (TV_FIRST+62)
1503 #define TVM_GETITEM WINELIB_NAME_AW(TVM_GETITEM)
1504 #define TVM_SETITEM32A (TV_FIRST+13)
1505 #define TVM_SETITEM32W (TV_FIRST+63)
1506 #define TVM_SETITEM WINELIB_NAME_AW(TVM_SETITEM)
1507 #define TVM_EDITLABEL32A (TV_FIRST+14)
1508 #define TVM_EDITLABEL32W (TV_FIRST+65)
1509 #define TVM_EDITLABEL WINELIB_NAME_AW(TVM_EDITLABEL)
1510 #define TVM_GETEDITCONTROL (TV_FIRST+15)
1511 #define TVM_GETVISIBLECOUNT (TV_FIRST+16)
1512 #define TVM_HITTEST (TV_FIRST+17)
1513 #define TVM_CREATEDRAGIMAGE (TV_FIRST+18)
1514 #define TVM_SORTCHILDREN (TV_FIRST+19)
1515 #define TVM_ENSUREVISIBLE (TV_FIRST+20)
1516 #define TVM_SORTCHILDRENCB (TV_FIRST+21)
1517 #define TVM_ENDEDITLABELNOW (TV_FIRST+22)
1518 #define TVM_GETISEARCHSTRING32A (TV_FIRST+23)
1519 #define TVM_GETISEARCHSTRING32W (TV_FIRST+64)
1520 #define TVM_GETISEARCHSTRING WINELIB_NAME_AW(TVM_GETISEARCHSTRING)
1521 #define TVM_SETTOOLTIPS (TV_FIRST+24)
1522 #define TVM_GETTOOLTIPS (TV_FIRST+25)
1523 #define TVM_SETINSERTMARK (TV_FIRST+26)
1524 #define TVM_SETITEMHEIGHT (TV_FIRST+27)
1525 #define TVM_GETITEMHEIGHT (TV_FIRST+28)
1526 #define TVM_SETBKCOLOR (TV_FIRST+29)
1527 #define TVM_SETTEXTCOLOR (TV_FIRST+30)
1528 #define TVM_GETBKCOLOR (TV_FIRST+31)
1529 #define TVM_GETTEXTCOLOR (TV_FIRST+32)
1530 #define TVM_SETSCROLLTIME (TV_FIRST+33)
1531 #define TVM_GETSCROLLTIME (TV_FIRST+34)
1532 #define TVM_SETINSERTMARKCOLOR (TV_FIRST+37)
1533 #define TVM_GETINSERTMARKCOLOR (TV_FIRST+38)
1534 #define TVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1535 #define TVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1537 #define TVN_FIRST (0U-400U)
1538 #define TVN_LAST (0U-499U)
1540 #define TVN_SELCHANGING (TVN_FIRST-1)
1541 #define TVN_SELCHANGED (TVN_FIRST-2)
1542 #define TVN_GETDISPINFO (TVN_FIRST-3)
1543 #define TVN_SETDISPINFO (TVN_FIRST-4)
1544 #define TVN_ITEMEXPANDING (TVN_FIRST-5)
1545 #define TVN_ITEMEXPANDED (TVN_FIRST-6)
1546 #define TVN_BEGINDRAG (TVN_FIRST-7)
1547 #define TVN_BEGINRDRAG (TVN_FIRST-8)
1548 #define TVN_DELETEITEM (TVN_FIRST-9)
1549 #define TVN_BEGINLABELEDIT (TVN_FIRST-10)
1550 #define TVN_ENDLABELEDIT (TVN_FIRST-11)
1551 #define TVN_KEYDOWN (TVN_FIRST-12)
1552 #define TVN_GETINFOTIPA (TVN_FIRST-13)
1553 #define TVN_GETINFOTIPW (TVN_FIRST-14)
1554 #define TVN_SINGLEEXPAND (TVN_FIRST-15)
1557 #define TVN_SELCHANGINGW (TVN_FIRST-50)
1558 #define TVN_SELCHANGEDW (TVN_FIRST-51)
1559 #define TVN_GETDISPINFOW (TVN_FIRST-52)
1560 #define TVN_SETDISPINFOW (TVN_FIRST-53)
1561 #define TVN_ITEMEXPANDINGW (TVN_FIRST-54)
1562 #define TVN_ITEMEXPANDEDW (TVN_FIRST-55)
1563 #define TVN_BEGINDRAGW (TVN_FIRST-56)
1564 #define TVN_BEGINRDRAGW (TVN_FIRST-57)
1565 #define TVN_DELETEITEMW (TVN_FIRST-58)
1566 #define TVN_BEGINLABELEDITW (TVN_FIRST-59)
1567 #define TVN_ENDLABELEDITW (TVN_FIRST-60)
1571 #define TVIF_TEXT 0x0001
1572 #define TVIF_IMAGE 0x0002
1573 #define TVIF_PARAM 0x0004
1574 #define TVIF_STATE 0x0008
1575 #define TVIF_HANDLE 0x0010
1576 #define TVIF_SELECTEDIMAGE 0x0020
1577 #define TVIF_CHILDREN 0x0040
1578 #define TVIF_INTEGRAL 0x0080
1579 #define TVIF_DI_SETITEM 0x1000
1581 #define TVI_ROOT 0xffff0000 /* -65536 */
1582 #define TVI_FIRST 0xffff0001 /* -65535 */
1583 #define TVI_LAST 0xffff0002 /* -65534 */
1584 #define TVI_SORT 0xffff0003 /* -65533 */
1586 #define TVIS_FOCUSED 0x0001
1587 #define TVIS_SELECTED 0x0002
1588 #define TVIS_CUT 0x0004
1589 #define TVIS_DROPHILITED 0x0008
1590 #define TVIS_BOLD 0x0010
1591 #define TVIS_EXPANDED 0x0020
1592 #define TVIS_EXPANDEDONCE 0x0040
1593 #define TVIS_OVERLAYMASK 0x0f00
1594 #define TVIS_STATEIMAGEMASK 0xf000
1595 #define TVIS_USERMASK 0xf000
1597 #define TVHT_NOWHERE 0x0001
1598 #define TVHT_ONITEMICON 0x0002
1599 #define TVHT_ONITEMLABEL 0x0004
1600 #define TVHT_ONITEMINDENT 0x0008
1601 #define TVHT_ONITEMBUTTON 0x0010
1602 #define TVHT_ONITEMRIGHT 0x0020
1603 #define TVHT_ONITEMSTATEICON 0x0040
1604 #define TVHT_ONITEM 0x0046
1605 #define TVHT_ABOVE 0x0100
1606 #define TVHT_BELOW 0x0200
1607 #define TVHT_TORIGHT 0x0400
1608 #define TVHT_TOLEFT 0x0800
1610 #define TVS_HASBUTTONS 0x0001
1611 #define TVS_HASLINES 0x0002
1612 #define TVS_LINESATROOT 0x0004
1613 #define TVS_EDITLABELS 0x0008
1614 #define TVS_DISABLEDRAGDROP 0x0010
1615 #define TVS_SHOWSELALWAYS 0x0020
1616 #define TVS_RTLREADING 0x0040
1617 #define TVS_NOTOOLTIPS 0x0080
1618 #define TVS_CHECKBOXES 0x0100
1619 #define TVS_TRACKSELECT 0x0200
1620 #define TVS_SINGLEEXPAND 0x0400
1621 #define TVS_INFOTIP 0x0800
1622 #define TVS_FULLROWSELECT 0x1000
1623 #define TVS_NOSCROLL 0x2000
1624 #define TVS_NONEVENHEIGHT 0x4000
1626 #define TVS_SHAREDIMAGELISTS 0x0000
1627 #define TVS_PRIVATEIMAGELISTS 0x0400
1630 #define TVE_COLLAPSE 0x0001
1631 #define TVE_EXPAND 0x0002
1632 #define TVE_TOGGLE 0x0003
1633 #define TVE_EXPANDPARTIAL 0x4000
1634 #define TVE_COLLAPSERESET 0x8000
1636 #define TVGN_ROOT 0
1637 #define TVGN_NEXT 1
1638 #define TVGN_PREVIOUS 2
1639 #define TVGN_PARENT 3
1640 #define TVGN_CHILD 4
1641 #define TVGN_FIRSTVISIBLE 5
1642 #define TVGN_NEXTVISIBLE 6
1643 #define TVGN_PREVIOUSVISIBLE 7
1644 #define TVGN_DROPHILITE 8
1645 #define TVGN_CARET 9
1646 #define TVGN_LASTVISIBLE 10
1648 #define TVC_UNKNOWN 0x00
1649 #define TVC_BYMOUSE 0x01
1650 #define TVC_BYKEYBOARD 0x02
1653 typedef HANDLE32 HTREEITEM;
1655 typedef struct {
1656 UINT32 mask;
1657 HTREEITEM hItem;
1658 UINT32 state;
1659 UINT32 stateMask;
1660 LPSTR pszText;
1661 int cchTextMax;
1662 int iImage;
1663 int iSelectedImage;
1664 int cChildren;
1665 LPARAM lParam;
1666 } TV_ITEM, *LPTVITEM;
1668 typedef struct {
1669 UINT32 mask;
1670 HTREEITEM hItem;
1671 UINT32 state;
1672 UINT32 stateMask;
1673 LPSTR pszText;
1674 int cchTextMax;
1675 int iImage;
1676 int iSelectedImage;
1677 int cChildren;
1678 LPARAM lParam;
1679 int iIntegral;
1680 } TV_ITEMEX, *LPTVITEMEX;
1682 #define TVITEM TV_ITEM
1686 typedef struct tagTVINSERTSTRUCT {
1687 HTREEITEM hParent;
1688 HTREEITEM hInsertAfter;
1689 TV_ITEM item;
1690 } TVINSERTSTRUCT, *LPTVINSERTSTRUCT;
1692 #define TV_INSERTSTRUCT TVINSERTSTRUCT
1693 #define LPTV_INSERTSTRUCT LPTVINSERTSTRUCT
1695 typedef struct tagNMTREEVIEW {
1696 NMHDR hdr;
1697 UINT32 action;
1698 TVITEM itemOld;
1699 TVITEM itemNew;
1700 POINT32 ptDrag;
1701 } NMTREEVIEW, *LPNMTREEVIEW;
1703 typedef struct tagTVDISPINFO {
1704 NMHDR hdr;
1705 TVITEM item;
1706 } NMTVDISPINFO, *LPNMTVDISPINFO;
1708 typedef INT32 (CALLBACK *PFNTVCOMPARE)(LPARAM, LPARAM, LPARAM);
1710 typedef struct tagTVSORTCB
1712 HTREEITEM hParent;
1713 PFNTVCOMPARE lpfnCompare;
1714 LPARAM lParam;
1715 } TVSORTCB, *LPTVSORTCB;
1717 #define TV_SORTCB TVSORTCB
1718 #define LPTV_SORTCB LPTVSORTCB
1720 typedef struct tagTVHITTESTINFO {
1721 POINT32 pt;
1722 UINT32 flags;
1723 HTREEITEM hItem;
1724 } TVHITTESTINFO, *LPTVHITTESTINFO;
1726 #define TV_HITTESTINFO TVHITTESTINFO
1728 #define TreeView_InsertItem(hwndHD, phdi) \
1729 (INT32)SendMessage32A((hwnd), TVM_INSERTITEM, 0, \
1730 (LPARAM)(LPTV_INSERTSTRUCT)(phdi))
1731 #define TreeView_DeleteItem(hwnd, hItem) \
1732 (BOOL32)SendMessage32A((hwnd), TVM_DELETEITEM, 0, (LPARAM)(HTREEITEM)(hItem))
1733 #define TreeView_DeleteAllItems(hwnd) \
1734 (BOOL32)SendMessage32A((hwnd), TVM_DELETEITEM, 0, (LPARAM)TVI_ROOT)
1735 #define TreeView_Expand(hwnd, hitem, code) \
1736 (BOOL32)SendMessage32A((hwnd), TVM_EXPAND, (WPARAM)code, \
1737 (LPARAM)(HTREEITEM)(hitem))
1739 #define TreeView_GetItemRect(hwnd, hitem, prc, code) \
1740 (*(HTREEITEM *)prc = (hitem), (BOOL)SendMessage32A((hwnd), \
1741 TVM_GETITEMRECT, (WPARAM32)(code), (LPARAM)(RECT *)(prc)))
1743 #define TreeView_GetCount(hwnd) \
1744 (UINT32)SendMessage32A((hwnd), TVM_GETCOUNT, 0, 0)
1745 #define TreeView_GetIndent(hwnd) \
1746 (UINT32)SendMessage32A((hwnd), TVM_GETINDENT, 0, 0)
1747 #define TreeView_SetIndent(hwnd, indent) \
1748 (BOOL32)SendMessage32A((hwnd), TVM_SETINDENT, (WPARAM)indent, 0)
1750 #define TreeView_GetImageList(hwnd, iImage) \
1751 (HIMAGELIST)SendMessage32A((hwnd), TVM_GETIMAGELIST, iImage, 0)
1753 #define TreeView_SetImageList(hwnd, himl, iImage) \
1754 (HIMAGELIST)SendMessage32A((hwnd), TVM_SETIMAGELIST, iImage, \
1755 (LPARAM)(UINT32)(HIMAGELIST)(himl))
1757 #define TreeView_GetNextItem(hwnd, hitem, code) \
1758 (HTREEITEM)SendMessage32A((hwnd), TVM_GETNEXTITEM, (WPARAM)code,\
1759 (LPARAM)(HTREEITEM) (hitem))
1761 #define TreeView_GetChild(hwnd, hitem) \
1762 TreeView_GetNextItem(hwnd, hitem , TVGN_CHILD)
1763 #define TreeView_GetNextSibling(hwnd, hitem) \
1764 TreeView_GetNextItem(hwnd, hitem , TVGN_NEXT)
1765 #define TreeView_GetPrevSibling(hwnd, hitem) \
1766 TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUS)
1767 #define TreeView_GetParent(hwnd, hitem) \
1768 TreeView_GetNextItem(hwnd, hitem , TVGN_PARENT)
1769 #define TreeView_GetFirstVisible(hwnd) \
1770 TreeView_GetNextItem(hwnd, NULL, TVGN_FIRSTVISIBLE)
1771 #define TreeView_GetLastVisible(hwnd) \
1772 TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE)
1773 #define TreeView_GetNextVisible(hwnd, hitem) \
1774 TreeView_GetNextItem(hwnd, hitem , TVGN_NEXTVISIBLE)
1775 #define TreeView_GetPrevVisible(hwnd, hitem) \
1776 TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUSVISIBLE)
1777 #define TreeView_GetSelection(hwnd) \
1778 TreeView_GetNextItem(hwnd, NULL, TVGN_CARET)
1779 #define TreeView_GetDropHilight(hwnd) \
1780 TreeView_GetNextItem(hwnd, NULL, TVGN_DROPHILITE)
1781 #define TreeView_GetRoot(hwnd) \
1782 TreeView_GetNextItem(hwnd, NULL, TVGN_ROOT)
1783 #define TreeView_GetLastVisible(hwnd) \
1784 TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE)
1787 #define TreeView_Select(hwnd, hitem, code) \
1788 (UINT32)SendMessage32A((hwnd), TVM_SELECTITEM, (WPARAM)code, \
1789 (LPARAM)(UINT32)(hitem))
1792 #define TreeView_SelectItem(hwnd, hitem) \
1793 TreeView_Select(hwnd, hitem, TVGN_CARET)
1794 #define TreeView_SelectDropTarget(hwnd, hitem) \
1795 TreeView_Select(hwnd, hitem, TVGN_DROPHILITE)
1796 /* FIXME
1797 #define TreeView_SelectSetFirstVisible(hwnd, hitem) \
1798 TreeView_Select(hwnd, hitem, TVGN_FIRSTVISIBLE)
1801 #define TreeView_GetItem(hwnd, pitem) \
1802 (BOOL32)SendMessage32A((hwnd), TVM_GETITEM, 0, (LPARAM) (TV_ITEM *)(pitem))
1804 #define TreeView_SetItem(hwnd, pitem) \
1805 (BOOL32)SendMessage32A((hwnd), TVM_SETITEM, 0, (LPARAM)(const TV_ITEM *)(pitem))
1807 #define TreeView_EditLabel(hwnd, hitem) \
1808 (HWND)SendMessage32A((hwnd), TVM_EDITLABEL, 0, (LPARAM)(HTREEITEM)(hitem))
1811 #define TreeView_GetEditControl(hwnd) \
1812 (HWND)SendMessage32A((hwnd), TVM_GETEDITCONTROL, 0, 0)
1814 #define TreeView_GetVisibleCount(hwnd) \
1815 (UINT32)SendMessage32A((hwnd), TVM_GETVISIBLECOUNT, 0, 0)
1817 #define TreeView_HitTest(hwnd, lpht) \
1818 (HTREEITEM)SendMessage32A((hwnd), TVM_HITTEST, 0,\
1819 (LPARAM)(LPTV_HITTESTINFO)(lpht))
1821 #define TreeView_CreateDragImage(hwnd, hitem) \
1822 (HIMAGELIST)SendMessage32A((hwnd), TVM_CREATEDRAGIMAGE, 0,\
1823 (LPARAM)(HTREEITEM)(hitem))
1825 #define TreeView_SortChildren(hwnd, hitem, recurse) \
1826 (BOOL)SendMessage32A((hwnd), TVM_SORTCHILDREN, (WPARAM)recurse,\
1827 (LPARAM)(HTREEITEM)(hitem))
1829 #define TreeView_EnsureVisible(hwnd, hitem) \
1830 (BOOL)SendMessage32A((hwnd), TVM_ENSUREVISIBLE, 0, (LPARAM)(UINT32)(hitem))
1832 #define TreeView_SortChildrenCB(hwnd, psort, recurse) \
1833 (BOOL)SendMessage32A((hwnd), TVM_SORTCHILDRENCB, (WPARAM)recurse, \
1834 (LPARAM)(LPTV_SORTCB)(psort))
1836 #define TreeView_EndEditLabelNow(hwnd, fCancel) \
1837 (BOOL)SendMessage32A((hwnd), TVM_ENDEDITLABELNOW, (WPARAM)fCancel, 0)
1839 #define TreeView_GetISearchString(hwndTV, lpsz) \
1840 (BOOL)SendMessage32A((hwndTV), TVM_GETISEARCHSTRING, 0, \
1841 (LPARAM)(LPTSTR)lpsz)
1843 #define TreeView_SetItemHeight(hwnd, iHeight) \
1844 (INT32)SendMessage32A((hwnd), TVM_SETITEMHEIGHT, (WPARAM)iHeight, 0)
1845 #define TreeView_GetItemHeight(hwnd) \
1846 (INT32)SendMessage32A((hwnd), TVM_GETITEMHEIGHT, 0, 0)
1848 #define TreeView_SetBkColor(hwnd, clr) \
1849 (COLORREF)SendMessage32A((hwnd), TVM_SETBKCOLOR, 0, (LPARAM)clr)
1851 #define TreeView_SetTextColor(hwnd, clr) \
1852 (COLORREF)SendMessage32A((hwnd), TVM_SETTEXTCOLOR, 0, (LPARAM)clr)
1854 #define TreeView_GetBkColor(hwnd) \
1855 (COLORREF)SendMessage32A((hwnd), TVM_GETBKCOLOR, 0, 0)
1857 #define TreeView_GetTextColor(hwnd) \
1858 (COLORREF)SendMessage32A((hwnd), TVM_GETTEXTCOLOR, 0, 0)
1860 #define TreeView_SetScrollTime(hwnd, uTime) \
1861 (UINT32)SendMessage32A((hwnd), TVM_SETSCROLLTIME, uTime, 0)
1863 #define TreeView_GetScrollTime(hwnd) \
1864 (UINT32)SendMessage32A((hwnd), TVM_GETSCROLLTIME, 0, 0)
1866 #define TreeView_SetInsertMarkColor(hwnd, clr) \
1867 (COLORREF)SendMessage32A((hwnd), TVM_SETINSERTMARKCOLOR, 0, (LPARAM)clr)
1868 #define TreeView_GetInsertMarkColor(hwnd) \
1869 (COLORREF)SendMessage32A((hwnd), TVM_GETINSERTMARKCOLOR, 0, 0)
1879 /* Listview control */
1881 #define WC_LISTVIEW32A "SysListView32"
1882 #define WC_LISTVIEW32W L"SysListView32"
1883 #define WC_LISTVIEW WINELIB_NAME_AW(WC_LISTVIEW)
1885 #define LVS_ICON 0x0000
1886 #define LVS_REPORT 0x0001
1887 #define LVS_SMALLICON 0x0002
1888 #define LVS_LIST 0x0003
1889 #define LVS_TYPEMASK 0x0003
1890 #define LVS_SINGLESEL 0x0004
1891 #define LVS_SHOWSELALWAYS 0x0008
1892 #define LVS_SORTASCENDING 0x0010
1893 #define LVS_SORTDESCENDING 0x0020
1894 #define LVS_SHAREIMAGELISTS 0x0040
1895 #define LVS_NOLABELWRAP 0x0080
1896 #define LVS_AUTOARRANGE 0x0100
1897 #define LVS_EDITLABELS 0x0200
1898 #define LVS_OWNERDATA 0x1000
1899 #define LVS_NOSCROLL 0x2000
1900 #define LVS_TYPESTYLEMASK 0xfc00
1901 #define LVS_ALIGNTOP 0x0000
1902 #define LVS_ALIGNLEFT 0x0800
1903 #define LVS_ALIGNMASK 0x0c00
1904 #define LVS_OWNERDRAWFIXED 0x0400
1905 #define LVS_NOCOLUMNHEADER 0x4000
1906 #define LVS_NOSORTHEADER 0x8000
1908 #define LVCF_FMT 0x0001
1909 #define LVCF_WIDTH 0x0002
1910 #define LVCF_TEXT 0x0004
1911 #define LVCF_SUBITEM 0x0008
1912 #define LVCF_IMAGE 0x0010
1913 #define LVCF_ORDER 0x0020
1915 #define LVCFMT_LEFT 0x0000
1916 #define LVCFMT_RIGHT 0x0001
1917 #define LVCFMT_CENTER 0x0002
1918 #define LVCFMT_JUSTIFYMASK 0x0003
1919 #define LVCFMT_IMAGE 0x0800
1920 #define LVCFMT_BITMAP_ON_RIGHT 0x1000
1921 #define LVCFMT_COL_HAS_IMAGES 0x8000
1923 #define LVSIL_NORMAL 0
1924 #define LVSIL_SMALL 1
1925 #define LVSIL_STATE 2
1927 #define LVIF_TEXT 0x0001
1928 #define LVIF_IMAGE 0x0002
1929 #define LVIF_PARAM 0x0004
1930 #define LVIF_STATE 0x0008
1931 #define LVIF_INDENT 0x0010
1932 #define LVIF_NORECOMPUTE 0x0800
1934 #define LVIS_FOCUSED 0x0001
1935 #define LVIS_SELECTED 0x0002
1936 #define LVIS_CUT 0x0004
1937 #define LVIS_DROPHILITED 0x0008
1938 #define LVIS_ACTIVATING 0x0020
1940 #define LVIS_OVERLAYMASK 0x0F00
1941 #define LVIS_STATEIMAGEMASK 0xF000
1943 #define LVNI_ALL 0x0000
1944 #define LVNI_FOCUSED 0x0001
1945 #define LVNI_SELECTED 0x0002
1946 #define LVNI_CUT 0x0004
1947 #define LVNI_DROPHILITED 0x0008
1949 #define LVNI_ABOVE 0x0100
1950 #define LVNI_BELOW 0x0200
1951 #define LVNI_TOLEFT 0x0400
1952 #define LVNI_TORIGHT 0x0800
1954 #define LVHT_NOWHERE 0x0001
1955 #define LVHT_ONITEMICON 0x0002
1956 #define LVHT_ONITEMLABEL 0x0004
1957 #define LVHT_ONITEMSTATEICON 0x0008
1958 #define LVHT_ONITEM (LVHT_ONITEMICON|LVHT_ONITEMLABEL|LVHT_ONITEMSTATEICON)
1960 #define LVHT_ABOVE 0x0008
1961 #define LVHT_BELOW 0x0010
1962 #define LVHT_TORIGHT 0x0020
1963 #define LVHT_TOLEFT 0x0040
1965 #define LVM_FIRST 0x1000
1966 #define LVM_GETBKCOLOR (LVM_FIRST+0)
1967 #define LVM_SETBKCOLOR (LVM_FIRST+1)
1968 #define LVM_GETIMAGELIST (LVM_FIRST+2)
1969 #define LVM_SETIMAGELIST (LVM_FIRST+3)
1970 #define LVM_GETITEMCOUNT (LVM_FIRST+4)
1971 #define LVM_GETITEM32A (LVM_FIRST+5)
1972 #define LVM_GETITEM32W (LVM_FIRST+75)
1973 #define LVM_GETITEM WINELIB_NAME_AW(LVM_GETITEM)
1974 #define LVM_SETITEM32A (LVM_FIRST+6)
1975 #define LVM_SETITEM32W (LVM_FIRST+76)
1976 #define LVM_SETITEM WINELIB_NAME_AW(LVM_SETITEM)
1977 #define LVM_INSERTITEM32A (LVM_FIRST+7)
1978 #define LVM_INSERTITEM32W (LVM_FIRST+77)
1979 #define LVM_INSERTITEM WINELIB_NAME_AW(LVM_INSERTITEM)
1980 #define LVM_DELETEITEM (LVM_FIRST+8)
1981 #define LVM_DELETEALLITEMS (LVM_FIRST+9)
1982 #define LVM_GETCALLBACKMASK (LVM_FIRST+10)
1983 #define LVM_SETCALLBACKMASK (LVM_FIRST+11)
1984 #define LVM_GETNEXTITEM (LVM_FIRST+12)
1985 #define LVM_FINDITEM32A (LVM_FIRST+13)
1986 #define LVM_FINDITEM32W (LVM_FIRST+83)
1987 #define LVM_FINDITEM WINELIB_NAME_AW(LVM_FINDITEM)
1988 #define LVM_GETITEMRECT (LVM_FIRST+14)
1989 #define LVM_SETITEMPOSITION (LVM_FIRST+15)
1990 #define LVM_GETITEMPOSITION (LVM_FIRST+16)
1991 #define LVM_GETSTRINGWIDTH32A (LVM_FIRST+17)
1992 #define LVM_GETSTRINGWIDTH32W (LVM_FIRST+87)
1993 #define LVM_GETSTRINGWIDTH WINELIB_NAME_AW(LVM_GETSTRINGWIDTH)
1994 #define LVM_HITTEST (LVM_FIRST+18)
1995 #define LVM_ENSUREVISIBLE (LVM_FIRST+19)
1996 #define LVM_SCROLL (LVM_FIRST+20)
1997 #define LVM_REDRAWITEMS (LVM_FIRST+21)
1998 #define LVM_ARRANGE (LVM_FIRST+22)
1999 #define LVM_EDITLABEL32A (LVM_FIRST+23)
2000 #define LVM_EDITLABEL32W (LVM_FIRST+118)
2001 #define LVM_EDITLABEL WINELIB_NAME_AW(LVM_EDITLABEL)
2002 #define LVM_GETEDITCONTROL (LVM_FIRST+24)
2003 #define LVM_GETCOLUMN32A (LVM_FIRST+25)
2004 #define LVM_GETCOLUMN32W (LVM_FIRST+95)
2005 #define LVM_GETCOLUMN WINELIB_NAME_AW(LVM_GETCOLUMN)
2006 #define LVM_SETCOLUMN32A (LVM_FIRST+26)
2007 #define LVM_SETCOLUMN32W (LVM_FIRST+96)
2008 #define LVM_SETCOLUMN WINELIB_NAME_AW(LVM_SETCOLUMN)
2009 #define LVM_INSERTCOLUMN32A (LVM_FIRST+27)
2010 #define LVM_INSERTCOLUMN32W (LVM_FIRST+97)
2011 #define LVM_INSERTCOLUMN WINELIB_NAME_AW(LVM_INSERTCOLUMN)
2012 #define LVM_DELETECOLUMN (LVM_FIRST+28)
2013 #define LVM_GETCOLUMNWIDTH (LVM_FIRST+29)
2014 #define LVM_SETCOLUMNWIDTH (LVM_FIRST+30)
2015 #define LVM_GETHEADER (LVM_FIRST+31)
2017 #define LVM_CREATEDRAGIMAGE (LVM_FIRST+33)
2018 #define LVM_GETVIEWRECT (LVM_FIRST+34)
2019 #define LVM_GETTEXTCOLOR (LVM_FIRST+35)
2020 #define LVM_SETTEXTCOLOR (LVM_FIRST+36)
2021 #define LVM_GETTEXTBKCOLOR (LVM_FIRST+37)
2022 #define LVM_SETTEXTBKCOLOR (LVM_FIRST+38)
2023 #define LVM_GETTOPINDEX (LVM_FIRST+39)
2024 #define LVM_GETCOUNTPERPAGE (LVM_FIRST+40)
2025 #define LVM_GETORIGIN (LVM_FIRST+41)
2026 #define LVM_UPDATE (LVM_FIRST+42)
2027 #define LVM_SETITEMSTATE (LVM_FIRST+43)
2028 #define LVM_GETITEMSTATE (LVM_FIRST+44)
2029 #define LVM_GETITEMTEXT32A (LVM_FIRST+45)
2030 #define LVM_GETITEMTEXT32W (LVM_FIRST+115)
2031 #define LVM_GETITEMTEXT WINELIB_NAME_AW(LVM_GETITEMTEXT)
2032 #define LVM_SETITEMTEXT32A (LVM_FIRST+46)
2033 #define LVM_SETITEMTEXT32W (LVM_FIRST+116)
2034 #define LVM_SETITEMTEXT WINELIB_NAME_AW(LVM_SETITEMTEXT)
2035 #define LVM_SETITEMCOUNT (LVM_FIRST+47)
2036 #define LVM_SORTITEMS (LVM_FIRST+48)
2037 #define LVM_SETITEMPOSITION32 (LVM_FIRST+49)
2038 #define LVM_GETSELECTEDCOUNT (LVM_FIRST+50)
2039 #define LVM_GETITEMSPACING (LVM_FIRST+51)
2040 #define LVM_GETISEARCHSTRING32A (LVM_FIRST+52)
2041 #define LVM_GETISEARCHSTRING32W (LVM_FIRST+117)
2042 #define LVM_GETISEARCHSTRING WINELIB_NAME_AW(LVM_GETISEARCHSTRING)
2043 #define LVM_SETICONSPACING (LVM_FIRST+53)
2044 #define LVM_SETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+54)
2045 #define LVM_GETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+55)
2046 #define LVM_GETSUBITEMRECT (LVM_FIRST+56)
2047 #define LVM_SUBITEMHITTEST (LVM_FIRST+57)
2048 #define LVM_SETCOLUMNORDERARRAY (LVM_FIRST+58)
2049 #define LVM_GETCOLUMNORDERARRAY (LVM_FIRST+59)
2050 #define LVM_SETHOTITEM (LVM_FIRST+60)
2051 #define LVM_GETHOTITEM (LVM_FIRST+61)
2052 #define LVM_SETHOTCURSOR (LVM_FIRST+62)
2053 #define LVM_GETHOTCURSOR (LVM_FIRST+63)
2054 #define LVM_APPROXIMATEVIEWRECT (LVM_FIRST+64)
2055 #define LVM_SETWORKAREAS (LVM_FIRST+65)
2056 #define LVM_GETSELECTIONMARK (LVM_FIRST+66)
2057 #define LVM_SETSELECTIONMARK (LVM_FIRST+67)
2058 #define LVM_SETBKIMAGE32A (LVM_FIRST+68)
2059 #define LVM_SETBKIMAGE32W (LVM_FIRST+138)
2060 #define LVM_SETBKIMAGE WINELIB_NAME_AW(LVM_SETBKIMAGE)
2061 #define LVM_GETBKIMAGE32A (LVM_FIRST+69)
2062 #define LVM_GETBKIMAGE32W (LVM_FIRST+139)
2063 #define LVM_GETBKIMAGE WINELIB_NAME_AW(LVM_GETBKIMAGE)
2064 #define LVM_GETWORKAREAS (LVM_FIRST+70)
2065 #define LVM_SETHOVERTIME (LVM_FIRST+71)
2066 #define LVM_GETHOVERTIME (LVM_FIRST+72)
2067 #define LVM_GETNUMBEROFWORKAREAS (LVM_FIRST+73)
2068 #define LVM_SETTOOLTIPS (LVM_FIRST+74)
2070 #define LVM_GETTOOLTIPS (LVM_FIRST+78)
2072 #define LVN_FIRST (0U-100U)
2073 #define LVN_LAST (0U-199U)
2074 #define LVN_ITEMCHANGING (LVN_FIRST-0)
2075 #define LVN_ITEMCHANGED (LVN_FIRST-1)
2076 #define LVN_INSERTITEM (LVN_FIRST-2)
2077 #define LVN_DELETEITEM (LVN_FIRST-3)
2078 #define LVN_DELETEALLITEMS (LVN_FIRST-4)
2079 #define LVN_BEGINLABELEDIT32A (LVN_FIRST-5)
2080 #define LVN_BEGINLABELEDIT32W (LVN_FIRST-75)
2081 #define LVN_BEGINLABELEDIT WINELIB_NAME_AW(LVN_BEGINLABELEDIT)
2082 #define LVN_ENDLABELEDIT32A (LVN_FIRST-6)
2083 #define LVN_ENDLABELEDIT32W (LVN_FIRST-76)
2084 #define LVN_ENDLABELEDIT WINELIB_NAME_AW(LVN_ENDLABELEDIT)
2085 #define LVN_COLUMNCLICK (LVN_FIRST-8)
2086 #define LVN_BEGINDRAG (LVN_FIRST-9)
2087 #define LVN_BEGINRDRAG (LVN_FIRST-11)
2088 #define LVN_ODCACHEHINT (LVN_FIRST-13)
2089 #define LVN_ODFINDITEM32A (LVN_FIRST-52)
2090 #define LVN_ODFINDITEM32W (LVN_FIRST-79)
2091 #define LVN_ODFINDITEM WINELIB_NAME_AW(LVN_ODFINDITEM)
2092 #define LVN_ITEMACTIVATE (LVN_FIRST-14)
2093 #define LVN_ODSTATECHANGED (LVN_FIRST-15)
2094 #define LVN_HOTTRACK (LVN_FIRST-21)
2095 #define LVN_GETDISPINFO32A (LVN_FIRST-50)
2096 #define LVN_GETDISPINFO32W (LVN_FIRST-77)
2097 #define LVN_GETDISPINFO WINELIB_NAME_AW(LVN_GETDISPINFO)
2098 #define LVN_SETDISPINFO32A (LVN_FIRST-51)
2099 #define LVN_SETDISPINFO32W (LVN_FIRST-78)
2100 #define LVN_SETDISPINFO WINELIB_NAME_AW(LVN_SETDISPINFO)
2103 typedef struct tagLVITEMA
2105 UINT32 mask;
2106 INT32 iItem;
2107 INT32 iSubItem;
2108 UINT32 state;
2109 UINT32 stateMask;
2110 LPSTR pszText;
2111 INT32 cchTextMax;
2112 INT32 iImage;
2113 LPARAM lParam;
2114 INT32 iIndent; /* (_WIN32_IE >= 0x0300) */
2115 } LVITEM32A, *LPLVITEM32A;
2117 typedef struct tagLVITEMW
2119 UINT32 mask;
2120 INT32 iItem;
2121 INT32 iSubItem;
2122 UINT32 state;
2123 UINT32 stateMask;
2124 LPWSTR pszText;
2125 INT32 cchTextMax;
2126 INT32 iImage;
2127 LPARAM lParam;
2128 INT32 iIndent; /* (_WIN32_IE >= 0x0300) */
2129 } LVITEM32W, *LPLVITEM32W;
2131 #define LVITEM32 WINELIB_NAME_AW(LVITEM)
2132 #define LPLVITEM32 WINELIB_NAME_AW(LPLVITEM)
2134 #define LVITEM_V1_SIZE32A CCSIZEOF_STRUCT(LVITEM32A, lParam)
2135 #define LVITEM_V1_SIZE32W CCSIZEOF_STRUCT(LVITEM32W, lParam)
2136 #define LVITEM_V1_SIZE WINELIB_NAME_AW(LVITEM_V1_SIZE)
2138 #define LV_ITEM LVITEM
2140 typedef struct tagLVCOLUMNA
2142 UINT32 mask;
2143 INT32 fmt;
2144 INT32 cx;
2145 LPSTR pszText;
2146 INT32 cchTextMax;
2147 INT32 iSubItem;
2148 INT32 iImage; /* (_WIN32_IE >= 0x0300) */
2149 INT32 iOrder; /* (_WIN32_IE >= 0x0300) */
2150 } LVCOLUMN32A, *LPLVCOLUMN32A;
2152 typedef struct tagLVCOLUMNW
2154 UINT32 mask;
2155 INT32 fmt;
2156 INT32 cx;
2157 LPWSTR pszText;
2158 INT32 cchTextMax;
2159 INT32 iSubItem;
2160 INT32 iImage; /* (_WIN32_IE >= 0x0300) */
2161 INT32 iOrder; /* (_WIN32_IE >= 0x0300) */
2162 } LVCOLUMN32W, *LPLVCOLUMN32W;
2164 #define LVCOLUMN WINELIB_NAME_AW(LVCOLUMN)
2165 #define LPLVCOLUMN WINELIB_NAME_AW(LPLVCOLUMN)
2167 #define LVCOLUMN_V1_SIZE32A CCSIZEOF_STRUCT(LVCOLUMN32A, iSubItem)
2168 #define LVCOLUMN_V1_SIZE32W CCSIZEOF_STRUCT(LVCOLUMN32W, iSubItem)
2169 #define LVCOLUMN_V1_SIZE WINELIB_NAME_AW(LVCOLUMN_V1_SIZE)
2171 #define LV_COLUMN LVCOLUMN
2174 typedef struct tagNMLISTVIEW
2176 NMHDR hdr;
2177 INT32 iItem;
2178 INT32 iSubItem;
2179 UINT32 uNewState;
2180 UINT32 uOldState;
2181 UINT32 uChanged;
2182 POINT32 ptAction;
2183 LPARAM lParam;
2184 } NMLISTVIEW, *LPNMLISTVIEW;
2186 #define LPNM_LISTVIEW LPNMLISTVIEW
2187 #define NM_LISTVIEW NMLISTVIEW
2190 typedef struct tagLVDISPINFO
2192 NMHDR hdr;
2193 LVITEM32A item;
2194 } NMLVDISPINFO32A, *LPNMLVDISPINFO32A;
2196 typedef struct tagLVDISPINFOW
2198 NMHDR hdr;
2199 LVITEM32W item;
2200 } NMLVDISPINFO32W, *LPNMLVDISPINFO32W;
2202 #define NMLVDISPINFO WINELIB_NAME_AW(NMLVDISPINFO)
2203 #define LPNMLVDISPINFO WINELIB_NAME_AW(LPNMLVDISPINFO)
2205 #define LV_DISPINFO NMLVDISPINFO
2208 typedef struct tagLVHITTESTINFO
2210 POINT32 pt;
2211 UINT32 flags;
2212 INT32 iItem;
2213 INT32 iSubItem;
2214 } LVHITTESTINFO, *LPLVHITTESTINFO;
2216 #define LV_HITTESTINFO LVHITTESTINFO
2217 #define _LV_HITTESTINFO tagLVHITTESTINFO
2218 #define LVHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(LVHITTESTINFO,iItem)
2220 typedef struct tagLVFINDINFO
2222 UINT32 flags;
2223 LPCSTR psz;
2224 LPARAM lParam;
2225 POINT32 pt;
2226 UINT32 vkDirection;
2227 } LVFINDINFO, *LPLVFINDINFO;
2229 #define LV_FINDINFO LVFINDINFO
2231 typedef struct tagTCHITTESTINFO
2233 POINT32 pt;
2234 UINT32 flags;
2235 } TCHITTESTINFO, *LPTCHITTESTINFO;
2237 #define TC_HITTESTINFO TCHITTESTINFO
2239 typedef INT32 (CALLBACK *PFNLVCOMPARE)(LPARAM, LPARAM, LPARAM);
2241 #define ListView_SetBkColor(hwnd,clrBk) \
2242 (BOOL32)SendMessage32A((hwnd),LVM_SETBKCOLOR,0,(LPARAM)(COLORREF)(clrBk))
2243 #define ListView_GetImageList(hwnd,iImageList) \
2244 (HIMAGELIST)SendMessage32A((hwnd),LVM_GETIMAGELIST,(WPARAM)(INT32)(iImageList),0L)
2245 #define ListView_SetImageList(hwnd,himl,iImageList) \
2246 (HIMAGELIST)(UINT32)SendMessage32A((hwnd),LVM_SETIMAGELIST,(WPARAM32)(iImageList),(LPARAM)(UINT32)(HIMAGELIST)(himl))
2247 #define ListView_GetItemCount(hwnd) \
2248 (INT32)SendMessage32A((hwnd),LVM_GETITEMCOUNT,0,0L)
2249 #define ListView_GetItem32A(hwnd,pitem) \
2250 (BOOL32)SendMessage32A((hwnd),LVM_GETITEM32A,0,(LPARAM)(LVITEM32A *)(pitem))
2251 #define ListView_GetItem32W(hwnd,pitem) \
2252 (BOOL32)SendMessage32W((hwnd),LVM_GETITEM32W,0,(LPARAM)(LVITEM32W *)(pitem))
2253 #define ListView_GetItem WINELIB_NAME_AW(ListView_GetItem)
2254 #define ListView_HitTest(hwnd,pinfo) \
2255 (INT32)SendMessage32A((hwnd),LVMHITTEST,0,(LPARAM)(LPLVHITTESTINFO)(pinfo))
2256 #define ListView_InsertItem32A(hwnd,pitem) \
2257 (INT32)SendMessage32A((hwnd),LVM_INSERTITEM32A,0,(LPARAM)(const LVITEM32A *)(pitem))
2258 #define ListView_InsertItem32W(hwnd,pitem) \
2259 (INT32)SendMessage32W((hwnd),LVM_INSERTITEM32W,0,(LPARAM)(const LVITEM32W *)(pitem))
2260 #define ListView_InsertItem WINELIB_NAME_AW(ListView_InsertItem)
2261 #define ListView_DeleteAllItems(hwnd) \
2262 (BOOL32)SendMessage32A((hwnd),LVM_DELETEALLITEMS,0,0L)
2263 #define ListView_InsertColumn32A(hwnd,iCol,pcol) \
2264 (INT32)SendMessage32A((hwnd),LVM_INSERTCOLUMN32A,(WPARAM32)(INT32)(iCol),(LPARAM)(const LVCOLUMN32A *)(pcol))
2265 #define ListView_InsertColumn32W(hwnd,iCol,pcol) \
2266 (INT32)SendMessage32W((hwnd),LVM_INSERTCOLUMN32W,(WPARAM32)(INT32)(iCol),(LPARAM)(const LVCOLUMN32W *)(pcol))
2267 #define ListView_InsertColumn WINELIB_NAME_AW(ListView_InsertColumn)
2268 #define ListView_SortItems(hwndLV,_pfnCompare,_lPrm) \
2269 (BOOL32)SendMessage32A((hwndLV),LVM_SORTITEMS,(WPARAM32)(LPARAM)_lPrm,(LPARAM)(PFNLVCOMPARE)_pfnCompare)
2270 #define ListView_SetItemPosition(hwndLV, i, x, y) \
2271 (BOOL32)SendMessage32A((hwndLV),LVM_SETITEMPOSITION,(WPARAM32)(INT32)(i),MAKELPARAM((x),(y)))
2272 #define ListView_GetSelectedCount(hwndLV) \
2273 (UINT32)SendMessage32A((hwndLV),LVM_GETSELECTEDCOUNT,0,0L)
2276 /* Tab Control */
2278 #define WC_TABCONTROL16 "SysTabControl"
2279 #define WC_TABCONTROL32A "SysTabControl32"
2280 #define WC_TABCONTROL32W L"SysTabControl32"
2282 #define WC_TABCONTROL WINELIB_NAME_AW(WC_TABCONTROL)
2284 /* tab control styles */
2285 #define TCS_SCROLLOPPOSITE 0x0001 // assumes multiline tab
2286 #define TCS_BOTTOM 0x0002
2287 #define TCS_RIGHT 0x0002
2288 #define TCS_MULTISELECT 0x0004 // allow multi-select in button mode
2289 #define TCS_FORCEICONLEFT 0x0010
2290 #define TCS_FORCELABELLEFT 0x0020
2291 #define TCS_HOTTRACK 0x0040
2292 #define TCS_VERTICAL 0x0080
2293 #define TCS_TABS 0x0000
2294 #define TCS_BUTTONS 0x0100
2295 #define TCS_SINGLELINE 0x0000
2296 #define TCS_MULTILINE 0x0200
2297 #define TCS_RIGHTJUSTIFY 0x0000
2298 #define TCS_FIXEDWIDTH 0x0400
2299 #define TCS_RAGGEDRIGHT 0x0800
2300 #define TCS_FOCUSONBUTTONDOWN 0x1000
2301 #define TCS_OWNERDRAWFIXED 0x2000
2302 #define TCS_TOOLTIPS 0x4000
2303 #define TCS_FOCUSNEVER 0x8000
2305 #define TCM_FIRST 0x1300
2307 #define TCM_GETIMAGELIST (TCM_FIRST + 2)
2308 #define TCM_SETIMAGELIST (TCM_FIRST + 3)
2309 #define TCM_GETITEMCOUNT (TCM_FIRST + 4)
2310 #define TCM_GETITEM (TCM_FIRST + 5)
2311 #define TCM_SETITEM (TCM_FIRST + 6)
2312 #define TCM_INSERTITEM (TCM_FIRST + 7)
2313 #define TCM_DELETEITEM (TCM_FIRST + 8)
2314 #define TCM_DELETEALLITEMS (TCM_FIRST + 9)
2315 #define TCM_GETITEMRECT (TCM_FIRST + 10)
2316 #define TCM_GETCURSEL (TCM_FIRST + 11)
2317 #define TCM_SETCURSEL (TCM_FIRST + 12)
2318 #define TCM_HITTEST (TCM_FIRST + 13)
2319 #define TCM_SETITEMEXTRA (TCM_FIRST + 14)
2320 #define TCM_ADJUSTRECT (TCM_FIRST + 40)
2321 #define TCM_SETITEMSIZE (TCM_FIRST + 41)
2322 #define TCM_REMOVEIMAGE (TCM_FIRST + 42)
2323 #define TCM_SETPADDING (TCM_FIRST + 43)
2324 #define TCM_GETROWCOUNT (TCM_FIRST + 44)
2325 #define TCM_GETTOOLTIPS (TCM_FIRST + 45)
2326 #define TCM_SETTOOLTIPS (TCM_FIRST + 46)
2327 #define TCM_GETCURFOCUS (TCM_FIRST + 47)
2328 #define TCM_SETCURFOCUS (TCM_FIRST + 48)
2329 #define TCM_SETMINTTABWIDTH (TCM_FIRST + 49)
2330 #define TCM_DESELECTALL (TCM_FIRST + 50)
2332 #define TCIF_TEXT 0x0001
2333 #define TCIF_IMAGE 0x0002
2334 #define TCIF_RTLREADING 0x0004
2335 #define TCIF_PARAM 0x0008
2337 typedef struct tagTCITEM {
2338 UINT32 mask;
2339 UINT32 lpReserved1;
2340 UINT32 lpReserved2;
2341 LPSTR pszText;
2342 int cchTextMax;
2343 int iImage;
2344 LPARAM lParam;
2345 } TCITEM, *LPTCITEM;
2347 #define TCN_FIRST (0U-550U)
2348 #define TCN_LAST (0U-580U)
2349 #define TCN_KEYDOWN (TCN_FIRST - 0)
2350 #define TCN_SELCHANGE (TCN_FIRST - 1)
2351 #define TCN_SELCHANGING (TCN_FIRST - 2)
2354 /* ComboBoxEx control */
2356 #define WC_COMBOBOXEX32A "ComboBoxEx32"
2357 #define WC_COMBOBOXEX32W L"ComboBoxEx32"
2358 #define WC_COMBOBOXEX WINELIB_NAME_AW(WC_COMBOBOXEX)
2360 #define CBEM_INSERTITEM32A (WM_USER+1)
2361 #define CBEM_INSERTITEM32W (WM_USER+11)
2362 #define CBEM_INSERTITEM WINELIB_NAME_AW(CBEM_INSERTITEM)
2363 #define CBEM_SETIMAGELIST (WM_USER+2)
2364 #define CBEM_GETIMAGELIST (WM_USER+3)
2365 #define CBEM_GETITEM32A (WM_USER+4)
2366 #define CBEM_GETITEM32W (WM_USER+13)
2367 #define CBEM_GETITEM WINELIB_NAME_AW(CBEM_GETITEM)
2368 #define CBEM_SETITEM32A (WM_USER+5)
2369 #define CBEM_SETITEM32W (WM_USER+12)
2370 #define CBEM_SETITEM WINELIB_NAME_AW(CBEM_SETITEM)
2371 #define CBEM_GETCOMBOCONTROL (WM_USER+6)
2372 #define CBEM_GETEDITCONTROL (WM_USER+7)
2373 #define CBEM_SETEXSTYLE (WM_USER+8)
2374 #define CBEM_GETEXSTYLE (WM_USER+9)
2375 #define CBEM_GETEXTENDEDSTYLE (WM_USER+9)
2376 #define CBEM_SETEXTENDEDSTYLE (WM_USER+14)
2377 #define CBEM_HASEDITCHANGED (WM_USER+10)
2378 #define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
2379 #define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
2381 #define CBEN_FIRST (0U-800U)
2382 #define CBEN_LAST (0U-830U)
2385 /* Hotkey control */
2387 #define HOTKEY_CLASS16 "msctls_hotkey"
2388 #define HOTKEY_CLASS32A "msctls_hotkey32"
2389 #define HOTKEY_CLASS32W L"msctls_hotkey32"
2390 #define HOTKEY_CLASS WINELIB_NAME_AW(HOTKEY_CLASS)
2392 #define HOTKEYF_SHIFT 0x01
2393 #define HOTKEYF_CONTROL 0x02
2394 #define HOTKEYF_ALT 0x04
2395 #define HOTKEYF_EXT 0x08
2397 #define HKCOMB_NONE 0x0001
2398 #define HKCOMB_S 0x0002
2399 #define HKCOMB_C 0x0004
2400 #define HKCOMB_A 0x0008
2401 #define HKCOMB_SC 0x0010
2402 #define HKCOMB_SA 0x0020
2403 #define HKCOMB_CA 0x0040
2404 #define HKCOMB_SCA 0x0080
2406 #define HKM_SETHOTKEY (WM_USER+1)
2407 #define HKM_GETHOTKEY (WM_USER+2)
2408 #define HKM_SETRULES (WM_USER+3)
2411 /* animate control */
2413 #define ANIMATE_CLASS32A "SysAnimate32"
2414 #define ANIMATE_CLASS32W L"SysAnimate32"
2415 #define ANIMATE_CLASS WINELIB_NAME_AW(ANIMATE_CLASS)
2417 #define ACS_CENTER 0x0001
2418 #define ACS_TRANSPARENT 0x0002
2419 #define ACS_AUTOPLAY 0x0004
2420 #define ACS_TIMER 0x0008 /* no threads, just timers */
2422 #define ACM_OPEN32A (WM_USER+100)
2423 #define ACM_OPEN32W (WM_USER+103)
2424 #define ACM_OPEN WINELIB_NAME_AW(ACM_OPEN)
2425 #define ACM_PLAY (WM_USER+101)
2426 #define ACM_STOP (WM_USER+102)
2428 #define ACN_START 1
2429 #define ACN_STOP 2
2431 #define Animate_Create32A(hwndP,id,dwStyle,hInstance) \
2432 CreateWindow32A(ANIMATE_CLASS32A,NULL,dwStyle,0,0,0,0,hwndP,(HMENU32)(id),hInstance,NULL)
2433 #define Animate_Create32W(hwndP,id,dwStyle,hInstance) \
2434 CreateWindow32W(ANIMATE_CLASS32W,NULL,dwStyle,0,0,0,0,hwndP,(HMENU32)(id),hInstance,NULL)
2435 #define Animate_Create WINELIB_NAME_AW(Animate_Create)
2436 #define Animate_Open32A(hwnd,szName) \
2437 (BOOL32)SendMessage32A(hwnd,ACM_OPEN32A,0,(LPARAM)(LPSTR)(szName))
2438 #define Animate_Open32W(hwnd,szName) \
2439 (BOOL32)SendMessage32W(hwnd,ACM_OPEN32W,0,(LPARAM)(LPWSTR)(szName))
2440 #define Animate_Open WINELIB_NAME_AW(Animate_Open)
2441 #define Animate_OpenEx32A(hwnd,hInst,szName) \
2442 (BOOL32)SendMessage32A(hwnd,ACM_OPEN32A,(WPARAM32)hInst,(LPARAM)(LPSTR)(szName))
2443 #define Animate_OpenEx32W(hwnd,hInst,szName) \
2444 (BOOL32)SendMessage32W(hwnd,ACM_OPEN32W,(WPARAM32)hInst,(LPARAM)(LPWSTR)(szName))
2445 #define Animate_OpenEx WINELIB_NAME_AW(Animate_OpenEx)
2446 #define Animate_Play(hwnd,from,to,rep) \
2447 (BOOL32)SendMessage32A(hwnd,ACM_PLAY,(WPARAM32)(UINT32)(rep),(LPARAM)MAKELONG(from,to))
2448 #define Animate_Stop(hwnd) \
2449 (BOOL32)SendMessage32A(hwnd,ACM_STOP,0,0)
2450 #define Animate_Close(hwnd) \
2451 (BOOL32)SendMessage32A(hwnd,ACM_OPEN32A,0,0)
2452 #define Animate_Seek(hwnd,frame) \
2453 (BOOL32)SendMessage32A(hwnd,ACM_PLAY,1,(LPARAM)MAKELONG(frame,frame))
2456 /**************************************************************************
2457 * IP Address control
2460 #define WC_IPADDRESS32A "SysIPAddress32"
2461 #define WC_IPADDRESS32W L"SysIPAddress32"
2462 #define WC_IPADDRESS WINELIB_NAME_AW(WC_IPADDRESS)
2464 #define IPM_CLEARADDRESS (WM_USER+100)
2465 #define IPM_SETADDRESS (WM_USER+101)
2466 #define IPM_GETADDRESS (WM_USER+102)
2467 #define IPM_SETRANGE (WM_USER+103)
2468 #define IPM_SETFOCUS (WM_USER+104)
2469 #define IPM_ISBLANK (WM_USER+105)
2471 #define IPN_FIELDCHANGED (IPN_FIRST-0)
2473 typedef struct tagNMIPADDRESS
2475 NMHDR hdr;
2476 INT32 iField;
2477 INT32 iValue;
2478 } NMIPADDRESS, *LPNMIPADDRESS;
2480 #define MAKEIPRANGE(low,high) \
2481 ((LPARAM)(WORD)(((BYTE)(high)<<8)+(BYTE)(low)))
2482 #define MAKEIPADDRESS(b1,b2,b3,b4) \
2483 ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<16)+((DWORD)(b3)<<8)+((DWORD)(b4))))
2485 #define FIRST_IPADDRESS(x) (((x)>>24)&0xff)
2486 #define SECOND_IPADDRESS(x) (((x)>>16)&0xff)
2487 #define THIRD_IPADDRESS(x) (((x)>>8)&0xff)
2488 #define FOURTH_IPADDRESS(x) ((x)&0xff)
2491 /**************************************************************************
2492 * Native Font control
2495 #define WC_NATIVEFONTCTL32A "NativeFontCtl"
2496 #define WC_NATIVEFONTCTL32W L"NativeFontCtl"
2497 #define WC_NATIVEFONTCTL WINELIB_NAME_AW(WC_NATIVEFONTCTL)
2499 #define NFS_EDIT 0x0001
2500 #define NFS_STATIC 0x0002
2501 #define NFS_LISTCOMBO 0x0004
2502 #define NFS_BUTTON 0x0008
2503 #define NFS_ALL 0x0010
2506 /**************************************************************************
2507 * Month calendar control
2510 #define MONTHCAL_CLASS32A "SysMonthCal32"
2511 #define MONTHCAL_CLASS32W L"SysMonthCal32"
2512 #define MONTHCAL_CLASS WINELIB_NAME_AW(MONTHCAL_CLASS)
2515 /**************************************************************************
2516 * Date and time picker control
2519 #define DATETIMEPICK_CLASS32A "SysDateTimePick32"
2520 #define DATETIMEPICK_CLASS32W L"SysDateTimePick32"
2521 #define DATETIMEPICK_CLASS WINELIB_NAME_AW(DATETIMEPICK_CLASS)
2524 /**************************************************************************
2525 * UNDOCUMENTED functions
2528 /* private heap memory functions */
2530 LPVOID WINAPI COMCTL32_Alloc (DWORD);
2531 LPVOID WINAPI COMCTL32_ReAlloc (LPVOID, DWORD);
2532 BOOL32 WINAPI COMCTL32_Free (LPVOID);
2533 DWORD WINAPI COMCTL32_GetSize (LPVOID);
2536 INT32 WINAPI Str_GetPtr32A (LPCSTR, LPSTR, INT32);
2537 BOOL32 WINAPI Str_SetPtr32A (LPSTR *, LPCSTR);
2538 INT32 WINAPI Str_GetPtr32W (LPCWSTR, LPWSTR, INT32);
2539 BOOL32 WINAPI Str_SetPtr32W (LPWSTR *, LPCWSTR);
2540 #define Str_GetPtr WINELIB_NAME_AW(Str_GetPtr)
2541 #define Str_SetPtr WINELIB_NAME_AW(Str_SetPtr)
2544 /* Dynamic Storage Array */
2546 typedef struct _DSA
2548 INT32 nItemCount;
2549 LPVOID pData;
2550 INT32 nMaxCount;
2551 INT32 nItemSize;
2552 INT32 nGrow;
2553 } DSA, *HDSA;
2555 HDSA WINAPI DSA_Create (INT32, INT32);
2556 BOOL32 WINAPI DSA_DeleteAllItems (const HDSA);
2557 INT32 WINAPI DSA_DeleteItem (const HDSA, INT32);
2558 BOOL32 WINAPI DSA_Destroy (const HDSA);
2559 BOOL32 WINAPI DSA_GetItem (const HDSA, INT32, LPVOID);
2560 LPVOID WINAPI DSA_GetItemPtr (const HDSA, INT32);
2561 INT32 WINAPI DSA_InsertItem (const HDSA, INT32, LPVOID);
2562 BOOL32 WINAPI DSA_SetItem (const HDSA, INT32, LPVOID);
2564 typedef INT32 (CALLBACK *DSAENUMPROC)(LPVOID, DWORD);
2565 VOID WINAPI DSA_EnumCallback (const HDSA, DSAENUMPROC, LPARAM);
2566 BOOL32 WINAPI DSA_DestroyCallback (const HDSA, DSAENUMPROC, LPARAM);
2569 /* Dynamic Pointer Array */
2571 typedef struct _DPA
2573 INT32 nItemCount;
2574 LPVOID *ptrs;
2575 HANDLE32 hHeap;
2576 INT32 nGrow;
2577 INT32 nMaxCount;
2578 } DPA, *HDPA;
2580 HDPA WINAPI DPA_Create (INT32);
2581 HDPA WINAPI DPA_CreateEx (INT32, HANDLE32);
2582 BOOL32 WINAPI DPA_Destroy (const HDPA);
2583 HDPA WINAPI DPA_Clone (const HDPA, const HDPA);
2584 LPVOID WINAPI DPA_GetPtr (const HDPA, INT32);
2585 INT32 WINAPI DPA_GetPtrIndex (const HDPA, LPVOID);
2586 BOOL32 WINAPI DPA_Grow (const HDPA, INT32);
2587 BOOL32 WINAPI DPA_SetPtr (const HDPA, INT32, LPVOID);
2588 INT32 WINAPI DPA_InsertPtr (const HDPA, INT32, LPVOID);
2589 LPVOID WINAPI DPA_DeletePtr (const HDPA, INT32);
2590 BOOL32 WINAPI DPA_DeleteAllPtrs (const HDPA);
2592 typedef INT32 (CALLBACK *PFNDPACOMPARE)(LPVOID, LPVOID, LPARAM);
2593 BOOL32 WINAPI DPA_Sort (const HDPA, PFNDPACOMPARE, LPARAM);
2595 #define DPAS_SORTED 0x0001
2596 #define DPAS_INSERTBEFORE 0x0002
2597 #define DPAS_INSERTAFTER 0x0004
2599 INT32 WINAPI DPA_Search (const HDPA, LPVOID, INT32, PFNDPACOMPARE, LPARAM, UINT32);
2601 #define DPAM_SORT 0x0001
2603 BOOL32 WINAPI DPA_Merge (const HDPA, const HDPA, DWORD, PFNDPACOMPARE, LPVOID, LPARAM);
2605 typedef INT32 (CALLBACK *DPAENUMPROC)(LPVOID, DWORD);
2606 VOID WINAPI DPA_EnumCallback (const HDPA, DPAENUMPROC, LPARAM);
2607 BOOL32 WINAPI DPA_DestroyCallback (const HDPA, DPAENUMPROC, LPARAM);
2610 #define DPA_GetPtrCount(hdpa) (*(INT32*)(hdpa))
2611 #define DPA_GetPtrPtr(hdpa) (*((LPVOID**)((BYTE*)(hdpa)+sizeof(INT32))))
2612 #define DPA_FastGetPtr(hdpa,i) (DPA_GetPtrPtr(hdpa)[i])
2615 /* notification helper functions */
2617 LRESULT WINAPI COMCTL32_SendNotify (HWND32, HWND32, UINT32, LPNMHDR);
2619 /* type and functionality of last parameter is still unknown */
2620 LRESULT WINAPI COMCTL32_SendNotifyEx (HWND32, HWND32, UINT32, LPNMHDR, DWORD);
2623 * Property sheet support (callback procs)
2625 struct _PROPSHEETPAGE32A; /** need to forward declare those structs **/
2626 struct _PROPSHEETPAGE32W;
2627 struct _PSP;
2628 typedef struct _PSP *HPROPSHEETPAGE;
2631 typedef UINT32 (CALLBACK *LPFNPSPCALLBACK32A)(HWND32, UINT32, struct _PROPSHEETPAGE32A*);
2632 typedef UINT32 (CALLBACK *LPFNPSPCALLBACK32W)(HWND32, UINT32, struct _PROPSHEETPAGE32W*);
2633 typedef INT32 (CALLBACK *PFNPROPSHEETCALLBACK32)(HWND32, UINT32, LPARAM);
2634 typedef BOOL32 (CALLBACK *LPFNADDPROPSHEETPAGE)(HPROPSHEETPAGE, LPARAM);
2635 typedef BOOL32 (CALLBACK *LPFNADDPROPSHEETPAGES)(LPVOID, LPFNADDPROPSHEETPAGE, LPARAM);
2637 /* c++ likes nameless unions whereas c doesnt */
2638 /* (used in property sheet structures) */
2639 #ifdef __cplusplus
2640 #define DUMMYUNIONNAME1
2641 #define DUMMYUNIONNAME2
2642 #define DUMMYUNIONNAME3
2643 #define DUMMYUNIONNAME4
2644 #define DUMMYUNIONNAME5
2645 #else
2646 #define DUMMYUNIONNAME1 u1
2647 #define DUMMYUNIONNAME2 u2
2648 #define DUMMYUNIONNAME3 u3
2649 #define DUMMYUNIONNAME4 u4
2650 #define DUMMYUNIONNAME5 u5
2651 #endif
2654 * Property sheet support (structures)
2656 typedef struct _PROPSHEETPAGE32A
2658 DWORD dwSize;
2659 DWORD dwFlags;
2660 HINSTANCE32 hInstance;
2661 union
2663 LPCSTR pszTemplate;
2664 LPCDLGTEMPLATE pResource;
2665 }DUMMYUNIONNAME1;
2666 union
2668 HICON32 hIcon;
2669 LPCSTR pszIcon;
2670 }DUMMYUNIONNAME2;
2671 LPCSTR pszTitle;
2672 DLGPROC32 pfnDlgProc;
2673 LPARAM lParam;
2674 LPFNPSPCALLBACK32A pfnCallback;
2675 UINT32* pcRefParent;
2676 LPCWSTR pszHeaderTitle;
2677 LPCWSTR pszHeaderSubTitle;
2678 } PROPSHEETPAGE32A, *LPPROPSHEETPAGE32A;
2680 typedef const PROPSHEETPAGE32A *LPCPROPSHEETPAGE32A;
2682 typedef struct _PROPSHEETPAGE32W
2684 DWORD dwSize;
2685 DWORD dwFlags;
2686 HINSTANCE32 hInstance;
2687 union
2689 LPCWSTR pszTemplate;
2690 LPCDLGTEMPLATE pResource;
2691 }DUMMYUNIONNAME1;
2692 union
2694 HICON32 hIcon;
2695 LPCWSTR pszIcon;
2696 }DUMMYUNIONNAME2;
2697 LPCWSTR pszTitle;
2698 DLGPROC32 pfnDlgProc;
2699 LPARAM lParam;
2700 LPFNPSPCALLBACK32W pfnCallback;
2701 UINT32* pcRefParent;
2702 LPCWSTR pszHeaderTitle;
2703 LPCWSTR pszHeaderSubTitle;
2704 } PROPSHEETPAGE32W, *LPPROPSHEETPAGE32W;
2706 typedef const PROPSHEETPAGE32W *LPCPROPSHEETPAGE32W;
2709 typedef struct _PROPSHEETHEADER32A
2711 DWORD dwSize;
2712 DWORD dwFlags;
2713 HWND32 hwndParent;
2714 HINSTANCE32 hInstance;
2715 union
2717 HICON32 hIcon;
2718 LPCSTR pszIcon;
2719 }DUMMYUNIONNAME1;
2720 LPCSTR pszCaption;
2721 UINT32 nPages;
2722 union
2724 UINT32 nStartPage;
2725 LPCSTR pStartPage;
2726 }DUMMYUNIONNAME2;
2727 union
2729 LPCPROPSHEETPAGE32A ppsp;
2730 HPROPSHEETPAGE* phpage;
2731 }DUMMYUNIONNAME3;
2732 PFNPROPSHEETCALLBACK32 pfnCallback;
2733 union
2735 HBITMAP32 hbmWatermark;
2736 LPCSTR pszbmWatermark;
2737 }DUMMYUNIONNAME4;
2738 HPALETTE32 hplWatermark;
2739 union
2741 HBITMAP32 hbmHeader;
2742 LPCSTR pszbmHeader;
2743 }DUMMYUNIONNAME5;
2744 } PROPSHEETHEADER32A, *LPPROPSHEETHEADER32A;
2746 typedef const PROPSHEETHEADER32A *LPCPROPSHEETHEADER32A;
2748 typedef struct _PROPSHEETHEADER32W
2750 DWORD dwSize;
2751 DWORD dwFlags;
2752 HWND32 hwndParent;
2753 HINSTANCE32 hInstance;
2754 union
2756 HICON32 hIcon;
2757 LPCSTR pszIcon;
2758 }DUMMYUNIONNAME1;
2759 LPCWSTR pszCaption;
2760 UINT32 nPages;
2761 union
2763 UINT32 nStartPage;
2764 LPCWSTR pStartPage;
2765 }DUMMYUNIONNAME2;
2766 union
2768 LPCPROPSHEETPAGE32W ppsp;
2769 HPROPSHEETPAGE* phpage;
2770 }DUMMYUNIONNAME3;
2771 PFNPROPSHEETCALLBACK32 pfnCallback;
2772 union
2774 HBITMAP32 hbmWatermark;
2775 LPCWSTR pszbmWatermark;
2776 }DUMMYUNIONNAME4;
2777 HPALETTE32 hplWatermark;
2778 union
2780 HBITMAP32 hbmHeader;
2781 LPCWSTR pszbmHeader;
2782 }DUMMYUNIONNAME5;
2783 } PROPSHEETHEADER32W, *LPPROPSHEETHEADER32W;
2785 typedef const PROPSHEETHEADER32W *LPCPROPSHEETHEADER32W;
2789 * Property sheet support (methods)
2791 INT32 WINAPI PropertySheet32A(LPCPROPSHEETHEADER32A);
2792 INT32 WINAPI PropertySheet32W(LPCPROPSHEETHEADER32W);
2793 #define PropertySheet WINELIB_NAME_AW(PropertySheet)
2794 HPROPSHEETPAGE WINAPI CreatePropertySheetPage32A(LPCPROPSHEETPAGE32A);
2795 HPROPSHEETPAGE WINAPI CreatePropertySheetPage32W(LPCPROPSHEETPAGE32W);
2796 #define CreatePropertySheetPage WINELIB_NAME_AW(CreatePropertySheetPage)
2797 BOOL32 WINAPI DestroyPropertySheetPage32(HPROPSHEETPAGE hPropPage);
2798 #define DestroyPropertySheetPage WINELIB_NAME(DestroyPropertySheetPage)
2801 * Property sheet support (UNICODE-WineLib)
2803 DECL_WINELIB_TYPE_AW(PROPSHEETPAGE)
2804 DECL_WINELIB_TYPE_AW(LPPROPSHEETPAGE)
2805 DECL_WINELIB_TYPE_AW(LPCPROPSHEETPAGE)
2806 DECL_WINELIB_TYPE_AW(PROPSHEETHEADER)
2807 DECL_WINELIB_TYPE_AW(LPPROPSHEETHEADER)
2808 DECL_WINELIB_TYPE_AW(LPCPROPSHEETHEADER)
2809 DECL_WINELIB_TYPE_AW(LPFNPSPCALLBACK)
2810 DECL_WINELIB_TYPE(PFNPROPSHEETCALLBACK)
2813 * Property sheet support (defines)
2815 #define PSP_DEFAULT 0x0000
2816 #define PSP_DLGINDIRECT 0x0001
2817 #define PSP_USEHICON 0x0002
2818 #define PSP_USEICONID 0x0004
2819 #define PSP_USETITLE 0x0008
2820 #define PSP_RTLREADING 0x0010
2822 #define PSP_HASHELP 0x0020
2823 #define PSP_USEREFPARENT 0x0040
2824 #define PSP_USECALLBACK 0x0080
2827 #define PSPCB_RELEASE 1
2828 #define PSPCB_CREATE 2
2830 #define PSH_DEFAULT 0x0000
2831 #define PSH_PROPTITLE 0x0001
2832 #define PSH_USEHICON 0x0002
2833 #define PSH_USEICONID 0x0004
2834 #define PSH_PROPSHEETPAGE 0x0008
2835 #define PSH_WIZARD 0x0020
2836 #define PSH_USEPSTARTPAGE 0x0040
2837 #define PSH_NOAPPLYNOW 0x0080
2838 #define PSH_USECALLBACK 0x0100
2839 #define PSH_HASHELP 0x0200
2840 #define PSH_MODELESS 0x0400
2841 #define PSH_RTLREADING 0x0800
2843 #define PSCB_INITIALIZED 1
2844 #define PSCB_PRECREATE 2
2846 #define PSN_FIRST (0U-200U)
2847 #define PSN_LAST (0U-299U)
2850 #define PSN_SETACTIVE (PSN_FIRST-0)
2851 #define PSN_KILLACTIVE (PSN_FIRST-1)
2852 // #define PSN_VALIDATE (PSN_FIRST-1)
2853 #define PSN_APPLY (PSN_FIRST-2)
2854 #define PSN_RESET (PSN_FIRST-3)
2855 // #define PSN_CANCEL (PSN_FIRST-3)
2856 #define PSN_HELP (PSN_FIRST-5)
2857 #define PSN_WIZBACK (PSN_FIRST-6)
2858 #define PSN_WIZNEXT (PSN_FIRST-7)
2859 #define PSN_WIZFINISH (PSN_FIRST-8)
2860 #define PSN_QUERYCANCEL (PSN_FIRST-9)
2862 #define PSNRET_NOERROR 0
2863 #define PSNRET_INVALID 1
2864 #define PSNRET_INVALID_NOCHANGEPAGE 2
2867 #define PSM_SETCURSEL (WM_USER + 101)
2868 #define PSM_REMOVEPAGE (WM_USER + 102)
2869 #define PSM_ADDPAGE (WM_USER + 103)
2870 #define PSM_CHANGED (WM_USER + 104)
2871 #define PSM_RESTARTWINDOWS (WM_USER + 105)
2872 #define PSM_REBOOTSYSTEM (WM_USER + 106)
2873 #define PSM_CANCELTOCLOSE (WM_USER + 107)
2874 #define PSM_QUERYSIBLINGS (WM_USER + 108)
2875 #define PSM_UNCHANGED (WM_USER + 109)
2876 #define PSM_APPLY (WM_USER + 110)
2877 #define PSM_SETTITLE32A (WM_USER + 111)
2878 #define PSM_SETTITLE32W (WM_USER + 120)
2879 #define PSM_SETTITLE WINELIB_NAME_AW(PSM_SETTITLE)
2880 #define PSM_SETWIZBUTTONS (WM_USER + 112)
2881 #define PSM_PRESSBUTTON (WM_USER + 113)
2882 #define PSM_SETCURSELID (WM_USER + 114)
2883 #define PSM_SETFINISHTEXT32A (WM_USER + 115)
2884 #define PSM_SETFINISHTEXT32W (WM_USER + 121)
2885 #define PSM_SETFINISHTEXT WINELIB_NAME_AW(PSM_SETFINISHTEXT)
2886 #define PSM_GETTABCONTROL (WM_USER + 116)
2887 #define PSM_ISDIALOGMESSAGE (WM_USER + 117)
2888 #define PSM_GETCURRENTPAGEHWND (WM_USER + 118)
2890 #define PSWIZB_BACK 0x00000001
2891 #define PSWIZB_NEXT 0x00000002
2892 #define PSWIZB_FINISH 0x00000004
2893 #define PSWIZB_DISABLEDFINISH 0x00000008
2895 #define PSBTN_BACK 0
2896 #define PSBTN_NEXT 1
2897 #define PSBTN_FINISH 2
2898 #define PSBTN_OK 3
2899 #define PSBTN_APPLYNOW 4
2900 #define PSBTN_CANCEL 5
2901 #define PSBTN_HELP 6
2902 #define PSBTN_MAX 6
2904 #define ID_PSRESTARTWINDOWS 0x2
2905 #define ID_PSREBOOTSYSTEM (ID_PSRESTARTWINDOWS | 0x1)
2908 #define WIZ_CXDLG 276
2909 #define WIZ_CYDLG 140
2911 #define WIZ_CXBMP 80
2913 #define WIZ_BODYX 92
2914 #define WIZ_BODYCX 184
2916 #define PROP_SM_CXDLG 212
2917 #define PROP_SM_CYDLG 188
2919 #define PROP_MED_CXDLG 227
2920 #define PROP_MED_CYDLG 215
2922 #define PROP_LG_CXDLG 252
2923 #define PROP_LG_CYDLG 218
2926 * Property sheet support (macros)
2929 #define PropSheet_SetCurSel(hDlg, hpage, index) \
2930 SNDMSG(hDlg, PSM_SETCURSEL, (WPARAM)index, (LPARAM)hpage)
2932 #define PropSheet_RemovePage(hDlg, index, hpage) \
2933 SNDMSG(hDlg, PSM_REMOVEPAGE, index, (LPARAM)hpage)
2935 #define PropSheet_AddPage(hDlg, hpage) \
2936 SNDMSG(hDlg, PSM_ADDPAGE, 0, (LPARAM)hpage)
2938 #define PropSheet_Changed(hDlg, hwnd) \
2939 SNDMSG(hDlg, PSM_CHANGED, (WPARAM)hwnd, 0L)
2941 #define PropSheet_RestartWindows(hDlg) \
2942 SNDMSG(hDlg, PSM_RESTARTWINDOWS, 0, 0L)
2944 #define PropSheet_RebootSystem(hDlg) \
2945 SNDMSG(hDlg, PSM_REBOOTSYSTEM, 0, 0L)
2947 #define PropSheet_CancelToClose(hDlg) \
2948 PostMessage(hDlg, PSM_CANCELTOCLOSE, 0, 0L)
2950 #define PropSheet_QuerySiblings(hDlg, wParam, lParam) \
2951 SNDMSG(hDlg, PSM_QUERYSIBLINGS, wParam, lParam)
2953 #define PropSheet_UnChanged(hDlg, hwnd) \
2954 SNDMSG(hDlg, PSM_UNCHANGED, (WPARAM)hwnd, 0L)
2956 #define PropSheet_Apply(hDlg) \
2957 SNDMSG(hDlg, PSM_APPLY, 0, 0L)
2959 #define PropSheet_SetTitle(hDlg, wStyle, lpszText)\
2960 SNDMSG(hDlg, PSM_SETTITLE, wStyle, (LPARAM)(LPCTSTR)lpszText)
2962 #define PropSheet_SetWizButtons(hDlg, dwFlags) \
2963 PostMessage(hDlg, PSM_SETWIZBUTTONS, 0, (LPARAM)dwFlags)
2965 #define PropSheet_PressButton(hDlg, iButton) \
2966 PostMessage(hDlg, PSM_PRESSBUTTON, (WPARAM)iButton, 0)
2968 #define PropSheet_SetCurSelByID(hDlg, id) \
2969 SNDMSG(hDlg, PSM_SETCURSELID, 0, (LPARAM)id)
2971 #define PropSheet_SetFinishText(hDlg, lpszText) \
2972 SNDMSG(hDlg, PSM_SETFINISHTEXT, 0, (LPARAM)lpszText)
2974 #define PropSheet_GetTabControl(hDlg) \
2975 (HWND)SNDMSG(hDlg, PSM_GETTABCONTROL, 0, 0)
2977 #define PropSheet_IsDialogMessage(hDlg, pMsg) \
2978 (BOOL)SNDMSG(hDlg, PSM_ISDIALOGMESSAGE, 0, (LPARAM)pMsg)
2980 #define PropSheet_GetCurrentPageHwnd(hDlg) \
2981 (HWND)SNDMSG(hDlg, PSM_GETCURRENTPAGEHWND, 0, 0L)
2984 #ifdef __cplusplus
2986 #endif
2988 #endif /* __WINE_COMMCTRL_H */