2 * Common controls definitions
5 #ifndef __WINE_COMMCTRL_H
6 #define __WINE_COMMCTRL_H
13 #include "imagelist.h"
20 BOOL WINAPI
ShowHideMenuCtl (HWND
, UINT
, LPINT
);
21 VOID WINAPI
GetEffectiveClientRect (HWND
, LPRECT
, LPINT
);
22 VOID WINAPI
InitCommonControls (VOID
);
24 typedef struct tagINITCOMMONCONTROLSEX
{
27 } INITCOMMONCONTROLSEX
, *LPINITCOMMONCONTROLSEX
;
29 BOOL WINAPI
InitCommonControlsEx (LPINITCOMMONCONTROLSEX
);
31 LANGID WINAPI
GetMUILanguage (VOID
);
32 VOID WINAPI
InitMUILanguage (LANGID uiLang
);
35 #define COMCTL32_VERSION 5 /* dll version */
38 #define _WIN32_IE 0x0400
41 #define ICC_LISTVIEW_CLASSES 0x00000001 /* listview, header */
42 #define ICC_TREEVIEW_CLASSES 0x00000002 /* treeview, tooltips */
43 #define ICC_BAR_CLASSES 0x00000004 /* toolbar, statusbar, trackbar, tooltips */
44 #define ICC_TAB_CLASSES 0x00000008 /* tab, tooltips */
45 #define ICC_UPDOWN_CLASS 0x00000010 /* updown */
46 #define ICC_PROGRESS_CLASS 0x00000020 /* progress */
47 #define ICC_HOTKEY_CLASS 0x00000040 /* hotkey */
48 #define ICC_ANIMATE_CLASS 0x00000080 /* animate */
49 #define ICC_WIN95_CLASSES 0x000000FF
50 #define ICC_DATE_CLASSES 0x00000100 /* month picker, date picker, time picker, updown */
51 #define ICC_USEREX_CLASSES 0x00000200 /* comboex */
52 #define ICC_COOL_CLASSES 0x00000400 /* rebar (coolbar) */
53 #define ICC_INTERNET_CLASSES 0x00000800 /* IP address, ... */
54 #define ICC_PAGESCROLLER_CLASS 0x00001000 /* page scroller */
55 #define ICC_NATIVEFNTCTL_CLASS 0x00002000 /* native font control ???*/
58 /* common control styles */
59 #define CCS_TOP 0x00000001L
60 #define CCS_NOMOVEY 0x00000002L
61 #define CCS_BOTTOM 0x00000003L
62 #define CCS_NORESIZE 0x00000004L
63 #define CCS_NOPARENTALIGN 0x00000008L
64 #define CCS_ADJUSTABLE 0x00000020L
65 #define CCS_NODIVIDER 0x00000040L
66 #define CCS_VERT 0x00000080L
67 #define CCS_LEFT (CCS_VERT|CCS_TOP)
68 #define CCS_RIGHT (CCS_VERT|CCS_BOTTOM)
69 #define CCS_NOMOVEX (CCS_VERT|CCS_NOMOVEY)
72 /* common control shared messages */
73 #define CCM_FIRST 0x2000
75 #define CCM_SETBKCOLOR (CCM_FIRST+1) /* lParam = bkColor */
76 #define CCM_SETCOLORSCHEME (CCM_FIRST+2) /* lParam = COLORSCHEME struct ptr */
77 #define CCM_GETCOLORSCHEME (CCM_FIRST+3) /* lParam = COLORSCHEME struct ptr */
78 #define CCM_GETDROPTARGET (CCM_FIRST+4)
79 #define CCM_SETUNICODEFORMAT (CCM_FIRST+5)
80 #define CCM_GETUNICODEFORMAT (CCM_FIRST+6)
81 #define CCM_SETVERSION (CCM_FIRST+7)
82 #define CCM_GETVERSION (CCM_FIRST+8)
83 #define CCM_SETNOTIFYWINDOW (CCM_FIRST+9) /* wParam = hwndParent */
86 /* common notification codes (WM_NOTIFY)*/
87 #define NM_FIRST (0U- 0U)
88 #define NM_LAST (0U- 99U)
89 #define NM_OUTOFMEMORY (NM_FIRST-1)
90 #define NM_CLICK (NM_FIRST-2)
91 #define NM_DBLCLK (NM_FIRST-3)
92 #define NM_RETURN (NM_FIRST-4)
93 #define NM_RCLICK (NM_FIRST-5)
94 #define NM_RDBLCLK (NM_FIRST-6)
95 #define NM_SETFOCUS (NM_FIRST-7)
96 #define NM_KILLFOCUS (NM_FIRST-8)
97 #define NM_CUSTOMDRAW (NM_FIRST-12)
98 #define NM_HOVER (NM_FIRST-13)
99 #define NM_NCHITTEST (NM_FIRST-14)
100 #define NM_KEYDOWN (NM_FIRST-15)
101 #define NM_RELEASEDCAPTURE (NM_FIRST-16)
102 #define NM_SETCURSOR (NM_FIRST-17)
103 #define NM_CHAR (NM_FIRST-18)
104 #define NM_TOOLTIPSCREATED (NM_FIRST-19)
105 #define NMUPDOWN NM_UPDOWN
107 /* callback constants */
108 #define LPSTR_TEXTCALLBACKA ((LPSTR)-1L)
109 #define LPSTR_TEXTCALLBACKW ((LPWSTR)-1L)
110 #define LPSTR_TEXTCALLBACK WINELIB_NAME_AW(LPSTR_TEXTCALLBACK)
112 #define I_IMAGECALLBACK (-1)
113 #define I_IMAGENONE (-2)
114 #define I_INDENTCALLBACK (-1)
115 #define I_CHILDRENCALLBACK (-1)
117 /* owner drawn types */
118 #define ODT_HEADER 100
120 #define ODT_LISTVIEW 102
122 /* common notification structures */
123 typedef struct tagNMTOOLTIPSCREATED
127 } NMTOOLTIPSCREATED
, *LPNMTOOLTIPSCREATED
;
130 #ifndef CCSIZEOF_STRUCT
131 #define CCSIZEOF_STRUCT(name, member) \
132 (((INT)((LPBYTE)(&((name*)0)->member)-((LPBYTE)((name*)0))))+ \
133 sizeof(((name*)0)->member))
137 /* This is only for Winelib applications. DON't use it wine itself!!! */
140 #define SNDMSG ::SendMessage
141 #else /* __cplusplus */
142 #define SNDMSG SendMessage
143 #endif /* __cplusplus */
148 /* Custom Draw messages */
150 #define CDRF_DODEFAULT 0x0
151 #define CDRF_NEWFONT 0x00000002
152 #define CDRF_SKIPDEFAULT 0x00000004
153 #define CDRF_NOTIFYPOSTPAINT 0x00000010
154 #define CDRF_NOTIFYITEMDRAW 0x00000020
155 #define CDRF_NOTIFYSUBITEMDRAW 0x00000020
156 #define CDRF_NOTIFYPOSTERASE 0x00000040
157 #define CDRF_NOTIFYITEMERASE 0x00000080 /* obsolete ??? */
160 /* drawstage flags */
162 #define CDDS_PREPAINT 1
163 #define CDDS_POSTPAINT 2
164 #define CDDS_PREERASE 3
165 #define CDDS_POSTERASE 4
167 #define CDDS_ITEM 0x00010000
168 #define CDDS_ITEMPREPAINT (CDDS_ITEM | CDDS_PREPAINT)
169 #define CDDS_ITEMPOSTPAINT (CDDS_ITEM | CDDS_POSTPAINT)
170 #define CDDS_ITEMPREERASE (CDDS_ITEM | CDDS_PREERASE)
171 #define CDDS_ITEMPOSTERASE (CDDS_ITEM | CDDS_POSTERASE)
172 #define CDDS_SUBITEM 0x00020000
174 /* itemState flags */
176 #define CDIS_SELECTED 0x0001
177 #define CDIS_GRAYED 0x0002
178 #define CDIS_DISABLED 0x0004
179 #define CDIS_CHECKED 0x0008
180 #define CDIS_FOCUS 0x0010
181 #define CDIS_DEFAULT 0x0020
182 #define CDIS_HOT 0x0040
183 #define CDIS_MARKED 0x0080
184 #define CDIS_INDETERMINATE 0x0100
187 typedef struct tagNMCUSTOMDRAWINFO
196 } NMCUSTOMDRAW
, *LPNMCUSTOMDRAW
;
198 typedef struct tagNMTTCUSTOMDRAW
202 } NMTTCUSTOMDRAW
, *LPNMTTCUSTOMDRAW
;
209 #define STATUSCLASSNAME16 "msctls_statusbar"
210 #define STATUSCLASSNAMEA "msctls_statusbar32"
211 /* Does not work. gcc creates 4 byte wide strings.
212 * #define STATUSCLASSNAME32W L"msctls_statusbar32"
214 static const WCHAR _scn32w
[] = {
215 'm','s','c','t','l','s','_','s','t','a','t','u','s','b','a','r','3','2',0
217 #define STATUSCLASSNAMEW _scn32w
218 #define STATUSCLASSNAME WINELIB_NAME_AW(STATUSCLASSNAME)
220 #define SBT_NOBORDERS 0x0100
221 #define SBT_POPOUT 0x0200
222 #define SBT_RTLREADING 0x0400 /* not supported */
223 #define SBT_TOOLTIPS 0x0800
224 #define SBT_OWNERDRAW 0x1000
226 #define SBARS_SIZEGRIP 0x0100
228 #define SB_SETTEXTA (WM_USER+1)
229 #define SB_SETTEXTW (WM_USER+11)
230 #define SB_SETTEXT WINELIB_NAME_AW(SB_SETTEXT)
231 #define SB_GETTEXTA (WM_USER+2)
232 #define SB_GETTEXTW (WM_USER+13)
233 #define SB_GETTEXT WINELIB_NAME_AW(SB_GETTEXT)
234 #define SB_GETTEXTLENGTHA (WM_USER+3)
235 #define SB_GETTEXTLENGTHW (WM_USER+12)
236 #define SB_GETTEXTLENGTH WINELIB_NAME_AW(SB_GETTEXTLENGTH)
237 #define SB_SETPARTS (WM_USER+4)
238 #define SB_GETPARTS (WM_USER+6)
239 #define SB_GETBORDERS (WM_USER+7)
240 #define SB_SETMINHEIGHT (WM_USER+8)
241 #define SB_SIMPLE (WM_USER+9)
242 #define SB_GETRECT (WM_USER+10)
243 #define SB_ISSIMPLE (WM_USER+14)
244 #define SB_SETICON (WM_USER+15)
245 #define SB_SETTIPTEXTA (WM_USER+16)
246 #define SB_SETTIPTEXTW (WM_USER+17)
247 #define SB_SETTIPTEXT WINELIB_NAME_AW(SB_SETTIPTEXT)
248 #define SB_GETTIPTEXTA (WM_USER+18)
249 #define SB_GETTIPTEXTW (WM_USER+19)
250 #define SB_GETTIPTEXT WINELIB_NAME_AW(SB_GETTIPTEXT)
251 #define SB_GETICON (WM_USER+20)
252 #define SB_SETBKCOLOR CCM_SETBKCOLOR /* lParam = bkColor */
253 #define SB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
254 #define SB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
256 #define SBN_FIRST (0U-880U)
257 #define SBN_LAST (0U-899U)
258 #define SBN_SIMPLEMODECHANGE (SBN_FIRST-0)
260 HWND WINAPI
CreateStatusWindowA (INT
, LPCSTR
, HWND
, UINT
);
261 HWND WINAPI
CreateStatusWindowW (INT
, LPCWSTR
, HWND
, UINT
);
262 #define CreateStatusWindow WINELIB_NAME_AW(CreateStatusWindow)
263 VOID WINAPI
DrawStatusTextA (HDC
, LPRECT
, LPCSTR
, UINT
);
264 VOID WINAPI
DrawStatusTextW (HDC
, LPRECT
, LPCWSTR
, UINT
);
265 #define DrawStatusText WINELIB_NAME_AW(DrawStatusText)
266 VOID WINAPI
MenuHelp (UINT
, WPARAM
, LPARAM
, HMENU
,
267 HINSTANCE
, HWND
, LPUINT
);
269 typedef struct tagCOLORSCHEME
272 COLORREF clrBtnHighlight
; /* highlight color */
273 COLORREF clrBtnShadow
; /* shadow color */
274 } COLORSCHEME
, *LPCOLORSCHEME
;
276 /**************************************************************************
280 typedef struct tagDRAGLISTINFO
285 } DRAGLISTINFO
, *LPDRAGLISTINFO
;
287 #define DL_BEGINDRAG (WM_USER+133)
288 #define DL_DRAGGING (WM_USER+134)
289 #define DL_DROPPED (WM_USER+135)
290 #define DL_CANCELDRAG (WM_USER+136)
292 #define DL_CURSORSET 0
293 #define DL_STOPCURSOR 1
294 #define DL_COPYCURSOR 2
295 #define DL_MOVECURSOR 3
297 #define DRAGLISTMSGSTRING TEXT("commctrl_DragListMsg")
299 BOOL WINAPI
MakeDragList (HWND
);
300 VOID WINAPI
DrawInsert (HWND
, HWND
, INT
);
301 INT WINAPI
LBItemFromPt (HWND
, POINT
, BOOL
);
306 #define UPDOWN_CLASS16 "msctls_updown"
307 #define UPDOWN_CLASSA "msctls_updown32"
308 #define UPDOWN_CLASSW L"msctls_updown32"
309 #define UPDOWN_CLASS WINELIB_NAME_AW(UPDOWN_CLASS)
311 typedef struct tagUDACCEL
317 #define UD_MAXVAL 0x7fff
318 #define UD_MINVAL 0x8001
320 #define UDS_WRAP 0x0001
321 #define UDS_SETBUDDYINT 0x0002
322 #define UDS_ALIGNRIGHT 0x0004
323 #define UDS_ALIGNLEFT 0x0008
324 #define UDS_AUTOBUDDY 0x0010
325 #define UDS_ARROWKEYS 0x0020
326 #define UDS_HORZ 0x0040
327 #define UDS_NOTHOUSANDS 0x0080
329 #define UDN_FIRST (0U-721)
330 #define UDN_LAST (0U-740)
331 #define UDN_DELTAPOS (UDN_FIRST-1)
333 #define UDM_SETRANGE (WM_USER+101)
334 #define UDM_GETRANGE (WM_USER+102)
335 #define UDM_SETPOS (WM_USER+103)
336 #define UDM_GETPOS (WM_USER+104)
337 #define UDM_SETBUDDY (WM_USER+105)
338 #define UDM_GETBUDDY (WM_USER+106)
339 #define UDM_SETACCEL (WM_USER+107)
340 #define UDM_GETACCEL (WM_USER+108)
341 #define UDM_SETBASE (WM_USER+109)
342 #define UDM_GETBASE (WM_USER+110)
343 #define UDM_SETRANGE32 (WM_USER+111)
344 #define UDM_GETRANGE32 (WM_USER+112)
346 HWND WINAPI
CreateUpDownControl (DWORD
, INT
, INT
, INT
, INT
,
347 HWND
, INT
, HINSTANCE
, HWND
,
352 #define PROGRESS_CLASSA "msctls_progress32"
353 #define PROGRESS_CLASSW L"msctls_progress32"
354 #define PROGRESS_CLASS16 "msctls_progress"
355 #define PROGRESS_CLASS WINELIB_NAME_AW(PROGRESS_CLASS)
357 #define PBM_SETRANGE (WM_USER+1)
358 #define PBM_SETPOS (WM_USER+2)
359 #define PBM_DELTAPOS (WM_USER+3)
360 #define PBM_SETSTEP (WM_USER+4)
361 #define PBM_STEPIT (WM_USER+5)
362 #define PBM_SETRANGE32 (WM_USER+6)
363 #define PBM_GETRANGE (WM_USER+7)
364 #define PBM_GETPOS (WM_USER+8)
365 #define PBM_SETBARCOLOR (WM_USER+9)
366 #define PBM_SETBKCOLOR CCM_SETBKCOLOR
368 #define PBS_SMOOTH 0x01
369 #define PBS_VERTICAL 0x04
375 } PBRANGE
, *PPBRANGE
;
380 #if !defined(__WINE__) || !defined(__WINE_IMAGELIST_C)
382 typedef struct _IMAGELIST *HIMAGELIST;
383 #endif */ /* __WINE__ */
385 #define CLR_NONE 0xFFFFFFFF
386 #define CLR_DEFAULT 0xFF000000
387 #define CLR_HILIGHT CLR_DEFAULT
389 #define ILC_MASK 0x0001
390 #define ILC_COLOR 0x0000
391 #define ILC_COLORDDB 0x00FE
392 #define ILC_COLOR4 0x0004
393 #define ILC_COLOR8 0x0008
394 #define ILC_COLOR16 0x0010
395 #define ILC_COLOR24 0x0018
396 #define ILC_COLOR32 0x0020
397 #define ILC_PALETTE 0x0800 /* no longer supported by M$ */
399 #define ILD_NORMAL 0x0000
400 #define ILD_TRANSPARENT 0x0001
401 #define ILD_BLEND25 0x0002
402 #define ILD_BLEND50 0x0004
403 #define ILD_MASK 0x0010
404 #define ILD_IMAGE 0x0020
405 #define ILD_ROP 0x0040
406 #define ILD_OVERLAYMASK 0x0F00
408 #define ILD_SELECTED ILD_BLEND50
409 #define ILD_FOCUS ILD_BLEND25
410 #define ILD_BLEND ILD_BLEND50
412 #define INDEXTOOVERLAYMASK(i) ((i)<<8)
413 #define INDEXTOSTATEIMAGEMASK(i) ((i)<<12)
415 #define ILCF_MOVE (0x00000000)
416 #define ILCF_SWAP (0x00000001)
419 typedef struct _IMAGEINFO
429 typedef struct _IMAGELISTDRAWPARAMS
439 INT xBitmap
; /* x offest from the upperleft of bitmap */
440 INT yBitmap
; /* y offset from the upperleft of bitmap */
445 } IMAGELISTDRAWPARAMS
, *LPIMAGELISTDRAWPARAMS
;
448 INT WINAPI
ImageList_Add(HIMAGELIST
,HBITMAP
,HBITMAP
);
449 INT WINAPI
ImageList_AddIcon (HIMAGELIST
, HICON
);
450 INT WINAPI
ImageList_AddMasked(HIMAGELIST
,HBITMAP
,COLORREF
);
451 BOOL WINAPI
ImageList_BeginDrag(HIMAGELIST
,INT
,INT
,INT
);
452 BOOL WINAPI
ImageList_Copy(HIMAGELIST
,INT
,HIMAGELIST
,INT
,INT
);
453 HIMAGELIST WINAPI
ImageList_Create(INT
,INT
,UINT
,INT
,INT
);
454 BOOL WINAPI
ImageList_Destroy(HIMAGELIST
);
455 BOOL WINAPI
ImageList_DragEnter(HWND
,INT
,INT
);
456 BOOL WINAPI
ImageList_DragLeave(HWND
);
457 BOOL WINAPI
ImageList_DragMove(INT
,INT
);
458 BOOL WINAPI
ImageList_DragShowNolock (BOOL
);
459 BOOL WINAPI
ImageList_Draw(HIMAGELIST
,INT
,HDC
,INT
,INT
,UINT
);
460 BOOL WINAPI
ImageList_DrawEx(HIMAGELIST
,INT
,HDC
,INT
,INT
,INT
,
461 INT
,COLORREF
,COLORREF
,UINT
);
462 BOOL WINAPI
ImageList_DrawIndirect(IMAGELISTDRAWPARAMS
*);
463 HIMAGELIST WINAPI
ImageList_Duplicate(HIMAGELIST
);
464 BOOL WINAPI
ImageList_EndDrag(VOID
);
465 COLORREF WINAPI
ImageList_GetBkColor(HIMAGELIST
);
466 HIMAGELIST WINAPI
ImageList_GetDragImage(POINT
*,POINT
*);
467 HICON WINAPI
ImageList_GetIcon(HIMAGELIST
,INT
,UINT
);
468 BOOL WINAPI
ImageList_GetIconSize(HIMAGELIST
,INT
*,INT
*);
469 INT WINAPI
ImageList_GetImageCount(HIMAGELIST
);
470 BOOL WINAPI
ImageList_GetImageInfo(HIMAGELIST
,INT
,IMAGEINFO
*);
471 BOOL WINAPI
ImageList_GetImageRect(HIMAGELIST
,INT
,LPRECT
);
472 HIMAGELIST WINAPI
ImageList_LoadImageA(HINSTANCE
,LPCSTR
,INT
,INT
,
474 HIMAGELIST WINAPI
ImageList_LoadImageW(HINSTANCE
,LPCWSTR
,INT
,INT
,
476 #define ImageList_LoadImage WINELIB_NAME_AW(ImageList_LoadImage)
477 HIMAGELIST WINAPI
ImageList_Merge(HIMAGELIST
,INT
,HIMAGELIST
,INT
,INT
,INT
);
478 #ifdef __IStream_INTREFACE_DEFINED__
479 HIMAGELIST WINAPI
ImageList_Read(LPSTREAM
);
481 BOOL WINAPI
ImageList_Remove(HIMAGELIST
,INT
);
482 BOOL WINAPI
ImageList_Replace(HIMAGELIST
,INT
,HBITMAP
,HBITMAP
);
483 INT WINAPI
ImageList_ReplaceIcon(HIMAGELIST
,INT
,HICON
);
484 COLORREF WINAPI
ImageList_SetBkColor(HIMAGELIST
,COLORREF
);
485 BOOL WINAPI
ImageList_SetDragCursorImage(HIMAGELIST
,INT
,INT
,INT
);
487 BOOL WINAPI
ImageList_SetIconSize(HIMAGELIST
,INT
,INT
);
488 BOOL WINAPI
ImageList_SetImageCount(HIMAGELIST
,INT
);
489 BOOL WINAPI
ImageList_SetOverlayImage(HIMAGELIST
,INT
,INT
);
490 #ifdef __IStream_INTREFACE_DEFINED__
491 BOOL WINAPI
ImageList_Write(HIMAGELIST
, LPSTREAM
);
495 #define ImageList_AddIcon(himl,hicon) ImageList_ReplaceIcon(himl,-1,hicon)
497 #define ImageList_ExtractIcon(hi,himl,i) ImageList_GetIcon(himl,i,0)
498 #define ImageList_LoadBitmap(hi,lpbmp,cx,cGrow,crMask) \
499 ImageList_LoadImage(hi,lpbmp,cx,cGrow,crMask,IMAGE_BITMAP,0)
500 #define ImageList_RemoveAll(himl) ImageList_Remove(himl,-1)
503 #ifndef WM_MOUSEHOVER
504 #define WM_MOUSEHOVER 0x02A1
505 #define WM_MOUSELEAVE 0x02A3
510 #define TME_HOVER 0x00000001
511 #define TME_LEAVE 0x00000002
512 #define TME_QUERY 0x40000000
513 #define TME_CANCEL 0x80000000
516 #define HOVER_DEFAULT 0xFFFFFFFF
518 typedef struct tagTRACKMOUSEEVENT
{
523 } TRACKMOUSEEVENT
, *LPTRACKMOUSEEVENT
;
530 LPTRACKMOUSEEVENT lpEventTrack
);
532 /* Flat Scrollbar control */
534 #define FLATSB_CLASS16 "flatsb_class"
535 #define FLATSB_CLASSA "flatsb_class32"
536 #define FLATSB_CLASSW L"flatsb_class32"
537 #define FLATSB_CLASS WINELIB_NAME_AW(FLATSB_CLASS)
539 #define WSB_PROP_CYVSCROLL 0x00000001L
540 #define WSB_PROP_CXHSCROLL 0x00000002L
541 #define WSB_PROP_CYHSCROLL 0x00000004L
542 #define WSB_PROP_CXVSCROLL 0x00000008L
543 #define WSB_PROP_CXHTHUMB 0x00000010L
544 #define WSB_PROP_CYVTHUMB 0x00000020L
545 #define WSB_PROP_VBKGCOLOR 0x00000040L
546 #define WSB_PROP_HBKGCOLOR 0x00000080L
547 #define WSB_PROP_VSTYLE 0x00000100L
548 #define WSB_PROP_HSTYLE 0x00000200L
549 #define WSB_PROP_WINSTYLE 0x00000400L
550 #define WSB_PROP_PALETTE 0x00000800L
551 #define WSB_PROP_MASK 0x00000FFFL
553 #define FSB_REGULAR_MODE 0
554 #define FSB_ENCARTA_MODE 1
555 #define FSB_FLAT_MODE 2
558 BOOL WINAPI
FlatSB_EnableScrollBar(HWND
, INT
, UINT
);
559 BOOL WINAPI
FlatSB_ShowScrollBar(HWND
, INT
, BOOL
);
560 BOOL WINAPI
FlatSB_GetScrollRange(HWND
, INT
, LPINT
, LPINT
);
561 BOOL WINAPI
FlatSB_GetScrollInfo(HWND
, INT
, LPSCROLLINFO
);
562 INT WINAPI
FlatSB_GetScrollPos(HWND
, INT
);
563 BOOL WINAPI
FlatSB_GetScrollProp(HWND
, INT
, LPINT
);
564 INT WINAPI
FlatSB_SetScrollPos(HWND
, INT
, INT
, BOOL
);
565 INT WINAPI
FlatSB_SetScrollInfo(HWND
, INT
, LPSCROLLINFO
, BOOL
);
566 INT WINAPI
FlatSB_SetScrollRange(HWND
, INT
, INT
, INT
, BOOL
);
567 BOOL WINAPI
FlatSB_SetScrollProp(HWND
, UINT
, INT
, BOOL
);
568 BOOL WINAPI
InitializeFlatSB(HWND
);
569 HRESULT WINAPI
UninitializeFlatSB(HWND
);
574 #define WC_HEADER16 "SysHeader"
575 #define WC_HEADERA "SysHeader32"
576 #define WC_HEADERW L"SysHeader32"
577 #define WC_HEADER WINELIB_NAME_AW(WC_HEADER)
579 #define HDS_HORZ 0x0000
580 #define HDS_BUTTONS 0x0002
581 #define HDS_HOTTRACK 0x0004
582 #define HDS_HIDDEN 0x0008
583 #define HDS_DRAGDROP 0x0040
584 #define HDS_FULLDRAG 0x0080
586 #define HDI_WIDTH 0x0001
587 #define HDI_HEIGHT HDI_WIDTH
588 #define HDI_TEXT 0x0002
589 #define HDI_FORMAT 0x0004
590 #define HDI_LPARAM 0x0008
591 #define HDI_BITMAP 0x0010
592 #define HDI_IMAGE 0x0020
593 #define HDI_DI_SETITEM 0x0040
594 #define HDI_ORDER 0x0080
596 #define HDF_LEFT 0x0000
597 #define HDF_RIGHT 0x0001
598 #define HDF_CENTER 0x0002
599 #define HDF_JUSTIFYMASK 0x0003
601 #define HDF_IMAGE 0x0800
602 #define HDF_BITMAP_ON_RIGHT 0x1000
603 #define HDF_BITMAP 0x2000
604 #define HDF_STRING 0x4000
605 #define HDF_OWNERDRAW 0x8000
607 #define HHT_NOWHERE 0x0001
608 #define HHT_ONHEADER 0x0002
609 #define HHT_ONDIVIDER 0x0004
610 #define HHT_ONDIVOPEN 0x0008
611 #define HHT_ABOVE 0x0100
612 #define HHT_BELOW 0x0200
613 #define HHT_TORIGHT 0x0400
614 #define HHT_TOLEFT 0x0800
616 #define HDM_FIRST 0x1200
617 #define HDM_GETITEMCOUNT (HDM_FIRST+0)
618 #define HDM_INSERTITEMA (HDM_FIRST+1)
619 #define HDM_INSERTITEMW (HDM_FIRST+10)
620 #define HDM_INSERTITEM WINELIB_NAME_AW(HDM_INSERTITEM)
621 #define HDM_DELETEITEM (HDM_FIRST+2)
622 #define HDM_GETITEMA (HDM_FIRST+3)
623 #define HDM_GETITEMW (HDM_FIRST+11)
624 #define HDM_GETITEM WINELIB_NAME_AW(HDM_GETITEM)
625 #define HDM_SETITEMA (HDM_FIRST+4)
626 #define HDM_SETITEMW (HDM_FIRST+12)
627 #define HDM_SETITEM WINELIB_NAME_AW(HDM_SETITEM)
628 #define HDM_LAYOUT (HDM_FIRST+5)
629 #define HDM_HITTEST (HDM_FIRST+6)
630 #define HDM_GETITEMRECT (HDM_FIRST+7)
631 #define HDM_SETIMAGELIST (HDM_FIRST+8)
632 #define HDM_GETIMAGELIST (HDM_FIRST+9)
634 #define HDM_ORDERTOINDEX (HDM_FIRST+15)
635 #define HDM_CREATEDRAGIMAGE (HDM_FIRST+16)
636 #define HDM_GETORDERARRAY (HDM_FIRST+17)
637 #define HDM_SETORDERARRAY (HDM_FIRST+18)
638 #define HDM_SETHOTDIVIDER (HDM_FIRST+19)
639 #define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
640 #define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
642 #define HDN_FIRST (0U-300U)
643 #define HDN_LAST (0U-399U)
644 #define HDN_ITEMCHANGINGA (HDN_FIRST-0)
645 #define HDN_ITEMCHANGINGW (HDN_FIRST-20)
646 #define HDN_ITEMCHANGING WINELIB_NAME_AW(HDN_ITEMCHANGING)
647 #define HDN_ITEMCHANGEDA (HDN_FIRST-1)
648 #define HDN_ITEMCHANGEDW (HDN_FIRST-21)
649 #define HDN_ITEMCHANGED WINELIB_NAME_AW(HDN_ITEMCHANGED)
650 #define HDN_ITEMCLICKA (HDN_FIRST-2)
651 #define HDN_ITEMCLICKW (HDN_FIRST-22)
652 #define HDN_ITEMCLICK WINELIB_NAME_AW(HDN_ITEMCLICK)
653 #define HDN_ITEMDBLCLICKA (HDN_FIRST-3)
654 #define HDN_ITEMDBLCLICKW (HDN_FIRST-23)
655 #define HDN_ITEMDBLCLICK WINELIB_NAME_AW(HDN_ITEMDBLCLICK)
656 #define HDN_DIVIDERDBLCLICKA (HDN_FIRST-5)
657 #define HDN_DIVIDERDBLCLICKW (HDN_FIRST-25)
658 #define HDN_DIVIDERDBLCLICK WINELIB_NAME_AW(HDN_DIVIDERDBLCLICK)
659 #define HDN_BEGINTRACKA (HDN_FIRST-6)
660 #define HDN_BEGINTRACKW (HDN_FIRST-26)
661 #define HDN_BEGINTRACK WINELIB_NAME_AW(HDN_BEGINTRACK)
662 #define HDN_ENDTRACKA (HDN_FIRST-7)
663 #define HDN_ENDTRACKW (HDN_FIRST-27)
664 #define HDN_ENDTRACK WINELIB_NAME_AW(HDN_ENDTRACK)
665 #define HDN_TRACKA (HDN_FIRST-8)
666 #define HDN_TRACKW (HDN_FIRST-28)
667 #define HDN_TRACK WINELIB_NAME_AW(HDN_TRACK)
668 #define HDN_GETDISPINFOA (HDN_FIRST-9)
669 #define HDN_GETDISPINFOW (HDN_FIRST-29)
670 #define HDN_GETDISPINFO WINELIB_NAME_AW(HDN_GETDISPINFO)
671 #define HDN_BEGINDRACK (HDN_FIRST-10)
672 #define HDN_ENDDRACK (HDN_FIRST-11)
674 typedef struct _HD_LAYOUT
678 } HDLAYOUT
, *LPHDLAYOUT
;
680 #define HD_LAYOUT HDLAYOUT
682 typedef struct _HD_ITEMA
693 } HDITEMA
, *LPHDITEMA
;
695 typedef struct _HD_ITEMW
706 } HDITEMW
, *LPHDITEMW
;
708 #define HDITEM WINELIB_NAME_AW(HDITEM)
709 #define LPHDITEM WINELIB_NAME_AW(LPHDITEM)
710 #define HD_ITEM HDITEM
712 #define HDITEM_V1_SIZEA CCSIZEOF_STRUCT(HDITEMA, lParam)
713 #define HDITEM_V1_SIZEW CCSIZEOF_STRUCT(HDITEMW, lParam)
714 #define HDITEM_V1_SIZE WINELIB_NAME_AW(HDITEM_V1_SIZE)
716 typedef struct _HD_HITTESTINFO
721 } HDHITTESTINFO
, *LPHDHITTESTINFO
;
723 #define HD_HITTESTINFO HDHITTESTINFO
725 typedef struct tagNMHEADERA
731 } NMHEADERA
, *LPNMHEADERA
;
733 typedef struct tagNMHEADERW
739 } NMHEADERW
, *LPNMHEADERW
;
741 #define NMHEADER WINELIB_NAME_AW(NMHEADER)
742 #define LPNMHEADER WINELIB_NAME_AW(LPNMHEADER)
743 #define HD_NOTIFY NMHEADER
745 typedef struct tagNMHDDISPINFOA
754 } NMHDDISPINFOA
, *LPNMHDDISPINFOA
;
756 typedef struct tagNMHDDISPINFOW
765 } NMHDDISPINFOW
, *LPNMHDDISPINFOW
;
767 #define NMHDDISPINFO WINELIB_NAME_AW(NMHDDISPINFO)
768 #define LPNMHDDISPINFO WINELIB_NAME_AW(LPNMHDDISPINFO)
770 #define Header_GetItemCount(hwndHD) \
771 (INT)SendMessageA((hwndHD),HDM_GETITEMCOUNT,0,0L)
772 #define Header_InsertItemA(hwndHD,i,phdi) \
773 (INT)SendMessageA((hwndHD),HDM_INSERTITEMA,(WPARAM)(INT)(i),(LPARAM)(const HDITEMA*)(phdi))
774 #define Header_InsertItemW(hwndHD,i,phdi) \
775 (INT)SendMessageW((hwndHD),HDM_INSERTITEMW,(WPARAM)(INT)(i),(LPARAM)(const HDITEMW*)(phdi))
776 #define Header_InsertItem WINELIB_NAME_AW(Header_InsertItem)
777 #define Header_DeleteItem(hwndHD,i) \
778 (BOOL)SendMessageA((hwndHD),HDM_DELETEITEM,(WPARAM)(INT)(i),0L)
779 #define Header_GetItemA(hwndHD,i,phdi) \
780 (BOOL)SendMessageA((hwndHD),HDM_GETITEMA,(WPARAM)(INT)(i),(LPARAM)(HDITEMA*)(phdi))
781 #define Header_GetItemW(hwndHD,i,phdi) \
782 (BOOL)SendMessageW((hwndHD),HDM_GETITEMW,(WPARAM)(INT)(i),(LPARAM)(HDITEMW*)(phdi))
783 #define Header_GetItem WINELIB_NAME_AW(Header_GetItem)
784 #define Header_SetItemA(hwndHD,i,phdi) \
785 (BOOL)SendMessageA((hwndHD),HDM_SETITEMA,(WPARAM)(INT)(i),(LPARAM)(const HDITEMA*)(phdi))
786 #define Header_SetItemW(hwndHD,i,phdi) \
787 (BOOL)SendMessageW((hwndHD),HDM_SETITEMW,(WPARAM)(INT)(i),(LPARAM)(const HDITEMW*)(phdi))
788 #define Header_SetItem WINELIB_NAME_AW(Header_SetItem)
789 #define Header_Layout(hwndHD,playout) \
790 (BOOL)SendMessageA((hwndHD),HDM_LAYOUT,0,(LPARAM)(LPHDLAYOUT)(playout))
791 #define Header_GetItemRect(hwnd,iItem,lprc) \
792 (BOOL)SendMessageA((hwnd),HDM_GETITEMRECT,(WPARAM)iItem,(LPARAM)lprc)
793 #define Header_SetImageList(hwnd,himl) \
794 (HIMAGELIST)SendMessageA((hwnd),HDM_SETIMAGELIST,0,(LPARAM)himl)
795 #define Header_GetImageList(hwnd) \
796 (HIMAGELIST)SendMessageA((hwnd),HDM_GETIMAGELIST,0,0)
797 #define Header_OrderToIndex(hwnd,i) \
798 (INT)SendMessageA((hwnd),HDM_ORDERTOINDEX,(WPARAM)i,0)
799 #define Header_CreateDragImage(hwnd,i) \
800 (HIMAGELIST)SendMessageA((hwnd),HDM_CREATEDRAGIMAGE,(WPARAM)i,0)
801 #define Header_GetOrderArray(hwnd,iCount,lpi) \
802 (BOOL)SendMessageA((hwnd),HDM_GETORDERARRAY,(WPARAM)iCount,(LPARAM)lpi)
803 #define Header_SetOrderArray(hwnd,iCount,lpi) \
804 (BOOL)SendMessageA((hwnd),HDM_SETORDERARRAY,(WPARAM)iCount,(LPARAM)lpi)
805 #define Header_SetHotDivider(hwnd,fPos,dw) \
806 (INT)SendMessageA((hwnd),HDM_SETHOTDIVIDER,(WPARAM)fPos,(LPARAM)dw)
807 #define Header_SetUnicodeFormat(hwnd,fUnicode) \
808 (BOOL)SendMessageA((hwnd),HDM_SETUNICODEFORMAT,(WPARAM)(fUnicode),0)
809 #define Header_GetUnicodeFormat(hwnd) \
810 (BOOL)SendMessageA((hwnd),HDM_GETUNICODEFORMAT,0,0)
815 #define TOOLBARCLASSNAME16 "ToolbarWindow"
816 #define TOOLBARCLASSNAMEW "ToolbarWindow32"
817 #define TOOLBARCLASSNAMEA "ToolbarWindow32"
818 #define TOOLBARCLASSNAME WINELIB_NAME_AW(TOOLBARCLASSNAME)
820 #define CMB_MASKED 0x02
822 #define TBSTATE_CHECKED 0x01
823 #define TBSTATE_PRESSED 0x02
824 #define TBSTATE_ENABLED 0x04
825 #define TBSTATE_HIDDEN 0x08
826 #define TBSTATE_INDETERMINATE 0x10
827 #define TBSTATE_WRAP 0x20
828 #define TBSTATE_ELLIPSES 0x40
829 #define TBSTATE_MARKED 0x80
831 #define TBSTYLE_BUTTON 0x00
832 #define TBSTYLE_SEP 0x01
833 #define TBSTYLE_CHECK 0x02
834 #define TBSTYLE_GROUP 0x04
835 #define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK)
836 #define TBSTYLE_DROPDOWN 0x08
837 #define TBSTYLE_AUTOSIZE 0x10
838 #define TBSTYLE_NOPREFIX 0x20
840 #define TBSTYLE_TOOLTIPS 0x0100
841 #define TBSTYLE_WRAPABLE 0x0200
842 #define TBSTYLE_ALTDRAG 0x0400
843 #define TBSTYLE_FLAT 0x0800
844 #define TBSTYLE_LIST 0x1000
845 #define TBSTYLE_CUSTOMERASE 0x2000
846 #define TBSTYLE_REGISTERDROP 0x4000
847 #define TBSTYLE_TRANSPARENT 0x8000
848 #define TBSTYLE_EX_DRAWDDARROWS 0x00000001
850 #define TBIF_IMAGE 0x00000001
851 #define TBIF_TEXT 0x00000002
852 #define TBIF_STATE 0x00000004
853 #define TBIF_STYLE 0x00000008
854 #define TBIF_LPARAM 0x00000010
855 #define TBIF_COMMAND 0x00000020
856 #define TBIF_SIZE 0x00000040
858 #define TBBF_LARGE 0x0001
860 #define TB_ENABLEBUTTON (WM_USER+1)
861 #define TB_CHECKBUTTON (WM_USER+2)
862 #define TB_PRESSBUTTON (WM_USER+3)
863 #define TB_HIDEBUTTON (WM_USER+4)
864 #define TB_INDETERMINATE (WM_USER+5)
865 #define TB_MARKBUTTON (WM_USER+6)
866 #define TB_ISBUTTONENABLED (WM_USER+9)
867 #define TB_ISBUTTONCHECKED (WM_USER+10)
868 #define TB_ISBUTTONPRESSED (WM_USER+11)
869 #define TB_ISBUTTONHIDDEN (WM_USER+12)
870 #define TB_ISBUTTONINDETERMINATE (WM_USER+13)
871 #define TB_ISBUTTONHIGHLIGHTED (WM_USER+14)
872 #define TB_SETSTATE (WM_USER+17)
873 #define TB_GETSTATE (WM_USER+18)
874 #define TB_ADDBITMAP (WM_USER+19)
875 #define TB_ADDBUTTONSA (WM_USER+20)
876 #define TB_ADDBUTTONSW (WM_USER+68)
877 #define TB_ADDBUTTONS WINELIB_NAME_AW(TB_ADDBUTTONS)
878 #define TB_HITTEST (WM_USER+69)
879 #define TB_INSERTBUTTONA (WM_USER+21)
880 #define TB_INSERTBUTTONW (WM_USER+67)
881 #define TB_INSERTBUTTON WINELIB_NAME_AW(TB_INSERTBUTTON)
882 #define TB_DELETEBUTTON (WM_USER+22)
883 #define TB_GETBUTTON (WM_USER+23)
884 #define TB_BUTTONCOUNT (WM_USER+24)
885 #define TB_COMMANDTOINDEX (WM_USER+25)
886 #define TB_SAVERESTOREA (WM_USER+26)
887 #define TB_SAVERESTOREW (WM_USER+76)
888 #define TB_SAVERESTORE WINELIB_NAME_AW(TB_SAVERESTORE)
889 #define TB_CUSTOMIZE (WM_USER+27)
890 #define TB_ADDSTRINGA (WM_USER+28)
891 #define TB_ADDSTRINGW (WM_USER+77)
892 #define TB_ADDSTRING WINELIB_NAME_AW(TB_ADDSTRING)
893 #define TB_GETITEMRECT (WM_USER+29)
894 #define TB_BUTTONSTRUCTSIZE (WM_USER+30)
895 #define TB_SETBUTTONSIZE (WM_USER+31)
896 #define TB_SETBITMAPSIZE (WM_USER+32)
897 #define TB_AUTOSIZE (WM_USER+33)
898 #define TB_GETTOOLTIPS (WM_USER+35)
899 #define TB_SETTOOLTIPS (WM_USER+36)
900 #define TB_SETPARENT (WM_USER+37)
901 #define TB_SETROWS (WM_USER+39)
902 #define TB_GETROWS (WM_USER+40)
903 #define TB_GETBITMAPFLAGS (WM_USER+41)
904 #define TB_SETCMDID (WM_USER+42)
905 #define TB_CHANGEBITMAP (WM_USER+43)
906 #define TB_GETBITMAP (WM_USER+44)
907 #define TB_GETBUTTONTEXTA (WM_USER+45)
908 #define TB_GETBUTTONTEXTW (WM_USER+75)
909 #define TB_GETBUTTONTEXT WINELIB_NAME_AW(TB_GETBUTTONTEXT)
910 #define TB_REPLACEBITMAP (WM_USER+46)
911 #define TB_SETINDENT (WM_USER+47)
912 #define TB_SETIMAGELIST (WM_USER+48)
913 #define TB_GETIMAGELIST (WM_USER+49)
914 #define TB_LOADIMAGES (WM_USER+50)
915 #define TB_GETRECT (WM_USER+51) /* wParam is the Cmd instead of index */
916 #define TB_SETHOTIMAGELIST (WM_USER+52)
917 #define TB_GETHOTIMAGELIST (WM_USER+53)
918 #define TB_SETDISABLEDIMAGELIST (WM_USER+54)
919 #define TB_GETDISABLEDIMAGELIST (WM_USER+55)
920 #define TB_SETSTYLE (WM_USER+56)
921 #define TB_GETSTYLE (WM_USER+57)
922 #define TB_GETBUTTONSIZE (WM_USER+58)
923 #define TB_SETBUTTONWIDTH (WM_USER+59)
924 #define TB_SETMAXTEXTROWS (WM_USER+60)
925 #define TB_GETTEXTROWS (WM_USER+61)
926 #define TB_GETOBJECT (WM_USER+62)
927 #define TB_GETBUTTONINFOW (WM_USER+63)
928 #define TB_GETBUTTONINFOA (WM_USER+65)
929 #define TB_GETBUTTONINFO WINELIB_NAME_AW(TB_GETBUTTONINFO)
930 #define TB_SETBUTTONINFOW (WM_USER+64)
931 #define TB_SETBUTTONINFOA (WM_USER+66)
932 #define TB_SETBUTTONINFO WINELIB_NAME_AW(TB_SETBUTTONINFO)
933 #define TB_SETDRAWTEXTFLAGS (WM_USER+70)
934 #define TB_GETHOTITEM (WM_USER+71)
935 #define TB_SETHOTITEM (WM_USER+72)
936 #define TB_SETANCHORHIGHLIGHT (WM_USER+73)
937 #define TB_GETANCHORHIGHLIGHT (WM_USER+74)
938 #define TB_MAPACCELERATORA (WM_USER+78)
939 #define TB_MAPACCELERATORW (WM_USER+90)
940 #define TB_MAPACCELERATOR WINELIB_NAME_AW(TB_MAPACCELERATOR)
941 #define TB_GETINSERTMARK (WM_USER+79)
942 #define TB_SETINSERTMARK (WM_USER+80)
943 #define TB_INSERTMARKHITTEST (WM_USER+81)
944 #define TB_MOVEBUTTON (WM_USER+82)
945 #define TB_GETMAXSIZE (WM_USER+83)
946 #define TB_SETEXTENDEDSTYLE (WM_USER+84)
947 #define TB_GETEXTENDEDSTYLE (WM_USER+85)
948 #define TB_GETPADDING (WM_USER+86)
949 #define TB_SETPADDING (WM_USER+87)
950 #define TB_SETINSERTMARKCOLOR (WM_USER+88)
951 #define TB_GETINSERTMARKCOLOR (WM_USER+89)
952 #define TB_SETCOLORSCHEME CCM_SETCOLORSCHEME
953 #define TB_GETCOLORSCHEME CCM_GETCOLORSCHEME
954 #define TB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
955 #define TB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
957 #define TBN_FIRST (0U-700U)
958 #define TBN_LAST (0U-720U)
959 #define TBN_GETBUTTONINFOA (TBN_FIRST-0)
960 #define TBN_GETBUTTONINFOW (TBN_FIRST-20)
961 #define TBN_GETBUTTONINFO WINELIB_NAME_AW(TBN_GETBUTTONINFO)
962 #define TBN_BEGINDRAG (TBN_FIRST-1)
963 #define TBN_ENDDRAG (TBN_FIRST-2)
964 #define TBN_BEGINADJUST (TBN_FIRST-3)
965 #define TBN_ENDADJUST (TBN_FIRST-4)
966 #define TBN_RESET (TBN_FIRST-5)
967 #define TBN_QUERYINSERT (TBN_FIRST-6)
968 #define TBN_QUERYDELETE (TBN_FIRST-7)
969 #define TBN_TOOLBARCHANGE (TBN_FIRST-8)
970 #define TBN_CUSTHELP (TBN_FIRST-9)
971 #define TBN_DROPDOWN (TBN_FIRST-10)
972 #define TBN_GETOBJECT (TBN_FIRST-12)
973 #define TBN_HOTITEMCHANGE (TBN_FIRST-13)
974 #define TBN_DRAGOUT (TBN_FIRST-14)
975 #define TBN_DELETINGBUTTON (TBN_FIRST-15)
976 #define TBN_GETDISPINFOA (TBN_FIRST-16)
977 #define TBN_GETDISPINFOW (TBN_FIRST-17)
978 #define TBN_GETDISPINFO WINELIB_NAME_AW(TBN_GETDISPINFO)
979 #define TBN_GETINFOTIPA (TBN_FIRST-18)
980 #define TBN_GETINFOTIPW (TBN_FIRST-19)
981 #define TBN_GETINFOTIP WINELIB_NAME_AW(TBN_GETINFOTIP)
984 /* This is just for old CreateToolbar. */
985 /* Don't use it in new programs. */
986 typedef struct _OLDTBBUTTON
{
993 } OLDTBBUTTON
, *POLDTBBUTTON
, *LPOLDTBBUTTON
;
994 typedef const OLDTBBUTTON
*LPCOLDTBBUTTON
;
997 typedef struct _TBBUTTON
{
1005 } TBBUTTON
, *PTBBUTTON
, *LPTBBUTTON
;
1006 typedef const TBBUTTON
*LPCTBBUTTON
;
1009 typedef struct _COLORMAP
{
1012 } COLORMAP
, *LPCOLORMAP
;
1015 typedef struct tagTBADDBITMAP
{
1018 } TBADDBITMAP
, *LPTBADDBITMAP
;
1020 #define HINST_COMMCTRL ((HINSTANCE)-1)
1021 #define IDB_STD_SMALL_COLOR 0
1022 #define IDB_STD_LARGE_COLOR 1
1023 #define IDB_VIEW_SMALL_COLOR 4
1024 #define IDB_VIEW_LARGE_COLOR 5
1025 #define IDB_HIST_SMALL_COLOR 8
1026 #define IDB_HIST_LARGE_COLOR 9
1033 #define STD_DELETE 5
1034 #define STD_FILENEW 6
1035 #define STD_FILEOPEN 7
1036 #define STD_FILESAVE 8
1037 #define STD_PRINTPRE 9
1038 #define STD_PROPERTIES 10
1041 #define STD_REPLACE 13
1042 #define STD_PRINT 14
1044 #define VIEW_LARGEICONS 0
1045 #define VIEW_SMALLICONS 1
1047 #define VIEW_DETAILS 3
1048 #define VIEW_SORTNAME 4
1049 #define VIEW_SORTSIZE 5
1050 #define VIEW_SORTDATE 6
1051 #define VIEW_SORTTYPE 7
1052 #define VIEW_PARENTFOLDER 8
1053 #define VIEW_NETCONNECT 9
1054 #define VIEW_NETDISCONNECT 10
1055 #define VIEW_NEWFOLDER 11
1057 typedef struct tagTBSAVEPARAMSA
{
1060 LPCSTR pszValueName
;
1061 } TBSAVEPARAMSA
, *LPTBSAVEPARAMSA
;
1063 typedef struct tagTBSAVEPARAMSW
{
1066 LPCWSTR pszValueName
;
1067 } TBSAVEPARAMSAW
, *LPTBSAVEPARAMSAW
;
1069 #define TBSAVEPARAMS WINELIB_NAME_AW(TBSAVEPARAMS)
1070 #define LPTBSAVEPARAMS WINELIB_NAME_AW(LPTBSAVEPARAMS)
1084 } TBBUTTONINFOA
, *LPTBBUTTONINFOA
;
1098 } TBBUTTONINFOW
, *LPTBBUTTONINFOW
;
1100 #define TBBUTTONINFO WINELIB_NAME_AW(TBBUTTONINFO)
1101 #define LPTBBUTTONINFO WINELIB_NAME_AW(LPTBBUTTONINFO)
1103 typedef struct tagNMTBGETINFOTIPA
1110 } NMTBGETINFOTIPA
, *LPNMTBGETINFOTIPA
;
1112 typedef struct tagNMTBGETINFOTIPW
1119 } NMTBGETINFOTIPW
, *LPNMTBGETINFOTIPW
;
1121 #define NMTBGETINFOTIP WINELIB_NAME_AW(NMTBGETINFOFTIP)
1122 #define LPNMTBGETINFOTIP WINELIB_NAME_AW(LPNMTBGETINFOTIP)
1124 typedef struct tagNMTOOLBARA
1131 RECT rcButton
; /* Version 5.80 */
1132 } NMTOOLBARA
, *LPNMTOOLBARA
, TBNOTIFYA
, *LPTBNOTIFYA
;
1134 typedef struct tagNMTOOLBARW
1141 RECT rcButton
; /* Version 5.80 */
1142 } NMTOOLBARW
, *LPNMTOOLBARW
, TBNOTIFYW
, *LPTBNOTIFYW
;
1144 #define NMTOOLBAR WINELIB_NAME_AW(NMTOOLBAR)
1145 #define LPNMTOOLBAR WINELIB_NAME_AW(LPNMTOOLBAR)
1146 #define TBNOTIFY WINELIB_NAME_AW(TBNOTIFY)
1147 #define LPTBNOTIFY WINELIB_NAME_AW(LPTBNOTIFY)
1156 } TBREPLACEBITMAP
, *LPTBREPLACEBITMAP
;
1162 } TBINSERTMARK
, *LPTBINSERTMARK
;
1163 #define TBIMHT_AFTER 0x00000001 /* TRUE = insert After iButton, otherwise before */
1164 #define TBIMHT_BACKGROUND 0x00000002 /* TRUE if and only if missed buttons completely */
1167 CreateToolbar(HWND
, DWORD
, UINT
, INT
, HINSTANCE
,
1168 UINT
, LPCOLDTBBUTTON
, INT
);
1171 CreateToolbarEx(HWND
, DWORD
, UINT
, INT
,
1172 HINSTANCE
, UINT
, LPCTBBUTTON
,
1173 INT
, INT
, INT
, INT
, INT
, UINT
);
1176 CreateMappedBitmap (HINSTANCE
, INT
, UINT
, LPCOLORMAP
, INT
);
1181 #define TOOLTIPS_CLASS16 "tooltips_class"
1182 #define TOOLTIPS_CLASSA "tooltips_class32"
1183 #define TOOLTIPS_CLASS32W L"tooltips_class32"
1184 #define TOOLTIPS_CLASS WINELIB_NAME_AW(TOOLTIPS_CLASS)
1186 #define INFOTIPSIZE 1024
1188 #define TTS_ALWAYSTIP 0x01
1189 #define TTS_NOPREFIX 0x02
1191 #define TTF_IDISHWND 0x0001
1192 #define TTF_CENTERTIP 0x0002
1193 #define TTF_RTLREADING 0x0004
1194 #define TTF_SUBCLASS 0x0010
1195 #define TTF_TRACK 0x0020
1196 #define TTF_ABSOLUTE 0x0080
1197 #define TTF_TRANSPARENT 0x0100
1198 #define TTF_DI_SETITEM 0x8000 /* valid only on the TTN_NEEDTEXT callback */
1201 #define TTDT_AUTOMATIC 0
1202 #define TTDT_RESHOW 1
1203 #define TTDT_AUTOPOP 2
1204 #define TTDT_INITIAL 3
1207 #define TTM_ACTIVATE (WM_USER+1)
1208 #define TTM_SETDELAYTIME (WM_USER+3)
1209 #define TTM_ADDTOOLA (WM_USER+4)
1210 #define TTM_ADDTOOLW (WM_USER+50)
1211 #define TTM_ADDTOOL WINELIB_NAME_AW(TTM_ADDTOOL)
1212 #define TTM_DELTOOLA (WM_USER+5)
1213 #define TTM_DELTOOLW (WM_USER+51)
1214 #define TTM_DELTOOL WINELIB_NAME_AW(TTM_DELTOOL)
1215 #define TTM_NEWTOOLRECTA (WM_USER+6)
1216 #define TTM_NEWTOOLRECTW (WM_USER+52)
1217 #define TTM_NEWTOOLRECT WINELIB_NAME_AW(TTM_NEWTOOLRECT)
1218 #define TTM_RELAYEVENT (WM_USER+7)
1219 #define TTM_GETTOOLINFOA (WM_USER+8)
1220 #define TTM_GETTOOLINFOW (WM_USER+53)
1221 #define TTM_GETTOOLINFO WINELIB_NAME_AW(TTM_GETTOOLINFO)
1222 #define TTM_SETTOOLINFOA (WM_USER+9)
1223 #define TTM_SETTOOLINFOW (WM_USER+54)
1224 #define TTM_SETTOOLINFO WINELIB_NAME_AW(TTM_SETTOOLINFO)
1225 #define TTM_HITTESTA (WM_USER+10)
1226 #define TTM_HITTESTW (WM_USER+55)
1227 #define TTM_HITTEST WINELIB_NAME_AW(TTM_HITTEST)
1228 #define TTM_GETTEXTA (WM_USER+11)
1229 #define TTM_GETTEXTW (WM_USER+56)
1230 #define TTM_GETTEXT WINELIB_NAME_AW(TTM_GETTEXT)
1231 #define TTM_UPDATETIPTEXTA (WM_USER+12)
1232 #define TTM_UPDATETIPTEXTW (WM_USER+57)
1233 #define TTM_UPDATETIPTEXT WINELIB_NAME_AW(TTM_UPDATETIPTEXT)
1234 #define TTM_GETTOOLCOUNT (WM_USER+13)
1235 #define TTM_ENUMTOOLSA (WM_USER+14)
1236 #define TTM_ENUMTOOLSW (WM_USER+58)
1237 #define TTM_ENUMTOOLS WINELIB_NAME_AW(TTM_ENUMTOOLS)
1238 #define TTM_GETCURRENTTOOLA (WM_USER+15)
1239 #define TTM_GETCURRENTTOOLW (WM_USER+59)
1240 #define TTM_GETCURRENTTOOL WINELIB_NAME_AW(TTM_GETCURRENTTOOL)
1241 #define TTM_WINDOWFROMPOINT (WM_USER+16)
1242 #define TTM_TRACKACTIVATE (WM_USER+17)
1243 #define TTM_TRACKPOSITION (WM_USER+18)
1244 #define TTM_SETTIPBKCOLOR (WM_USER+19)
1245 #define TTM_SETTIPTEXTCOLOR (WM_USER+20)
1246 #define TTM_GETDELAYTIME (WM_USER+21)
1247 #define TTM_GETTIPBKCOLOR (WM_USER+22)
1248 #define TTM_GETTIPTEXTCOLOR (WM_USER+23)
1249 #define TTM_SETMAXTIPWIDTH (WM_USER+24)
1250 #define TTM_GETMAXTIPWIDTH (WM_USER+25)
1251 #define TTM_SETMARGIN (WM_USER+26)
1252 #define TTM_GETMARGIN (WM_USER+27)
1253 #define TTM_POP (WM_USER+28)
1254 #define TTM_UPDATE (WM_USER+29)
1257 #define TTN_FIRST (0U-520U)
1258 #define TTN_LAST (0U-549U)
1259 #define TTN_GETDISPINFOA (TTN_FIRST-0)
1260 #define TTN_GETDISPINFOW (TTN_FIRST-10)
1261 #define TTN_GETDISPINFO WINELIB_NAME_AW(TTN_GETDISPINFO)
1262 #define TTN_SHOW (TTN_FIRST-1)
1263 #define TTN_POP (TTN_FIRST-2)
1265 #define TTN_NEEDTEXT TTN_GETDISPINFO
1266 #define TTN_NEEDTEXTA TTN_GETDISPINFOA
1267 #define TTN_NEEDTEXTW TTN_GETDISPINFOW
1269 typedef struct tagTOOLINFOA
{
1278 } TTTOOLINFOA
, *LPTOOLINFOA
, *PTOOLINFOA
, *LPTTTOOLINFOA
;
1280 typedef struct tagTOOLINFOW
{
1289 } TTTOOLINFOW
, *LPTOOLINFOW
, *PTOOLINFOW
, *LPTTTOOLINFOW
;
1291 #define TTTOOLINFO WINELIB_NAME_AW(TTTOOLINFO)
1292 #define TOOLINFO WINELIB_NAME_AW(TTTOOLINFO)
1293 #define PTOOLINFO WINELIB_NAME_AW(PTOOLINFO)
1294 #define LPTTTOOLINFO WINELIB_NAME_AW(LPTTTOOLINFO)
1295 #define LPTOOLINFO WINELIB_NAME_AW(LPTOOLINFO)
1297 #define TTTOOLINFO_V1_SIZEA CCSIZEOF_STRUCT(TTTOOLINFOA, lpszText)
1298 #define TTTOOLINFO_V1_SIZEW CCSIZEOF_STRUCT(TTTOOLINFOW, lpszText)
1299 #define TTTOOLINFO_V1_SIZE WINELIB_NAME_AW(TTTOOLINFO_V1_SIZE)
1301 typedef struct _TT_HITTESTINFOA
1306 } TTHITTESTINFOA
, *LPTTHITTESTINFOA
;
1308 typedef struct _TT_HITTESTINFOW
1313 } TTHITTESTINFOW
, *LPTTHITTESTINFOW
;
1315 #define TTHITTESTINFO WINELIB_NAME_AW(TTHITTESTINFO)
1316 #define LPTTHITTESTINFO WINELIB_NAME_AW(LPTTHITTESTINFO)
1318 typedef struct tagNMTTDISPINFOA
1326 } NMTTDISPINFOA
, *LPNMTTDISPINFOA
;
1328 typedef struct tagNMTTDISPINFOW
1336 } NMTTDISPINFOW
, *LPNMTTDISPINFOW
;
1338 #define NMTTDISPINFO WINELIB_NAME_AW(NMTTDISPINFO)
1339 #define LPNMTTDISPINFO WINELIB_NAME_AW(LPNMTTDISPINFO)
1341 #define NMTTDISPINFO_V1_SIZEA CCSIZEOF_STRUCT(NMTTDISPINFOA, uFlags)
1342 #define NMTTDISPINFO_V1_SIZEW CCSIZEOF_STRUCT(NMTTDISPINFOW, uFlags)
1343 #define NMTTDISPINFO_V1_SIZE WINELIB_NAME_AW(NMTTDISPINFO_V1_SIZE)
1345 #define TOOLTIPTEXTW NMTTDISPINFOW
1346 #define TOOLTIPTEXTA NMTTDISPINFOA
1347 #define TOOLTIPTEXT NMTTDISPINFO
1348 #define LPTOOLTIPTEXTW LPNMTTDISPINFOW
1349 #define LPTOOLTIPTEXTA LPNMTTDISPINFOA
1350 #define LPTOOLTIPTEXT LPNMTTDISPINFO
1355 #define REBARCLASSNAME16 "ReBarWindow"
1356 #define REBARCLASSNAMEA "ReBarWindow32"
1357 #define REBARCLASSNAMEW L"ReBarWindow32"
1358 #define REBARCLASSNAME WINELIB_NAME_AW(REBARCLASSNAME)
1360 #define RBS_TOOLTIPS 0x0100
1361 #define RBS_VARHEIGHT 0x0200
1362 #define RBS_BANDBORDERS 0x0400
1363 #define RBS_FIXEDORDER 0x0800
1364 #define RBS_REGISTERDROP 0x1000
1365 #define RBS_AUTOSIZE 0x2000
1366 #define RBS_VERTICALGRIPPER 0x4000
1367 #define RBS_DBLCLKTOGGLE 0x8000
1369 #define RBIM_IMAGELIST 0x00000001
1371 #define RBBIM_STYLE 0x00000001
1372 #define RBBIM_COLORS 0x00000002
1373 #define RBBIM_TEXT 0x00000004
1374 #define RBBIM_IMAGE 0x00000008
1375 #define RBBIM_CHILD 0x00000010
1376 #define RBBIM_CHILDSIZE 0x00000020
1377 #define RBBIM_SIZE 0x00000040
1378 #define RBBIM_BACKGROUND 0x00000080
1379 #define RBBIM_ID 0x00000100
1380 #define RBBIM_IDEALSIZE 0x00000200
1381 #define RBBIM_LPARAM 0x00000400
1382 #define RBBIM_HEADERSIZE 0x00000800
1384 #define RBBS_BREAK 0x00000001
1385 #define RBBS_FIXEDSIZE 0x00000002
1386 #define RBBS_CHILDEDGE 0x00000004
1387 #define RBBS_HIDDEN 0x00000008
1388 #define RBBS_NOVERT 0x00000010
1389 #define RBBS_FIXEDBMP 0x00000020
1390 #define RBBS_VARIABLEHEIGHT 0x00000040
1391 #define RBBS_GRIPPERALWAYS 0x00000080
1392 #define RBBS_NOGRIPPER 0x00000100
1394 #define RBNM_ID 0x00000001
1395 #define RBNM_STYLE 0x00000002
1396 #define RBNM_LPARAM 0x00000004
1398 #define RBHT_NOWHERE 0x0001
1399 #define RBHT_CAPTION 0x0002
1400 #define RBHT_CLIENT 0x0003
1401 #define RBHT_GRABBER 0x0004
1403 #define RB_INSERTBANDA (WM_USER+1)
1404 #define RB_INSERTBANDW (WM_USER+10)
1405 #define RB_INSERTBAND WINELIB_NAME_AW(RB_INSERTBAND)
1406 #define RB_DELETEBAND (WM_USER+2)
1407 #define RB_GETBARINFO (WM_USER+3)
1408 #define RB_SETBARINFO (WM_USER+4)
1409 #define RB_GETBANDINFO (WM_USER+5) /* just for compatibility */
1410 #define RB_SETBANDINFOA (WM_USER+6)
1411 #define RB_SETBANDINFOW (WM_USER+11)
1412 #define RB_SETBANDINFO WINELIB_NAME_AW(RB_SETBANDINFO)
1413 #define RB_SETPARENT (WM_USER+7)
1414 #define RB_HITTEST (WM_USER+8)
1415 #define RB_GETRECT (WM_USER+9)
1416 #define RB_GETBANDCOUNT (WM_USER+12)
1417 #define RB_GETROWCOUNT (WM_USER+13)
1418 #define RB_GETROWHEIGHT (WM_USER+14)
1419 #define RB_IDTOINDEX (WM_USER+16)
1420 #define RB_GETTOOLTIPS (WM_USER+17)
1421 #define RB_SETTOOLTIPS (WM_USER+18)
1422 #define RB_SETBKCOLOR (WM_USER+19)
1423 #define RB_GETBKCOLOR (WM_USER+20)
1424 #define RB_SETTEXTCOLOR (WM_USER+21)
1425 #define RB_GETTEXTCOLOR (WM_USER+22)
1426 #define RB_SIZETORECT (WM_USER+23)
1427 #define RB_BEGINDRAG (WM_USER+24)
1428 #define RB_ENDDRAG (WM_USER+25)
1429 #define RB_DRAGMOVE (WM_USER+26)
1430 #define RB_GETBARHEIGHT (WM_USER+27)
1431 #define RB_GETBANDINFOW (WM_USER+28)
1432 #define RB_GETBANDINFOA (WM_USER+29)
1433 #define RB_GETBANDINFO16 WINELIB_NAME_AW(RB_GETBANDINFO16)
1434 #define RB_MINIMIZEBAND (WM_USER+30)
1435 #define RB_MAXIMIZEBAND (WM_USER+31)
1436 #define RB_GETBANDBORDERS (WM_USER+34)
1437 #define RB_SHOWBAND (WM_USER+35)
1438 #define RB_SETPALETTE (WM_USER+37)
1439 #define RB_GETPALETTE (WM_USER+38)
1440 #define RB_MOVEBAND (WM_USER+39)
1441 #define RB_GETDROPTARGET CCM_GETDROPTARGET
1442 #define RB_SETCOLORSCHEME CCM_SETCOLORSCHEME
1443 #define RB_GETCOLORSCHEME CCM_GETCOLORSCHEME
1444 #define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1445 #define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1447 #define RBN_FIRST (0U-831U)
1448 #define RBN_LAST (0U-859U)
1449 #define RBN_HEIGHTCHANGE (RBN_FIRST-0)
1450 #define RBN_GETOBJECT (RBN_FIRST-1)
1451 #define RBN_LAYOUTCHANGED (RBN_FIRST-2)
1452 #define RBN_AUTOSIZE (RBN_FIRST-3)
1453 #define RBN_BEGINDRAG (RBN_FIRST-4)
1454 #define RBN_ENDDRAG (RBN_FIRST-5)
1455 #define RBN_DELETINGBAND (RBN_FIRST-6)
1456 #define RBN_DELETEDBAND (RBN_FIRST-7)
1457 #define RBN_CHILDSIZE (RBN_FIRST-8)
1459 typedef struct tagREBARINFO
1464 } REBARINFO
, *LPREBARINFO
;
1466 typedef struct tagREBARBANDINFOA
1488 } REBARBANDINFOA
, *LPREBARBANDINFOA
;
1490 typedef REBARBANDINFOA
const *LPCREBARBANDINFOA
;
1492 typedef struct tagREBARBANDINFOW
1514 } REBARBANDINFOW
, *LPREBARBANDINFOW
;
1516 typedef REBARBANDINFOW
const *LPCREBARBANDINFOW
;
1518 #define REBARBANDINFO WINELIB_NAME_AW(REBARBANDINFO)
1519 #define LPREBARBANDINFO WINELIB_NAME_AW(LPREBARBANDINFO)
1520 #define LPCREBARBANDINFO WINELIB_NAME_AW(LPCREBARBANDINFO)
1522 #define REBARBANDINFO_V3_SIZEA CCSIZEOF_STRUCT(REBARBANDINFOA, wID)
1523 #define REBARBANDINFO_V3_SIZEW CCSIZEOF_STRUCT(REBARBANDINFOW, wID)
1524 #define REBARBANDINFO_V3_SIZE WINELIB_NAME_AW(REBARBANDINFO_V3_SIZE)
1526 typedef struct tagNMREBARCHILDSIZE
1533 } NMREBARCHILDSIZE
, *LPNMREBARCHILDSIZE
;
1535 typedef struct tagNMREBAR
1543 } NMREBAR
, *LPNMREBAR
;
1545 typedef struct tagNMRBAUTOSIZE
1551 } NMRBAUTOSIZE
, *LPNMRBAUTOSIZE
;
1553 typedef struct _RB_HITTESTINFO
1558 } RBHITTESTINFO
, *LPRBHITTESTINFO
;
1561 /* Trackbar control */
1563 #define TRACKBAR_CLASS16 "msctls_trackbar"
1564 #define TRACKBAR_CLASSA "msctls_trackbar32"
1565 #define TRACKBAR_CLASSW L"msctls_trackbar32"
1566 #define TRACKBAR_CLASS WINELIB_NAME_AW(TRACKBAR_CLASS)
1568 #define TBS_AUTOTICKS 0x0001
1569 #define TBS_VERT 0x0002
1570 #define TBS_HORZ 0x0000
1571 #define TBS_TOP 0x0004
1572 #define TBS_BOTTOM 0x0000
1573 #define TBS_LEFT 0x0004
1574 #define TBS_RIGHT 0x0000
1575 #define TBS_BOTH 0x0008
1576 #define TBS_NOTICKS 0x0010
1577 #define TBS_ENABLESELRANGE 0x0020
1578 #define TBS_FIXEDLENGTH 0x0040
1579 #define TBS_NOTHUMB 0x0080
1580 #define TBS_TOOLTIPS 0x0100
1581 #define TBS_REVERSED 0x0200
1585 #define TBTS_BOTTOM 2
1586 #define TBTS_RIGHT 3
1589 #define TB_LINEDOWN 1
1591 #define TB_PAGEDOWN 3
1592 #define TB_THUMBPOSITION 4
1593 #define TB_THUMBTRACK 5
1596 #define TB_ENDTRACK 8
1598 #define TBCD_TICS 0x0001
1599 #define TBCD_THUMB 0x0002
1600 #define TBCD_CHANNEL 0x0003
1602 #define TBM_GETPOS (WM_USER)
1603 #define TBM_GETRANGEMIN (WM_USER+1)
1604 #define TBM_GETRANGEMAX (WM_USER+2)
1605 #define TBM_GETTIC (WM_USER+3)
1606 #define TBM_SETTIC (WM_USER+4)
1607 #define TBM_SETPOS (WM_USER+5)
1608 #define TBM_SETRANGE (WM_USER+6)
1609 #define TBM_SETRANGEMIN (WM_USER+7)
1610 #define TBM_SETRANGEMAX (WM_USER+8)
1611 #define TBM_CLEARTICS (WM_USER+9)
1612 #define TBM_SETSEL (WM_USER+10)
1613 #define TBM_SETSELSTART (WM_USER+11)
1614 #define TBM_SETSELEND (WM_USER+12)
1615 #define TBM_GETPTICS (WM_USER+14)
1616 #define TBM_GETTICPOS (WM_USER+15)
1617 #define TBM_GETNUMTICS (WM_USER+16)
1618 #define TBM_GETSELSTART (WM_USER+17)
1619 #define TBM_GETSELEND (WM_USER+18)
1620 #define TBM_CLEARSEL (WM_USER+19)
1621 #define TBM_SETTICFREQ (WM_USER+20)
1622 #define TBM_SETPAGESIZE (WM_USER+21)
1623 #define TBM_GETPAGESIZE (WM_USER+22)
1624 #define TBM_SETLINESIZE (WM_USER+23)
1625 #define TBM_GETLINESIZE (WM_USER+24)
1626 #define TBM_GETTHUMBRECT (WM_USER+25)
1627 #define TBM_GETCHANNELRECT (WM_USER+26)
1628 #define TBM_SETTHUMBLENGTH (WM_USER+27)
1629 #define TBM_GETTHUMBLENGTH (WM_USER+28)
1630 #define TBM_SETTOOLTIPS (WM_USER+29)
1631 #define TBM_GETTOOLTIPS (WM_USER+30)
1632 #define TBM_SETTIPSIDE (WM_USER+31)
1633 #define TBM_SETBUDDY (WM_USER+32)
1634 #define TBM_GETBUDDY (WM_USER+33)
1635 #define TBM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1636 #define TBM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1641 #define WC_PAGESCROLLERA "SysPager"
1642 #define WC_PAGESCROLLERW L"SysPager"
1643 #define WC_PAGESCROLLER WINELIB_NAME_AW(WC_PAGESCROLLER)
1645 #define PGS_VERT 0x00000000
1646 #define PGS_HORZ 0x00000001
1647 #define PGS_AUTOSCROLL 0x00000002
1648 #define PGS_DRAGNDROP 0x00000004
1650 #define PGF_INVISIBLE 0
1651 #define PGF_NORMAL 1
1652 #define PGF_GRAYED 2
1653 #define PGF_DEPRESSED 4
1656 #define PGB_TOPORLEFT 0
1657 #define PGB_BOTTOMORRIGHT 1
1659 /* only used with PGN_SCROLL */
1660 #define PGF_SCROLLUP 1
1661 #define PGF_SCROLLDOWN 2
1662 #define PGF_SCROLLLEFT 4
1663 #define PGF_SCROLLRIGHT 8
1666 #define PGK_CONTROL 2
1669 /* only used with PGN_CALCSIZE */
1670 #define PGF_CALCWIDTH 1
1671 #define PGF_CALCHEIGHT 2
1673 #define PGM_FIRST 0x1400
1674 #define PGM_SETCHILD (PGM_FIRST+1)
1675 #define PGM_RECALCSIZE (PGM_FIRST+2)
1676 #define PGM_FORWARDMOUSE (PGM_FIRST+3)
1677 #define PGM_SETBKCOLOR (PGM_FIRST+4)
1678 #define PGM_GETBKCOLOR (PGM_FIRST+5)
1679 #define PGM_SETBORDER (PGM_FIRST+6)
1680 #define PGM_GETBORDER (PGM_FIRST+7)
1681 #define PGM_SETPOS (PGM_FIRST+8)
1682 #define PGM_GETPOS (PGM_FIRST+9)
1683 #define PGM_SETBUTTONSIZE (PGM_FIRST+10)
1684 #define PGM_GETBUTTONSIZE (PGM_FIRST+11)
1685 #define PGM_GETBUTTONSTATE (PGM_FIRST+12)
1686 #define PGM_GETDROPTARGET CCM_GETDROPTARGET
1688 #define PGN_FIRST (0U-900U)
1689 #define PGN_LAST (0U-950U)
1690 #define PGN_SCROLL (PGN_FIRST-1)
1691 #define PGN_CALCSIZE (PGN_FIRST-2)
1702 } NMPGSCROLL
, *LPNMPGSCROLL
;
1710 } NMPGCALCSIZE
, *LPNMPGCALCSIZE
;
1713 /* Treeview control */
1715 #define WC_TREEVIEWA "SysTreeView32"
1716 #define WC_TREEVIEWW L"SysTreeView32"
1717 #define WC_TREEVIEW WINELIB_NAME_AW(WC_TREEVIEW)
1719 #define TVSIL_NORMAL 0
1720 #define TVSIL_STATE 2
1722 #define TV_FIRST 0x1100
1723 #define TVM_INSERTITEMA (TV_FIRST+0)
1724 #define TVM_INSERTITEMW (TV_FIRST+50)
1725 #define TVM_INSERTITEM WINELIB_NAME_AW(TVM_INSERTITEM)
1726 #define TVM_DELETEITEM (TV_FIRST+1)
1727 #define TVM_EXPAND (TV_FIRST+2)
1728 #define TVM_GETITEMRECT (TV_FIRST+4)
1729 #define TVM_GETCOUNT (TV_FIRST+5)
1730 #define TVM_GETINDENT (TV_FIRST+6)
1731 #define TVM_SETINDENT (TV_FIRST+7)
1732 #define TVM_GETIMAGELIST (TV_FIRST+8)
1733 #define TVM_SETIMAGELIST (TV_FIRST+9)
1734 #define TVM_GETNEXTITEM (TV_FIRST+10)
1735 #define TVM_SELECTITEM (TV_FIRST+11)
1736 #define TVM_GETITEMA (TV_FIRST+12)
1737 #define TVM_GETITEMW (TV_FIRST+62)
1738 #define TVM_GETITEM WINELIB_NAME_AW(TVM_GETITEM)
1739 #define TVM_SETITEMA (TV_FIRST+13)
1740 #define TVM_SETITEMW (TV_FIRST+63)
1741 #define TVM_SETITEM WINELIB_NAME_AW(TVM_SETITEM)
1742 #define TVM_EDITLABELA (TV_FIRST+14)
1743 #define TVM_EDITLABELW (TV_FIRST+65)
1744 #define TVM_EDITLABEL WINELIB_NAME_AW(TVM_EDITLABEL)
1745 #define TVM_GETEDITCONTROL (TV_FIRST+15)
1746 #define TVM_GETVISIBLECOUNT (TV_FIRST+16)
1747 #define TVM_HITTEST (TV_FIRST+17)
1748 #define TVM_CREATEDRAGIMAGE (TV_FIRST+18)
1749 #define TVM_SORTCHILDREN (TV_FIRST+19)
1750 #define TVM_ENSUREVISIBLE (TV_FIRST+20)
1751 #define TVM_SORTCHILDRENCB (TV_FIRST+21)
1752 #define TVM_ENDEDITLABELNOW (TV_FIRST+22)
1753 #define TVM_GETISEARCHSTRINGA (TV_FIRST+23)
1754 #define TVM_GETISEARCHSTRINGW (TV_FIRST+64)
1755 #define TVM_GETISEARCHSTRING WINELIB_NAME_AW(TVM_GETISEARCHSTRING)
1756 #define TVM_SETTOOLTIPS (TV_FIRST+24)
1757 #define TVM_GETTOOLTIPS (TV_FIRST+25)
1758 #define TVM_SETINSERTMARK (TV_FIRST+26)
1759 #define TVM_SETITEMHEIGHT (TV_FIRST+27)
1760 #define TVM_GETITEMHEIGHT (TV_FIRST+28)
1761 #define TVM_SETBKCOLOR (TV_FIRST+29)
1762 #define TVM_SETTEXTCOLOR (TV_FIRST+30)
1763 #define TVM_GETBKCOLOR (TV_FIRST+31)
1764 #define TVM_GETTEXTCOLOR (TV_FIRST+32)
1765 #define TVM_SETSCROLLTIME (TV_FIRST+33)
1766 #define TVM_GETSCROLLTIME (TV_FIRST+34)
1767 #define TVM_UNKNOWN35 (TV_FIRST+35)
1768 #define TVM_UNKNOWN36 (TV_FIRST+36)
1769 #define TVM_SETINSERTMARKCOLOR (TV_FIRST+37)
1770 #define TVM_GETINSERTMARKCOLOR (TV_FIRST+38)
1771 #define TVM_GETITEMSTATE (TV_FIRST+39)
1772 #define TVM_SETLINECOLOR (TV_FIRST+40)
1773 #define TVM_GETLINECOLOR (TV_FIRST+41)
1774 #define TVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1775 #define TVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1779 #define TVN_FIRST (0U-400U)
1780 #define TVN_LAST (0U-499U)
1782 #define TVN_SELCHANGINGA (TVN_FIRST-1)
1783 #define TVN_SELCHANGINGW (TVN_FIRST-50)
1784 #define TVN_SELCHANGING WINELIB_NAME_AW(TVN_SELCHANGING)
1786 #define TVN_SELCHANGEDA (TVN_FIRST-2)
1787 #define TVN_SELCHANGEDW (TVN_FIRST-51)
1788 #define TVN_SELCHANGED WINELIB_NAME_AW(TVN_SELCHANGED)
1790 #define TVN_GETDISPINFOA (TVN_FIRST-3)
1791 #define TVN_GETDISPINFOW (TVN_FIRST-52)
1792 #define TVN_GETDISPINFO WINELIB_NAME_AW(TVN_GETDISPINFO)
1794 #define TVN_SETDISPINFOA (TVN_FIRST-4)
1795 #define TVN_SETDISPINFOW (TVN_FIRST-53)
1796 #define TVN_SETDISPINFO WINELIB_NAME_AW(TVN_SETDISPINFO)
1798 #define TVN_ITEMEXPANDINGA (TVN_FIRST-5)
1799 #define TVN_ITEMEXPANDINGW (TVN_FIRST-54)
1800 #define TVN_ITEMEXPANDING WINELIB_NAME_AW(TVN_ITEMEXPANDING)
1802 #define TVN_ITEMEXPANDEDA (TVN_FIRST-6)
1803 #define TVN_ITEMEXPANDEDW (TVN_FIRST-55)
1804 #define TVN_ITEMEXPANDED WINELIB_NAME_AW(TVN_ITEMEXPANDED)
1806 #define TVN_BEGINDRAGA (TVN_FIRST-7)
1807 #define TVN_BEGINDRAGW (TVN_FIRST-56)
1808 #define TVN_BEGINDRAG WINELIB_NAME_AW(TVN_BEGINDRAG)
1810 #define TVN_BEGINRDRAGA (TVN_FIRST-8)
1811 #define TVN_BEGINRDRAGW (TVN_FIRST-57)
1812 #define TVN_BEGINRDRAG WINELIB_NAME_AW(TVN_BEGINRDRAG)
1814 #define TVN_DELETEITEMA (TVN_FIRST-9)
1815 #define TVN_DELETEITEMW (TVN_FIRST-58)
1816 #define TVN_DELETEITEM WINELIB_NAME_AW(TVN_DELETEITEM)
1818 #define TVN_BEGINLABELEDITA (TVN_FIRST-10)
1819 #define TVN_BEGINLABELEDITW (TVN_FIRST-59)
1820 #define TVN_BEGINLABELEDIT WINELIB_NAME_AW(TVN_BEGINLABELEDIT)
1822 #define TVN_ENDLABELEDITA (TVN_FIRST-11)
1823 #define TVN_ENDLABELEDITW (TVN_FIRST-60)
1824 #define TVN_ENDLABELEDIT WINELIB_NAME_AW(TVN_ENDLABELEDIT)
1826 #define TVN_KEYDOWN (TVN_FIRST-12)
1828 #define TVN_GETINFOTIPA (TVN_FIRST-13)
1829 #define TVN_GETINFOTIPW (TVN_FIRST-14)
1830 #define TVN_GETINFOTIP WINELIB_NAME_AW(TVN_GETINFOTIP)
1832 #define TVN_SINGLEEXPAND (TVN_FIRST-15)
1838 #define TVIF_TEXT 0x0001
1839 #define TVIF_IMAGE 0x0002
1840 #define TVIF_PARAM 0x0004
1841 #define TVIF_STATE 0x0008
1842 #define TVIF_HANDLE 0x0010
1843 #define TVIF_SELECTEDIMAGE 0x0020
1844 #define TVIF_CHILDREN 0x0040
1845 #define TVIF_INTEGRAL 0x0080
1846 #define TVIF_DI_SETITEM 0x1000
1848 #define TVI_ROOT ((HTREEITEM)0xffff0000) /* -65536 */
1849 #define TVI_FIRST ((HTREEITEM)0xffff0001) /* -65535 */
1850 #define TVI_LAST ((HTREEITEM)0xffff0002) /* -65534 */
1851 #define TVI_SORT ((HTREEITEM)0xffff0003) /* -65533 */
1853 #define TVIS_FOCUSED 0x0001
1854 #define TVIS_SELECTED 0x0002
1855 #define TVIS_CUT 0x0004
1856 #define TVIS_DROPHILITED 0x0008
1857 #define TVIS_BOLD 0x0010
1858 #define TVIS_EXPANDED 0x0020
1859 #define TVIS_EXPANDEDONCE 0x0040
1860 #define TVIS_OVERLAYMASK 0x0f00
1861 #define TVIS_STATEIMAGEMASK 0xf000
1862 #define TVIS_USERMASK 0xf000
1864 #define TVHT_NOWHERE 0x0001
1865 #define TVHT_ONITEMICON 0x0002
1866 #define TVHT_ONITEMLABEL 0x0004
1867 #define TVHT_ONITEMINDENT 0x0008
1868 #define TVHT_ONITEMBUTTON 0x0010
1869 #define TVHT_ONITEMRIGHT 0x0020
1870 #define TVHT_ONITEMSTATEICON 0x0040
1871 #define TVHT_ONITEM 0x0046
1872 #define TVHT_ABOVE 0x0100
1873 #define TVHT_BELOW 0x0200
1874 #define TVHT_TORIGHT 0x0400
1875 #define TVHT_TOLEFT 0x0800
1877 #define TVS_HASBUTTONS 0x0001
1878 #define TVS_HASLINES 0x0002
1879 #define TVS_LINESATROOT 0x0004
1880 #define TVS_EDITLABELS 0x0008
1881 #define TVS_DISABLEDRAGDROP 0x0010
1882 #define TVS_SHOWSELALWAYS 0x0020
1883 #define TVS_RTLREADING 0x0040
1884 #define TVS_NOTOOLTIPS 0x0080
1885 #define TVS_CHECKBOXES 0x0100
1886 #define TVS_TRACKSELECT 0x0200
1887 #define TVS_SINGLEEXPAND 0x0400
1888 #define TVS_INFOTIP 0x0800
1889 #define TVS_FULLROWSELECT 0x1000
1890 #define TVS_NOSCROLL 0x2000
1891 #define TVS_NONEVENHEIGHT 0x4000
1892 #define TVS_NOHSCROLL 0x8000
1894 #define TVS_SHAREDIMAGELISTS 0x0000
1895 #define TVS_PRIVATEIMAGELISTS 0x0400
1898 #define TVE_COLLAPSE 0x0001
1899 #define TVE_EXPAND 0x0002
1900 #define TVE_TOGGLE 0x0003
1901 #define TVE_EXPANDPARTIAL 0x4000
1902 #define TVE_COLLAPSERESET 0x8000
1906 #define TVGN_PREVIOUS 2
1907 #define TVGN_PARENT 3
1908 #define TVGN_CHILD 4
1909 #define TVGN_FIRSTVISIBLE 5
1910 #define TVGN_NEXTVISIBLE 6
1911 #define TVGN_PREVIOUSVISIBLE 7
1912 #define TVGN_DROPHILITE 8
1913 #define TVGN_CARET 9
1914 #define TVGN_LASTVISIBLE 10
1916 #define TVC_UNKNOWN 0x00
1917 #define TVC_BYMOUSE 0x01
1918 #define TVC_BYKEYBOARD 0x02
1921 typedef struct _TREEITEM
*HTREEITEM
;
1934 } TVITEMA
, *LPTVITEMA
;
1947 } TVITEMW
, *LPTVITEMW
;
1949 #define TV_ITEMA TVITEMA
1950 #define TV_ITEMW TVITEMW
1951 #define LPTV_ITEMA LPTVITEMA
1952 #define LPTV_ITEMW LPTVITEMW
1954 #define TVITEM WINELIB_NAME_AW(TVITEM)
1955 #define LPTVITEM WINELIB_NAME_AW(LPTVITEM)
1956 #define TV_ITEM WINELIB_NAME_AW(TV_ITEM)
1957 #define LPTV_ITEM WINELIB_NAME_AW(LPTV_ITEM)
1971 } TVITEMEXA
, *LPTVITEMEXA
;
1985 } TVITEMEXW
, *LPTVITEMEXW
;
1987 #define TVITEMEX WINELIB_NAME_AW(TVITEMEX)
1988 #define LPTVITEMEX WINELIB_NAME_AW(LPTVITEMEX)
1990 typedef struct tagTVINSERTSTRUCTA
{
1992 HTREEITEM hInsertAfter
;
1997 } TVINSERTSTRUCTA
, *LPTVINSERTSTRUCTA
;
1999 typedef struct tagTVINSERTSTRUCTW
{
2001 HTREEITEM hInsertAfter
;
2006 } TVINSERTSTRUCTW
, *LPTVINSERTSTRUCTW
;
2008 #define TV_INSERTSTRUCT WINELIB_NAME_AW(TVINSERTSTRUCT)
2009 #define LPTVINSERTSTRUCT WINELIB_NAME_AW(LPTVINSERTSTRUCT)
2010 #define LPTV_INSERTSTRUCT WINELIB_NAME_AW(LPTVINSERTSTRUCT)
2012 #define TVINSERTSTRUCT_V1_SIZEA CCSIZEOF_STRUCT(TVINSERTSTRUCTA, item)
2013 #define TVINSERTSTRUCT_V1_SIZEW CCSIZEOF_STRUCT(TVINSERTSTRUCTW, item)
2014 #define TVINSERTSTRUCT_V1_SIZE WINELIB_NAME_AW(TVINSERTSTRUCT_V1_SIZE)
2018 typedef struct tagNMTREEVIEWA
{
2024 } NMTREEVIEWA
, *LPNMTREEVIEWA
;
2026 typedef struct tagNMTREEVIEWW
{
2032 } NMTREEVIEWW
, *LPNMTREEVIEWW
;
2034 #define NMTREEVIEW WINELIB_NAME_AW(NMTREEVIEW)
2035 #define NM_TREEVIEW WINELIB_NAME_AW(NMTREEVIEW)
2036 #define LPNMTREEVIEW WINELIB_NAME_AW(LPNMTREEVIEW)
2038 typedef struct tagTVDISPINFOA
{
2041 } NMTVDISPINFOA
, *LPNMTVDISPINFOA
;
2043 typedef struct tagTVDISPINFOW
{
2046 } NMTVDISPINFOW
, *LPNMTVDISPINFOW
;
2048 #define NMTVDISPINFO WINELIB_NAME_AW(NMTVDISPINFO)
2049 #define LPNMTVDISPINFO WINELIB_NAME_AW(LPNMTVDISPINFO)
2050 #define TV_DISPINFO NMTVDISPINFO
2052 typedef INT
CALLBACK (*PFNTVCOMPARE
)(LPARAM
, LPARAM
, LPARAM
);
2054 typedef struct tagTVSORTCB
2057 PFNTVCOMPARE lpfnCompare
;
2059 } TVSORTCB
, *LPTVSORTCB
;
2061 #define TV_SORTCB TVSORTCB
2062 #define LPTV_SORTCB LPTVSORTCB
2064 typedef struct tagTVHITTESTINFO
{
2068 } TVHITTESTINFO
, *LPTVHITTESTINFO
;
2070 #define TV_HITTESTINFO TVHITTESTINFO
2073 /* Custom Draw Treeview */
2075 #define NMTVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMTVCUSTOMDRAW, clrTextBk)
2077 #define TVCDRF_NOIMAGES 0x00010000
2079 typedef struct tagNMTVCUSTOMDRAW
2084 INT iLevel
; /* IE>0x0400 */
2085 } NMTVCUSTOMDRAW
, *LPNMTVCUSTOMDRAW
;
2087 /* Treeview tooltips */
2089 typedef struct tagNMTVGETINFOTIPA
2096 } NMTVGETINFOTIPA
, *LPNMTVGETINFOTIPA
;
2098 typedef struct tagNMTVGETINFOTIPW
2105 } NMTVGETINFOTIPW
, *LPNMTVGETINFOTIPW
;
2109 #define TreeView_InsertItemA(hwnd, phdi) \
2110 (INT)SendMessageA((hwnd), TVM_INSERTITEMA, 0, \
2111 (LPARAM)(LPTVINSERTSTRUCTA)(phdi))
2112 #define TreeView_InsertItemW(hwnd,phdi) \
2113 (INT)SendMessageW((hwnd), TVM_INSERTITEMW, 0, \
2114 (LPARAM)(LPTVINSERTSTRUCTW)(phdi))
2115 #define TreeView_InsertItem WINELIB_NAME_AW(TreeView_InsertItem)
2117 #define TreeView_DeleteItem(hwnd, hItem) \
2118 (BOOL)SendMessageA((hwnd), TVM_DELETEITEM, 0, (LPARAM)(HTREEITEM)(hItem))
2119 #define TreeView_DeleteAllItems(hwnd) \
2120 (BOOL)SendMessageA((hwnd), TVM_DELETEITEM, 0, (LPARAM)TVI_ROOT)
2121 #define TreeView_Expand(hwnd, hitem, code) \
2122 (BOOL)SendMessageA((hwnd), TVM_EXPAND, (WPARAM)code, \
2123 (LPARAM)(HTREEITEM)(hitem))
2125 #define TreeView_GetItemRect(hwnd, hitem, prc, code) \
2126 (*(HTREEITEM *)prc = (hitem), (BOOL)SendMessageA((hwnd), \
2127 TVM_GETITEMRECT, (WPARAM)(code), (LPARAM)(RECT *)(prc)))
2129 #define TreeView_GetCount(hwnd) \
2130 (UINT)SendMessageA((hwnd), TVM_GETCOUNT, 0, 0)
2131 #define TreeView_GetIndent(hwnd) \
2132 (UINT)SendMessageA((hwnd), TVM_GETINDENT, 0, 0)
2133 #define TreeView_SetIndent(hwnd, indent) \
2134 (BOOL)SendMessageA((hwnd), TVM_SETINDENT, (WPARAM)indent, 0)
2136 #define TreeView_GetImageList(hwnd, iImage) \
2137 (HIMAGELIST)SendMessageA((hwnd), TVM_GETIMAGELIST, iImage, 0)
2139 #define TreeView_SetImageList(hwnd, himl, iImage) \
2140 (HIMAGELIST)SendMessageA((hwnd), TVM_SETIMAGELIST, iImage, \
2141 (LPARAM)(UINT)(HIMAGELIST)(himl))
2143 #define TreeView_GetNextItem(hwnd, hitem, code) \
2144 (HTREEITEM)SendMessageA((hwnd), TVM_GETNEXTITEM, (WPARAM)code,\
2145 (LPARAM)(HTREEITEM) (hitem))
2147 #define TreeView_GetChild(hwnd, hitem) \
2148 TreeView_GetNextItem(hwnd, hitem , TVGN_CHILD)
2149 #define TreeView_GetNextSibling(hwnd, hitem) \
2150 TreeView_GetNextItem(hwnd, hitem , TVGN_NEXT)
2151 #define TreeView_GetPrevSibling(hwnd, hitem) \
2152 TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUS)
2153 #define TreeView_GetParent(hwnd, hitem) \
2154 TreeView_GetNextItem(hwnd, hitem , TVGN_PARENT)
2155 #define TreeView_GetFirstVisible(hwnd) \
2156 TreeView_GetNextItem(hwnd, NULL, TVGN_FIRSTVISIBLE)
2157 #define TreeView_GetLastVisible(hwnd) \
2158 TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE)
2159 #define TreeView_GetNextVisible(hwnd, hitem) \
2160 TreeView_GetNextItem(hwnd, hitem , TVGN_NEXTVISIBLE)
2161 #define TreeView_GetPrevVisible(hwnd, hitem) \
2162 TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUSVISIBLE)
2163 #define TreeView_GetSelection(hwnd) \
2164 TreeView_GetNextItem(hwnd, NULL, TVGN_CARET)
2165 #define TreeView_GetDropHilight(hwnd) \
2166 TreeView_GetNextItem(hwnd, NULL, TVGN_DROPHILITE)
2167 #define TreeView_GetRoot(hwnd) \
2168 TreeView_GetNextItem(hwnd, NULL, TVGN_ROOT)
2169 #define TreeView_GetLastVisible(hwnd) \
2170 TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE)
2173 #define TreeView_Select(hwnd, hitem, code) \
2174 (UINT)SendMessageA((hwnd), TVM_SELECTITEM, (WPARAM)code, \
2175 (LPARAM)(UINT)(hitem))
2178 #define TreeView_SelectItem(hwnd, hitem) \
2179 TreeView_Select(hwnd, hitem, TVGN_CARET)
2180 #define TreeView_SelectDropTarget(hwnd, hitem) \
2181 TreeView_Select(hwnd, hitem, TVGN_DROPHILITE)
2182 #define TreeView_SelectSetFirstVisible(hwnd, hitem) \
2183 TreeView_Select(hwnd, hitem, TVGN_FIRSTVISIBLE)
2186 #define TreeView_GetItemA(hwnd, pitem) \
2187 (BOOL)SendMessageA((hwnd), TVM_GETITEMA, 0, (LPARAM) (TVITEMA *)(pitem))
2188 #define TreeView_GetItemW(hwnd, pitem) \
2189 (BOOL)SendMessageW((hwnd), TVM_GETITEMA, 0, (LPARAM) (TVITEMA *)(pitem))
2190 #define TreeView_GetItem WINELIB_NAME_AW(TreeView_GetItem)
2192 #define TreeView_SetItemA(hwnd, pitem) \
2193 (BOOL)SendMessageA((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem))
2194 #define TreeView_SetItemW(hwnd, pitem) \
2195 (BOOL)SendMessageW((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem))
2197 #define TreeView_EditLabel(hwnd, hitem) \
2198 (HWND)SendMessageA((hwnd), TVM_EDITLABEL, 0, (LPARAM)(HTREEITEM)(hitem))
2200 #define TreeView_GetEditControl(hwnd) \
2201 (HWND)SendMessageA((hwnd), TVM_GETEDITCONTROL, 0, 0)
2203 #define TreeView_GetVisibleCount(hwnd) \
2204 (UINT)SendMessageA((hwnd), TVM_GETVISIBLECOUNT, 0, 0)
2206 #define TreeView_HitTest(hwnd, lpht) \
2207 (HTREEITEM)SendMessageA((hwnd), TVM_HITTEST, 0,\
2208 (LPARAM)(LPTVHITTESTINFO)(lpht))
2210 #define TreeView_CreateDragImage(hwnd, hitem) \
2211 (HIMAGELIST)SendMessageA((hwnd), TVM_CREATEDRAGIMAGE, 0,\
2212 (LPARAM)(HTREEITEM)(hitem))
2214 #define TreeView_SortChildren(hwnd, hitem, recurse) \
2215 (BOOL)SendMessageA((hwnd), TVM_SORTCHILDREN, (WPARAM)recurse,\
2216 (LPARAM)(HTREEITEM)(hitem))
2218 #define TreeView_EnsureVisible(hwnd, hitem) \
2219 (BOOL)SendMessageA((hwnd), TVM_ENSUREVISIBLE, 0, (LPARAM)(UINT)(hitem))
2221 #define TreeView_SortChildrenCB(hwnd, psort, recurse) \
2222 (BOOL)SendMessageA((hwnd), TVM_SORTCHILDRENCB, (WPARAM)recurse, \
2223 (LPARAM)(LPTV_SORTCB)(psort))
2225 #define TreeView_EndEditLabelNow(hwnd, fCancel) \
2226 (BOOL)SendMessageA((hwnd), TVM_ENDEDITLABELNOW, (WPARAM)fCancel, 0)
2228 #define TreeView_GetISearchString(hwnd, lpsz) \
2229 (BOOL)SendMessageA((hwnd), TVM_GETISEARCHSTRING, 0, \
2230 (LPARAM)(LPTSTR)lpsz)
2232 #define TreeView_SetToolTips(hwnd, hwndTT) \
2233 (BOOL)SendMessageA((hwnd), TVM_SETTOOLTIPS, (WPARAM)(hwndTT), 0)
2235 #define TreeView_GetToolTips(hwnd) \
2236 (BOOL)SendMessageA((hwnd), TVM_GETTOOLTIPS, 0, 0)
2238 #define TreeView_SetItemHeight(hwnd, iHeight) \
2239 (INT)SendMessageA((hwnd), TVM_SETITEMHEIGHT, (WPARAM)iHeight, 0)
2241 #define TreeView_GetItemHeight(hwnd) \
2242 (INT)SendMessageA((hwnd), TVM_GETITEMHEIGHT, 0, 0)
2244 #define TreeView_SetBkColor(hwnd, clr) \
2245 (COLORREF)SendMessageA((hwnd), TVM_SETBKCOLOR, 0, (LPARAM)clr)
2247 #define TreeView_SetTextColor(hwnd, clr) \
2248 (COLORREF)SendMessageA((hwnd), TVM_SETTEXTCOLOR, 0, (LPARAM)clr)
2250 #define TreeView_GetBkColor(hwnd) \
2251 (COLORREF)SendMessageA((hwnd), TVM_GETBKCOLOR, 0, 0)
2253 #define TreeView_GetTextColor(hwnd) \
2254 (COLORREF)SendMessageA((hwnd), TVM_GETTEXTCOLOR, 0, 0)
2256 #define TreeView_SetScrollTime(hwnd, uTime) \
2257 (UINT)SendMessageA((hwnd), TVM_SETSCROLLTIME, uTime, 0)
2259 #define TreeView_GetScrollTime(hwnd) \
2260 (UINT)SendMessageA((hwnd), TVM_GETSCROLLTIME, 0, 0)
2262 #define TreeView_SetInsertMark(hwnd, hItem, fAfter) \
2263 (BOOL)SendMessageA((hwnd), TVM_SETINSERTMARK, (WPARAM)(fAfter), \
2266 #define TreeView_SetInsertMarkColor(hwnd, clr) \
2267 (COLORREF)SendMessageA((hwnd), TVM_SETINSERTMARKCOLOR, 0, (LPARAM)clr)
2269 #define TreeView_GetInsertMarkColor(hwnd) \
2270 (COLORREF)SendMessageA((hwnd), TVM_GETINSERTMARKCOLOR, 0, 0)
2272 #define TreeView_GetItemState(hwndTV, hti, mask) \
2273 (UINT)SendMessageA((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti), (LPARAM)(mask))
2274 #define TreeView_GetCheckState(hwndTV, hti) \
2275 ((((UINT)(SendMessageA((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti), \
2276 TVIS_STATEIMAGEMASK))) >> 12) -1)
2278 #define TreeView_SetLineColor(hwnd, clr) \
2279 (COLORREF)SendMessageA((hwnd), TVM_SETLINECOLOR, 0, (LPARAM)(clr))
2281 #define TreeView_GetLineColor(hwnd) \
2282 (COLORREF)SendMessageA((hwnd), TVM_GETLINECOLOR, 0, 0)
2284 #define TreeView_SetItemState(hwndTV, hti, data, _mask) \
2286 _TVi.mask = TVIF_STATE; \
2288 _TVi.stateMask = _mask; \
2289 _TVi.state = data; \
2290 SendMessageA((hwndTV), TVM_SETITEM, 0, (LPARAM)(TV_ITEM *)&_TVi); \
2301 /* Listview control */
2303 #define WC_LISTVIEWA "SysListView32"
2304 #define WC_LISTVIEWW L"SysListView32"
2305 #define WC_LISTVIEW WINELIB_NAME_AW(WC_LISTVIEW)
2307 #define LVSCW_AUTOSIZE -1
2308 #define LVSCW_AUTOSIZE_USEHEADER -2
2310 #define LVS_ICON 0x0000
2311 #define LVS_REPORT 0x0001
2312 #define LVS_SMALLICON 0x0002
2313 #define LVS_LIST 0x0003
2314 #define LVS_TYPEMASK 0x0003
2315 #define LVS_SINGLESEL 0x0004
2316 #define LVS_SHOWSELALWAYS 0x0008
2317 #define LVS_SORTASCENDING 0x0010
2318 #define LVS_SORTDESCENDING 0x0020
2319 #define LVS_SHAREIMAGELISTS 0x0040
2320 #define LVS_NOLABELWRAP 0x0080
2321 #define LVS_AUTOARRANGE 0x0100
2322 #define LVS_EDITLABELS 0x0200
2323 #define LVS_OWNERDATA 0x1000
2324 #define LVS_NOSCROLL 0x2000
2325 #define LVS_TYPESTYLEMASK 0xfc00
2326 #define LVS_ALIGNTOP 0x0000
2327 #define LVS_ALIGNLEFT 0x0800
2328 #define LVS_ALIGNMASK 0x0c00
2329 #define LVS_OWNERDRAWFIXED 0x0400
2330 #define LVS_NOCOLUMNHEADER 0x4000
2331 #define LVS_NOSORTHEADER 0x8000
2333 #define LVS_EX_GRIDLINES 0x0001
2334 #define LVS_EX_SUBITEMIMAGES 0x0002
2335 #define LVS_EX_CHECKBOXES 0x0004
2336 #define LVS_EX_TRACKSELECT 0x0008
2337 #define LVS_EX_HEADERDRAGDROP 0x0010
2338 #define LVS_EX_FULLROWSELECT 0x0020
2339 #define LVS_EX_ONECLICKACTIVATE 0x0040
2340 #define LVS_EX_TWOCLICKACTIVATE 0x0080
2341 #define LVS_EX_FLATSB 0x0100
2342 #define LVS_EX_REGIONAL 0x0200
2343 #define LVS_EX_INFOTIP 0x0400
2344 #define LVS_EX_UNDERLINEHOT 0x0800
2345 #define LVS_EX_UNDERLINECOLD 0x1000
2346 #define LVS_EX_MULTIWORKAREAS 0x2000
2348 #define LVCF_FMT 0x0001
2349 #define LVCF_WIDTH 0x0002
2350 #define LVCF_TEXT 0x0004
2351 #define LVCF_SUBITEM 0x0008
2352 #define LVCF_IMAGE 0x0010
2353 #define LVCF_ORDER 0x0020
2355 #define LVCFMT_LEFT 0x0000
2356 #define LVCFMT_RIGHT 0x0001
2357 #define LVCFMT_CENTER 0x0002
2358 #define LVCFMT_JUSTIFYMASK 0x0003
2359 #define LVCFMT_IMAGE 0x0800
2360 #define LVCFMT_BITMAP_ON_RIGHT 0x1000
2361 #define LVCFMT_COL_HAS_IMAGES 0x8000
2363 #define LVSIL_NORMAL 0
2364 #define LVSIL_SMALL 1
2365 #define LVSIL_STATE 2
2367 /* following 2 flags only for LVS_OWNERDATA listviews */
2368 /* and only in report or list mode */
2369 #define LVSICF_NOINVALIDATEALL 0x0001
2370 #define LVSICF_NOSCROLL 0x0002
2373 #define LVFI_PARAM 0X0001
2374 #define LVFI_STRING 0X0002
2375 #define LVFI_PARTIAL 0X0008
2376 #define LVFI_WRAP 0X0020
2377 #define LVFI_NEARESTXY 0X0040
2379 #define LVIF_TEXT 0x0001
2380 #define LVIF_IMAGE 0x0002
2381 #define LVIF_PARAM 0x0004
2382 #define LVIF_STATE 0x0008
2383 #define LVIF_INDENT 0x0010
2384 #define LVIF_NORECOMPUTE 0x0800
2385 #define LVIF_DI_SETITEM 0x1000
2387 #define LVIR_BOUNDS 0x0000
2388 #define LVIR_LABEL 0x0002
2389 #define LVIR_ICON 0x0001
2390 #define LVIR_SELECTBOUNDS 0x0003
2392 #define LVIS_FOCUSED 0x0001
2393 #define LVIS_SELECTED 0x0002
2394 #define LVIS_CUT 0x0004
2395 #define LVIS_DROPHILITED 0x0008
2396 #define LVIS_ACTIVATING 0x0020
2398 #define LVIS_OVERLAYMASK 0x0F00
2399 #define LVIS_STATEIMAGEMASK 0xF000
2401 #define LVNI_ALL 0x0000
2402 #define LVNI_FOCUSED 0x0001
2403 #define LVNI_SELECTED 0x0002
2404 #define LVNI_CUT 0x0004
2405 #define LVNI_DROPHILITED 0x0008
2407 #define LVNI_ABOVE 0x0100
2408 #define LVNI_BELOW 0x0200
2409 #define LVNI_TOLEFT 0x0400
2410 #define LVNI_TORIGHT 0x0800
2412 #define LVHT_NOWHERE 0x0001
2413 #define LVHT_ONITEMICON 0x0002
2414 #define LVHT_ONITEMLABEL 0x0004
2415 #define LVHT_ONITEMSTATEICON 0x0008
2416 #define LVHT_ONITEM (LVHT_ONITEMICON|LVHT_ONITEMLABEL|LVHT_ONITEMSTATEICON)
2418 #define LVHT_ABOVE 0x0008
2419 #define LVHT_BELOW 0x0010
2420 #define LVHT_TORIGHT 0x0020
2421 #define LVHT_TOLEFT 0x0040
2423 #define LVM_FIRST 0x1000
2424 #define LVM_GETBKCOLOR (LVM_FIRST+0)
2425 #define LVM_SETBKCOLOR (LVM_FIRST+1)
2426 #define LVM_GETIMAGELIST (LVM_FIRST+2)
2427 #define LVM_SETIMAGELIST (LVM_FIRST+3)
2428 #define LVM_GETITEMCOUNT (LVM_FIRST+4)
2429 #define LVM_GETITEMA (LVM_FIRST+5)
2430 #define LVM_GETITEMW (LVM_FIRST+75)
2431 #define LVM_GETITEM WINELIB_NAME_AW(LVM_GETITEM)
2432 #define LVM_SETITEMA (LVM_FIRST+6)
2433 #define LVM_SETITEMW (LVM_FIRST+76)
2434 #define LVM_SETITEM WINELIB_NAME_AW(LVM_SETITEM)
2435 #define LVM_INSERTITEMA (LVM_FIRST+7)
2436 #define LVM_INSERTITEMW (LVM_FIRST+77)
2437 #define LVM_INSERTITEM WINELIB_NAME_AW(LVM_INSERTITEM)
2438 #define LVM_DELETEITEM (LVM_FIRST+8)
2439 #define LVM_DELETEALLITEMS (LVM_FIRST+9)
2440 #define LVM_GETCALLBACKMASK (LVM_FIRST+10)
2441 #define LVM_SETCALLBACKMASK (LVM_FIRST+11)
2442 #define LVM_GETNEXTITEM (LVM_FIRST+12)
2443 #define LVM_FINDITEMA (LVM_FIRST+13)
2444 #define LVM_FINDITEMW (LVM_FIRST+83)
2445 #define LVM_FINDITEM WINELIB_NAME_AW(LVM_FINDITEM)
2446 #define LVM_GETITEMRECT (LVM_FIRST+14)
2447 #define LVM_SETITEMPOSITION (LVM_FIRST+15)
2448 #define LVM_GETITEMPOSITION (LVM_FIRST+16)
2449 #define LVM_GETSTRINGWIDTHA (LVM_FIRST+17)
2450 #define LVM_GETSTRINGWIDTHW (LVM_FIRST+87)
2451 #define LVM_GETSTRINGWIDTH WINELIB_NAME_AW(LVM_GETSTRINGWIDTH)
2452 #define LVM_HITTEST (LVM_FIRST+18)
2453 #define LVM_ENSUREVISIBLE (LVM_FIRST+19)
2454 #define LVM_SCROLL (LVM_FIRST+20)
2455 #define LVM_REDRAWITEMS (LVM_FIRST+21)
2456 #define LVM_ARRANGE (LVM_FIRST+22)
2457 #define LVM_EDITLABELA (LVM_FIRST+23)
2458 #define LVM_EDITLABELW (LVM_FIRST+118)
2459 #define LVM_EDITLABEL WINELIB_NAME_AW(LVM_EDITLABEL)
2460 #define LVM_GETEDITCONTROL (LVM_FIRST+24)
2461 #define LVM_GETCOLUMNA (LVM_FIRST+25)
2462 #define LVM_GETCOLUMNW (LVM_FIRST+95)
2463 #define LVM_GETCOLUMN WINELIB_NAME_AW(LVM_GETCOLUMN)
2464 #define LVM_SETCOLUMNA (LVM_FIRST+26)
2465 #define LVM_SETCOLUMNW (LVM_FIRST+96)
2466 #define LVM_SETCOLUMN WINELIB_NAME_AW(LVM_SETCOLUMN)
2467 #define LVM_INSERTCOLUMNA (LVM_FIRST+27)
2468 #define LVM_INSERTCOLUMNW (LVM_FIRST+97)
2469 #define LVM_INSERTCOLUMN WINELIB_NAME_AW(LVM_INSERTCOLUMN)
2470 #define LVM_DELETECOLUMN (LVM_FIRST+28)
2471 #define LVM_GETCOLUMNWIDTH (LVM_FIRST+29)
2472 #define LVM_SETCOLUMNWIDTH (LVM_FIRST+30)
2473 #define LVM_GETHEADER (LVM_FIRST+31)
2475 #define LVM_CREATEDRAGIMAGE (LVM_FIRST+33)
2476 #define LVM_GETVIEWRECT (LVM_FIRST+34)
2477 #define LVM_GETTEXTCOLOR (LVM_FIRST+35)
2478 #define LVM_SETTEXTCOLOR (LVM_FIRST+36)
2479 #define LVM_GETTEXTBKCOLOR (LVM_FIRST+37)
2480 #define LVM_SETTEXTBKCOLOR (LVM_FIRST+38)
2481 #define LVM_GETTOPINDEX (LVM_FIRST+39)
2482 #define LVM_GETCOUNTPERPAGE (LVM_FIRST+40)
2483 #define LVM_GETORIGIN (LVM_FIRST+41)
2484 #define LVM_UPDATE (LVM_FIRST+42)
2485 #define LVM_SETITEMSTATE (LVM_FIRST+43)
2486 #define LVM_GETITEMSTATE (LVM_FIRST+44)
2487 #define LVM_GETITEMTEXTA (LVM_FIRST+45)
2488 #define LVM_GETITEMTEXTW (LVM_FIRST+115)
2489 #define LVM_GETITEMTEXT WINELIB_NAME_AW(LVM_GETITEMTEXT)
2490 #define LVM_SETITEMTEXTA (LVM_FIRST+46)
2491 #define LVM_SETITEMTEXTW (LVM_FIRST+116)
2492 #define LVM_SETITEMTEXT WINELIB_NAME_AW(LVM_SETITEMTEXT)
2493 #define LVM_SETITEMCOUNT (LVM_FIRST+47)
2494 #define LVM_SORTITEMS (LVM_FIRST+48)
2495 #define LVM_SETITEMPOSITION32 (LVM_FIRST+49)
2496 #define LVM_GETSELECTEDCOUNT (LVM_FIRST+50)
2497 #define LVM_GETITEMSPACING (LVM_FIRST+51)
2498 #define LVM_GETISEARCHSTRINGA (LVM_FIRST+52)
2499 #define LVM_GETISEARCHSTRINGW (LVM_FIRST+117)
2500 #define LVM_GETISEARCHSTRING WINELIB_NAME_AW(LVM_GETISEARCHSTRING)
2501 #define LVM_SETICONSPACING (LVM_FIRST+53)
2502 #define LVM_SETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+54)
2503 #define LVM_GETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+55)
2504 #define LVM_GETSUBITEMRECT (LVM_FIRST+56)
2505 #define LVM_SUBITEMHITTEST (LVM_FIRST+57)
2506 #define LVM_SETCOLUMNORDERARRAY (LVM_FIRST+58)
2507 #define LVM_GETCOLUMNORDERARRAY (LVM_FIRST+59)
2508 #define LVM_SETHOTITEM (LVM_FIRST+60)
2509 #define LVM_GETHOTITEM (LVM_FIRST+61)
2510 #define LVM_SETHOTCURSOR (LVM_FIRST+62)
2511 #define LVM_GETHOTCURSOR (LVM_FIRST+63)
2512 #define LVM_APPROXIMATEVIEWRECT (LVM_FIRST+64)
2513 #define LVM_SETWORKAREAS (LVM_FIRST+65)
2514 #define LVM_GETSELECTIONMARK (LVM_FIRST+66)
2515 #define LVM_SETSELECTIONMARK (LVM_FIRST+67)
2516 #define LVM_SETBKIMAGEA (LVM_FIRST+68)
2517 #define LVM_SETBKIMAGEW (LVM_FIRST+138)
2518 #define LVM_SETBKIMAGE WINELIB_NAME_AW(LVM_SETBKIMAGE)
2519 #define LVM_GETBKIMAGEA (LVM_FIRST+69)
2520 #define LVM_GETBKIMAGEW (LVM_FIRST+139)
2521 #define LVM_GETBKIMAGE WINELIB_NAME_AW(LVM_GETBKIMAGE)
2522 #define LVM_GETWORKAREAS (LVM_FIRST+70)
2523 #define LVM_SETHOVERTIME (LVM_FIRST+71)
2524 #define LVM_GETHOVERTIME (LVM_FIRST+72)
2525 #define LVM_GETNUMBEROFWORKAREAS (LVM_FIRST+73)
2526 #define LVM_SETTOOLTIPS (LVM_FIRST+74)
2528 #define LVM_GETTOOLTIPS (LVM_FIRST+78)
2530 #define LVN_FIRST (0U-100U)
2531 #define LVN_LAST (0U-199U)
2532 #define LVN_ITEMCHANGING (LVN_FIRST-0)
2533 #define LVN_ITEMCHANGED (LVN_FIRST-1)
2534 #define LVN_INSERTITEM (LVN_FIRST-2)
2535 #define LVN_DELETEITEM (LVN_FIRST-3)
2536 #define LVN_DELETEALLITEMS (LVN_FIRST-4)
2537 #define LVN_BEGINLABELEDITA (LVN_FIRST-5)
2538 #define LVN_BEGINLABELEDITW (LVN_FIRST-75)
2539 #define LVN_BEGINLABELEDIT WINELIB_NAME_AW(LVN_BEGINLABELEDIT)
2540 #define LVN_ENDLABELEDITA (LVN_FIRST-6)
2541 #define LVN_ENDLABELEDITW (LVN_FIRST-76)
2542 #define LVN_ENDLABELEDIT WINELIB_NAME_AW(LVN_ENDLABELEDIT)
2543 #define LVN_COLUMNCLICK (LVN_FIRST-8)
2544 #define LVN_BEGINDRAG (LVN_FIRST-9)
2545 #define LVN_BEGINRDRAG (LVN_FIRST-11)
2546 #define LVN_ODCACHEHINT (LVN_FIRST-13)
2547 #define LVN_ITEMACTIVATE (LVN_FIRST-14)
2548 #define LVN_ODSTATECHANGED (LVN_FIRST-15)
2549 #define LVN_HOTTRACK (LVN_FIRST-21)
2550 #define LVN_ODFINDITEMA (LVN_FIRST-52)
2551 #define LVN_ODFINDITEMW (LVN_FIRST-79)
2552 #define LVN_ODFINDITEM WINELIB_NAME_AW(LVN_ODFINDITEM)
2553 #define LVN_GETDISPINFOA (LVN_FIRST-50)
2554 #define LVN_GETDISPINFOW (LVN_FIRST-77)
2555 #define LVN_GETDISPINFO WINELIB_NAME_AW(LVN_GETDISPINFO)
2556 #define LVN_SETDISPINFOA (LVN_FIRST-51)
2557 #define LVN_SETDISPINFOW (LVN_FIRST-78)
2558 #define LVN_SETDISPINFO WINELIB_NAME_AW(LVN_SETDISPINFO)
2559 #define LVN_KEYDOWN (LVN_FIRST-55)
2561 #define LVA_ALIGNLEFT 0x0000
2562 #define LVA_DEFAULT 0x0001
2563 #define LVA_ALIGNTOP 0x0002
2564 #define LVA_SNAPTOGRID 0x0005
2566 typedef struct tagLVITEMA
2577 INT iIndent
; /* (_WIN32_IE >= 0x0300) */
2578 } LVITEMA
, *LPLVITEMA
;
2580 typedef struct tagLVITEMW
2591 INT iIndent
; /* (_WIN32_IE >= 0x0300) */
2592 } LVITEMW
, *LPLVITEMW
;
2594 /* ListView background image structs and constants
2595 For _WIN32_IE version 0x400 and later. */
2597 typedef struct tagLVBKIMAGEA
2605 } LVBKIMAGEA
, *LPLVBKIMAGEA
;
2607 typedef struct tagLVBKIMAGEW
2615 } LVBKIMAGEW
, *LPLVBKIMAGEW
;
2617 #define LVBKIMAGE WINELIB_NAME_AW(LVBKIMAGE)
2619 #define LVBKIF_SOURCE_NONE 0x00000000
2620 #define LVBKIF_SOURCE_HBITMAP 0x00000001
2621 #define LVBKIF_SOURCE_URL 0x00000002
2622 #define LVBKIF_SOURCE_MASK 0x00000003
2623 #define LVBKIF_STYLE_NORMAL 0x00000000
2624 #define LVBKIF_STYLE_TILE 0x00000010
2625 #define LVBKIF_STYLE_MASK 0x00000010
2627 #define ListView_SetBkImage(hwnd, plvbki) \
2628 (BOOL)SNDMSG((hwnd), LVM_SETBKIMAGE, 0, (LPARAM)plvbki)
2630 #define ListView_GetBkImage(hwnd, plvbki) \
2631 (BOOL)SNDMSG((hwnd), LVM_GETBKIMAGE, 0, (LPARAM)plvbki)
2633 #define LVITEM WINELIB_NAME_AW(LVITEM)
2634 #define LPLVITEM WINELIB_NAME_AW(LPLVITEM)
2636 #define LVITEM_V1_SIZEA CCSIZEOF_STRUCT(LVITEMA, lParam)
2637 #define LVITEM_V1_SIZEW CCSIZEOF_STRUCT(LVITEMW, lParam)
2638 #define LVITEM_V1_SIZE WINELIB_NAME_AW(LVITEM_V1_SIZE)
2640 #define LV_ITEM LVITEM
2642 typedef struct tagLVCOLUMNA
2650 INT iImage
; /* (_WIN32_IE >= 0x0300) */
2651 INT iOrder
; /* (_WIN32_IE >= 0x0300) */
2652 } LVCOLUMNA
, *LPLVCOLUMNA
;
2654 typedef struct tagLVCOLUMNW
2662 INT iImage
; /* (_WIN32_IE >= 0x0300) */
2663 INT iOrder
; /* (_WIN32_IE >= 0x0300) */
2664 } LVCOLUMNW
, *LPLVCOLUMNW
;
2666 #define LVCOLUMN WINELIB_NAME_AW(LVCOLUMN)
2667 #define LPLVCOLUMN WINELIB_NAME_AW(LPLVCOLUMN)
2669 #define LVCOLUMN_V1_SIZEA CCSIZEOF_STRUCT(LVCOLUMNA, iSubItem)
2670 #define LVCOLUMN_V1_SIZEW CCSIZEOF_STRUCT(LVCOLUMNW, iSubItem)
2671 #define LVCOLUMN_V1_SIZE WINELIB_NAME_AW(LVCOLUMN_V1_SIZE)
2673 #define LV_COLUMN LVCOLUMN
2676 typedef struct tagNMLISTVIEW
2686 } NMLISTVIEW
, *LPNMLISTVIEW
;
2688 #define LPNM_LISTVIEW LPNMLISTVIEW
2689 #define NM_LISTVIEW NMLISTVIEW
2692 typedef struct tagLVDISPINFO
2696 } NMLVDISPINFOA
, *LPNMLVDISPINFOA
;
2698 typedef struct tagLVDISPINFOW
2702 } NMLVDISPINFOW
, *LPNMLVDISPINFOW
;
2704 #define NMLVDISPINFO WINELIB_NAME_AW(NMLVDISPINFO)
2705 #define LPNMLVDISPINFO WINELIB_NAME_AW(LPNMLVDISPINFO)
2707 #define LV_DISPINFO NMLVDISPINFO
2709 typedef struct tagLVKEYDOWN
2714 } NMLVKEYDOWN
, *LPNMLVKEYDOWN
;
2716 #define LV_KEYDOWN NMLVKEYDOWN
2718 typedef struct tagLVHITTESTINFO
2724 } LVHITTESTINFO
, *LPLVHITTESTINFO
;
2726 #define LV_HITTESTINFO LVHITTESTINFO
2727 #define _LV_HITTESTINFO tagLVHITTESTINFO
2728 #define LVHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(LVHITTESTINFO,iItem)
2730 typedef struct tagLVFINDINFO
2737 } LVFINDINFO
, *LPLVFINDINFO
;
2739 #define LV_FINDINFO LVFINDINFO
2741 typedef struct tagTCHITTESTINFO
2745 } TCHITTESTINFO
, *LPTCHITTESTINFO
;
2747 #define TC_HITTESTINFO TCHITTESTINFO
2749 typedef INT
CALLBACK (*PFNLVCOMPARE
)(LPARAM
, LPARAM
, LPARAM
);
2751 typedef struct tagNMLVCACHEHINT
2756 } NMLVCACHEHINT
, *LPNMLVCACHEHINT
;
2758 #define LPNM_CACHEHINT LPNMLVCACHEHINT
2759 #define PNM_CACHEHINT LPNMLVCACHEHINT
2760 #define NM_CACHEHINT NMLVCACHEHINT
2762 #define ListView_GetNextItem(hwnd,nItem,flags) \
2763 (INT)SendMessageA((hwnd),LVM_GETNEXTITEM,(WPARAM)(INT)(nItem),(LPARAM)(MAKELPARAM(flags,0)))
2764 #define ListView_FindItem(hwnd,nItem,plvfi) \
2765 (INT)SendMessageA((hwnd),LVM_FINDITEMA,(WPARAM)(INT)(nItem),(LPARAM)(LVFINDINFO*)(plvfi))
2766 #define ListView_Arrange(hwnd,code) \
2767 (INT)SendMessageA((hwnd),LVM_ARRANGE,(WPARAM)(INT)(code),0L)
2768 #define ListView_GetItemPosition(hwnd,i,ppt) \
2769 (INT)SendMessageA((hwnd),LVM_GETITEMPOSITION,(WPARAM)(INT)(i),(LPARAM)(LPPOINT)(ppt))
2770 #define ListView_GetItemRect(hwnd,i,prc) \
2771 (INT)SendMessageA((hwnd),LVM_GETITEMRECT,(WPARAM)(INT)(i),(LPARAM)(LPRECT)(prc))
2772 #define ListView_SetItemA(hwnd,pitem) \
2773 (INT)SendMessageA((hwnd),LVM_SETITEMA,0,(LPARAM)(const LVITEMA *)(pitem))
2774 #define ListView_SetItemState(hwnd,i,pitem) \
2775 (BOOL)SendMessageA((hwnd),LVM_SETITEMSTATE,(WPARAM)(UINT)(i),(LPARAM)(LPLVITEMA)(pitem))
2776 #define ListView_GetItemState(hwnd,i,mask) \
2777 (BOOL)SendMessageA((hwnd),LVM_GETITEMSTATE,(WPARAM)(UINT)(i),(LPARAM)(UINT)(mask))
2778 #define ListView_GetCountPerPage(hwnd) \
2779 (BOOL)SendMessageW((hwnd),LVM_GETCOUNTPERPAGE,0,0L)
2780 #define ListView_GetImageList(hwnd,iImageList) \
2781 (HIMAGELIST)SendMessageA((hwnd),LVM_GETIMAGELIST,(WPARAM)(INT)(iImageList),0L)
2782 #define ListView_GetStringWidthA(hwnd,pstr) \
2783 (INT)SendMessageA((hwnd),LVM_GETSTRINGWIDTHA,0,(LPARAM)(LPCSTR)(pstr))
2784 #define ListView_GetTopIndex(hwnd) \
2785 (BOOL)SendMessageA((hwnd),LVM_GETTOPINDEX,0,0L)
2786 #define ListView_Scroll(hwnd,dx,dy) \
2787 (BOOL)SendMessageA((hwnd),LVM_SCROLL,(WPARAM)(INT)(dx),(LPARAM)(INT)(dy))
2788 #define ListView_EnsureVisible(hwnd,i,fPartialOk) \
2789 (BOOL)SendMessageA((hwnd),LVM_ENSUREVISIBLE,(WPARAM)(INT)i,(LPARAM)(BOOL)fPartialOk)
2790 #define ListView_SetBkColor(hwnd,clrBk) \
2791 (BOOL)SendMessageA((hwnd),LVM_SETBKCOLOR,0,(LPARAM)(COLORREF)(clrBk))
2792 #define ListView_SetImageList(hwnd,himl,iImageList) \
2793 (HIMAGELIST)(UINT)SendMessageA((hwnd),LVM_SETIMAGELIST,(WPARAM)(iImageList),(LPARAM)(UINT)(HIMAGELIST)(himl))
2794 #define ListView_GetItemCount(hwnd) \
2795 (INT)SendMessageA((hwnd),LVM_GETITEMCOUNT,0,0L)
2797 #define ListView_GetItemA(hwnd,pitem) \
2798 (BOOL)SendMessageA((hwnd),LVM_GETITEMA,0,(LPARAM)(LVITEMA *)(pitem))
2799 #define ListView_GetItemW(hwnd,pitem) \
2800 (BOOL)SendMessageW((hwnd),LVM_GETITEMW,0,(LPARAM)(LVITEMW *)(pitem))
2801 #define ListView_GetItem WINELIB_NAME_AW(ListView_GetItem)
2803 #define ListView_HitTest(hwnd,pinfo) \
2804 (INT)SendMessageA((hwnd),LVM_HITTEST,0,(LPARAM)(LPLVHITTESTINFO)(pinfo))
2806 #define ListView_InsertItemA(hwnd,pitem) \
2807 (INT)SendMessageA((hwnd),LVM_INSERTITEMA,0,(LPARAM)(const LVITEMA *)(pitem))
2808 #define ListView_InsertItemW(hwnd,pitem) \
2809 (INT)SendMessageW((hwnd),LVM_INSERTITEMW,0,(LPARAM)(const LVITEMW *)(pitem))
2810 #define ListView_InsertItem WINELIB_NAME_AW(ListView_InsertItem)
2812 #define ListView_DeleteAllItems(hwnd) \
2813 (BOOL)SendMessageA((hwnd),LVM_DELETEALLITEMS,0,0L)
2815 #define ListView_InsertColumnA(hwnd,iCol,pcol) \
2816 (INT)SendMessageA((hwnd),LVM_INSERTCOLUMNA,(WPARAM)(INT)(iCol),(LPARAM)(const LVCOLUMNA *)(pcol))
2817 #define ListView_InsertColumnW(hwnd,iCol,pcol) \
2818 (INT)SendMessageW((hwnd),LVM_INSERTCOLUMNW,(WPARAM)(INT)(iCol),(LPARAM)(const LVCOLUMNW *)(pcol))
2819 #define ListView_InsertColumn WINELIB_NAME_AW(ListView_InsertColumn)
2821 #define ListView_SortItems(hwndLV,_pfnCompare,_lPrm) \
2822 (BOOL)SendMessageA((hwndLV),LVM_SORTITEMS,(WPARAM)(LPARAM)_lPrm,(LPARAM)(PFNLVCOMPARE)_pfnCompare)
2823 #define ListView_SetItemPosition(hwndLV, i, x, y) \
2824 (BOOL)SendMessageA((hwndLV),LVM_SETITEMPOSITION,(WPARAM)(INT)(i),MAKELPARAM((x),(y)))
2825 #define ListView_GetSelectedCount(hwndLV) \
2826 (UINT)SendMessageA((hwndLV),LVM_GETSELECTEDCOUNT,0,0L)
2828 #define ListView_EditLabelA(hwndLV, i) \
2829 (HWND)SendMessageA((hwndLV),LVM_EDITLABELA,(WPARAM)(int)(i), 0L)
2830 #define ListView_EditLabelW(hwndLV, i) \
2831 (HWND)SendMessageW((hwndLV),LVM_EDITLABELW,(WPARAM)(int)(i), 0L)
2832 #define ListView_EditLabel WINELIB_NAME_AW(ListView_EditLabel)
2834 #define ListView_SetItemTextA(hwndLV, i, _iSubItem, _pszText) \
2835 { LVITEMA _LVi; _LVi.iSubItem = _iSubItem; _LVi.pszText = _pszText;\
2836 SendMessageA(hwndLV, LVM_SETITEMTEXTA, (WPARAM)i, (LPARAM) (LVITEMA*)&_LVi);}
2837 #define ListView_SetItemTextW(hwndLV, i, _iSubItem, _pszText) \
2838 { LVITEMW _LVi; _LVi.iSubItem = _iSubItem; _LVi.pszText = _pszText;\
2839 SendMessageW(hwndLV, LVM_SETITEMTEXTW, (WPARAM)i, (LPARAM) (LVITEMW*)& _LVi);}
2840 #define ListView_SetItemText WINELIB_NAME_AW(ListView_SetItemText)
2842 #define ListView_DeleteItem(hwndLV, i) \
2843 (BOOL)SendMessageA(hwndLV, LVM_DELETEITEM, (WPARAM)(int)(i), 0L)
2844 #define ListView_Update(hwndLV, i) \
2845 (BOOL)SendMessageA((hwndLV), LVM_UPDATE, (WPARAM)(i), 0L)
2850 #define WC_TABCONTROL16 "SysTabControl"
2851 #define WC_TABCONTROLA "SysTabControl32"
2852 #define WC_TABCONTROLW L"SysTabControl32"
2854 #define WC_TABCONTROL WINELIB_NAME_AW(WC_TABCONTROL)
2856 /* tab control styles */
2857 #define TCS_SCROLLOPPOSITE 0x0001 /* assumes multiline tab */
2858 #define TCS_BOTTOM 0x0002
2859 #define TCS_RIGHT 0x0002
2860 #define TCS_MULTISELECT 0x0004 /* allow multi-select in button mode */
2861 #define TCS_FLATBUTTONS 0x0008
2862 #define TCS_FORCEICONLEFT 0x0010
2863 #define TCS_FORCELABELLEFT 0x0020
2864 #define TCS_HOTTRACK 0x0040
2865 #define TCS_VERTICAL 0x0080
2866 #define TCS_TABS 0x0000
2867 #define TCS_BUTTONS 0x0100
2868 #define TCS_SINGLELINE 0x0000
2869 #define TCS_MULTILINE 0x0200
2870 #define TCS_RIGHTJUSTIFY 0x0000
2871 #define TCS_FIXEDWIDTH 0x0400
2872 #define TCS_RAGGEDRIGHT 0x0800
2873 #define TCS_FOCUSONBUTTONDOWN 0x1000
2874 #define TCS_OWNERDRAWFIXED 0x2000
2875 #define TCS_TOOLTIPS 0x4000
2876 #define TCS_FOCUSNEVER 0x8000
2877 #define TCS_EX_FLATSEPARATORS 0x00000001 /* to be used with */
2878 #define TCS_EX_REGISTERDROP 0x00000002 /* TCM_SETEXTENDEDSTYLE */
2881 #define TCM_FIRST 0x1300
2883 #define TCM_GETIMAGELIST (TCM_FIRST + 2)
2884 #define TCM_SETIMAGELIST (TCM_FIRST + 3)
2885 #define TCM_GETITEMCOUNT (TCM_FIRST + 4)
2886 #define TCM_GETITEM WINELIB_NAME_AW(TCM_GETITEM)
2887 #define TCM_GETITEMA (TCM_FIRST + 5)
2888 #define TCM_GETITEMW (TCM_FIRST + 60)
2889 #define TCM_SETITEMA (TCM_FIRST + 6)
2890 #define TCM_SETITEMW (TCM_FIRST + 61)
2891 #define TCM_SETITEM WINELIB_NAME_AW(TCM_SETITEM)
2892 #define TCM_INSERTITEMA (TCM_FIRST + 7)
2893 #define TCM_INSERTITEMW (TCM_FIRST + 62)
2894 #define TCM_INSERTITEM WINELIB_NAME_AW(TCM_INSERTITEM)
2895 #define TCM_DELETEITEM (TCM_FIRST + 8)
2896 #define TCM_DELETEALLITEMS (TCM_FIRST + 9)
2897 #define TCM_GETITEMRECT (TCM_FIRST + 10)
2898 #define TCM_GETCURSEL (TCM_FIRST + 11)
2899 #define TCM_SETCURSEL (TCM_FIRST + 12)
2900 #define TCM_HITTEST (TCM_FIRST + 13)
2901 #define TCM_SETITEMEXTRA (TCM_FIRST + 14)
2902 #define TCM_ADJUSTRECT (TCM_FIRST + 40)
2903 #define TCM_SETITEMSIZE (TCM_FIRST + 41)
2904 #define TCM_REMOVEIMAGE (TCM_FIRST + 42)
2905 #define TCM_SETPADDING (TCM_FIRST + 43)
2906 #define TCM_GETROWCOUNT (TCM_FIRST + 44)
2907 #define TCM_GETTOOLTIPS (TCM_FIRST + 45)
2908 #define TCM_SETTOOLTIPS (TCM_FIRST + 46)
2909 #define TCM_GETCURFOCUS (TCM_FIRST + 47)
2910 #define TCM_SETCURFOCUS (TCM_FIRST + 48)
2911 #define TCM_SETMINTABWIDTH (TCM_FIRST + 49)
2912 #define TCM_DESELECTALL (TCM_FIRST + 50)
2913 #define TCM_HIGHLIGHTITEM (TCM_FIRST + 51)
2914 #define TCM_SETEXTENDEDSTYLE (TCM_FIRST + 52)
2915 #define TCM_GETEXTENDEDSTYLE (TCM_FIRST + 53)
2916 #define TCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
2917 #define TCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
2920 #define TCIF_TEXT 0x0001
2921 #define TCIF_IMAGE 0x0002
2922 #define TCIF_RTLREADING 0x0004
2923 #define TCIF_PARAM 0x0008
2924 #define TCIF_STATE 0x0010
2926 #define TCIS_BUTTONPRESSED 0x0001
2927 #define TCIS_HIGHLIGHTED 0x0002
2929 /* TabCtrl Macros */
2930 #define TabCtrl_GetImageList(hwnd) \
2931 (HIMAGELIST)SendMessageA((hwnd), TCM_GETIMAGELIST, 0, 0L)
2932 #define TabCtrl_SetImageList(hwnd, himl) \
2933 (HIMAGELIST)SendMessageA((hwnd), TCM_SETIMAGELIST, 0, (LPARAM)(UINT)(HIMAGELIST)(himl))
2934 #define TabCtrl_GetItemCount(hwnd) \
2935 (int)SendMessageA((hwnd), TCM_GETITEMCOUNT, 0, 0L)
2936 #define TabCtrl_GetItemA(hwnd, iItem, pitem) \
2937 (BOOL)SendMessageA((hwnd), TCM_GETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM *)(pitem))
2938 #define TabCtrl_GetItemW(hwnd, iItem, pitem) \
2939 (BOOL)SendMessageW((hwnd), TCM_GETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM *)(pitem))
2940 #define TabCtrl_GetItem WINELIB_NAME_AW(TabCtrl_GetItem)
2941 #define TabCtrl_SetItemA(hwnd, iItem, pitem) \
2942 (BOOL)SendMessageA((hwnd), TCM_SETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM *)(pitem))
2943 #define TabCtrl_SetItemW(hwnd, iItem, pitem) \
2944 (BOOL)SendMessageW((hwnd), TCM_SETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM *)(pitem))
2945 #define TabCtrl_SetItem WINELIB_NAME_AW(TabCtrl_GetItem)
2946 #define TabCtrl_InsertItemA(hwnd, iItem, pitem) \
2947 (int)SendMessageA((hwnd), TCM_INSERTITEM, (WPARAM)(int)iItem, (LPARAM)(const TC_ITEM *)(pitem))
2948 #define TabCtrl_InsertItemW(hwnd, iItem, pitem) \
2949 (int)SendMessageW((hwnd), TCM_INSERTITEM, (WPARAM)(int)iItem, (LPARAM)(const TC_ITEM *)(pitem))
2950 #define TabCtrl_InsertItem WINELIB_NAME_AW(TabCtrl_InsertItem)
2951 #define TabCtrl_DeleteItem(hwnd, i) \
2952 (BOOL)SendMessageA((hwnd), TCM_DELETEITEM, (WPARAM)(int)(i), 0L)
2953 #define TabCtrl_DeleteAllItems(hwnd) \
2954 (BOOL)SendMessageA((hwnd), TCM_DELETEALLITEMS, 0, 0L)
2955 #define TabCtrl_GetItemRect(hwnd, i, prc) \
2956 (BOOL)SendMessageA((hwnd), TCM_GETITEMRECT, (WPARAM)(int)(i), (LPARAM)(RECT *)(prc))
2957 #define TabCtrl_GetCurSel(hwnd) \
2958 (int)SendMessageA((hwnd), TCM_GETCURSEL, 0, 0)
2959 #define TabCtrl_SetCurSel(hwnd, i) \
2960 (int)SendMessageA((hwnd), TCM_SETCURSEL, (WPARAM)i, 0)
2961 #define TabCtrl_HitTest(hwndTC, pinfo) \
2962 (int)SendMessageA((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO *)(pinfo))
2963 #define TabCtrl_SetItemExtra(hwndTC, cb) \
2964 (BOOL)SendMessageA((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0L)
2965 #define TabCtrl_AdjustRect(hwnd, bLarger, prc) \
2966 (int)SendMessageA(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)bLarger, (LPARAM)(RECT *)prc)
2967 #define TabCtrl_SetItemSize(hwnd, x, y) \
2968 (DWORD)SendMessageA((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y))
2969 #define TabCtrl_RemoveImage(hwnd, i) \
2970 (void)SendMessageA((hwnd), TCM_REMOVEIMAGE, i, 0L)
2971 #define TabCtrl_SetPadding(hwnd, cx, cy) \
2972 (void)SendMessageA((hwnd), TCM_SETPADDING, 0, MAKELPARAM(cx, cy))
2973 #define TabCtrl_GetRowCount(hwnd) \
2974 (int)SendMessageA((hwnd), TCM_GETROWCOUNT, 0, 0L)
2975 #define TabCtrl_GetToolTips(hwnd) \
2976 (HWND)SendMessageA((hwnd), TCM_GETTOOLTIPS, 0, 0L)
2977 #define TabCtrl_SetToolTips(hwnd, hwndTT) \
2978 (void)SendMessageA((hwnd), TCM_SETTOOLTIPS, (WPARAM)hwndTT, 0L)
2979 #define TabCtrl_GetCurFocus(hwnd) \
2980 (int)SendMessageA((hwnd), TCM_GETCURFOCUS, 0, 0)
2981 #define TabCtrl_SetCurFocus(hwnd, i) \
2982 SendMessageA((hwnd),TCM_SETCURFOCUS, i, 0)
2983 #define TabCtrl_SetMinTabWidth(hwnd, x) \
2984 (int)SendMessageA((hwnd), TCM_SETMINTABWIDTH, 0, x)
2985 #define TabCtrl_DeselectAll(hwnd, fExcludeFocus)\
2986 (void)SendMessageA((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)
2989 /* constants for TCHITTESTINFO */
2991 #define TCHT_NOWHERE 0x01
2992 #define TCHT_ONITEMICON 0x02
2993 #define TCHT_ONITEMLABEL 0x04
2994 #define TCHT_ONITEM (TCHT_ONITEMICON | TCHT_ONITEMLABEL)
2997 typedef struct tagTCITEMA
{
3005 } TCITEMA
, *LPTCITEMA
;
3007 typedef struct tagTCITEMW
3016 } TCITEMW
, *LPTCITEMW
;
3018 #define TCITEM WINELIB_NAME_AW(TCITEM)
3019 #define LPTCITEM WINELIB_NAME_AW(LPTCITEM)
3020 #define TC_ITEM TCITEM
3022 #define TCN_FIRST (0U-550U)
3023 #define TCN_LAST (0U-580U)
3024 #define TCN_KEYDOWN (TCN_FIRST - 0)
3025 #define TCN_SELCHANGE (TCN_FIRST - 1)
3026 #define TCN_SELCHANGING (TCN_FIRST - 2)
3027 #define TCN_GETOBJECT (TCN_FIRST - 3)
3030 /* ComboBoxEx control */
3032 #define WC_COMBOBOXEXA "ComboBoxEx32"
3033 #define WC_COMBOBOXEXW L"ComboBoxEx32"
3034 #define WC_COMBOBOXEX WINELIB_NAME_AW(WC_COMBOBOXEX)
3036 #define CBEM_INSERTITEMA (WM_USER+1)
3037 #define CBEM_INSERTITEMW (WM_USER+11)
3038 #define CBEM_INSERTITEM WINELIB_NAME_AW(CBEM_INSERTITEM)
3039 #define CBEM_SETIMAGELIST (WM_USER+2)
3040 #define CBEM_GETIMAGELIST (WM_USER+3)
3041 #define CBEM_GETITEMA (WM_USER+4)
3042 #define CBEM_GETITEMW (WM_USER+13)
3043 #define CBEM_GETITEM WINELIB_NAME_AW(CBEM_GETITEM)
3044 #define CBEM_SETITEMA (WM_USER+5)
3045 #define CBEM_SETITEMW (WM_USER+12)
3046 #define CBEM_SETITEM WINELIB_NAME_AW(CBEM_SETITEM)
3047 #define CBEM_GETCOMBOCONTROL (WM_USER+6)
3048 #define CBEM_GETEDITCONTROL (WM_USER+7)
3049 #define CBEM_SETEXSTYLE (WM_USER+8)
3050 #define CBEM_GETEXSTYLE (WM_USER+9)
3051 #define CBEM_GETEXTENDEDSTYLE (WM_USER+9)
3052 #define CBEM_SETEXTENDEDSTYLE (WM_USER+14)
3053 #define CBEM_HASEDITCHANGED (WM_USER+10)
3054 #define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
3055 #define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
3057 #define CBEN_FIRST (0U-800U)
3058 #define CBEN_LAST (0U-830U)
3060 typedef struct tagCOMBOBOXEXITEMA
3071 } COMBOBOXEXITEMA
, *PCOMBOBOXEXITEMA
;
3072 typedef COMBOBOXEXITEMA CONST
*PCCOMBOEXITEMA
;
3075 typedef struct tagCOMBOBOXEXITEMW
3086 } COMBOBOXEXITEMW
, *PCOMBOBOXEXITEMW
;
3088 #define COMBOBOXEXITEM WINELIB_NAME_AW(COMBOBOXEXITEM)
3090 /* Hotkey control */
3092 #define HOTKEY_CLASS16 "msctls_hotkey"
3093 #define HOTKEY_CLASSA "msctls_hotkey32"
3094 #define HOTKEY_CLASSW L"msctls_hotkey32"
3095 #define HOTKEY_CLASS WINELIB_NAME_AW(HOTKEY_CLASS)
3097 #define HOTKEYF_SHIFT 0x01
3098 #define HOTKEYF_CONTROL 0x02
3099 #define HOTKEYF_ALT 0x04
3100 #define HOTKEYF_EXT 0x08
3102 #define HKCOMB_NONE 0x0001
3103 #define HKCOMB_S 0x0002
3104 #define HKCOMB_C 0x0004
3105 #define HKCOMB_A 0x0008
3106 #define HKCOMB_SC 0x0010
3107 #define HKCOMB_SA 0x0020
3108 #define HKCOMB_CA 0x0040
3109 #define HKCOMB_SCA 0x0080
3111 #define HKM_SETHOTKEY (WM_USER+1)
3112 #define HKM_GETHOTKEY (WM_USER+2)
3113 #define HKM_SETRULES (WM_USER+3)
3116 /* animate control */
3118 #define ANIMATE_CLASSA "SysAnimate32"
3119 #define ANIMATE_CLASSW L"SysAnimate32"
3120 #define ANIMATE_CLASS WINELIB_NAME_AW(ANIMATE_CLASS)
3122 #define ACS_CENTER 0x0001
3123 #define ACS_TRANSPARENT 0x0002
3124 #define ACS_AUTOPLAY 0x0004
3125 #define ACS_TIMER 0x0008 /* no threads, just timers */
3127 #define ACM_OPENA (WM_USER+100)
3128 #define ACM_OPENW (WM_USER+103)
3129 #define ACM_OPEN WINELIB_NAME_AW(ACM_OPEN)
3130 #define ACM_PLAY (WM_USER+101)
3131 #define ACM_STOP (WM_USER+102)
3136 #define Animate_CreateA(hwndP,id,dwStyle,hInstance) \
3137 CreateWindowA(ANIMATE_CLASSA,NULL,dwStyle,0,0,0,0,hwndP,(HMENU)(id),hInstance,NULL)
3138 #define Animate_CreateW(hwndP,id,dwStyle,hInstance) \
3139 CreateWindowW(ANIMATE_CLASSW,NULL,dwStyle,0,0,0,0,hwndP,(HMENU)(id),hInstance,NULL)
3140 #define Animate_Create WINELIB_NAME_AW(Animate_Create)
3141 #define Animate_OpenA(hwnd,szName) \
3142 (BOOL)SendMessageA(hwnd,ACM_OPENA,0,(LPARAM)(LPSTR)(szName))
3143 #define Animate_OpenW(hwnd,szName) \
3144 (BOOL)SendMessageW(hwnd,ACM_OPENW,0,(LPARAM)(LPWSTR)(szName))
3145 #define Animate_Open WINELIB_NAME_AW(Animate_Open)
3146 #define Animate_OpenExA(hwnd,hInst,szName) \
3147 (BOOL)SendMessageA(hwnd,ACM_OPENA,(WPARAM)hInst,(LPARAM)(LPSTR)(szName))
3148 #define Animate_OpenExW(hwnd,hInst,szName) \
3149 (BOOL)SendMessageW(hwnd,ACM_OPENW,(WPARAM)hInst,(LPARAM)(LPWSTR)(szName))
3150 #define Animate_OpenEx WINELIB_NAME_AW(Animate_OpenEx)
3151 #define Animate_Play(hwnd,from,to,rep) \
3152 (BOOL)SendMessageA(hwnd,ACM_PLAY,(WPARAM)(UINT)(rep),(LPARAM)MAKELONG(from,to))
3153 #define Animate_Stop(hwnd) \
3154 (BOOL)SendMessageA(hwnd,ACM_STOP,0,0)
3155 #define Animate_Close(hwnd) \
3156 (BOOL)SendMessageA(hwnd,ACM_OPENA,0,0)
3157 #define Animate_Seek(hwnd,frame) \
3158 (BOOL)SendMessageA(hwnd,ACM_PLAY,1,(LPARAM)MAKELONG(frame,frame))
3161 /**************************************************************************
3162 * IP Address control
3165 #define WC_IPADDRESSA "SysIPAddress32"
3166 #define WC_IPADDRESSW L"SysIPAddress32"
3167 #define WC_IPADDRESS WINELIB_NAME_AW(WC_IPADDRESS)
3169 #define IPM_CLEARADDRESS (WM_USER+100)
3170 #define IPM_SETADDRESS (WM_USER+101)
3171 #define IPM_GETADDRESS (WM_USER+102)
3172 #define IPM_SETRANGE (WM_USER+103)
3173 #define IPM_SETFOCUS (WM_USER+104)
3174 #define IPM_ISBLANK (WM_USER+105)
3176 #define IPN_FIRST (0U-860U)
3177 #define IPN_LAST (0U-879U)
3178 #define IPN_FIELDCHANGED (IPN_FIRST-0)
3180 typedef struct tagNMIPADDRESS
3185 } NMIPADDRESS
, *LPNMIPADDRESS
;
3187 #define MAKEIPRANGE(low,high) \
3188 ((LPARAM)(WORD)(((BYTE)(high)<<8)+(BYTE)(low)))
3189 #define MAKEIPADDRESS(b1,b2,b3,b4) \
3190 ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<16)+((DWORD)(b3)<<8)+((DWORD)(b4))))
3192 #define FIRST_IPADDRESS(x) (((x)>>24)&0xff)
3193 #define SECOND_IPADDRESS(x) (((x)>>16)&0xff)
3194 #define THIRD_IPADDRESS(x) (((x)>>8)&0xff)
3195 #define FOURTH_IPADDRESS(x) ((x)&0xff)
3198 /**************************************************************************
3199 * Native Font control
3202 #define WC_NATIVEFONTCTLA "NativeFontCtl"
3203 #define WC_NATIVEFONTCTLW L"NativeFontCtl"
3204 #define WC_NATIVEFONTCTL WINELIB_NAME_AW(WC_NATIVEFONTCTL)
3206 #define NFS_EDIT 0x0001
3207 #define NFS_STATIC 0x0002
3208 #define NFS_LISTCOMBO 0x0004
3209 #define NFS_BUTTON 0x0008
3210 #define NFS_ALL 0x0010
3213 /**************************************************************************
3214 * Month calendar control
3218 #define MONTHCAL_CLASSA "SysMonthCal32"
3219 #define MONTHCAL_CLASSW L"SysMonthCal32"
3220 #define MONTHCAL_CLASS WINELIB_NAME_AW(MONTHCAL_CLASS)
3222 #define MCM_FIRST 0x1000
3223 #define MCN_FIRST (0U-750U)
3224 #define MCN_LAST (0U-759U)
3227 #define MCM_GETCURSEL (MCM_FIRST + 1)
3228 #define MCM_SETCURSEL (MCM_FIRST + 2)
3229 #define MCM_GETMAXSELCOUNT (MCM_FIRST + 3)
3230 #define MCM_SETMAXSELCOUNT (MCM_FIRST + 4)
3231 #define MCM_GETSELRANGE (MCM_FIRST + 5)
3232 #define MCM_SETSELRANGE (MCM_FIRST + 6)
3233 #define MCM_GETMONTHRANGE (MCM_FIRST + 7)
3234 #define MCM_SETDAYSTATE (MCM_FIRST + 8)
3235 #define MCM_GETMINREQRECT (MCM_FIRST + 9)
3236 #define MCM_SETCOLOR (MCM_FIRST + 10)
3237 #define MCM_GETCOLOR (MCM_FIRST + 11)
3238 #define MCM_SETTODAY (MCM_FIRST + 12)
3239 #define MCM_GETTODAY (MCM_FIRST + 13)
3240 #define MCM_HITTEST (MCM_FIRST + 14)
3241 #define MCM_SETFIRSTDAYOFWEEK (MCM_FIRST + 15)
3242 #define MCM_GETFIRSTDAYOFWEEK (MCM_FIRST + 16)
3243 #define MCM_GETRANGE (MCM_FIRST + 17)
3244 #define MCM_SETRANGE (MCM_FIRST + 18)
3245 #define MCM_GETMONTHDELTA (MCM_FIRST + 19)
3246 #define MCM_SETMONTHDELTA (MCM_FIRST + 20)
3247 #define MCM_GETMAXTODAYWIDTH (MCM_FIRST + 21)
3248 #define MCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
3249 #define MCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
3254 #define MCN_SELCHANGE (MCN_FIRST + 1)
3255 #define MCN_GETDAYSTATE (MCN_FIRST + 3)
3256 #define MCN_SELECT (MCN_FIRST + 4)
3258 #define MCSC_BACKGROUND 0
3260 #define MCSC_TITLEBK 2
3261 #define MCSC_TITLETEXT 3
3262 #define MCSC_MONTHBK 4
3263 #define MCSC_TRAILINGTEXT 5
3265 #define MCS_DAYSTATE 0x0001
3266 #define MCS_MULTISELECT 0x0002
3267 #define MCS_WEEKNUMBERS 0x0004
3268 #define MCS_NOTODAY 0x0010
3269 #define MCS_NOTODAYCIRCLE 0x0008
3271 #define MCHT_TITLE 0x00010000
3272 #define MCHT_CALENDAR 0x00020000
3273 #define MCHT_TODAYLINK 0x00030000
3275 #define MCHT_NEXT 0x01000000
3276 #define MCHT_PREV 0x02000000
3277 #define MCHT_NOWHERE 0x00000000
3278 #define MCHT_TITLEBK (MCHT_TITLE)
3279 #define MCHT_TITLEMONTH (MCHT_TITLE | 0x0001)
3280 #define MCHT_TITLEYEAR (MCHT_TITLE | 0x0002)
3281 #define MCHT_TITLEBTNNEXT (MCHT_TITLE | MCHT_NEXT | 0x0003)
3282 #define MCHT_TITLEBTNPREV (MCHT_TITLE | MCHT_PREV | 0x0003)
3284 #define MCHT_CALENDARBK (MCHT_CALENDAR)
3285 #define MCHT_CALENDARDATE (MCHT_CALENDAR | 0x0001)
3286 #define MCHT_CALENDARDATENEXT (MCHT_CALENDARDATE | MCHT_NEXT)
3287 #define MCHT_CALENDARDATEPREV (MCHT_CALENDARDATE | MCHT_PREV)
3288 #define MCHT_CALENDARDAY (MCHT_CALENDAR | 0x0002)
3289 #define MCHT_CALENDARWEEKNUM (MCHT_CALENDAR | 0x0003)
3293 #define GMR_VISIBLE 0
3294 #define GMR_DAYSTATE 1
3297 /* Month calendar's structures */
3305 } MCHITTESTINFO
, *PMCHITTESTINFO
;
3307 typedef struct tagNMSELCHANGE
3310 SYSTEMTIME stSelStart
;
3311 SYSTEMTIME stSelEnd
;
3312 } NMSELCHANGE
, *LPNMSELCHANGE
;
3314 typedef NMSELCHANGE NMSELECT
, *LPNMSELECT
;
3315 typedef DWORD MONTHDAYSTATE
, *LPMONTHDAYSTATE
;
3317 typedef struct tagNMDAYSTATE
3322 LPMONTHDAYSTATE prgDayState
;
3323 } NMDAYSTATE
, *LPNMDAYSTATE
;
3328 #define MonthCal_GetCurSel(hmc, pst) \
3329 (BOOL)SendMessageA(hmc, MCM_GETCURSEL, 0, (LPARAM)(pst))
3330 #define MonthCal_SetCurSel(hmc, pst) \
3331 (BOOL)SendMessageA(hmc, MCM_SETCURSEL, 0, (LPARAM)(pst))
3332 #define MonthCal_GetMaxSelCount(hmc) \
3333 (DWORD)SendMessageA(hmc, MCM_GETMAXSELCOUNT, 0, 0L)
3334 #define MonthCal_SetMaxSelCount(hmc, n) \
3335 (BOOL)SendMessageA(hmc, MCM_SETMAXSELCOUNT, (WPARAM)(n), 0L)
3336 #define MonthCal_GetSelRange(hmc, rgst) \
3337 SendMessageA(hmc, MCM_GETSELRANGE, 0, (LPARAM) (rgst))
3338 #define MonthCal_SetSelRange(hmc, rgst) \
3339 SendMessageA(hmc, MCM_SETSELRANGE, 0, (LPARAM) (rgst))
3340 #define MonthCal_GetMonthRange(hmc, gmr, rgst) \
3341 (DWORD)SendMessageA(hmc, MCM_GETMONTHRANGE, (WPARAM)(gmr), (LPARAM)(rgst))
3342 #define MonthCal_SetDayState(hmc, cbds, rgds) \
3343 SendMessageA(hmc, MCM_SETDAYSTATE, (WPARAM)(cbds), (LPARAM)(rgds))
3344 #define MonthCal_GetMinReqRect(hmc, prc) \
3345 SendMessageA(hmc, MCM_GETMINREQRECT, 0, (LPARAM)(prc))
3346 #define MonthCal_SetColor(hmc, iColor, clr)\
3347 SendMessageA(hmc, MCM_SETCOLOR, iColor, clr
3348 #define MonthCal_GetColor(hmc, iColor) \
3349 SendMessageA(hmc, MCM_SETCOLOR, iColor, 0)
3350 #define MonthCal_GetToday(hmc, pst)\
3351 (BOOL)SendMessageA(hmc, MCM_GETTODAY, 0, (LPARAM)pst)
3352 #define MonthCal_SetToday(hmc, pst)\
3353 SendMessageA(hmc, MCM_SETTODAY, 0, (LPARAM)pst)
3354 #define MonthCal_HitTest(hmc, pinfo) \
3355 SendMessageA(hmc, MCM_HITTEST, 0, (LPARAM)(PMCHITTESTINFO)pinfo)
3356 #define MonthCal_SetFirstDayOfWeek(hmc, iDay) \
3357 SendMessageA(hmc, MCM_SETFIRSTDAYOFWEEK, 0, iDay)
3358 #define MonthCal_GetFirstDayOfWeek(hmc) \
3359 (DWORD)SendMessageA(hmc, MCM_GETFIRSTDAYOFWEEK, 0, 0)
3360 #define MonthCal_GetRange(hmc, rgst) \
3361 (DWORD)SendMessageA(hmc, MCM_GETRANGE, 0, (LPARAM)(rgst))
3362 #define MonthCal_SetRange(hmc, gd, rgst) \
3363 (BOOL)SendMessageA(hmc, MCM_SETRANGE, (WPARAM)(gd), (LPARAM)(rgst))
3364 #define MonthCal_GetMonthDelta(hmc) \
3365 (int)SendMessageA(hmc, MCM_GETMONTHDELTA, 0, 0)
3366 #define MonthCal_SetMonthDelta(hmc, n) \
3367 (int)SendMessageA(hmc, MCM_SETMONTHDELTA, n, 0)
3368 #define MonthCal_GetMaxTodayWidth(hmc) \
3369 (DWORD)SendMessageA(hmc, MCM_GETMAXTODAYWIDTH, 0, 0)
3370 #define MonthCal_SetUnicodeFormat(hwnd, fUnicode) \
3371 (BOOL)SendMessageA((hwnd), MCM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0)
3372 #define MonthCal_GetUnicodeFormat(hwnd) \
3373 (BOOL)SendMessageA((hwnd), MCM_GETUNICODEFORMAT, 0, 0)
3376 /**************************************************************************
3377 * Date and time picker control
3380 #define DATETIMEPICK_CLASSA "SysDateTimePick32"
3381 #define DATETIMEPICK_CLASSW L"SysDateTimePick32"
3382 #define DATETIMEPICK_CLASS WINELIB_NAME_AW(DATETIMEPICK_CLASS)
3384 #define DTM_FIRST 0x1000
3385 #define DTN_FIRST (0U-760U)
3386 #define DTN_LAST (0U-799U)
3389 #define DTM_GETSYSTEMTIME (DTM_FIRST+1)
3390 #define DTM_SETSYSTEMTIME (DTM_FIRST+2)
3391 #define DTM_GETRANGE (DTM_FIRST+3)
3392 #define DTM_SETRANGE (DTM_FIRST+4)
3393 #define DTM_SETFORMATA (DTM_FIRST+5)
3394 #define DTM_SETFORMATW (DTM_FIRST + 50)
3395 #define DTM_SETFORMAT WINELIB_NAME_AW(DTM_SETFORMAT)
3396 #define DTM_SETMCCOLOR (DTM_FIRST+6)
3397 #define DTM_GETMCCOLOR (DTM_FIRST+7)
3398 #define DTM_GETMONTHCAL (DTM_FIRST+8)
3399 #define DTM_SETMCFONT (DTM_FIRST+9)
3400 #define DTM_GETMCFONT (DTM_FIRST+10)
3403 /* Datetime Notifications */
3405 #define DTN_DATETIMECHANGE (DTN_FIRST + 1)
3406 #define DTN_USERSTRINGA (DTN_FIRST + 2)
3407 #define DTN_WMKEYDOWNA (DTN_FIRST + 3)
3408 #define DTN_FORMATA (DTN_FIRST + 4)
3409 #define DTN_FORMATQUERYA (DTN_FIRST + 5)
3410 #define DTN_DROPDOWN (DTN_FIRST + 6)
3411 #define DTN_CLOSEUP (DTN_FIRST + 7)
3412 #define DTN_USERSTRINGW (DTN_FIRST + 15)
3413 #define DTN_WMKEYDOWNW (DTN_FIRST + 16)
3414 #define DTN_FORMATW (DTN_FIRST + 17)
3415 #define DTN_FORMATQUERYW (DTN_FIRST + 18)
3418 #define DTS_SHORTDATEFORMAT 0x0000
3419 #define DTS_UPDOWN 0x0001
3420 #define DTS_SHOWNONE 0x0002
3421 #define DTS_LONGDATEFORMAT 0x0004
3422 #define DTS_TIMEFORMAT 0x0009
3423 #define DTS_APPCANPARSE 0x0010
3424 #define DTS_RIGHTALIGN 0x0020
3426 typedef struct tagNMDATETIMECHANGE
3431 } NMDATETIMECHANGE
, *LPNMDATETIMECHANGE
;
3433 typedef struct tagNMDATETIMESTRINGA
3436 LPCSTR pszUserString
;
3439 } NMDATETIMESTRINGA
, *LPNMDATETIMESTRINGA
;
3441 typedef struct tagNMDATETIMESTRINGW
3444 LPCWSTR pszUserString
;
3447 } NMDATETIMESTRINGW
, *LPNMDATETIMESTRINGW
;
3450 typedef struct tagNMDATETIMEWMKEYDOWNA
3456 } NMDATETIMEWMKEYDOWNA
, *LPNMDATETIMEWMKEYDOWNA
;
3458 typedef struct tagNMDATETIMEWMKEYDOWNW
3464 } NMDATETIMEWMKEYDOWNW
, *LPNMDATETIMEWMKEYDOWNW
;
3468 typedef struct tagNMDATETIMEFORMATA
3475 } NMDATETIMEFORMATA
, *LPNMDATETIMEFORMATA
;
3478 typedef struct tagNMDATETIMEFORMATW
3484 WCHAR szDisplay
[64];
3485 } NMDATETIMEFORMATW
, *LPNMDATETIMEFORMATW
;
3489 typedef struct tagNMDATETIMEFORMATQUERYA
3494 } NMDATETIMEFORMATQUERYA
, *LPNMDATETIMEFORMATQUERYA
;
3496 typedef struct tagNMDATETIMEFORMATQUERYW
3501 } NMDATETIMEFORMATQUERYW
, *LPNMDATETIMEFORMATQUERYW
;
3504 #define NMDATETIMESTRING WINELIB_NAME_AW(NMDATETIMESTRING)
3505 #define NMDATETIMEWMKEYDOWN WINELIB_NAME_AW(NMDATETIMEWMKEYDOWN)
3506 #define NMDATETIMEFORMAT WINELIB_NAME_AW(NMDATETIMEFORMAT)
3507 #define NMDATETIMEFORMATQUERY WINELIB_NAME_AW(NMDATETIMEFORMATQUERY)
3513 #define GDT_ERROR -1
3517 #define GDTR_MIN 0x0001
3518 #define GDTR_MAX 0x0002
3521 #define DateTime_GetSystemtime(hdp, pst) \
3522 (DWORD)SendMessageA (hdp, DTM_GETSYSTEMTIME , 0, (LPARAM)(pst))
3523 #define DateTime_SetSystemtime(hdp, gd, pst) \
3524 (BOOL)SendMessageA (hdp, DTM_SETSYSTEMTIME, (LPARAM)(gd), (LPARAM)(pst))
3525 #define DateTime_GetRange(hdp, rgst) \
3526 (DWORD)SendMessageA (hdp, DTM_GETRANGE, 0, (LPARAM)(rgst))
3527 #define DateTime_SetRange(hdp, gd, rgst) \
3528 (BOOL)SendMessageA (hdp, DTM_SETRANGE, (WPARAM)(gd), (LPARAM)(rgst))
3529 #define DateTime_SetFormat WINELIB_NAME_AW(DateTime_SetFormat)
3530 #define DateTime_SetFormatA(hdp, sz) \
3531 (BOOL)SendMessageA (hdp, DTM_SETFORMAT, 0, (LPARAM)(sz))
3532 #define DateTime_SetFormatW(hdp, sz) \
3533 (BOOL)SendMessageW (hdp, DTM_SETFORMAT, 0, (LPARAM)(sz))
3534 #define DateTime_GetMonthCalColor(hdp, iColor) \
3535 SendMessageA (hdp, DTM_GETMCCOLOR, iColor, 0)
3536 #define DateTime_GetMonthCal(hdp) \
3537 (HWND) SendMessageA (hdp, DTM_GETMONTHCAL, 0, 0)
3538 #define DateTime_SetMonthCalFont(hdp, hfont, fRedraw) \
3539 SendMessageA (hdp, DTM_SETMCFONT, (WPARAM)hfont, (LPARAM)fRedraw)
3540 #define DateTime_GetMonthCalFont(hdp) \
3541 SendMessageA (hdp, DTM_GETMCFONT, 0, 0)
3548 /**************************************************************************
3549 * UNDOCUMENTED functions
3552 /* private heap memory functions */
3554 LPVOID WINAPI
COMCTL32_Alloc (DWORD
);
3555 LPVOID WINAPI
COMCTL32_ReAlloc (LPVOID
, DWORD
);
3556 BOOL WINAPI
COMCTL32_Free (LPVOID
);
3557 DWORD WINAPI
COMCTL32_GetSize (LPVOID
);
3559 LPWSTR WINAPI
COMCTL32_StrChrW (LPCWSTR
, WORD
);
3562 INT WINAPI
Str_GetPtrA (LPCSTR
, LPSTR
, INT
);
3563 BOOL WINAPI
Str_SetPtrA (LPSTR
*, LPCSTR
);
3564 INT WINAPI
Str_GetPtrW (LPCWSTR
, LPWSTR
, INT
);
3565 BOOL WINAPI
Str_SetPtrW (LPWSTR
*, LPCWSTR
);
3566 #define Str_GetPtr WINELIB_NAME_AW(Str_GetPtr)
3567 #define Str_SetPtr WINELIB_NAME_AW(Str_SetPtr)
3570 /* Dynamic Storage Array */
3581 HDSA WINAPI
DSA_Create (INT
, INT
);
3582 BOOL WINAPI
DSA_DeleteAllItems (const HDSA
);
3583 INT WINAPI
DSA_DeleteItem (const HDSA
, INT
);
3584 BOOL WINAPI
DSA_Destroy (const HDSA
);
3585 BOOL WINAPI
DSA_GetItem (const HDSA
, INT
, LPVOID
);
3586 LPVOID WINAPI
DSA_GetItemPtr (const HDSA
, INT
);
3587 INT WINAPI
DSA_InsertItem (const HDSA
, INT
, LPVOID
);
3588 BOOL WINAPI
DSA_SetItem (const HDSA
, INT
, LPVOID
);
3590 typedef INT
CALLBACK (*DSAENUMPROC
)(LPVOID
, DWORD
);
3591 VOID WINAPI
DSA_EnumCallback (const HDSA
, DSAENUMPROC
, LPARAM
);
3592 BOOL WINAPI
DSA_DestroyCallback (const HDSA
, DSAENUMPROC
, LPARAM
);
3595 /* Dynamic Pointer Array */
3606 HDPA WINAPI
DPA_Create (INT
);
3607 HDPA WINAPI
DPA_CreateEx (INT
, HANDLE
);
3608 BOOL WINAPI
DPA_Destroy (const HDPA
);
3609 HDPA WINAPI
DPA_Clone (const HDPA
, const HDPA
);
3610 LPVOID WINAPI
DPA_GetPtr (const HDPA
, INT
);
3611 INT WINAPI
DPA_GetPtrIndex (const HDPA
, LPVOID
);
3612 BOOL WINAPI
DPA_Grow (const HDPA
, INT
);
3613 BOOL WINAPI
DPA_SetPtr (const HDPA
, INT
, LPVOID
);
3614 INT WINAPI
DPA_InsertPtr (const HDPA
, INT
, LPVOID
);
3615 LPVOID WINAPI
DPA_DeletePtr (const HDPA
, INT
);
3616 BOOL WINAPI
DPA_DeleteAllPtrs (const HDPA
);
3618 typedef INT
CALLBACK (*PFNDPACOMPARE
)(LPVOID
, LPVOID
, LPARAM
);
3619 BOOL WINAPI
DPA_Sort (const HDPA
, PFNDPACOMPARE
, LPARAM
);
3621 #define DPAS_SORTED 0x0001
3622 #define DPAS_INSERTBEFORE 0x0002
3623 #define DPAS_INSERTAFTER 0x0004
3625 INT WINAPI
DPA_Search (const HDPA
, LPVOID
, INT
, PFNDPACOMPARE
, LPARAM
, UINT
);
3627 #define DPAM_SORT 0x0001
3629 typedef PVOID
CALLBACK (*PFNDPAMERGE
)(DWORD
,PVOID
,PVOID
,LPARAM
);
3630 BOOL WINAPI
DPA_Merge (const HDPA
, const HDPA
, DWORD
, PFNDPACOMPARE
, PFNDPAMERGE
, LPARAM
);
3632 typedef INT
CALLBACK (*DPAENUMPROC
)(LPVOID
, DWORD
);
3633 VOID WINAPI
DPA_EnumCallback (const HDPA
, DPAENUMPROC
, LPARAM
);
3634 BOOL WINAPI
DPA_DestroyCallback (const HDPA
, DPAENUMPROC
, LPARAM
);
3637 #define DPA_GetPtrCount(hdpa) (*(INT*)(hdpa))
3638 #define DPA_GetPtrPtr(hdpa) (*((LPVOID**)((BYTE*)(hdpa)+sizeof(INT))))
3639 #define DPA_FastGetPtr(hdpa,i) (DPA_GetPtrPtr(hdpa)[i])
3642 /* notification helper functions */
3644 LRESULT WINAPI
COMCTL32_SendNotify (HWND
, HWND
, UINT
, LPNMHDR
);
3646 /* type and functionality of last parameter is still unknown */
3647 LRESULT WINAPI
COMCTL32_SendNotifyEx (HWND
, HWND
, UINT
, LPNMHDR
, DWORD
);
3653 #endif /* __WINE_COMMCTRL_H */