2 * Common controls definitions
5 #ifndef __WINE_COMMCTRL_H
6 #define __WINE_COMMCTRL_H
10 VOID WINAPI
GetEffectiveClientRect (HWND32
, LPRECT32
, LPINT32
);
13 void WINAPI
InitCommonControls(void);
15 typedef struct tagINITCOMMONCONTROLSEX
{
18 } INITCOMMONCONTROLSEX
, *LPINITCOMMONCONTROLSEX
;
20 BOOL32 WINAPI
InitCommonControlsEx(LPINITCOMMONCONTROLSEX
);
22 #define ICC_LISTVIEW_CLASSES 0x00000001 /* listview, header */
23 #define ICC_TREEVIEW_CLASSES 0x00000002 /* treeview, tooltips */
24 #define ICC_BAR_CLASSES 0x00000004 /* toolbar, statusbar, trackbar, tooltips */
25 #define ICC_TAB_CLASSES 0x00000008 /* tab, tooltips */
26 #define ICC_UPDOWN_CLASS 0x00000010 /* updown */
27 #define ICC_PROGRESS_CLASS 0x00000020 /* progress */
28 #define ICC_HOTKEY_CLASS 0x00000040 /* hotkey */
29 #define ICC_ANIMATE_CLASS 0x00000080 /* animate */
30 #define ICC_WIN95_CLASSES 0x000000FF
31 #define ICC_DATE_CLASSES 0x00000100 /* month picker, date picker, time picker, updown */
32 #define ICC_USEREX_CLASSES 0x00000200 /* comboex */
33 #define ICC_COOL_CLASSES 0x00000400 /* rebar (coolbar) */
34 #define ICC_INTERNET_CLASSES 0x00000800 /* IP address, ... */
35 #define ICC_PAGESCROLLER_CLASS 0x00001000 /* page scroller */
36 #define ICC_NATIVEFNTCTL_CLASS 0x00002000 /* native font control ???*/
39 /* common control styles */
41 #define CCS_TOP 0x00000001L
42 #define CCS_NOMOVEY 0x00000002L
43 #define CCS_BOTTOM 0x00000003L
44 #define CCS_NORESIZE 0x00000004L
45 #define CCS_NOPARENTALIGN 0x00000008L
46 #define CCS_ADJUSTABLE 0x00000020L
47 #define CCS_NODIVIDER 0x00000040L
48 #define CCS_VERT 0x00000080L
49 #define CCS_LEFT (CCS_VERT|CCS_TOP)
50 #define CCS_RIGHT (CCS_VERT|CCS_BOTTOM)
51 #define CCS_NOMOVEX (CCS_VERT|CCS_NOMOVEY)
54 /* common control shared messages */
55 #define CCM_FIRST 0x2000
57 #define CCM_SETBKCOLOR (CCM_FIRST+1) /* lParam = bkColor */
60 /* common notification codes */
61 #define NM_FIRST (0U-0U)
62 #define NM_LAST (0U-99U)
64 #define NM_OUTOFMEMORY (NM_FIRST-1)
65 #define NM_CLICK (NM_FIRST-2)
66 #define NM_DBLCLK (NM_FIRST-3)
67 #define NM_RETURN (NM_FIRST-4)
68 #define NM_RCLICK (NM_FIRST-5)
69 #define NM_RDBLCLK (NM_FIRST-6)
70 #define NM_SETFOCUS (NM_FIRST-7)
71 #define NM_KILLFOCUS (NM_FIRST-8)
72 #define NM_CUSTOMDRAW (NM_FIRST-12)
73 #define NM_HOVER (NM_FIRST-13)
74 #define NM_NCHITTEST (NM_FIRST-14)
75 #define NM_KEYDOWN (NM_FIRST-15)
76 #define NM_RELEASEDCAPTURE (NM_FIRST-16)
77 #define NM_SETCURSOR (NM_FIRST-17)
78 #define NM_CHAR (NM_FIRST-18)
79 #define NM_TOOLTIPSCREATED (NM_FIRST-19)
82 /* callback constants */
83 #define LPSTR_TEXTCALLBACK32A ((LPSTR)-1L)
84 #define LPSTR_TEXTCALLBACK32W ((LPWSTR)-1L)
85 #define LPSTR_TEXTCALLBACK WINELIB_NAME_AW(LPSTR_TEXTCALLBACK)
88 /* owner drawn types */
89 #define ODT_HEADER 100
91 #define ODT_LISTVIEW 102
96 #define STATUSCLASSNAME16 "msctls_statusbar"
97 #define STATUSCLASSNAME32A "msctls_statusbar32"
98 #define STATUSCLASSNAME32W L"msctls_statusbar32"
99 #define STATUSCLASSNAME WINELIB_NAME_AW(STATUSCLASSNAME)
101 #define SB_SETTEXT32A (WM_USER+1)
102 #define SB_SETTEXT32W (WM_USER+11)
103 #define SB_SETTEXT WINELIB_NAME_AW(SB_SETTEXT)
104 #define SB_GETTEXT32A (WM_USER+2)
105 #define SB_GETTEXT32W (WM_USER+13)
106 #define SB_GETTEXT WINELIB_NAME_AW(SB_GETTEXT)
107 #define SB_GETTEXTLENGTH32A (WM_USER+3)
108 #define SB_GETTEXTLENGTH32W (WM_USER+12)
109 #define SB_GETTEXTLENGTH WINELIB_NAME_AW(SB_GETTEXTLENGTH)
111 #define SB_SETPARTS (WM_USER+4)
112 #define SB_GETPARTS (WM_USER+6)
113 #define SB_GETBORDERS (WM_USER+7)
114 #define SB_SETMINHEIGHT (WM_USER+8)
115 #define SB_SIMPLE (WM_USER+9)
116 #define SB_GETRECT (WM_USER+10)
117 #define SB_ISSIMPLE (WM_USER+14)
118 #define SB_SETICON (WM_USER+15)
119 #define SB_GETICON (WM_USER+20)
120 #define SB_SETBKCOLOR CCM_SETBKCOLOR /* lParam = bkColor */
122 #define SBT_NOBORDERS 0x0100
123 #define SBT_POPOUT 0x0200
124 #define SBT_RTLREADING 0x0400 /* not supported */
125 #define SBT_OWNERDRAW 0x1000
127 #define SBARS_SIZEGRIP 0x0100
129 #define SBN_FIRST (0U-880U)
130 #define SBN_LAST (0U-899U)
131 #define SBN_SIMPLEMODECHANGE (SBN_FIRST-0)
133 void WINAPI
MenuHelp (UINT32
, WPARAM32
, LPARAM
, HMENU32
,
134 HINSTANCE32
, HWND32
, LPUINT32
);
139 #define UPDOWN_CLASS16 "msctls_updown"
140 #define UPDOWN_CLASS32A "msctls_updown32"
141 #define UPDOWN_CLASS32W L"msctls_updown32" /*FIXME*/
142 #define UPDOWN_CLASS WINELIB_NAME_AW(UPDOWN_CLASS)
144 typedef struct tagUDACCEL
150 #define UD_MAXVAL 0x7fff
151 #define UD_MINVAL 0x8001
153 #define UDS_WRAP 0x0001
154 #define UDS_SETBUDDYINT 0x0002
155 #define UDS_ALIGNRIGHT 0x0004
156 #define UDS_ALIGNLEFT 0x0008
157 #define UDS_AUTOBUDDY 0x0010
158 #define UDS_ARROWKEYS 0x0020
159 #define UDS_HORZ 0x0040
160 #define UDS_NOTHOUSANDS 0x0080
162 #define UDN_FIRST (0U-721)
163 #define UDN_DELTAPOS (UDN_FIRST-1)
165 #define UDM_SETRANGE (WM_USER+101)
166 #define UDM_GETRANGE (WM_USER+102)
167 #define UDM_SETPOS (WM_USER+103)
168 #define UDM_GETPOS (WM_USER+104)
169 #define UDM_SETBUDDY (WM_USER+105)
170 #define UDM_GETBUDDY (WM_USER+106)
171 #define UDM_SETACCEL (WM_USER+107)
172 #define UDM_GETACCEL (WM_USER+108)
173 #define UDM_SETBASE (WM_USER+109)
174 #define UDM_GETBASE (WM_USER+110)
175 #define UDM_SETRANGE32 (WM_USER+111)
176 #define UDM_GETRANGE32 (WM_USER+112)
181 #define PROGRESS_CLASS32A "msctls_progress32"
182 #define PROGRESS_CLASS32W L"msctls_progress32"
183 #define PROGRESS_CLASS16 "msctls_progress"
185 #define PROGRESS_CLASS WINELIB_NAME_AW(PROGRESS_CLASS)
187 #define PBM_SETRANGE (WM_USER+1)
188 #define PBM_SETPOS (WM_USER+2)
189 #define PBM_DELTAPOS (WM_USER+3)
190 #define PBM_SETSTEP (WM_USER+4)
191 #define PBM_STEPIT (WM_USER+5)
192 #define PBM_SETRANGE32 (WM_USER+6)
193 #define PBM_GETRANGE (WM_USER+7)
194 #define PBM_GETPOS (WM_USER+8)
195 #define PBM_SETBARCOLOR (WM_USER+9)
196 #define PBM_SETBKCOLOR CCM_SETBKCOLOR
198 #define PBS_SMOOTH 0x01
199 #define PBS_VERTICAL 0x04
205 } PBRANGE
, *PPBRANGE
;
208 /* Functions prototypes */
210 HWND32 WINAPI
CreateStatusWindow32A(INT32
,LPCSTR
,HWND32
,UINT32
);
211 HWND32 WINAPI
CreateStatusWindow32W(INT32
,LPCWSTR
,HWND32
,UINT32
);
212 #define CreateStatusWindow WINELIB_NAME_AW(CreateStatusWindow)
213 HWND32 WINAPI
CreateUpDownControl(DWORD
,INT32
,INT32
,INT32
,INT32
,
214 HWND32
,INT32
,HINSTANCE32
,HWND32
,
216 VOID WINAPI
DrawStatusText32A(HDC32
,LPRECT32
,LPCSTR
,UINT32
);
217 VOID WINAPI
DrawStatusText32W(HDC32
,LPRECT32
,LPCWSTR
,UINT32
);
218 #define DrawStatusText WINELIB_NAME_AW(DrawStatusText)
223 #if defined(__WINE__) && defined(__WINE_IMAGELIST_C)
226 typedef struct _IMAGELIST
*HIMAGELIST
;
227 #endif /* __WINE__ */
229 #define CLR_NONE 0xFFFFFFFF
230 #define CLR_DEFAULT 0xFF000000
231 #define CLR_HILIGHT CLR_DEFAULT
233 #define ILC_MASK 0x0001
234 #define ILC_COLOR 0x0000
235 #define ILC_COLORDDB 0x00FE
236 #define ILC_COLOR4 0x0004
237 #define ILC_COLOR8 0x0008
238 #define ILC_COLOR16 0x0010
239 #define ILC_COLOR24 0x0018
240 #define ILC_COLOR32 0x0020
241 #define ILC_PALETTE 0x0800 /* no longer supported by M$ */
243 #define ILD_NORMAL 0x0000
244 #define ILD_TRANSPARENT 0x0001
245 #define ILD_BLEND25 0x0002
246 #define ILD_BLEND50 0x0004
247 #define ILD_MASK 0x0010
248 #define ILD_IMAGE 0x0020
249 #define ILD_ROP 0x0040
250 #define ILD_OVERLAYMASK 0x0F00
252 #define ILD_SELECTED ILD_BLEND50
253 #define ILD_FOCUS ILD_BLEND25
254 #define ILD_BLEND ILD_BLEND50
256 #define INDEXTOOVERLAYMASK(i) ((i)<<8)
258 #define ILCF_MOVE (0x00000000)
259 #define ILCF_SWAP (0x00000001)
262 typedef struct _IMAGEINFO
272 typedef struct _IMAGELISTDRAWPARAMS
282 INT32 xBitmap
; /* x offest from the upperleft of bitmap */
283 INT32 yBitmap
; /* y offset from the upperleft of bitmap */
288 } IMAGELISTDRAWPARAMS
, *LPIMAGELISTDRAWPARAMS
;
291 INT32 WINAPI
ImageList_Add(HIMAGELIST
,HBITMAP32
,HBITMAP32
);
292 INT32 WINAPI
ImageList_AddIcon (HIMAGELIST
, HICON32
);
293 INT32 WINAPI
ImageList_AddMasked(HIMAGELIST
,HBITMAP32
,COLORREF
);
294 BOOL32 WINAPI
ImageList_BeginDrag(HIMAGELIST
,INT32
,INT32
,INT32
);
295 BOOL32 WINAPI
ImageList_Copy(HIMAGELIST
,INT32
,HIMAGELIST
,INT32
,INT32
);
296 HIMAGELIST WINAPI
ImageList_Create(INT32
,INT32
,UINT32
,INT32
,INT32
);
297 BOOL32 WINAPI
ImageList_Destroy(HIMAGELIST
);
298 BOOL32 WINAPI
ImageList_DragEnter(HWND32
,INT32
,INT32
);
299 BOOL32 WINAPI
ImageList_DragLeave(HWND32
);
300 BOOL32 WINAPI
ImageList_DragMove(INT32
,INT32
);
301 BOOL32 WINAPI
ImageList_DragShowNolock (BOOL32
);
302 BOOL32 WINAPI
ImageList_Draw(HIMAGELIST
,INT32
,HDC32
,INT32
,INT32
,UINT32
);
303 BOOL32 WINAPI
ImageList_DrawEx(HIMAGELIST
,INT32
,HDC32
,INT32
,INT32
,INT32
,
304 INT32
,COLORREF
,COLORREF
,UINT32
);
305 BOOL32 WINAPI
ImageList_DrawIndirect(IMAGELISTDRAWPARAMS
*);
306 HIMAGELIST WINAPI
ImageList_Duplicate(HIMAGELIST
);
307 BOOL32 WINAPI
ImageList_EndDrag (VOID
);
308 COLORREF WINAPI
ImageList_GetBkColor(HIMAGELIST
);
309 HIMAGELIST WINAPI
ImageList_GetDragImage(POINT32
*,POINT32
*);
310 HICON32 WINAPI
ImageList_GetIcon(HIMAGELIST
,INT32
,UINT32
);
311 BOOL32 WINAPI
ImageList_GetIconSize(HIMAGELIST
,INT32
*,INT32
*);
312 INT32 WINAPI
ImageList_GetImageCount(HIMAGELIST
);
313 BOOL32 WINAPI
ImageList_GetImageInfo(HIMAGELIST
,INT32
,IMAGEINFO
*);
314 BOOL32 WINAPI
ImageList_GetImageRect (HIMAGELIST
,INT32
,LPRECT32
);
315 HIMAGELIST WINAPI
ImageList_LoadImage32A(HINSTANCE32
,LPCSTR
,INT32
,INT32
,
316 COLORREF
,UINT32
,UINT32
);
317 HIMAGELIST WINAPI
ImageList_LoadImage32W(HINSTANCE32
,LPCWSTR
,INT32
,INT32
,
318 COLORREF
,UINT32
,UINT32
);
319 #define ImageList_LoadImage WINELIB_NAME_AW(ImageList_LoadImage)
320 HIMAGELIST WINAPI
ImageList_Merge(HIMAGELIST
,INT32
,HIMAGELIST
,INT32
,INT32
,INT32
);
321 #ifdef __IStream_INTREFACE_DEFINED__
322 HIMAGELIST WINAPI
ImageList_Read (LPSTREAM32
);
324 BOOL32 WINAPI
ImageList_Remove(HIMAGELIST
,INT32
);
325 BOOL32 WINAPI
ImageList_Replace(HIMAGELIST
,INT32
,HBITMAP32
,HBITMAP32
);
326 INT32 WINAPI
ImageList_ReplaceIcon(HIMAGELIST
,INT32
,HICON32
);
327 COLORREF WINAPI
ImageList_SetBkColor(HIMAGELIST
,COLORREF
);
328 BOOL32 WINAPI
ImageList_SetDragCursorImage(HIMAGELIST
,INT32
,INT32
,INT32
);
330 BOOL32 WINAPI
ImageList_SetIconSize (HIMAGELIST
,INT32
,INT32
);
331 BOOL32 WINAPI
ImageList_SetImageCount (HIMAGELIST
,INT32
);
332 BOOL32 WINAPI
ImageList_SetOverlayImage(HIMAGELIST
,INT32
,INT32
);
333 #ifdef __IStream_INTREFACE_DEFINED__
334 BOOL32 WINAPI
ImageList_Write (HIMAGELIST
, LPSTREAM32
);
338 #define ImageList_AddIcon(himl,hicon) ImageList_ReplaceIcon(himl,-1,hicon)
340 #define ImageList_ExtractIcon(hi,himl,i) ImageList_GetIcon(himl,i,0)
341 #define ImageList_LoadBitmap(hi,lpbmp,cx,cGrow,crMask) \
342 ImageList_LoadImage(hi,lpbmp,cx,cGrow,crMask,IMAGE_BITMAP,0)
343 #define ImageList_RemoveAll(himl) ImageList_Remove(himl,-1)
348 #define WC_HEADER16 "SysHeader"
349 #define WC_HEADER32A "SysHeader32"
350 #define WC_HEADER32W L"SysHeader32"
352 #define WC_HEADER WINELIB_NAME_AW(WC_HEADER)
354 #define HDS_HORZ 0x0000
355 #define HDS_BUTTONS 0x0002
356 #define HDS_HOTTRACK 0x0004
357 #define HDS_HIDDEN 0x0008
358 #define HDS_DRAGDROP 0x0040
359 #define HDS_FULLDRAG 0x0080
361 #define HDI_WIDTH 0x0001
362 #define HDI_HEIGHT HDI_WIDTH
363 #define HDI_TEXT 0x0002
364 #define HDI_FORMAT 0x0004
365 #define HDI_LPARAM 0x0008
366 #define HDI_BITMAP 0x0010
367 #define HDI_IMAGE 0x0020
368 #define HDI_DI_SETITEM 0x0040
369 #define HDI_ORDER 0x0080
371 #define HDF_LEFT 0x0000
372 #define HDF_RIGHT 0x0001
373 #define HDF_CENTER 0x0002
374 #define HDF_JUSTIFYMASK 0x0003
376 #define HDF_IMAGE 0x0800
377 #define HDF_BITMAP_ON_RIGHT 0x1000
378 #define HDF_BITMAP 0x2000
379 #define HDF_STRING 0x4000
380 #define HDF_OWNERDRAW 0x8000
382 #define HHT_NOWHERE 0x0001
383 #define HHT_ONHEADER 0x0002
384 #define HHT_ONDIVIDER 0x0004
385 #define HHT_ONDIVOPEN 0x0008
386 #define HHT_ABOVE 0x0100
387 #define HHT_BELOW 0x0200
388 #define HHT_TORIGHT 0x0400
389 #define HHT_TOLEFT 0x0800
391 #define HDM_FIRST 0x1200
392 #define HDM_GETITEMCOUNT (HDM_FIRST+0)
393 #define HDM_INSERTITEM32A (HDM_FIRST+1)
394 #define HDM_INSERTITEM32W (HDM_FIRST+10)
395 #define HDM_INSERTITEM WINELIB_NAME_AW(HDM_INSERTITEM)
396 #define HDM_DELETEITEM (HDM_FIRST+2)
397 #define HDM_GETITEM32A (HDM_FIRST+3)
398 #define HDM_GETITEM32W (HDM_FIRST+11)
399 #define HDM_GETITEM WINELIB_NAME_AW(HDM_GETITEM)
400 #define HDM_SETITEM32A (HDM_FIRST+4)
401 #define HDM_SETITEM32W (HDM_FIRST+12)
402 #define HDM_SETITEM WINELIB_NAME_AW(HDM_SETITEM)
403 #define HDM_LAYOUT (HDM_FIRST+5)
404 #define HDM_HITTEST (HDM_FIRST+6)
405 #define HDM_GETITEMRECT (HDM_FIRST+7)
406 #define HDM_SETIMAGELIST (HDM_FIRST+8)
407 #define HDM_GETIMAGELIST (HDM_FIRST+9)
410 #define HDM_ORDERTOINDEX (HDM_FIRST+15)
411 #define HDM_CREATEDRAGIMAGE (HDM_FIRST+16)
412 #define HDM_GETORDERARRAY (HDM_FIRST+17)
413 #define HDM_SETORDERARRAY (HDM_FIRST+18)
414 #define HDM_SETHOTDIVIDER (HDM_FIRST+19)
416 #define HDN_FIRST (0U-300U)
417 #define HDN_LAST (0U-399U)
418 #define HDN_ITEMCHANGING32A (HDN_FIRST-0)
419 #define HDN_ITEMCHANGING32W (HDN_FIRST-20)
420 #define HDN_ITEMCHANGED32A (HDN_FIRST-1)
421 #define HDN_ITEMCHANGED32W (HDN_FIRST-21)
422 #define HDN_ITEMCLICK32A (HDN_FIRST-2)
423 #define HDN_ITEMCLICK32W (HDN_FIRST-22)
424 #define HDN_ITEMDBLCLICK32A (HDN_FIRST-3)
425 #define HDN_ITEMDBLCLICK32W (HDN_FIRST-23)
426 #define HDN_DIVIDERDBLCLICK32A (HDN_FIRST-5)
427 #define HDN_DIVIDERDBLCLICK32W (HDN_FIRST-25)
428 #define HDN_BEGINTRACK32A (HDN_FIRST-6)
429 #define HDN_BEGINTRACK32W (HDN_FIRST-26)
430 #define HDN_ENDTRACK32A (HDN_FIRST-7)
431 #define HDN_ENDTRACK32W (HDN_FIRST-27)
432 #define HDN_TRACK32A (HDN_FIRST-8)
433 #define HDN_TRACK32W (HDN_FIRST-28)
434 #define HDN_GETDISPINFO32A (HDN_FIRST-9)
435 #define HDN_GETDISPINFO32W (HDN_FIRST-29)
436 #define HDN_BEGINDRACK (HDN_FIRST-10)
437 #define HDN_ENDDRACK (HDN_FIRST-11)
439 typedef struct _HD_LAYOUT
443 } HDLAYOUT
, *LPHDLAYOUT
;
445 #define HD_LAYOUT HDLAYOUT
447 typedef struct _HD_ITEMA
460 typedef struct _HD_HITTESTINFO
465 } HDHITTESTINFO
, *LPHDHITTESTINFO
;
467 #define HD_HITTESTINFO HDHITTESTINFO
469 typedef struct tagNMHEADERA
475 } NMHEADERA
, *LPNMHEADERA
;
478 #define Header_GetItemCount(hwndHD) \
479 (INT32)SendMessage32A((hwndHD),HDM_GETITEMCOUNT,0,0L)
480 #define Header_InsertItem(hwndHD,i,phdi) \
481 (INT32)SendMessage32A((hwndHD),HDM_INSERTITEM,(WPARAM32)(INT32)(i),\
482 (LPARAM)(const HD_ITEMA*)(phdi))
483 #define Header_DeleteItem(hwndHD,i) \
484 (BOOL32)SendMessage32A((hwndHD),HDM_DELETEITEM,(WPARAM32)(INT32)(i),0L)
485 #define Header_GetItem(hwndHD,i,phdi) \
486 (BOOL32)SendMessage32A((hwndHD),HDM_GETITEM,(WPARAM32)(INT32)(i),(LPARAM)(HD_ITEMA*)(phdi))
487 #define Header_SetItem(hwndHD,i,phdi) \
488 (BOOL32)SendMessage32A((hwndHD),HDM_SETITEM,(WPARAM32)(INT32)(i),(LPARAM)(const HD_ITEMA*)(phdi))
489 #define Header_Layout(hwndHD,playout) \
490 (BOOL32)SendMessage32A((hwndHD),HDM_LAYOUT,0,(LPARAM)(LPHDLAYOUT)(playout))
491 #define Header_GetItemRect(hwnd,iItem,lprc) \
492 (BOOL32)SendMessage32A((hwnd),HDM_GETITEMRECT,(WPARAM32)iItem,(LPARAM)lprc)
493 #define Header_SetImageList(hwnd,himl) \
494 (HIMAGELIST)SendMessage32A((hwnd),HDM_SETIMAGELIST,0,(LPARAM)himl)
495 #define Header_GetImageList(hwnd) \
496 (HIMAGELIST)SendMessage32A((hwnd),HDM_GETIMAGELIST,0,0)
497 #define Header_OrderToIndex(hwnd,i) \
498 (INT32)SendMessage32A((hwnd),HDM_ORDERTOINDEX,(WPARAM32)i,0)
499 #define Header_CreateDragImage(hwnd,i) \
500 (HIMAGELIST)SendMessage32A((hwnd),HDM_CREATEDRAGIMAGE,(WPARAM32)i,0)
501 #define Header_GetOrderArray(hwnd,iCount,lpi) \
502 (BOOL32)SendMessage32A((hwnd),HDM_GETORDERARRAY,(WPARAM32)iCount,(LPARAM)lpi)
503 #define Header_SetOrderArray(hwnd,iCount,lpi) \
504 (BOOL32)SendMessage32A((hwnd),HDM_SETORDERARRAY,(WPARAM32)iCount,(LPARAM)lpi)
505 #define Header_SetHotDivider(hwnd,fPos,dw) \
506 (INT32)SendMessage32A((hwnd),HDM_SETHOTDIVIDER,(WPARAM32)fPos,(LPARAM)dw)
507 #define Header_SetUnicodeFormat(hwnd,fUnicode) \
508 (BOOL32)SendMessage32A((hwnd),HDM_SETUNICODEFORMAT,(WPARAM32)(fUnicode),0)
509 #define Header_GetUnicodeFormat(hwnd) \
510 (BOOL32)SendMessage32A((hwnd),HDM_GETUNICODEFORMAT,0,0)
515 #define TOOLBARCLASSNAME16 "ToolbarWindow"
516 #define TOOLBARCLASSNAME32W L"ToolbarWindow32"
517 #define TOOLBARCLASSNAME32A "ToolbarWindow32"
518 #define TOOLBARCLASSNAME WINELIB_NAME_AW(TOOLBARCLASSNAME)
521 #define CMB_MASKED 0x02
523 #define TBSTATE_CHECKED 0x01
524 #define TBSTATE_PRESSED 0x02
525 #define TBSTATE_ENABLED 0x04
526 #define TBSTATE_HIDDEN 0x08
527 #define TBSTATE_INDETERMINATE 0x10
528 #define TBSTATE_WRAP 0x20
529 #define TBSTATE_ELLIPSES 0x40
530 #define TBSTATE_MARKED 0x80
533 #define TBSTYLE_BUTTON 0x00
534 #define TBSTYLE_SEP 0x01
535 #define TBSTYLE_CHECK 0x02
536 #define TBSTYLE_GROUP 0x04
537 #define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK)
538 #define TBSTYLE_DROPDOWN 0x08
540 #define TBSTYLE_TOOLTIPS 0x0100
541 #define TBSTYLE_WRAPABLE 0x0200
542 #define TBSTYLE_ALTDRAG 0x0400
543 #define TBSTYLE_FLAT 0x0800
544 #define TBSTYLE_LIST 0x1000
545 #define TBSTYLE_CUSTOMERASE 0x2000
547 #define TB_ENABLEBUTTON (WM_USER+1)
548 #define TB_CHECKBUTTON (WM_USER+2)
549 #define TB_PRESSBUTTON (WM_USER+3)
550 #define TB_HIDEBUTTON (WM_USER+4)
551 #define TB_INDETERMINATE (WM_USER+5)
552 #define TB_ISBUTTONENABLED (WM_USER+9)
553 #define TB_ISBUTTONCHECKED (WM_USER+10)
554 #define TB_ISBUTTONPRESSED (WM_USER+11)
555 #define TB_ISBUTTONHIDDEN (WM_USER+12)
556 #define TB_ISBUTTONINDETERMINATE (WM_USER+13)
557 #define TB_ISBUTTONHIGHLIGHTED (WM_USER+14)
558 #define TB_SETSTATE (WM_USER+17)
559 #define TB_GETSTATE (WM_USER+18)
560 #define TB_ADDBITMAP (WM_USER+19)
561 #define TB_ADDBUTTONS32A (WM_USER+20)
562 #define TB_ADDBUTTONS32W (WM_USER+68)
563 #define TB_ADDBUTTONS WINELIB_NAME_AW(TB_ADDBUTTONS)
564 #define TB_HITTEST (WM_USER+69)
565 #define TB_INSERTBUTTON32A (WM_USER+21)
566 #define TB_INSERTBUTTON32W (WM_USER+67)
567 #define TB_INSERTBUTTON WINELIB_NAME_AW(TB_INSERTBUTTON)
568 #define TB_DELETEBUTTON (WM_USER+22)
569 #define TB_GETBUTTON (WM_USER+23)
570 #define TB_BUTTONCOUNT (WM_USER+24)
571 #define TB_COMMANDTOINDEX (WM_USER+25)
572 #define TB_SAVERESTORE32A (WM_USER+26)
573 #define TB_SAVERESTORE32W (WM_USER+76)
574 #define TB_SAVERESTORE WINELIB_NAME_AW(TB_SAVERESTORE)
575 #define TB_CUSTOMIZE (WM_USER+27)
576 #define TB_ADDSTRING32A (WM_USER+28)
577 #define TB_ADDSTRING32W (WM_USER+77)
578 #define TB_ADDSTRING WINELIB_NAME_AW(TB_ADDSTRING)
579 #define TB_GETITEMRECT (WM_USER+29)
580 #define TB_BUTTONSTRUCTSIZE (WM_USER+30)
581 #define TB_SETBUTTONSIZE (WM_USER+31)
582 #define TB_SETBITMAPSIZE (WM_USER+32)
583 #define TB_AUTOSIZE (WM_USER+33)
584 #define TB_GETTOOLTIPS (WM_USER+35)
585 #define TB_SETTOOLTIPS (WM_USER+36)
586 #define TB_SETPARENT (WM_USER+37)
587 #define TB_SETROWS (WM_USER+39)
588 #define TB_GETROWS (WM_USER+40)
589 #define TB_GETBITMAPFLAGS (WM_USER+41)
590 #define TB_SETCMDID (WM_USER+42)
591 #define TB_CHANGEBITMAP (WM_USER+43)
592 #define TB_GETBITMAP (WM_USER+44)
593 #define TB_GETBUTTONTEXT32A (WM_USER+45)
594 #define TB_GETBUTTONTEXT32W (WM_USER+75)
595 #define TB_GETBUTTONTEXT WINELIB_NAME_AW(TB_GETBUTTONTEXT)
596 #define TB_REPLACEBITMAP (WM_USER+46)
597 #define TB_SETINDENT (WM_USER+47)
598 #define TB_SETIMAGELIST (WM_USER+48)
599 #define TB_GETIMAGELIST (WM_USER+49)
600 #define TB_LOADIMAGES (WM_USER+50)
601 #define TB_GETRECT (WM_USER+51) /* wParam is the Cmd instead of index */
602 #define TB_SETHOTIMAGELIST (WM_USER+52)
603 #define TB_GETHOTIMAGELIST (WM_USER+53)
604 #define TB_SETDISABLEDIMAGELIST (WM_USER+54)
605 #define TB_GETDISABLEDIMAGELIST (WM_USER+55)
606 #define TB_SETSTYLE (WM_USER+56)
607 #define TB_GETSTYLE (WM_USER+57)
608 #define TB_GETBUTTONSIZE (WM_USER+58)
609 #define TB_SETBUTTONWIDTH (WM_USER+59)
610 #define TB_SETMAXTEXTROWS (WM_USER+60)
611 #define TB_GETTEXTROWS (WM_USER+61)
612 #define TB_GETOBJECT (WM_USER+62)
613 #define TB_SETDRAWTEXTFLAGS (WM_USER+70)
614 #define TB_GETHOTITEM (WM_USER+71)
615 #define TB_SETHOTITEM (WM_USER+72)
616 #define TB_SETANCHORHIGHLIGHT (WM_USER+73)
617 #define TB_GETANCHORHIGHLIGHT (WM_USER+74)
618 #define TB_MAPACCELERATOR32A (WM_USER+78)
619 #define TB_MAPACCELERATOR32W (WM_USER+90)
620 #define TB_MAPACCELERATOR WINELIB_NAME_AW(TB_MAPACCELERATOR)
621 #define TB_GETINSERTMARK (WM_USER+79)
622 #define TB_SETINSERTMARK (WM_USER+80)
623 #define TB_INSERTMARKHITTEST (WM_USER+81)
624 #define TB_MOVEBUTTON (WM_USER+82)
625 #define TB_GETMAXSIZE (WM_USER+83)
626 #define TB_SETEXTENDEDSTYLE (WM_USER+84)
627 #define TB_GETEXTENDEDSTYLE (WM_USER+85)
628 #define TB_GETPADDING (WM_USER+86)
629 #define TB_SETPADDING (WM_USER+87)
630 #define TB_SETINSERTMARKCOLOR (WM_USER+88)
631 #define TB_GETINSERTMARKCOLOR (WM_USER+89)
633 #define TB_SETCOLORSCHEME CCM_SETCOLORSCHEME
634 #define TB_GETCOLORSCHEME CCM_GETCOLORSCHEME
636 #define TB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
637 #define TB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
640 /* This is just for old CreateToolbar. */
641 /* Don't use it in new programs. */
642 typedef struct _OLDTBBUTTON
{
649 } OLDTBBUTTON
, *POLDTBBUTTON
, *LPOLDTBBUTTON
;
650 typedef const OLDTBBUTTON
*LPCOLDTBBUTTON
;
653 typedef struct _TBBUTTON
{
661 } TBBUTTON
, *PTBBUTTON
, *LPTBBUTTON
;
662 typedef const TBBUTTON
*LPCTBBUTTON
;
665 typedef struct _COLORMAP
{
668 } COLORMAP
, *LPCOLORMAP
;
670 typedef struct tagTBADDBITMAP
{
673 } TBADDBITMAP
, *LPTBADDBITMAP
;
675 #define HINST_COMMCTRL ((HINSTANCE32)-1)
678 typedef struct tagTBSAVEPARAMSA
{
682 } TBSAVEPARAMS32A
, *LPTBSAVEPARAMS32A
;
684 typedef struct tagTBSAVEPARAMSW
{
687 LPCWSTR pszValueName
;
688 } TBSAVEPARAMSA32W
, *LPTBSAVEPARAMSA32W
;
690 #define TBSAVEPARAMS WINELIB_NAMEAW(TBSAVEPARAMS)
691 #define LPTBSAVEPARAMS WINELIB_NAMEAW(LPTBSAVEPARAMS)
695 CreateToolbar(HWND32
, DWORD
, UINT32
, INT32
, HINSTANCE32
,
696 UINT32
, LPCOLDTBBUTTON
, INT32
);
699 CreateToolbarEx(HWND32
, DWORD
, UINT32
, INT32
,
700 HINSTANCE32
, UINT32
, LPCTBBUTTON
,
701 INT32
, INT32
, INT32
, INT32
, INT32
, UINT32
);
704 CreateMappedBitmap (HINSTANCE32
, INT32
, UINT32
, LPCOLORMAP
, INT32
);
707 #endif /* __WINE_COMMCTRL_H */