2 * Common controls definitions
4 * Copyright (C) the Wine project
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_COMMCTRL_H
22 #define __WINE_COMMCTRL_H
35 BOOL WINAPI
ShowHideMenuCtl (HWND
, UINT
, LPINT
);
36 VOID WINAPI
GetEffectiveClientRect (HWND
, LPRECT
, LPINT
);
37 VOID WINAPI
InitCommonControls (VOID
);
39 typedef struct tagINITCOMMONCONTROLSEX
{
42 } INITCOMMONCONTROLSEX
, *LPINITCOMMONCONTROLSEX
;
44 BOOL WINAPI
InitCommonControlsEx (LPINITCOMMONCONTROLSEX
);
46 LANGID WINAPI
GetMUILanguage (VOID
);
47 VOID WINAPI
InitMUILanguage (LANGID uiLang
);
50 #define COMCTL32_VERSION 5 /* dll version */
53 #define _WIN32_IE 0x0400
56 #define ICC_LISTVIEW_CLASSES 0x00000001 /* listview, header */
57 #define ICC_TREEVIEW_CLASSES 0x00000002 /* treeview, tooltips */
58 #define ICC_BAR_CLASSES 0x00000004 /* toolbar, statusbar, trackbar, tooltips */
59 #define ICC_TAB_CLASSES 0x00000008 /* tab, tooltips */
60 #define ICC_UPDOWN_CLASS 0x00000010 /* updown */
61 #define ICC_PROGRESS_CLASS 0x00000020 /* progress */
62 #define ICC_HOTKEY_CLASS 0x00000040 /* hotkey */
63 #define ICC_ANIMATE_CLASS 0x00000080 /* animate */
64 #define ICC_WIN95_CLASSES 0x000000FF
65 #define ICC_DATE_CLASSES 0x00000100 /* month picker, date picker, time picker, updown */
66 #define ICC_USEREX_CLASSES 0x00000200 /* comboex */
67 #define ICC_COOL_CLASSES 0x00000400 /* rebar (coolbar) */
68 #define ICC_INTERNET_CLASSES 0x00000800 /* IP address, ... */
69 #define ICC_PAGESCROLLER_CLASS 0x00001000 /* page scroller */
70 #define ICC_NATIVEFNTCTL_CLASS 0x00002000 /* native font control ???*/
73 /* common control styles */
74 #define CCS_TOP 0x00000001L
75 #define CCS_NOMOVEY 0x00000002L
76 #define CCS_BOTTOM 0x00000003L
77 #define CCS_NORESIZE 0x00000004L
78 #define CCS_NOPARENTALIGN 0x00000008L
79 #define CCS_ADJUSTABLE 0x00000020L
80 #define CCS_NODIVIDER 0x00000040L
81 #define CCS_VERT 0x00000080L
82 #define CCS_LEFT (CCS_VERT|CCS_TOP)
83 #define CCS_RIGHT (CCS_VERT|CCS_BOTTOM)
84 #define CCS_NOMOVEX (CCS_VERT|CCS_NOMOVEY)
87 /* common control shared messages */
88 #define CCM_FIRST 0x2000
90 #define CCM_SETBKCOLOR (CCM_FIRST+1) /* lParam = bkColor */
91 #define CCM_SETCOLORSCHEME (CCM_FIRST+2) /* lParam = COLORSCHEME struct ptr */
92 #define CCM_GETCOLORSCHEME (CCM_FIRST+3) /* lParam = COLORSCHEME struct ptr */
93 #define CCM_GETDROPTARGET (CCM_FIRST+4)
94 #define CCM_SETUNICODEFORMAT (CCM_FIRST+5)
95 #define CCM_GETUNICODEFORMAT (CCM_FIRST+6)
96 #define CCM_SETVERSION (CCM_FIRST+7)
97 #define CCM_GETVERSION (CCM_FIRST+8)
98 #define CCM_SETNOTIFYWINDOW (CCM_FIRST+9) /* wParam = hwndParent */
101 /* common notification codes (WM_NOTIFY)*/
102 #define NM_FIRST (0U- 0U)
103 #define NM_LAST (0U- 99U)
104 #define NM_OUTOFMEMORY (NM_FIRST-1)
105 #define NM_CLICK (NM_FIRST-2)
106 #define NM_DBLCLK (NM_FIRST-3)
107 #define NM_RETURN (NM_FIRST-4)
108 #define NM_RCLICK (NM_FIRST-5)
109 #define NM_RDBLCLK (NM_FIRST-6)
110 #define NM_SETFOCUS (NM_FIRST-7)
111 #define NM_KILLFOCUS (NM_FIRST-8)
112 #define NM_CUSTOMDRAW (NM_FIRST-12)
113 #define NM_HOVER (NM_FIRST-13)
114 #define NM_NCHITTEST (NM_FIRST-14)
115 #define NM_KEYDOWN (NM_FIRST-15)
116 #define NM_RELEASEDCAPTURE (NM_FIRST-16)
117 #define NM_SETCURSOR (NM_FIRST-17)
118 #define NM_CHAR (NM_FIRST-18)
119 #define NM_TOOLTIPSCREATED (NM_FIRST-19)
121 #define HANDLE_WM_NOTIFY(hwnd, wParam, lParam, fn) \
122 (fn)((hwnd), (int)(wParam), (NMHDR*)(lParam))
123 #define FORWARD_WM_NOTIFY(hwnd, idFrom, pnmhdr, fn) \
124 (LRESULT)(fn)((hwnd), WM_NOTIFY, (WPARAM)(int)(idFrom), (LPARAM)(NMHDR*)(pnmhdr))
127 /* callback constants */
128 #define LPSTR_TEXTCALLBACKA ((LPSTR)-1L)
129 #define LPSTR_TEXTCALLBACKW ((LPWSTR)-1L)
130 #define LPSTR_TEXTCALLBACK WINELIB_NAME_AW(LPSTR_TEXTCALLBACK)
132 #define I_IMAGECALLBACK (-1)
133 #define I_IMAGENONE (-2)
134 #define I_INDENTCALLBACK (-1)
135 #define I_CHILDRENCALLBACK (-1)
137 /* owner drawn types */
138 #define ODT_HEADER 100
140 #define ODT_LISTVIEW 102
142 /* common notification structures */
143 typedef struct tagNMTOOLTIPSCREATED
147 } NMTOOLTIPSCREATED
, *LPNMTOOLTIPSCREATED
;
149 typedef struct tagNMMOUSE
155 DWORD dwHitInfo
; /* info where on item or control the mouse is */
156 } NMMOUSE
, *LPNMMOUSE
;
158 typedef struct tagNMOBJECTNOTIFY
162 #ifdef __IID_DEFINED__
170 } NMOBJECTNOTIFY
, *LPNMOBJECTNOTIFY
;
172 typedef struct tagNMKEY
179 typedef struct tagNMCHAR
183 DWORD dwItemPrev
; /* Item previously selected */
184 DWORD dwItemNext
; /* Item to be selected */
187 #ifndef CCSIZEOF_STRUCT
188 #define CCSIZEOF_STRUCT(name, member) \
189 (((INT)((LPBYTE)(&((name*)0)->member)-((LPBYTE)((name*)0))))+ \
190 sizeof(((name*)0)->member))
194 /* This is only for Winelib applications. DON't use it wine itself!!! */
197 #define SNDMSG ::SendMessage
198 #else /* __cplusplus */
199 #define SNDMSG SendMessage
200 #endif /* __cplusplus */
205 /* Custom Draw messages */
207 #define CDRF_DODEFAULT 0x0
208 #define CDRF_NEWFONT 0x00000002
209 #define CDRF_SKIPDEFAULT 0x00000004
210 #define CDRF_NOTIFYPOSTPAINT 0x00000010
211 #define CDRF_NOTIFYITEMDRAW 0x00000020
212 #define CDRF_NOTIFYSUBITEMDRAW 0x00000020
213 #define CDRF_NOTIFYPOSTERASE 0x00000040
214 #define CDRF_NOTIFYITEMERASE 0x00000080 /* obsolete ??? */
217 /* drawstage flags */
219 #define CDDS_PREPAINT 1
220 #define CDDS_POSTPAINT 2
221 #define CDDS_PREERASE 3
222 #define CDDS_POSTERASE 4
224 #define CDDS_ITEM 0x00010000
225 #define CDDS_ITEMPREPAINT (CDDS_ITEM | CDDS_PREPAINT)
226 #define CDDS_ITEMPOSTPAINT (CDDS_ITEM | CDDS_POSTPAINT)
227 #define CDDS_ITEMPREERASE (CDDS_ITEM | CDDS_PREERASE)
228 #define CDDS_ITEMPOSTERASE (CDDS_ITEM | CDDS_POSTERASE)
229 #define CDDS_SUBITEM 0x00020000
231 /* itemState flags */
233 #define CDIS_SELECTED 0x0001
234 #define CDIS_GRAYED 0x0002
235 #define CDIS_DISABLED 0x0004
236 #define CDIS_CHECKED 0x0008
237 #define CDIS_FOCUS 0x0010
238 #define CDIS_DEFAULT 0x0020
239 #define CDIS_HOT 0x0040
240 #define CDIS_MARKED 0x0080
241 #define CDIS_INDETERMINATE 0x0100
244 typedef struct tagNMCUSTOMDRAWINFO
253 } NMCUSTOMDRAW
, *LPNMCUSTOMDRAW
;
255 typedef struct tagNMTTCUSTOMDRAW
259 } NMTTCUSTOMDRAW
, *LPNMTTCUSTOMDRAW
;
266 #define STATUSCLASSNAME16 "msctls_statusbar"
267 #define STATUSCLASSNAMEA "msctls_statusbar32"
268 static const WCHAR STATUSCLASSNAMEW
[] = { 'm','s','c','t','l','s','_',
269 's','t','a','t','u','s','b','a','r','3','2',0 };
270 #define STATUSCLASSNAME WINELIB_NAME_AW(STATUSCLASSNAME)
272 #define SBT_NOBORDERS 0x0100
273 #define SBT_POPOUT 0x0200
274 #define SBT_RTLREADING 0x0400 /* not supported */
275 #define SBT_TOOLTIPS 0x0800
276 #define SBT_OWNERDRAW 0x1000
278 #define SBARS_SIZEGRIP 0x0100
280 #define SB_SETTEXTA (WM_USER+1)
281 #define SB_SETTEXTW (WM_USER+11)
282 #define SB_SETTEXT WINELIB_NAME_AW(SB_SETTEXT)
283 #define SB_GETTEXTA (WM_USER+2)
284 #define SB_GETTEXTW (WM_USER+13)
285 #define SB_GETTEXT WINELIB_NAME_AW(SB_GETTEXT)
286 #define SB_GETTEXTLENGTHA (WM_USER+3)
287 #define SB_GETTEXTLENGTHW (WM_USER+12)
288 #define SB_GETTEXTLENGTH WINELIB_NAME_AW(SB_GETTEXTLENGTH)
289 #define SB_SETPARTS (WM_USER+4)
290 #define SB_SETBORDERS (WM_USER+5)
291 #define SB_GETPARTS (WM_USER+6)
292 #define SB_GETBORDERS (WM_USER+7)
293 #define SB_SETMINHEIGHT (WM_USER+8)
294 #define SB_SIMPLE (WM_USER+9)
295 #define SB_GETRECT (WM_USER+10)
296 #define SB_ISSIMPLE (WM_USER+14)
297 #define SB_SETICON (WM_USER+15)
298 #define SB_SETTIPTEXTA (WM_USER+16)
299 #define SB_SETTIPTEXTW (WM_USER+17)
300 #define SB_SETTIPTEXT WINELIB_NAME_AW(SB_SETTIPTEXT)
301 #define SB_GETTIPTEXTA (WM_USER+18)
302 #define SB_GETTIPTEXTW (WM_USER+19)
303 #define SB_GETTIPTEXT WINELIB_NAME_AW(SB_GETTIPTEXT)
304 #define SB_GETICON (WM_USER+20)
305 #define SB_SETBKCOLOR CCM_SETBKCOLOR /* lParam = bkColor */
306 #define SB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
307 #define SB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
309 #define SBN_FIRST (0U-880U)
310 #define SBN_LAST (0U-899U)
311 #define SBN_SIMPLEMODECHANGE (SBN_FIRST-0)
313 HWND WINAPI
CreateStatusWindowA (INT
, LPCSTR
, HWND
, UINT
);
314 HWND WINAPI
CreateStatusWindowW (INT
, LPCWSTR
, HWND
, UINT
);
315 #define CreateStatusWindow WINELIB_NAME_AW(CreateStatusWindow)
316 VOID WINAPI
DrawStatusTextA (HDC
, LPRECT
, LPCSTR
, UINT
);
317 VOID WINAPI
DrawStatusTextW (HDC
, LPRECT
, LPCWSTR
, UINT
);
318 #define DrawStatusText WINELIB_NAME_AW(DrawStatusText)
319 VOID WINAPI
MenuHelp (UINT
, WPARAM
, LPARAM
, HMENU
,
320 HINSTANCE
, HWND
, LPUINT
);
322 typedef struct tagCOLORSCHEME
325 COLORREF clrBtnHighlight
; /* highlight color */
326 COLORREF clrBtnShadow
; /* shadow color */
327 } COLORSCHEME
, *LPCOLORSCHEME
;
329 /**************************************************************************
333 typedef struct tagDRAGLISTINFO
338 } DRAGLISTINFO
, *LPDRAGLISTINFO
;
340 #define DL_BEGINDRAG (WM_USER+133)
341 #define DL_DRAGGING (WM_USER+134)
342 #define DL_DROPPED (WM_USER+135)
343 #define DL_CANCELDRAG (WM_USER+136)
345 #define DL_CURSORSET 0
346 #define DL_STOPCURSOR 1
347 #define DL_COPYCURSOR 2
348 #define DL_MOVECURSOR 3
350 #define DRAGLISTMSGSTRING TEXT("commctrl_DragListMsg")
352 BOOL WINAPI
MakeDragList (HWND
);
353 VOID WINAPI
DrawInsert (HWND
, HWND
, INT
);
354 INT WINAPI
LBItemFromPt (HWND
, POINT
, BOOL
);
359 #define UPDOWN_CLASS16 "msctls_updown"
360 #define UPDOWN_CLASSA "msctls_updown32"
361 static const WCHAR UPDOWN_CLASSW
[] = { 'm','s','c','t','l','s','_',
362 'u','p','d','o','w','n','3','2',0 };
363 #define UPDOWN_CLASS WINELIB_NAME_AW(UPDOWN_CLASS)
365 typedef struct tagUDACCEL
369 } UDACCEL
, *LPUDACCEL
;
371 #define UD_MAXVAL 0x7fff
372 #define UD_MINVAL 0x8001
374 #define UDS_WRAP 0x0001
375 #define UDS_SETBUDDYINT 0x0002
376 #define UDS_ALIGNRIGHT 0x0004
377 #define UDS_ALIGNLEFT 0x0008
378 #define UDS_AUTOBUDDY 0x0010
379 #define UDS_ARROWKEYS 0x0020
380 #define UDS_HORZ 0x0040
381 #define UDS_NOTHOUSANDS 0x0080
382 #define UDS_HOTTRACK 0x0100
384 #define UDN_FIRST (0U-721)
385 #define UDN_LAST (0U-740)
386 #define UDN_DELTAPOS (UDN_FIRST-1)
388 #define UDM_SETRANGE (WM_USER+101)
389 #define UDM_GETRANGE (WM_USER+102)
390 #define UDM_SETPOS (WM_USER+103)
391 #define UDM_GETPOS (WM_USER+104)
392 #define UDM_SETBUDDY (WM_USER+105)
393 #define UDM_GETBUDDY (WM_USER+106)
394 #define UDM_SETACCEL (WM_USER+107)
395 #define UDM_GETACCEL (WM_USER+108)
396 #define UDM_SETBASE (WM_USER+109)
397 #define UDM_GETBASE (WM_USER+110)
398 #define UDM_SETRANGE32 (WM_USER+111)
399 #define UDM_GETRANGE32 (WM_USER+112)
400 #define UDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
401 #define UDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
402 #define UDM_SETPOS32 (WM_USER+113)
403 #define UDM_GETPOS32 (WM_USER+114)
406 #define NMUPDOWN NM_UPDOWN
407 #define LPNMUPDOWN LPNM_UPDOWN
409 typedef struct tagNM_UPDOWN
414 } NM_UPDOWN
, *LPNM_UPDOWN
;
416 HWND WINAPI
CreateUpDownControl (DWORD
, INT
, INT
, INT
, INT
,
417 HWND
, INT
, HINSTANCE
, HWND
,
422 #define PROGRESS_CLASS16 "msctls_progress"
423 #define PROGRESS_CLASSA "msctls_progress32"
424 static const WCHAR PROGRESS_CLASSW
[] = { 'm','s','c','t','l','s','_',
425 'p','r','o','g','r','e','s','s','3','2',0 };
426 #define PROGRESS_CLASS WINELIB_NAME_AW(PROGRESS_CLASS)
428 #define PBM_SETRANGE (WM_USER+1)
429 #define PBM_SETPOS (WM_USER+2)
430 #define PBM_DELTAPOS (WM_USER+3)
431 #define PBM_SETSTEP (WM_USER+4)
432 #define PBM_STEPIT (WM_USER+5)
433 #define PBM_SETRANGE32 (WM_USER+6)
434 #define PBM_GETRANGE (WM_USER+7)
435 #define PBM_GETPOS (WM_USER+8)
436 #define PBM_SETBARCOLOR (WM_USER+9)
437 #define PBM_SETBKCOLOR CCM_SETBKCOLOR
439 #define PBS_SMOOTH 0x01
440 #define PBS_VERTICAL 0x04
446 } PBRANGE
, *PPBRANGE
;
452 typedef struct _IMAGELIST
*HIMAGELIST
;
454 #define CLR_NONE 0xFFFFFFFF
455 #define CLR_DEFAULT 0xFF000000
456 #define CLR_HILIGHT CLR_DEFAULT
458 #define ILC_MASK 0x0001
459 #define ILC_COLOR 0x0000
460 #define ILC_COLORDDB 0x00FE
461 #define ILC_COLOR4 0x0004
462 #define ILC_COLOR8 0x0008
463 #define ILC_COLOR16 0x0010
464 #define ILC_COLOR24 0x0018
465 #define ILC_COLOR32 0x0020
466 #define ILC_PALETTE 0x0800 /* no longer supported by M$ */
468 #define ILD_NORMAL 0x0000
469 #define ILD_TRANSPARENT 0x0001
470 #define ILD_BLEND25 0x0002
471 #define ILD_BLEND50 0x0004
472 #define ILD_MASK 0x0010
473 #define ILD_IMAGE 0x0020
474 #define ILD_ROP 0x0040
475 #define ILD_OVERLAYMASK 0x0F00
477 #define ILD_SELECTED ILD_BLEND50
478 #define ILD_FOCUS ILD_BLEND25
479 #define ILD_BLEND ILD_BLEND50
481 #define INDEXTOOVERLAYMASK(i) ((i)<<8)
482 #define INDEXTOSTATEIMAGEMASK(i) ((i)<<12)
484 #define ILCF_MOVE (0x00000000)
485 #define ILCF_SWAP (0x00000001)
488 typedef struct _IMAGEINFO
495 } IMAGEINFO
, *LPIMAGEINFO
;
498 typedef struct _IMAGELISTDRAWPARAMS
508 INT xBitmap
; /* x offest from the upperleft of bitmap */
509 INT yBitmap
; /* y offset from the upperleft of bitmap */
514 } IMAGELISTDRAWPARAMS
, *LPIMAGELISTDRAWPARAMS
;
517 INT WINAPI
ImageList_Add(HIMAGELIST
,HBITMAP
,HBITMAP
);
518 INT WINAPI
ImageList_AddIcon (HIMAGELIST
, HICON
);
519 INT WINAPI
ImageList_AddMasked(HIMAGELIST
,HBITMAP
,COLORREF
);
520 BOOL WINAPI
ImageList_BeginDrag(HIMAGELIST
,INT
,INT
,INT
);
521 BOOL WINAPI
ImageList_Copy(HIMAGELIST
,INT
,HIMAGELIST
,INT
,INT
);
522 HIMAGELIST WINAPI
ImageList_Create(INT
,INT
,UINT
,INT
,INT
);
523 BOOL WINAPI
ImageList_Destroy(HIMAGELIST
);
524 BOOL WINAPI
ImageList_DragEnter(HWND
,INT
,INT
);
525 BOOL WINAPI
ImageList_DragLeave(HWND
);
526 BOOL WINAPI
ImageList_DragMove(INT
,INT
);
527 BOOL WINAPI
ImageList_DragShowNolock (BOOL
);
528 BOOL WINAPI
ImageList_Draw(HIMAGELIST
,INT
,HDC
,INT
,INT
,UINT
);
529 BOOL WINAPI
ImageList_DrawEx(HIMAGELIST
,INT
,HDC
,INT
,INT
,INT
,
530 INT
,COLORREF
,COLORREF
,UINT
);
531 BOOL WINAPI
ImageList_DrawIndirect(IMAGELISTDRAWPARAMS
*);
532 HIMAGELIST WINAPI
ImageList_Duplicate(HIMAGELIST
);
533 BOOL WINAPI
ImageList_EndDrag(VOID
);
534 COLORREF WINAPI
ImageList_GetBkColor(HIMAGELIST
);
535 HIMAGELIST WINAPI
ImageList_GetDragImage(POINT
*,POINT
*);
536 HICON WINAPI
ImageList_GetIcon(HIMAGELIST
,INT
,UINT
);
537 BOOL WINAPI
ImageList_GetIconSize(HIMAGELIST
,INT
*,INT
*);
538 INT WINAPI
ImageList_GetImageCount(HIMAGELIST
);
539 BOOL WINAPI
ImageList_GetImageInfo(HIMAGELIST
,INT
,IMAGEINFO
*);
540 BOOL WINAPI
ImageList_GetImageRect(HIMAGELIST
,INT
,LPRECT
);
541 HIMAGELIST WINAPI
ImageList_LoadImageA(HINSTANCE
,LPCSTR
,INT
,INT
,
543 HIMAGELIST WINAPI
ImageList_LoadImageW(HINSTANCE
,LPCWSTR
,INT
,INT
,
545 #define ImageList_LoadImage WINELIB_NAME_AW(ImageList_LoadImage)
546 HIMAGELIST WINAPI
ImageList_Merge(HIMAGELIST
,INT
,HIMAGELIST
,INT
,INT
,INT
);
547 #ifdef IStream_IMETHODS
548 HIMAGELIST WINAPI
ImageList_Read(LPSTREAM
);
550 BOOL WINAPI
ImageList_Remove(HIMAGELIST
,INT
);
551 BOOL WINAPI
ImageList_Replace(HIMAGELIST
,INT
,HBITMAP
,HBITMAP
);
552 INT WINAPI
ImageList_ReplaceIcon(HIMAGELIST
,INT
,HICON
);
553 COLORREF WINAPI
ImageList_SetBkColor(HIMAGELIST
,COLORREF
);
554 BOOL WINAPI
ImageList_SetDragCursorImage(HIMAGELIST
,INT
,INT
,INT
);
556 BOOL WINAPI
ImageList_SetIconSize(HIMAGELIST
,INT
,INT
);
557 BOOL WINAPI
ImageList_SetImageCount(HIMAGELIST
,INT
);
558 BOOL WINAPI
ImageList_SetOverlayImage(HIMAGELIST
,INT
,INT
);
559 #ifdef IStream_IMETHODS
560 BOOL WINAPI
ImageList_Write(HIMAGELIST
, LPSTREAM
);
564 #define ImageList_AddIcon(himl,hicon) ImageList_ReplaceIcon(himl,-1,hicon)
566 #define ImageList_ExtractIcon(hi,himl,i) ImageList_GetIcon(himl,i,0)
567 #define ImageList_LoadBitmap(hi,lpbmp,cx,cGrow,crMask) \
568 ImageList_LoadImage(hi,lpbmp,cx,cGrow,crMask,IMAGE_BITMAP,0)
569 #define ImageList_RemoveAll(himl) ImageList_Remove(himl,-1)
572 #ifndef WM_MOUSEHOVER
573 #define WM_MOUSEHOVER 0x02A1
574 #define WM_MOUSELEAVE 0x02A3
579 #define TME_HOVER 0x00000001
580 #define TME_LEAVE 0x00000002
581 #define TME_QUERY 0x40000000
582 #define TME_CANCEL 0x80000000
585 #define HOVER_DEFAULT 0xFFFFFFFF
587 typedef struct tagTRACKMOUSEEVENT
{
592 } TRACKMOUSEEVENT
, *LPTRACKMOUSEEVENT
;
599 LPTRACKMOUSEEVENT lpEventTrack
);
601 /* Flat Scrollbar control */
603 #define FLATSB_CLASS16 "flatsb_class"
604 #define FLATSB_CLASSA "flatsb_class32"
605 static const WCHAR FLATSB_CLASSW
[] = { 'f','l','a','t','s','b','_',
606 'c','l','a','s','s','3','2',0 };
607 #define FLATSB_CLASS WINELIB_NAME_AW(FLATSB_CLASS)
609 #define WSB_PROP_CYVSCROLL 0x00000001L
610 #define WSB_PROP_CXHSCROLL 0x00000002L
611 #define WSB_PROP_CYHSCROLL 0x00000004L
612 #define WSB_PROP_CXVSCROLL 0x00000008L
613 #define WSB_PROP_CXHTHUMB 0x00000010L
614 #define WSB_PROP_CYVTHUMB 0x00000020L
615 #define WSB_PROP_VBKGCOLOR 0x00000040L
616 #define WSB_PROP_HBKGCOLOR 0x00000080L
617 #define WSB_PROP_VSTYLE 0x00000100L
618 #define WSB_PROP_HSTYLE 0x00000200L
619 #define WSB_PROP_WINSTYLE 0x00000400L
620 #define WSB_PROP_PALETTE 0x00000800L
621 #define WSB_PROP_MASK 0x00000FFFL
623 #define FSB_REGULAR_MODE 0
624 #define FSB_ENCARTA_MODE 1
625 #define FSB_FLAT_MODE 2
628 BOOL WINAPI
FlatSB_EnableScrollBar(HWND
, INT
, UINT
);
629 BOOL WINAPI
FlatSB_ShowScrollBar(HWND
, INT
, BOOL
);
630 BOOL WINAPI
FlatSB_GetScrollRange(HWND
, INT
, LPINT
, LPINT
);
631 BOOL WINAPI
FlatSB_GetScrollInfo(HWND
, INT
, LPSCROLLINFO
);
632 INT WINAPI
FlatSB_GetScrollPos(HWND
, INT
);
633 BOOL WINAPI
FlatSB_GetScrollProp(HWND
, INT
, LPINT
);
634 INT WINAPI
FlatSB_SetScrollPos(HWND
, INT
, INT
, BOOL
);
635 INT WINAPI
FlatSB_SetScrollInfo(HWND
, INT
, LPSCROLLINFO
, BOOL
);
636 INT WINAPI
FlatSB_SetScrollRange(HWND
, INT
, INT
, INT
, BOOL
);
637 BOOL WINAPI
FlatSB_SetScrollProp(HWND
, UINT
, INT
, BOOL
);
638 BOOL WINAPI
InitializeFlatSB(HWND
);
639 HRESULT WINAPI
UninitializeFlatSB(HWND
);
644 #define WC_HEADER16 "SysHeader"
645 #define WC_HEADERA "SysHeader32"
646 static const WCHAR WC_HEADERW
[] = { 'S','y','s','H','e','a','d','e','r','3','2',0 };
647 #define WC_HEADER WINELIB_NAME_AW(WC_HEADER)
649 #define HDS_HORZ 0x0000
650 #define HDS_BUTTONS 0x0002
651 #define HDS_HOTTRACK 0x0004
652 #define HDS_HIDDEN 0x0008
653 #define HDS_DRAGDROP 0x0040
654 #define HDS_FULLDRAG 0x0080
656 #define HDI_WIDTH 0x0001
657 #define HDI_HEIGHT HDI_WIDTH
658 #define HDI_TEXT 0x0002
659 #define HDI_FORMAT 0x0004
660 #define HDI_LPARAM 0x0008
661 #define HDI_BITMAP 0x0010
662 #define HDI_IMAGE 0x0020
663 #define HDI_DI_SETITEM 0x0040
664 #define HDI_ORDER 0x0080
666 #define HDF_LEFT 0x0000
667 #define HDF_RIGHT 0x0001
668 #define HDF_CENTER 0x0002
669 #define HDF_JUSTIFYMASK 0x0003
670 #define HDF_RTLREADING 0x0004
672 #define HDF_IMAGE 0x0800
673 #define HDF_BITMAP_ON_RIGHT 0x1000
674 #define HDF_BITMAP 0x2000
675 #define HDF_STRING 0x4000
676 #define HDF_OWNERDRAW 0x8000
678 #define HHT_NOWHERE 0x0001
679 #define HHT_ONHEADER 0x0002
680 #define HHT_ONDIVIDER 0x0004
681 #define HHT_ONDIVOPEN 0x0008
682 #define HHT_ABOVE 0x0100
683 #define HHT_BELOW 0x0200
684 #define HHT_TORIGHT 0x0400
685 #define HHT_TOLEFT 0x0800
687 #define HDM_FIRST 0x1200
688 #define HDM_GETITEMCOUNT (HDM_FIRST+0)
689 #define HDM_INSERTITEMA (HDM_FIRST+1)
690 #define HDM_INSERTITEMW (HDM_FIRST+10)
691 #define HDM_INSERTITEM WINELIB_NAME_AW(HDM_INSERTITEM)
692 #define HDM_DELETEITEM (HDM_FIRST+2)
693 #define HDM_GETITEMA (HDM_FIRST+3)
694 #define HDM_GETITEMW (HDM_FIRST+11)
695 #define HDM_GETITEM WINELIB_NAME_AW(HDM_GETITEM)
696 #define HDM_SETITEMA (HDM_FIRST+4)
697 #define HDM_SETITEMW (HDM_FIRST+12)
698 #define HDM_SETITEM WINELIB_NAME_AW(HDM_SETITEM)
699 #define HDM_LAYOUT (HDM_FIRST+5)
700 #define HDM_HITTEST (HDM_FIRST+6)
701 #define HDM_GETITEMRECT (HDM_FIRST+7)
702 #define HDM_SETIMAGELIST (HDM_FIRST+8)
703 #define HDM_GETIMAGELIST (HDM_FIRST+9)
705 #define HDM_ORDERTOINDEX (HDM_FIRST+15)
706 #define HDM_CREATEDRAGIMAGE (HDM_FIRST+16)
707 #define HDM_GETORDERARRAY (HDM_FIRST+17)
708 #define HDM_SETORDERARRAY (HDM_FIRST+18)
709 #define HDM_SETHOTDIVIDER (HDM_FIRST+19)
710 #define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
711 #define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
713 #define HDN_FIRST (0U-300U)
714 #define HDN_LAST (0U-399U)
715 #define HDN_ITEMCHANGINGA (HDN_FIRST-0)
716 #define HDN_ITEMCHANGINGW (HDN_FIRST-20)
717 #define HDN_ITEMCHANGING WINELIB_NAME_AW(HDN_ITEMCHANGING)
718 #define HDN_ITEMCHANGEDA (HDN_FIRST-1)
719 #define HDN_ITEMCHANGEDW (HDN_FIRST-21)
720 #define HDN_ITEMCHANGED WINELIB_NAME_AW(HDN_ITEMCHANGED)
721 #define HDN_ITEMCLICKA (HDN_FIRST-2)
722 #define HDN_ITEMCLICKW (HDN_FIRST-22)
723 #define HDN_ITEMCLICK WINELIB_NAME_AW(HDN_ITEMCLICK)
724 #define HDN_ITEMDBLCLICKA (HDN_FIRST-3)
725 #define HDN_ITEMDBLCLICKW (HDN_FIRST-23)
726 #define HDN_ITEMDBLCLICK WINELIB_NAME_AW(HDN_ITEMDBLCLICK)
727 #define HDN_DIVIDERDBLCLICKA (HDN_FIRST-5)
728 #define HDN_DIVIDERDBLCLICKW (HDN_FIRST-25)
729 #define HDN_DIVIDERDBLCLICK WINELIB_NAME_AW(HDN_DIVIDERDBLCLICK)
730 #define HDN_BEGINTRACKA (HDN_FIRST-6)
731 #define HDN_BEGINTRACKW (HDN_FIRST-26)
732 #define HDN_BEGINTRACK WINELIB_NAME_AW(HDN_BEGINTRACK)
733 #define HDN_ENDTRACKA (HDN_FIRST-7)
734 #define HDN_ENDTRACKW (HDN_FIRST-27)
735 #define HDN_ENDTRACK WINELIB_NAME_AW(HDN_ENDTRACK)
736 #define HDN_TRACKA (HDN_FIRST-8)
737 #define HDN_TRACKW (HDN_FIRST-28)
738 #define HDN_TRACK WINELIB_NAME_AW(HDN_TRACK)
739 #define HDN_GETDISPINFOA (HDN_FIRST-9)
740 #define HDN_GETDISPINFOW (HDN_FIRST-29)
741 #define HDN_GETDISPINFO WINELIB_NAME_AW(HDN_GETDISPINFO)
742 #define HDN_BEGINDRAG (HDN_FIRST-10)
743 #define HDN_ENDDRAG (HDN_FIRST-11)
745 typedef struct _HD_LAYOUT
749 } HDLAYOUT
, *LPHDLAYOUT
;
751 #define HD_LAYOUT HDLAYOUT
753 typedef struct _HD_ITEMA
766 } HDITEMA
, *LPHDITEMA
;
768 typedef struct _HD_ITEMW
781 } HDITEMW
, *LPHDITEMW
;
783 #define HDITEM WINELIB_NAME_AW(HDITEM)
784 #define LPHDITEM WINELIB_NAME_AW(LPHDITEM)
785 #define HD_ITEM HDITEM
787 #define HDITEM_V1_SIZEA CCSIZEOF_STRUCT(HDITEMA, lParam)
788 #define HDITEM_V1_SIZEW CCSIZEOF_STRUCT(HDITEMW, lParam)
789 #define HDITEM_V1_SIZE WINELIB_NAME_AW(HDITEM_V1_SIZE)
791 typedef struct _HD_HITTESTINFO
796 } HDHITTESTINFO
, *LPHDHITTESTINFO
;
798 #define HD_HITTESTINFO HDHITTESTINFO
800 typedef struct tagNMHEADERA
806 } NMHEADERA
, *LPNMHEADERA
;
808 typedef struct tagNMHEADERW
814 } NMHEADERW
, *LPNMHEADERW
;
816 #define NMHEADER WINELIB_NAME_AW(NMHEADER)
817 #define LPNMHEADER WINELIB_NAME_AW(LPNMHEADER)
818 #define HD_NOTIFY NMHEADER
820 typedef struct tagNMHDDISPINFOA
829 } NMHDDISPINFOA
, *LPNMHDDISPINFOA
;
831 typedef struct tagNMHDDISPINFOW
840 } NMHDDISPINFOW
, *LPNMHDDISPINFOW
;
842 #define NMHDDISPINFO WINELIB_NAME_AW(NMHDDISPINFO)
843 #define LPNMHDDISPINFO WINELIB_NAME_AW(LPNMHDDISPINFO)
845 #define Header_GetItemCount(hwndHD) \
846 (INT)SendMessageA((hwndHD),HDM_GETITEMCOUNT,0,0L)
847 #define Header_InsertItemA(hwndHD,i,phdi) \
848 (INT)SendMessageA((hwndHD),HDM_INSERTITEMA,(WPARAM)(INT)(i),(LPARAM)(const HDITEMA*)(phdi))
849 #define Header_InsertItemW(hwndHD,i,phdi) \
850 (INT)SendMessageW((hwndHD),HDM_INSERTITEMW,(WPARAM)(INT)(i),(LPARAM)(const HDITEMW*)(phdi))
851 #define Header_InsertItem WINELIB_NAME_AW(Header_InsertItem)
852 #define Header_DeleteItem(hwndHD,i) \
853 (BOOL)SendMessageA((hwndHD),HDM_DELETEITEM,(WPARAM)(INT)(i),0L)
854 #define Header_GetItemA(hwndHD,i,phdi) \
855 (BOOL)SendMessageA((hwndHD),HDM_GETITEMA,(WPARAM)(INT)(i),(LPARAM)(HDITEMA*)(phdi))
856 #define Header_GetItemW(hwndHD,i,phdi) \
857 (BOOL)SendMessageW((hwndHD),HDM_GETITEMW,(WPARAM)(INT)(i),(LPARAM)(HDITEMW*)(phdi))
858 #define Header_GetItem WINELIB_NAME_AW(Header_GetItem)
859 #define Header_SetItemA(hwndHD,i,phdi) \
860 (BOOL)SendMessageA((hwndHD),HDM_SETITEMA,(WPARAM)(INT)(i),(LPARAM)(const HDITEMA*)(phdi))
861 #define Header_SetItemW(hwndHD,i,phdi) \
862 (BOOL)SendMessageW((hwndHD),HDM_SETITEMW,(WPARAM)(INT)(i),(LPARAM)(const HDITEMW*)(phdi))
863 #define Header_SetItem WINELIB_NAME_AW(Header_SetItem)
864 #define Header_Layout(hwndHD,playout) \
865 (BOOL)SendMessageA((hwndHD),HDM_LAYOUT,0,(LPARAM)(LPHDLAYOUT)(playout))
866 #define Header_GetItemRect(hwnd,iItem,lprc) \
867 (BOOL)SendMessageA((hwnd),HDM_GETITEMRECT,(WPARAM)iItem,(LPARAM)lprc)
868 #define Header_SetImageList(hwnd,himl) \
869 (HIMAGELIST)SendMessageA((hwnd),HDM_SETIMAGELIST,0,(LPARAM)himl)
870 #define Header_GetImageList(hwnd) \
871 (HIMAGELIST)SendMessageA((hwnd),HDM_GETIMAGELIST,0,0)
872 #define Header_OrderToIndex(hwnd,i) \
873 (INT)SendMessageA((hwnd),HDM_ORDERTOINDEX,(WPARAM)i,0)
874 #define Header_CreateDragImage(hwnd,i) \
875 (HIMAGELIST)SendMessageA((hwnd),HDM_CREATEDRAGIMAGE,(WPARAM)i,0)
876 #define Header_GetOrderArray(hwnd,iCount,lpi) \
877 (BOOL)SendMessageA((hwnd),HDM_GETORDERARRAY,(WPARAM)iCount,(LPARAM)lpi)
878 #define Header_SetOrderArray(hwnd,iCount,lpi) \
879 (BOOL)SendMessageA((hwnd),HDM_SETORDERARRAY,(WPARAM)iCount,(LPARAM)lpi)
880 #define Header_SetHotDivider(hwnd,fPos,dw) \
881 (INT)SendMessageA((hwnd),HDM_SETHOTDIVIDER,(WPARAM)fPos,(LPARAM)dw)
882 #define Header_SetUnicodeFormat(hwnd,fUnicode) \
883 (BOOL)SendMessageA((hwnd),HDM_SETUNICODEFORMAT,(WPARAM)(fUnicode),0)
884 #define Header_GetUnicodeFormat(hwnd) \
885 (BOOL)SendMessageA((hwnd),HDM_GETUNICODEFORMAT,0,0)
890 #define TOOLBARCLASSNAME16 "ToolbarWindow"
891 #define TOOLBARCLASSNAMEA "ToolbarWindow32"
892 static const WCHAR TOOLBARCLASSNAMEW
[] = { 'T','o','o','l','b','a','r',
893 'W','i','n','d','o','w','3','2',0 };
894 #define TOOLBARCLASSNAME WINELIB_NAME_AW(TOOLBARCLASSNAME)
896 #define CMB_MASKED 0x02
898 #define TBSTATE_CHECKED 0x01
899 #define TBSTATE_PRESSED 0x02
900 #define TBSTATE_ENABLED 0x04
901 #define TBSTATE_HIDDEN 0x08
902 #define TBSTATE_INDETERMINATE 0x10
903 #define TBSTATE_WRAP 0x20
904 #define TBSTATE_ELLIPSES 0x40
905 #define TBSTATE_MARKED 0x80
908 /* as of _WIN32_IE >= 0x0500 the following symbols are obsolete,
909 * "everyone" should use the BTNS_... stuff below
911 #define TBSTYLE_BUTTON 0x00
912 #define TBSTYLE_SEP 0x01
913 #define TBSTYLE_CHECK 0x02
914 #define TBSTYLE_GROUP 0x04
915 #define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK)
916 #define TBSTYLE_DROPDOWN 0x08
917 #define TBSTYLE_AUTOSIZE 0x10
918 #define TBSTYLE_NOPREFIX 0x20
919 #define BTNS_BUTTON TBSTYLE_BUTTON
920 #define BTNS_SEP TBSTYLE_SEP
921 #define BTNS_CHECK TBSTYLE_CHECK
922 #define BTNS_GROUP TBSTYLE_GROUP
923 #define BTNS_CHECKGROUP TBSTYLE_CHECKGROUP
924 #define BTNS_DROPDOWN TBSTYLE_DROPDOWN
925 #define BTNS_AUTOSIZE TBSTYLE_AUTOSIZE
926 #define BTNS_NOPREFIX TBSTYLE_NOPREFIX
927 #define BTNS_SHOWTEXT 0x40 /* ignored unless TBSTYLE_EX_MIXEDB set */
928 #define BTNS_WHOLEDROPDOWN 0x80 /* draw dropdown arrow, but without split arrow section */
930 #define TBSTYLE_TOOLTIPS 0x0100
931 #define TBSTYLE_WRAPABLE 0x0200
932 #define TBSTYLE_ALTDRAG 0x0400
933 #define TBSTYLE_FLAT 0x0800
934 #define TBSTYLE_LIST 0x1000
935 #define TBSTYLE_CUSTOMERASE 0x2000
936 #define TBSTYLE_REGISTERDROP 0x4000
937 #define TBSTYLE_TRANSPARENT 0x8000
938 #define TBSTYLE_EX_DRAWDDARROWS 0x00000001
939 #define TBSTYLE_EX_UNDOC1 0x00000004 /* similar to TBSTYLE_WRAPABLE */
940 #define TBSTYLE_EX_MIXEDBUTTONS 0x00000008
941 #define TBSTYLE_EX_HIDECLIPPEDBUTTONS 0x00000010 /* don't show partially obscured buttons */
942 #define TBSTYLE_EX_DOUBLEBUFFER 0x00000080 /* Double Buffer the toolbar ??? */
944 #define TBIF_IMAGE 0x00000001
945 #define TBIF_TEXT 0x00000002
946 #define TBIF_STATE 0x00000004
947 #define TBIF_STYLE 0x00000008
948 #define TBIF_LPARAM 0x00000010
949 #define TBIF_COMMAND 0x00000020
950 #define TBIF_SIZE 0x00000040
952 #define TBBF_LARGE 0x0001
954 #define TB_ENABLEBUTTON (WM_USER+1)
955 #define TB_CHECKBUTTON (WM_USER+2)
956 #define TB_PRESSBUTTON (WM_USER+3)
957 #define TB_HIDEBUTTON (WM_USER+4)
958 #define TB_INDETERMINATE (WM_USER+5)
959 #define TB_MARKBUTTON (WM_USER+6)
960 #define TB_ISBUTTONENABLED (WM_USER+9)
961 #define TB_ISBUTTONCHECKED (WM_USER+10)
962 #define TB_ISBUTTONPRESSED (WM_USER+11)
963 #define TB_ISBUTTONHIDDEN (WM_USER+12)
964 #define TB_ISBUTTONINDETERMINATE (WM_USER+13)
965 #define TB_ISBUTTONHIGHLIGHTED (WM_USER+14)
966 #define TB_SETSTATE (WM_USER+17)
967 #define TB_GETSTATE (WM_USER+18)
968 #define TB_ADDBITMAP (WM_USER+19)
969 #define TB_ADDBUTTONSA (WM_USER+20)
970 #define TB_ADDBUTTONSW (WM_USER+68)
971 #define TB_ADDBUTTONS WINELIB_NAME_AW(TB_ADDBUTTONS)
972 #define TB_HITTEST (WM_USER+69)
973 #define TB_INSERTBUTTONA (WM_USER+21)
974 #define TB_INSERTBUTTONW (WM_USER+67)
975 #define TB_INSERTBUTTON WINELIB_NAME_AW(TB_INSERTBUTTON)
976 #define TB_DELETEBUTTON (WM_USER+22)
977 #define TB_GETBUTTON (WM_USER+23)
978 #define TB_BUTTONCOUNT (WM_USER+24)
979 #define TB_COMMANDTOINDEX (WM_USER+25)
980 #define TB_SAVERESTOREA (WM_USER+26)
981 #define TB_SAVERESTOREW (WM_USER+76)
982 #define TB_SAVERESTORE WINELIB_NAME_AW(TB_SAVERESTORE)
983 #define TB_CUSTOMIZE (WM_USER+27)
984 #define TB_ADDSTRINGA (WM_USER+28)
985 #define TB_ADDSTRINGW (WM_USER+77)
986 #define TB_ADDSTRING WINELIB_NAME_AW(TB_ADDSTRING)
987 #define TB_GETITEMRECT (WM_USER+29)
988 #define TB_BUTTONSTRUCTSIZE (WM_USER+30)
989 #define TB_SETBUTTONSIZE (WM_USER+31)
990 #define TB_SETBITMAPSIZE (WM_USER+32)
991 #define TB_AUTOSIZE (WM_USER+33)
992 #define TB_GETTOOLTIPS (WM_USER+35)
993 #define TB_SETTOOLTIPS (WM_USER+36)
994 #define TB_SETPARENT (WM_USER+37)
995 #define TB_SETROWS (WM_USER+39)
996 #define TB_GETROWS (WM_USER+40)
997 #define TB_GETBITMAPFLAGS (WM_USER+41)
998 #define TB_SETCMDID (WM_USER+42)
999 #define TB_CHANGEBITMAP (WM_USER+43)
1000 #define TB_GETBITMAP (WM_USER+44)
1001 #define TB_GETBUTTONTEXTA (WM_USER+45)
1002 #define TB_GETBUTTONTEXTW (WM_USER+75)
1003 #define TB_GETBUTTONTEXT WINELIB_NAME_AW(TB_GETBUTTONTEXT)
1004 #define TB_REPLACEBITMAP (WM_USER+46)
1005 #define TB_SETINDENT (WM_USER+47)
1006 #define TB_SETIMAGELIST (WM_USER+48)
1007 #define TB_GETIMAGELIST (WM_USER+49)
1008 #define TB_LOADIMAGES (WM_USER+50)
1009 #define TB_GETRECT (WM_USER+51) /* wParam is the Cmd instead of index */
1010 #define TB_SETHOTIMAGELIST (WM_USER+52)
1011 #define TB_GETHOTIMAGELIST (WM_USER+53)
1012 #define TB_SETDISABLEDIMAGELIST (WM_USER+54)
1013 #define TB_GETDISABLEDIMAGELIST (WM_USER+55)
1014 #define TB_SETSTYLE (WM_USER+56)
1015 #define TB_GETSTYLE (WM_USER+57)
1016 #define TB_GETBUTTONSIZE (WM_USER+58)
1017 #define TB_SETBUTTONWIDTH (WM_USER+59)
1018 #define TB_SETMAXTEXTROWS (WM_USER+60)
1019 #define TB_GETTEXTROWS (WM_USER+61)
1020 #define TB_GETOBJECT (WM_USER+62)
1021 #define TB_GETBUTTONINFOW (WM_USER+63)
1022 #define TB_GETBUTTONINFOA (WM_USER+65)
1023 #define TB_GETBUTTONINFO WINELIB_NAME_AW(TB_GETBUTTONINFO)
1024 #define TB_SETBUTTONINFOW (WM_USER+64)
1025 #define TB_SETBUTTONINFOA (WM_USER+66)
1026 #define TB_SETBUTTONINFO WINELIB_NAME_AW(TB_SETBUTTONINFO)
1027 #define TB_SETDRAWTEXTFLAGS (WM_USER+70)
1028 #define TB_GETHOTITEM (WM_USER+71)
1029 #define TB_SETHOTITEM (WM_USER+72)
1030 #define TB_SETANCHORHIGHLIGHT (WM_USER+73)
1031 #define TB_GETANCHORHIGHLIGHT (WM_USER+74)
1032 #define TB_MAPACCELERATORA (WM_USER+78)
1033 #define TB_MAPACCELERATORW (WM_USER+90)
1034 #define TB_MAPACCELERATOR WINELIB_NAME_AW(TB_MAPACCELERATOR)
1035 #define TB_GETINSERTMARK (WM_USER+79)
1036 #define TB_SETINSERTMARK (WM_USER+80)
1037 #define TB_INSERTMARKHITTEST (WM_USER+81)
1038 #define TB_MOVEBUTTON (WM_USER+82)
1039 #define TB_GETMAXSIZE (WM_USER+83)
1040 #define TB_SETEXTENDEDSTYLE (WM_USER+84)
1041 #define TB_GETEXTENDEDSTYLE (WM_USER+85)
1042 #define TB_GETPADDING (WM_USER+86)
1043 #define TB_SETPADDING (WM_USER+87)
1044 #define TB_SETINSERTMARKCOLOR (WM_USER+88)
1045 #define TB_GETINSERTMARKCOLOR (WM_USER+89)
1046 #define TB_SETCOLORSCHEME CCM_SETCOLORSCHEME
1047 #define TB_GETCOLORSCHEME CCM_GETCOLORSCHEME
1048 #define TB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1049 #define TB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1050 #define TB_GETSTRINGW (WM_USER+91)
1051 #define TB_GETSTRINGA (WM_USER+92)
1052 #define TB_GETSTRING WINELIB_NAME_AW(TB_GETSTRING)
1054 /* undocumented messages in Toolbar */
1055 #define TB_UNKWN45D (WM_USER+93)
1056 #define TB_UNKWN45E (WM_USER+94)
1057 #define TB_UNKWN460 (WM_USER+96)
1058 #define TB_UNKWN463 (WM_USER+99)
1059 #define TB_UNKWN464 (WM_USER+100)
1062 #define TBN_FIRST (0U-700U)
1063 #define TBN_LAST (0U-720U)
1064 #define TBN_GETBUTTONINFOA (TBN_FIRST-0)
1065 #define TBN_GETBUTTONINFOW (TBN_FIRST-20)
1066 #define TBN_GETBUTTONINFO WINELIB_NAME_AW(TBN_GETBUTTONINFO)
1067 #define TBN_BEGINDRAG (TBN_FIRST-1)
1068 #define TBN_ENDDRAG (TBN_FIRST-2)
1069 #define TBN_BEGINADJUST (TBN_FIRST-3)
1070 #define TBN_ENDADJUST (TBN_FIRST-4)
1071 #define TBN_RESET (TBN_FIRST-5)
1072 #define TBN_QUERYINSERT (TBN_FIRST-6)
1073 #define TBN_QUERYDELETE (TBN_FIRST-7)
1074 #define TBN_TOOLBARCHANGE (TBN_FIRST-8)
1075 #define TBN_CUSTHELP (TBN_FIRST-9)
1076 #define TBN_DROPDOWN (TBN_FIRST-10)
1077 #define TBN_GETOBJECT (TBN_FIRST-12)
1078 #define TBN_HOTITEMCHANGE (TBN_FIRST-13)
1079 #define TBN_DRAGOUT (TBN_FIRST-14)
1080 #define TBN_DELETINGBUTTON (TBN_FIRST-15)
1081 #define TBN_GETDISPINFOA (TBN_FIRST-16)
1082 #define TBN_GETDISPINFOW (TBN_FIRST-17)
1083 #define TBN_GETDISPINFO WINELIB_NAME_AW(TBN_GETDISPINFO)
1084 #define TBN_GETINFOTIPA (TBN_FIRST-18)
1085 #define TBN_GETINFOTIPW (TBN_FIRST-19)
1086 #define TBN_GETINFOTIP WINELIB_NAME_AW(TBN_GETINFOTIP)
1089 /* Return values from TBN_DROPDOWN */
1090 #define TBDDRET_DEFAULT 0
1091 #define TBDDRET_NODEFAULT 1
1092 #define TBDDRET_TREATPRESSED 2
1094 typedef struct _NMTBCUSTOMDRAW
1097 HBRUSH hbrMonoDither
;
1102 COLORREF clrTextHighlight
;
1103 COLORREF clrBtnFace
;
1104 COLORREF clrBtnHighlight
;
1105 COLORREF clrHighlightHotTrack
;
1108 int nHLStringBkMode
;
1109 } NMTBCUSTOMDRAW
, *LPNMTBCUSTOMDRAW
;
1111 /* return flags for Toolbar NM_CUSTOMDRAW notifications */
1112 #define TBCDRF_NOEDGES 0x00010000 /* Don't draw button edges */
1113 #define TBCDRF_HILITEHOTTRACK 0x00020000 /* Use color of the button bkgnd */
1114 /* when hottracked */
1115 #define TBCDRF_NOOFFSET 0x00040000 /* No offset button if pressed */
1116 #define TBCDRF_NOMARK 0x00080000 /* Don't draw default highlight */
1117 /* for TBSTATE_MARKED */
1118 #define TBCDRF_NOETCHEDEFFECT 0x00100000 /* No etched effect for */
1119 /* disabled items */
1120 #define TBCDRF_BLENDICON 0x00200000 /* ILD_BLEND50 on the icon image */
1121 #define TBCDRF_NOBACKGROUND 0x00400000 /* ILD_BLEND50 on the icon image */
1124 /* This is just for old CreateToolbar. */
1125 /* Don't use it in new programs. */
1126 typedef struct _OLDTBBUTTON
{
1133 } OLDTBBUTTON
, *POLDTBBUTTON
, *LPOLDTBBUTTON
;
1134 typedef const OLDTBBUTTON
*LPCOLDTBBUTTON
;
1137 typedef struct _TBBUTTON
{
1145 } TBBUTTON
, *PTBBUTTON
, *LPTBBUTTON
;
1146 typedef const TBBUTTON
*LPCTBBUTTON
;
1149 typedef struct _COLORMAP
{
1152 } COLORMAP
, *LPCOLORMAP
;
1155 typedef struct tagTBADDBITMAP
{
1158 } TBADDBITMAP
, *LPTBADDBITMAP
;
1160 #define HINST_COMMCTRL ((HINSTANCE)-1)
1161 #define IDB_STD_SMALL_COLOR 0
1162 #define IDB_STD_LARGE_COLOR 1
1163 #define IDB_VIEW_SMALL_COLOR 4
1164 #define IDB_VIEW_LARGE_COLOR 5
1165 #define IDB_HIST_SMALL_COLOR 8
1166 #define IDB_HIST_LARGE_COLOR 9
1173 #define STD_DELETE 5
1174 #define STD_FILENEW 6
1175 #define STD_FILEOPEN 7
1176 #define STD_FILESAVE 8
1177 #define STD_PRINTPRE 9
1178 #define STD_PROPERTIES 10
1181 #define STD_REPLACE 13
1182 #define STD_PRINT 14
1184 #define VIEW_LARGEICONS 0
1185 #define VIEW_SMALLICONS 1
1187 #define VIEW_DETAILS 3
1188 #define VIEW_SORTNAME 4
1189 #define VIEW_SORTSIZE 5
1190 #define VIEW_SORTDATE 6
1191 #define VIEW_SORTTYPE 7
1192 #define VIEW_PARENTFOLDER 8
1193 #define VIEW_NETCONNECT 9
1194 #define VIEW_NETDISCONNECT 10
1195 #define VIEW_NEWFOLDER 11
1196 #define VIEW_VIEWMENU 12
1199 #define HIST_FORWARD 1
1200 #define HIST_FAVORITES 2
1201 #define HIST_ADDTOFAVORITES 3
1202 #define HIST_VIEWTREE 4
1204 typedef struct tagTBSAVEPARAMSA
{
1207 LPCSTR pszValueName
;
1208 } TBSAVEPARAMSA
, *LPTBSAVEPARAMSA
;
1210 typedef struct tagTBSAVEPARAMSW
{
1213 LPCWSTR pszValueName
;
1214 } TBSAVEPARAMSW
, *LPTBSAVEPARAMSW
;
1216 #define TBSAVEPARAMS WINELIB_NAME_AW(TBSAVEPARAMS)
1217 #define LPTBSAVEPARAMS WINELIB_NAME_AW(LPTBSAVEPARAMS)
1231 } TBBUTTONINFOA
, *LPTBBUTTONINFOA
;
1245 } TBBUTTONINFOW
, *LPTBBUTTONINFOW
;
1247 #define TBBUTTONINFO WINELIB_NAME_AW(TBBUTTONINFO)
1248 #define LPTBBUTTONINFO WINELIB_NAME_AW(LPTBBUTTONINFO)
1250 typedef struct tagNMTBHOTITEM
1256 } NMTBHOTITEM
, *LPNMTBHOTITEM
;
1258 typedef struct tagNMTBGETINFOTIPA
1265 } NMTBGETINFOTIPA
, *LPNMTBGETINFOTIPA
;
1267 typedef struct tagNMTBGETINFOTIPW
1274 } NMTBGETINFOTIPW
, *LPNMTBGETINFOTIPW
;
1276 #define NMTBGETINFOTIP WINELIB_NAME_AW(NMTBGETINFOFTIP)
1277 #define LPNMTBGETINFOTIP WINELIB_NAME_AW(LPNMTBGETINFOTIP)
1288 } NMTBDISPINFOA
, *LPNMTBDISPINFOA
;
1299 } NMTBDISPINFOW
, *LPNMTBDISPINFOW
;
1301 #define NMTBDISPINFO WINELIB_NAME_AW(NMTBDISPINFO)
1302 #define LPNMTBDISPINFO WINELIB_NAME_AW(LPNMTBDISPINFO)
1304 /* contents of dwMask in the NMTBDISPINFO structure */
1305 #define TBNF_IMAGE 0x00000001
1306 #define TBNF_TEXT 0x00000002
1307 #define TBNF_DI_SETITEM 0x10000000
1310 typedef struct tagNMTOOLBARA
1317 RECT rcButton
; /* Version 5.80 */
1318 } NMTOOLBARA
, *LPNMTOOLBARA
, TBNOTIFYA
, *LPTBNOTIFYA
;
1320 typedef struct tagNMTOOLBARW
1327 RECT rcButton
; /* Version 5.80 */
1328 } NMTOOLBARW
, *LPNMTOOLBARW
, TBNOTIFYW
, *LPTBNOTIFYW
;
1330 #define NMTOOLBAR WINELIB_NAME_AW(NMTOOLBAR)
1331 #define LPNMTOOLBAR WINELIB_NAME_AW(LPNMTOOLBAR)
1332 #define TBNOTIFY WINELIB_NAME_AW(TBNOTIFY)
1333 #define LPTBNOTIFY WINELIB_NAME_AW(LPTBNOTIFY)
1342 } TBREPLACEBITMAP
, *LPTBREPLACEBITMAP
;
1344 #define HICF_OTHER 0x00000000
1345 #define HICF_MOUSE 0x00000001 /* Triggered by mouse */
1346 #define HICF_ARROWKEYS 0x00000002 /* Triggered by arrow keys */
1347 #define HICF_ACCELERATOR 0x00000004 /* Triggered by accelerator */
1348 #define HICF_DUPACCEL 0x00000008 /* This accelerator is not unique */
1349 #define HICF_ENTERING 0x00000010 /* idOld is invalid */
1350 #define HICF_LEAVING 0x00000020 /* idNew is invalid */
1351 #define HICF_RESELECT 0x00000040 /* hot item reselected */
1352 #define HICF_LMOUSE 0x00000080 /* left mouse button selected */
1353 #define HICF_TOGGLEDROPDOWN 0x00000100 /* Toggle button's dropdown state */
1359 } TBINSERTMARK
, *LPTBINSERTMARK
;
1360 #define TBIMHT_AFTER 0x00000001 /* TRUE = insert After iButton, otherwise before */
1361 #define TBIMHT_BACKGROUND 0x00000002 /* TRUE if and only if missed buttons completely */
1364 CreateToolbar(HWND
, DWORD
, UINT
, INT
, HINSTANCE
,
1365 UINT
, LPCOLDTBBUTTON
, INT
);
1368 CreateToolbarEx(HWND
, DWORD
, UINT
, INT
,
1369 HINSTANCE
, UINT
, LPCTBBUTTON
,
1370 INT
, INT
, INT
, INT
, INT
, UINT
);
1373 CreateMappedBitmap (HINSTANCE
, INT
, UINT
, LPCOLORMAP
, INT
);
1378 #define TOOLTIPS_CLASS16 "tooltips_class"
1379 #define TOOLTIPS_CLASSA "tooltips_class32"
1380 static const WCHAR TOOLTIPS_CLASSW
[] = { 't','o','o','l','t','i','p','s','_',
1381 'c','l','a','s','s','3','2',0 };
1382 #define TOOLTIPS_CLASS WINELIB_NAME_AW(TOOLTIPS_CLASS)
1384 #define INFOTIPSIZE 1024
1386 #define TTS_ALWAYSTIP 0x01
1387 #define TTS_NOPREFIX 0x02
1389 #define TTF_IDISHWND 0x0001
1390 #define TTF_CENTERTIP 0x0002
1391 #define TTF_RTLREADING 0x0004
1392 #define TTF_SUBCLASS 0x0010
1393 #define TTF_TRACK 0x0020
1394 #define TTF_ABSOLUTE 0x0080
1395 #define TTF_TRANSPARENT 0x0100
1396 #define TTF_DI_SETITEM 0x8000 /* valid only on the TTN_NEEDTEXT callback */
1399 #define TTDT_AUTOMATIC 0
1400 #define TTDT_RESHOW 1
1401 #define TTDT_AUTOPOP 2
1402 #define TTDT_INITIAL 3
1405 #define TTM_ACTIVATE (WM_USER+1)
1406 #define TTM_SETDELAYTIME (WM_USER+3)
1407 #define TTM_ADDTOOLA (WM_USER+4)
1408 #define TTM_ADDTOOLW (WM_USER+50)
1409 #define TTM_ADDTOOL WINELIB_NAME_AW(TTM_ADDTOOL)
1410 #define TTM_DELTOOLA (WM_USER+5)
1411 #define TTM_DELTOOLW (WM_USER+51)
1412 #define TTM_DELTOOL WINELIB_NAME_AW(TTM_DELTOOL)
1413 #define TTM_NEWTOOLRECTA (WM_USER+6)
1414 #define TTM_NEWTOOLRECTW (WM_USER+52)
1415 #define TTM_NEWTOOLRECT WINELIB_NAME_AW(TTM_NEWTOOLRECT)
1416 #define TTM_RELAYEVENT (WM_USER+7)
1417 #define TTM_GETTOOLINFOA (WM_USER+8)
1418 #define TTM_GETTOOLINFOW (WM_USER+53)
1419 #define TTM_GETTOOLINFO WINELIB_NAME_AW(TTM_GETTOOLINFO)
1420 #define TTM_SETTOOLINFOA (WM_USER+9)
1421 #define TTM_SETTOOLINFOW (WM_USER+54)
1422 #define TTM_SETTOOLINFO WINELIB_NAME_AW(TTM_SETTOOLINFO)
1423 #define TTM_HITTESTA (WM_USER+10)
1424 #define TTM_HITTESTW (WM_USER+55)
1425 #define TTM_HITTEST WINELIB_NAME_AW(TTM_HITTEST)
1426 #define TTM_GETTEXTA (WM_USER+11)
1427 #define TTM_GETTEXTW (WM_USER+56)
1428 #define TTM_GETTEXT WINELIB_NAME_AW(TTM_GETTEXT)
1429 #define TTM_UPDATETIPTEXTA (WM_USER+12)
1430 #define TTM_UPDATETIPTEXTW (WM_USER+57)
1431 #define TTM_UPDATETIPTEXT WINELIB_NAME_AW(TTM_UPDATETIPTEXT)
1432 #define TTM_GETTOOLCOUNT (WM_USER+13)
1433 #define TTM_ENUMTOOLSA (WM_USER+14)
1434 #define TTM_ENUMTOOLSW (WM_USER+58)
1435 #define TTM_ENUMTOOLS WINELIB_NAME_AW(TTM_ENUMTOOLS)
1436 #define TTM_GETCURRENTTOOLA (WM_USER+15)
1437 #define TTM_GETCURRENTTOOLW (WM_USER+59)
1438 #define TTM_GETCURRENTTOOL WINELIB_NAME_AW(TTM_GETCURRENTTOOL)
1439 #define TTM_WINDOWFROMPOINT (WM_USER+16)
1440 #define TTM_TRACKACTIVATE (WM_USER+17)
1441 #define TTM_TRACKPOSITION (WM_USER+18)
1442 #define TTM_SETTIPBKCOLOR (WM_USER+19)
1443 #define TTM_SETTIPTEXTCOLOR (WM_USER+20)
1444 #define TTM_GETDELAYTIME (WM_USER+21)
1445 #define TTM_GETTIPBKCOLOR (WM_USER+22)
1446 #define TTM_GETTIPTEXTCOLOR (WM_USER+23)
1447 #define TTM_SETMAXTIPWIDTH (WM_USER+24)
1448 #define TTM_GETMAXTIPWIDTH (WM_USER+25)
1449 #define TTM_SETMARGIN (WM_USER+26)
1450 #define TTM_GETMARGIN (WM_USER+27)
1451 #define TTM_POP (WM_USER+28)
1452 #define TTM_UPDATE (WM_USER+29)
1455 #define TTN_FIRST (0U-520U)
1456 #define TTN_LAST (0U-549U)
1457 #define TTN_GETDISPINFOA (TTN_FIRST-0)
1458 #define TTN_GETDISPINFOW (TTN_FIRST-10)
1459 #define TTN_GETDISPINFO WINELIB_NAME_AW(TTN_GETDISPINFO)
1460 #define TTN_SHOW (TTN_FIRST-1)
1461 #define TTN_POP (TTN_FIRST-2)
1463 #define TTN_NEEDTEXT TTN_GETDISPINFO
1464 #define TTN_NEEDTEXTA TTN_GETDISPINFOA
1465 #define TTN_NEEDTEXTW TTN_GETDISPINFOW
1467 typedef struct tagTOOLINFOA
{
1476 } TTTOOLINFOA
, *LPTOOLINFOA
, *PTOOLINFOA
, *LPTTTOOLINFOA
;
1478 typedef struct tagTOOLINFOW
{
1487 } TTTOOLINFOW
, *LPTOOLINFOW
, *PTOOLINFOW
, *LPTTTOOLINFOW
;
1489 #define TTTOOLINFO WINELIB_NAME_AW(TTTOOLINFO)
1490 #define TOOLINFO WINELIB_NAME_AW(TTTOOLINFO)
1491 #define PTOOLINFO WINELIB_NAME_AW(PTOOLINFO)
1492 #define LPTTTOOLINFO WINELIB_NAME_AW(LPTTTOOLINFO)
1493 #define LPTOOLINFO WINELIB_NAME_AW(LPTOOLINFO)
1495 #define TTTOOLINFO_V1_SIZEA CCSIZEOF_STRUCT(TTTOOLINFOA, lpszText)
1496 #define TTTOOLINFO_V1_SIZEW CCSIZEOF_STRUCT(TTTOOLINFOW, lpszText)
1497 #define TTTOOLINFO_V1_SIZE WINELIB_NAME_AW(TTTOOLINFO_V1_SIZE)
1499 typedef struct _TT_HITTESTINFOA
1504 } TTHITTESTINFOA
, *LPTTHITTESTINFOA
;
1505 #define LPHITTESTINFOA LPTTHITTESTINFOA
1507 typedef struct _TT_HITTESTINFOW
1512 } TTHITTESTINFOW
, *LPTTHITTESTINFOW
;
1513 #define LPHITTESTINFOW LPTTHITTESTINFOW
1515 #define TTHITTESTINFO WINELIB_NAME_AW(TTHITTESTINFO)
1516 #define LPTTHITTESTINFO WINELIB_NAME_AW(LPTTHITTESTINFO)
1517 #define LPHITTESTINFO WINELIB_NAME_AW(LPHITTESTINFO)
1519 typedef struct tagNMTTDISPINFOA
1527 } NMTTDISPINFOA
, *LPNMTTDISPINFOA
;
1529 typedef struct tagNMTTDISPINFOW
1537 } NMTTDISPINFOW
, *LPNMTTDISPINFOW
;
1539 #define NMTTDISPINFO WINELIB_NAME_AW(NMTTDISPINFO)
1540 #define LPNMTTDISPINFO WINELIB_NAME_AW(LPNMTTDISPINFO)
1542 #define NMTTDISPINFO_V1_SIZEA CCSIZEOF_STRUCT(NMTTDISPINFOA, uFlags)
1543 #define NMTTDISPINFO_V1_SIZEW CCSIZEOF_STRUCT(NMTTDISPINFOW, uFlags)
1544 #define NMTTDISPINFO_V1_SIZE WINELIB_NAME_AW(NMTTDISPINFO_V1_SIZE)
1546 #define TOOLTIPTEXTW NMTTDISPINFOW
1547 #define TOOLTIPTEXTA NMTTDISPINFOA
1548 #define TOOLTIPTEXT NMTTDISPINFO
1549 #define LPTOOLTIPTEXTW LPNMTTDISPINFOW
1550 #define LPTOOLTIPTEXTA LPNMTTDISPINFOA
1551 #define LPTOOLTIPTEXT LPNMTTDISPINFO
1556 #define REBARCLASSNAME16 "ReBarWindow"
1557 #define REBARCLASSNAMEA "ReBarWindow32"
1558 static const WCHAR REBARCLASSNAMEW
[] = { 'R','e','B','a','r',
1559 'W','i','n','d','o','w','3','2',0 };
1560 #define REBARCLASSNAME WINELIB_NAME_AW(REBARCLASSNAME)
1562 #define RBS_TOOLTIPS 0x0100
1563 #define RBS_VARHEIGHT 0x0200
1564 #define RBS_BANDBORDERS 0x0400
1565 #define RBS_FIXEDORDER 0x0800
1566 #define RBS_REGISTERDROP 0x1000
1567 #define RBS_AUTOSIZE 0x2000
1568 #define RBS_VERTICALGRIPPER 0x4000
1569 #define RBS_DBLCLKTOGGLE 0x8000
1571 #define RBIM_IMAGELIST 0x00000001
1573 #define RBBIM_STYLE 0x00000001
1574 #define RBBIM_COLORS 0x00000002
1575 #define RBBIM_TEXT 0x00000004
1576 #define RBBIM_IMAGE 0x00000008
1577 #define RBBIM_CHILD 0x00000010
1578 #define RBBIM_CHILDSIZE 0x00000020
1579 #define RBBIM_SIZE 0x00000040
1580 #define RBBIM_BACKGROUND 0x00000080
1581 #define RBBIM_ID 0x00000100
1582 #define RBBIM_IDEALSIZE 0x00000200
1583 #define RBBIM_LPARAM 0x00000400
1584 #define RBBIM_HEADERSIZE 0x00000800
1586 #define RBBS_BREAK 0x00000001
1587 #define RBBS_FIXEDSIZE 0x00000002
1588 #define RBBS_CHILDEDGE 0x00000004
1589 #define RBBS_HIDDEN 0x00000008
1590 #define RBBS_NOVERT 0x00000010
1591 #define RBBS_FIXEDBMP 0x00000020
1592 #define RBBS_VARIABLEHEIGHT 0x00000040
1593 #define RBBS_GRIPPERALWAYS 0x00000080
1594 #define RBBS_NOGRIPPER 0x00000100
1596 #define RBNM_ID 0x00000001
1597 #define RBNM_STYLE 0x00000002
1598 #define RBNM_LPARAM 0x00000004
1600 #define RBHT_NOWHERE 0x0001
1601 #define RBHT_CAPTION 0x0002
1602 #define RBHT_CLIENT 0x0003
1603 #define RBHT_GRABBER 0x0004
1605 #define RB_INSERTBANDA (WM_USER+1)
1606 #define RB_INSERTBANDW (WM_USER+10)
1607 #define RB_INSERTBAND WINELIB_NAME_AW(RB_INSERTBAND)
1608 #define RB_DELETEBAND (WM_USER+2)
1609 #define RB_GETBARINFO (WM_USER+3)
1610 #define RB_SETBARINFO (WM_USER+4)
1611 #define RB_GETBANDINFO (WM_USER+5) /* just for compatibility */
1612 #define RB_SETBANDINFOA (WM_USER+6)
1613 #define RB_SETBANDINFOW (WM_USER+11)
1614 #define RB_SETBANDINFO WINELIB_NAME_AW(RB_SETBANDINFO)
1615 #define RB_SETPARENT (WM_USER+7)
1616 #define RB_HITTEST (WM_USER+8)
1617 #define RB_GETRECT (WM_USER+9)
1618 #define RB_GETBANDCOUNT (WM_USER+12)
1619 #define RB_GETROWCOUNT (WM_USER+13)
1620 #define RB_GETROWHEIGHT (WM_USER+14)
1621 #define RB_IDTOINDEX (WM_USER+16)
1622 #define RB_GETTOOLTIPS (WM_USER+17)
1623 #define RB_SETTOOLTIPS (WM_USER+18)
1624 #define RB_SETBKCOLOR (WM_USER+19)
1625 #define RB_GETBKCOLOR (WM_USER+20)
1626 #define RB_SETTEXTCOLOR (WM_USER+21)
1627 #define RB_GETTEXTCOLOR (WM_USER+22)
1628 #define RB_SIZETORECT (WM_USER+23)
1629 #define RB_BEGINDRAG (WM_USER+24)
1630 #define RB_ENDDRAG (WM_USER+25)
1631 #define RB_DRAGMOVE (WM_USER+26)
1632 #define RB_GETBARHEIGHT (WM_USER+27)
1633 #define RB_GETBANDINFOW (WM_USER+28)
1634 #define RB_GETBANDINFOA (WM_USER+29)
1635 #define RB_GETBANDINFO16 WINELIB_NAME_AW(RB_GETBANDINFO16)
1636 #define RB_MINIMIZEBAND (WM_USER+30)
1637 #define RB_MAXIMIZEBAND (WM_USER+31)
1638 #define RB_GETBANDBORDERS (WM_USER+34)
1639 #define RB_SHOWBAND (WM_USER+35)
1640 #define RB_SETPALETTE (WM_USER+37)
1641 #define RB_GETPALETTE (WM_USER+38)
1642 #define RB_MOVEBAND (WM_USER+39)
1643 #define RB_GETDROPTARGET CCM_GETDROPTARGET
1644 #define RB_SETCOLORSCHEME CCM_SETCOLORSCHEME
1645 #define RB_GETCOLORSCHEME CCM_GETCOLORSCHEME
1646 #define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1647 #define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1649 #define RBN_FIRST (0U-831U)
1650 #define RBN_LAST (0U-859U)
1651 #define RBN_HEIGHTCHANGE (RBN_FIRST-0)
1652 #define RBN_GETOBJECT (RBN_FIRST-1)
1653 #define RBN_LAYOUTCHANGED (RBN_FIRST-2)
1654 #define RBN_AUTOSIZE (RBN_FIRST-3)
1655 #define RBN_BEGINDRAG (RBN_FIRST-4)
1656 #define RBN_ENDDRAG (RBN_FIRST-5)
1657 #define RBN_DELETINGBAND (RBN_FIRST-6)
1658 #define RBN_DELETEDBAND (RBN_FIRST-7)
1659 #define RBN_CHILDSIZE (RBN_FIRST-8)
1661 typedef struct tagREBARINFO
1666 } REBARINFO
, *LPREBARINFO
;
1668 typedef struct tagREBARBANDINFOA
1690 } REBARBANDINFOA
, *LPREBARBANDINFOA
;
1692 typedef REBARBANDINFOA
const *LPCREBARBANDINFOA
;
1694 typedef struct tagREBARBANDINFOW
1716 } REBARBANDINFOW
, *LPREBARBANDINFOW
;
1718 typedef REBARBANDINFOW
const *LPCREBARBANDINFOW
;
1720 #define REBARBANDINFO WINELIB_NAME_AW(REBARBANDINFO)
1721 #define LPREBARBANDINFO WINELIB_NAME_AW(LPREBARBANDINFO)
1722 #define LPCREBARBANDINFO WINELIB_NAME_AW(LPCREBARBANDINFO)
1724 #define REBARBANDINFO_V3_SIZEA CCSIZEOF_STRUCT(REBARBANDINFOA, wID)
1725 #define REBARBANDINFO_V3_SIZEW CCSIZEOF_STRUCT(REBARBANDINFOW, wID)
1726 #define REBARBANDINFO_V3_SIZE WINELIB_NAME_AW(REBARBANDINFO_V3_SIZE)
1728 typedef struct tagNMREBARCHILDSIZE
1735 } NMREBARCHILDSIZE
, *LPNMREBARCHILDSIZE
;
1737 typedef struct tagNMREBAR
1745 } NMREBAR
, *LPNMREBAR
;
1747 typedef struct tagNMRBAUTOSIZE
1753 } NMRBAUTOSIZE
, *LPNMRBAUTOSIZE
;
1755 typedef struct _RB_HITTESTINFO
1760 } RBHITTESTINFO
, *LPRBHITTESTINFO
;
1763 /* Trackbar control */
1765 #define TRACKBAR_CLASS16 "msctls_trackbar"
1766 #define TRACKBAR_CLASSA "msctls_trackbar32"
1767 static const WCHAR TRACKBAR_CLASSW
[] = { 'm','s','c','t','l','s','_',
1768 't','r','a','c','k','b','a','r','3','2',0 };
1769 #define TRACKBAR_CLASS WINELIB_NAME_AW(TRACKBAR_CLASS)
1771 #define TBS_AUTOTICKS 0x0001
1772 #define TBS_VERT 0x0002
1773 #define TBS_HORZ 0x0000
1774 #define TBS_TOP 0x0004
1775 #define TBS_BOTTOM 0x0000
1776 #define TBS_LEFT 0x0004
1777 #define TBS_RIGHT 0x0000
1778 #define TBS_BOTH 0x0008
1779 #define TBS_NOTICKS 0x0010
1780 #define TBS_ENABLESELRANGE 0x0020
1781 #define TBS_FIXEDLENGTH 0x0040
1782 #define TBS_NOTHUMB 0x0080
1783 #define TBS_TOOLTIPS 0x0100
1784 #define TBS_REVERSED 0x0200
1788 #define TBTS_BOTTOM 2
1789 #define TBTS_RIGHT 3
1792 #define TB_LINEDOWN 1
1794 #define TB_PAGEDOWN 3
1795 #define TB_THUMBPOSITION 4
1796 #define TB_THUMBTRACK 5
1799 #define TB_ENDTRACK 8
1801 #define TBCD_TICS 0x0001
1802 #define TBCD_THUMB 0x0002
1803 #define TBCD_CHANNEL 0x0003
1805 #define TBM_GETPOS (WM_USER)
1806 #define TBM_GETRANGEMIN (WM_USER+1)
1807 #define TBM_GETRANGEMAX (WM_USER+2)
1808 #define TBM_GETTIC (WM_USER+3)
1809 #define TBM_SETTIC (WM_USER+4)
1810 #define TBM_SETPOS (WM_USER+5)
1811 #define TBM_SETRANGE (WM_USER+6)
1812 #define TBM_SETRANGEMIN (WM_USER+7)
1813 #define TBM_SETRANGEMAX (WM_USER+8)
1814 #define TBM_CLEARTICS (WM_USER+9)
1815 #define TBM_SETSEL (WM_USER+10)
1816 #define TBM_SETSELSTART (WM_USER+11)
1817 #define TBM_SETSELEND (WM_USER+12)
1818 #define TBM_GETPTICS (WM_USER+14)
1819 #define TBM_GETTICPOS (WM_USER+15)
1820 #define TBM_GETNUMTICS (WM_USER+16)
1821 #define TBM_GETSELSTART (WM_USER+17)
1822 #define TBM_GETSELEND (WM_USER+18)
1823 #define TBM_CLEARSEL (WM_USER+19)
1824 #define TBM_SETTICFREQ (WM_USER+20)
1825 #define TBM_SETPAGESIZE (WM_USER+21)
1826 #define TBM_GETPAGESIZE (WM_USER+22)
1827 #define TBM_SETLINESIZE (WM_USER+23)
1828 #define TBM_GETLINESIZE (WM_USER+24)
1829 #define TBM_GETTHUMBRECT (WM_USER+25)
1830 #define TBM_GETCHANNELRECT (WM_USER+26)
1831 #define TBM_SETTHUMBLENGTH (WM_USER+27)
1832 #define TBM_GETTHUMBLENGTH (WM_USER+28)
1833 #define TBM_SETTOOLTIPS (WM_USER+29)
1834 #define TBM_GETTOOLTIPS (WM_USER+30)
1835 #define TBM_SETTIPSIDE (WM_USER+31)
1836 #define TBM_SETBUDDY (WM_USER+32)
1837 #define TBM_GETBUDDY (WM_USER+33)
1838 #define TBM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1839 #define TBM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1844 #define WC_PAGESCROLLERA "SysPager"
1845 static const WCHAR WC_PAGESCROLLERW
[] = { 'S','y','s','P','a','g','e','r',0 };
1846 #define WC_PAGESCROLLER WINELIB_NAME_AW(WC_PAGESCROLLER)
1848 #define PGS_VERT 0x00000000
1849 #define PGS_HORZ 0x00000001
1850 #define PGS_AUTOSCROLL 0x00000002
1851 #define PGS_DRAGNDROP 0x00000004
1853 #define PGF_INVISIBLE 0
1854 #define PGF_NORMAL 1
1855 #define PGF_GRAYED 2
1856 #define PGF_DEPRESSED 4
1859 #define PGB_TOPORLEFT 0
1860 #define PGB_BOTTOMORRIGHT 1
1862 /* only used with PGN_SCROLL */
1863 #define PGF_SCROLLUP 1
1864 #define PGF_SCROLLDOWN 2
1865 #define PGF_SCROLLLEFT 4
1866 #define PGF_SCROLLRIGHT 8
1869 #define PGK_CONTROL 2
1872 /* only used with PGN_CALCSIZE */
1873 #define PGF_CALCWIDTH 1
1874 #define PGF_CALCHEIGHT 2
1876 #define PGM_FIRST 0x1400
1877 #define PGM_SETCHILD (PGM_FIRST+1)
1878 #define PGM_RECALCSIZE (PGM_FIRST+2)
1879 #define PGM_FORWARDMOUSE (PGM_FIRST+3)
1880 #define PGM_SETBKCOLOR (PGM_FIRST+4)
1881 #define PGM_GETBKCOLOR (PGM_FIRST+5)
1882 #define PGM_SETBORDER (PGM_FIRST+6)
1883 #define PGM_GETBORDER (PGM_FIRST+7)
1884 #define PGM_SETPOS (PGM_FIRST+8)
1885 #define PGM_GETPOS (PGM_FIRST+9)
1886 #define PGM_SETBUTTONSIZE (PGM_FIRST+10)
1887 #define PGM_GETBUTTONSIZE (PGM_FIRST+11)
1888 #define PGM_GETBUTTONSTATE (PGM_FIRST+12)
1889 #define PGM_GETDROPTARGET CCM_GETDROPTARGET
1891 #define PGN_FIRST (0U-900U)
1892 #define PGN_LAST (0U-950U)
1893 #define PGN_SCROLL (PGN_FIRST-1)
1894 #define PGN_CALCSIZE (PGN_FIRST-2)
1896 #include "pshpack1.h"
1907 } NMPGSCROLL
, *LPNMPGSCROLL
;
1909 #include "poppack.h"
1917 } NMPGCALCSIZE
, *LPNMPGCALCSIZE
;
1920 /* Treeview control */
1922 #define WC_TREEVIEWA "SysTreeView32"
1923 static const WCHAR WC_TREEVIEWW
[] = { 'S','y','s',
1924 'T','r','e','e','V','i','e','w','3','2',0 };
1925 #define WC_TREEVIEW WINELIB_NAME_AW(WC_TREEVIEW)
1927 #define TVSIL_NORMAL 0
1928 #define TVSIL_STATE 2
1930 #define TV_FIRST 0x1100
1931 #define TVM_INSERTITEMA (TV_FIRST+0)
1932 #define TVM_INSERTITEMW (TV_FIRST+50)
1933 #define TVM_INSERTITEM WINELIB_NAME_AW(TVM_INSERTITEM)
1934 #define TVM_DELETEITEM (TV_FIRST+1)
1935 #define TVM_EXPAND (TV_FIRST+2)
1936 #define TVM_GETITEMRECT (TV_FIRST+4)
1937 #define TVM_GETCOUNT (TV_FIRST+5)
1938 #define TVM_GETINDENT (TV_FIRST+6)
1939 #define TVM_SETINDENT (TV_FIRST+7)
1940 #define TVM_GETIMAGELIST (TV_FIRST+8)
1941 #define TVM_SETIMAGELIST (TV_FIRST+9)
1942 #define TVM_GETNEXTITEM (TV_FIRST+10)
1943 #define TVM_SELECTITEM (TV_FIRST+11)
1944 #define TVM_GETITEMA (TV_FIRST+12)
1945 #define TVM_GETITEMW (TV_FIRST+62)
1946 #define TVM_GETITEM WINELIB_NAME_AW(TVM_GETITEM)
1947 #define TVM_SETITEMA (TV_FIRST+13)
1948 #define TVM_SETITEMW (TV_FIRST+63)
1949 #define TVM_SETITEM WINELIB_NAME_AW(TVM_SETITEM)
1950 #define TVM_EDITLABELA (TV_FIRST+14)
1951 #define TVM_EDITLABELW (TV_FIRST+65)
1952 #define TVM_EDITLABEL WINELIB_NAME_AW(TVM_EDITLABEL)
1953 #define TVM_GETEDITCONTROL (TV_FIRST+15)
1954 #define TVM_GETVISIBLECOUNT (TV_FIRST+16)
1955 #define TVM_HITTEST (TV_FIRST+17)
1956 #define TVM_CREATEDRAGIMAGE (TV_FIRST+18)
1957 #define TVM_SORTCHILDREN (TV_FIRST+19)
1958 #define TVM_ENSUREVISIBLE (TV_FIRST+20)
1959 #define TVM_SORTCHILDRENCB (TV_FIRST+21)
1960 #define TVM_ENDEDITLABELNOW (TV_FIRST+22)
1961 #define TVM_GETISEARCHSTRINGA (TV_FIRST+23)
1962 #define TVM_GETISEARCHSTRINGW (TV_FIRST+64)
1963 #define TVM_GETISEARCHSTRING WINELIB_NAME_AW(TVM_GETISEARCHSTRING)
1964 #define TVM_SETTOOLTIPS (TV_FIRST+24)
1965 #define TVM_GETTOOLTIPS (TV_FIRST+25)
1966 #define TVM_SETINSERTMARK (TV_FIRST+26)
1967 #define TVM_SETITEMHEIGHT (TV_FIRST+27)
1968 #define TVM_GETITEMHEIGHT (TV_FIRST+28)
1969 #define TVM_SETBKCOLOR (TV_FIRST+29)
1970 #define TVM_SETTEXTCOLOR (TV_FIRST+30)
1971 #define TVM_GETBKCOLOR (TV_FIRST+31)
1972 #define TVM_GETTEXTCOLOR (TV_FIRST+32)
1973 #define TVM_SETSCROLLTIME (TV_FIRST+33)
1974 #define TVM_GETSCROLLTIME (TV_FIRST+34)
1975 #define TVM_UNKNOWN35 (TV_FIRST+35)
1976 #define TVM_UNKNOWN36 (TV_FIRST+36)
1977 #define TVM_SETINSERTMARKCOLOR (TV_FIRST+37)
1978 #define TVM_GETINSERTMARKCOLOR (TV_FIRST+38)
1979 #define TVM_GETITEMSTATE (TV_FIRST+39)
1980 #define TVM_SETLINECOLOR (TV_FIRST+40)
1981 #define TVM_GETLINECOLOR (TV_FIRST+41)
1982 #define TVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1983 #define TVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1987 #define TVN_FIRST (0U-400U)
1988 #define TVN_LAST (0U-499U)
1990 #define TVN_SELCHANGINGA (TVN_FIRST-1)
1991 #define TVN_SELCHANGINGW (TVN_FIRST-50)
1992 #define TVN_SELCHANGING WINELIB_NAME_AW(TVN_SELCHANGING)
1994 #define TVN_SELCHANGEDA (TVN_FIRST-2)
1995 #define TVN_SELCHANGEDW (TVN_FIRST-51)
1996 #define TVN_SELCHANGED WINELIB_NAME_AW(TVN_SELCHANGED)
1998 #define TVN_GETDISPINFOA (TVN_FIRST-3)
1999 #define TVN_GETDISPINFOW (TVN_FIRST-52)
2000 #define TVN_GETDISPINFO WINELIB_NAME_AW(TVN_GETDISPINFO)
2002 #define TVN_SETDISPINFOA (TVN_FIRST-4)
2003 #define TVN_SETDISPINFOW (TVN_FIRST-53)
2004 #define TVN_SETDISPINFO WINELIB_NAME_AW(TVN_SETDISPINFO)
2006 #define TVN_ITEMEXPANDINGA (TVN_FIRST-5)
2007 #define TVN_ITEMEXPANDINGW (TVN_FIRST-54)
2008 #define TVN_ITEMEXPANDING WINELIB_NAME_AW(TVN_ITEMEXPANDING)
2010 #define TVN_ITEMEXPANDEDA (TVN_FIRST-6)
2011 #define TVN_ITEMEXPANDEDW (TVN_FIRST-55)
2012 #define TVN_ITEMEXPANDED WINELIB_NAME_AW(TVN_ITEMEXPANDED)
2014 #define TVN_BEGINDRAGA (TVN_FIRST-7)
2015 #define TVN_BEGINDRAGW (TVN_FIRST-56)
2016 #define TVN_BEGINDRAG WINELIB_NAME_AW(TVN_BEGINDRAG)
2018 #define TVN_BEGINRDRAGA (TVN_FIRST-8)
2019 #define TVN_BEGINRDRAGW (TVN_FIRST-57)
2020 #define TVN_BEGINRDRAG WINELIB_NAME_AW(TVN_BEGINRDRAG)
2022 #define TVN_DELETEITEMA (TVN_FIRST-9)
2023 #define TVN_DELETEITEMW (TVN_FIRST-58)
2024 #define TVN_DELETEITEM WINELIB_NAME_AW(TVN_DELETEITEM)
2026 #define TVN_BEGINLABELEDITA (TVN_FIRST-10)
2027 #define TVN_BEGINLABELEDITW (TVN_FIRST-59)
2028 #define TVN_BEGINLABELEDIT WINELIB_NAME_AW(TVN_BEGINLABELEDIT)
2030 #define TVN_ENDLABELEDITA (TVN_FIRST-11)
2031 #define TVN_ENDLABELEDITW (TVN_FIRST-60)
2032 #define TVN_ENDLABELEDIT WINELIB_NAME_AW(TVN_ENDLABELEDIT)
2034 #define TVN_KEYDOWN (TVN_FIRST-12)
2036 #define TVN_GETINFOTIPA (TVN_FIRST-13)
2037 #define TVN_GETINFOTIPW (TVN_FIRST-14)
2038 #define TVN_GETINFOTIP WINELIB_NAME_AW(TVN_GETINFOTIP)
2040 #define TVN_SINGLEEXPAND (TVN_FIRST-15)
2046 #define TVIF_TEXT 0x0001
2047 #define TVIF_IMAGE 0x0002
2048 #define TVIF_PARAM 0x0004
2049 #define TVIF_STATE 0x0008
2050 #define TVIF_HANDLE 0x0010
2051 #define TVIF_SELECTEDIMAGE 0x0020
2052 #define TVIF_CHILDREN 0x0040
2053 #define TVIF_INTEGRAL 0x0080
2054 #define TVIF_DI_SETITEM 0x1000
2056 #define TVI_ROOT ((HTREEITEM)0xffff0000) /* -65536 */
2057 #define TVI_FIRST ((HTREEITEM)0xffff0001) /* -65535 */
2058 #define TVI_LAST ((HTREEITEM)0xffff0002) /* -65534 */
2059 #define TVI_SORT ((HTREEITEM)0xffff0003) /* -65533 */
2061 #define TVIS_FOCUSED 0x0001
2062 #define TVIS_SELECTED 0x0002
2063 #define TVIS_CUT 0x0004
2064 #define TVIS_DROPHILITED 0x0008
2065 #define TVIS_BOLD 0x0010
2066 #define TVIS_EXPANDED 0x0020
2067 #define TVIS_EXPANDEDONCE 0x0040
2068 #define TVIS_EXPANDPARTIAL 0x0080
2069 #define TVIS_OVERLAYMASK 0x0f00
2070 #define TVIS_STATEIMAGEMASK 0xf000
2071 #define TVIS_USERMASK 0xf000
2073 #define TVHT_NOWHERE 0x0001
2074 #define TVHT_ONITEMICON 0x0002
2075 #define TVHT_ONITEMLABEL 0x0004
2076 #define TVHT_ONITEMINDENT 0x0008
2077 #define TVHT_ONITEMBUTTON 0x0010
2078 #define TVHT_ONITEMRIGHT 0x0020
2079 #define TVHT_ONITEMSTATEICON 0x0040
2080 #define TVHT_ONITEM 0x0046
2081 #define TVHT_ABOVE 0x0100
2082 #define TVHT_BELOW 0x0200
2083 #define TVHT_TORIGHT 0x0400
2084 #define TVHT_TOLEFT 0x0800
2086 #define TVS_HASBUTTONS 0x0001
2087 #define TVS_HASLINES 0x0002
2088 #define TVS_LINESATROOT 0x0004
2089 #define TVS_EDITLABELS 0x0008
2090 #define TVS_DISABLEDRAGDROP 0x0010
2091 #define TVS_SHOWSELALWAYS 0x0020
2092 #define TVS_RTLREADING 0x0040
2093 #define TVS_NOTOOLTIPS 0x0080
2094 #define TVS_CHECKBOXES 0x0100
2095 #define TVS_TRACKSELECT 0x0200
2096 #define TVS_SINGLEEXPAND 0x0400
2097 #define TVS_INFOTIP 0x0800
2098 #define TVS_FULLROWSELECT 0x1000
2099 #define TVS_NOSCROLL 0x2000
2100 #define TVS_NONEVENHEIGHT 0x4000
2101 #define TVS_NOHSCROLL 0x8000
2103 #define TVS_SHAREDIMAGELISTS 0x0000
2104 #define TVS_PRIVATEIMAGELISTS 0x0400
2107 #define TVE_COLLAPSE 0x0001
2108 #define TVE_EXPAND 0x0002
2109 #define TVE_TOGGLE 0x0003
2110 #define TVE_EXPANDPARTIAL 0x4000
2111 #define TVE_COLLAPSERESET 0x8000
2115 #define TVGN_PREVIOUS 2
2116 #define TVGN_PARENT 3
2117 #define TVGN_CHILD 4
2118 #define TVGN_FIRSTVISIBLE 5
2119 #define TVGN_NEXTVISIBLE 6
2120 #define TVGN_PREVIOUSVISIBLE 7
2121 #define TVGN_DROPHILITE 8
2122 #define TVGN_CARET 9
2123 #define TVGN_LASTVISIBLE 10
2125 #define TVC_UNKNOWN 0x00
2126 #define TVC_BYMOUSE 0x01
2127 #define TVC_BYKEYBOARD 0x02
2130 typedef struct _TREEITEM
*HTREEITEM
;
2143 } TVITEMA
, *LPTVITEMA
;
2156 } TVITEMW
, *LPTVITEMW
;
2158 #define TV_ITEMA TVITEMA
2159 #define TV_ITEMW TVITEMW
2160 #define LPTV_ITEMA LPTVITEMA
2161 #define LPTV_ITEMW LPTVITEMW
2163 #define TVITEM WINELIB_NAME_AW(TVITEM)
2164 #define LPTVITEM WINELIB_NAME_AW(LPTVITEM)
2165 #define TV_ITEM WINELIB_NAME_AW(TV_ITEM)
2166 #define LPTV_ITEM WINELIB_NAME_AW(LPTV_ITEM)
2180 } TVITEMEXA
, *LPTVITEMEXA
;
2194 } TVITEMEXW
, *LPTVITEMEXW
;
2196 #define TVITEMEX WINELIB_NAME_AW(TVITEMEX)
2197 #define LPTVITEMEX WINELIB_NAME_AW(LPTVITEMEX)
2199 typedef struct tagTVINSERTSTRUCTA
{
2201 HTREEITEM hInsertAfter
;
2206 } TVINSERTSTRUCTA
, *LPTVINSERTSTRUCTA
;
2208 typedef struct tagTVINSERTSTRUCTW
{
2210 HTREEITEM hInsertAfter
;
2215 } TVINSERTSTRUCTW
, *LPTVINSERTSTRUCTW
;
2217 #define TVINSERTSTRUCT WINELIB_NAME_AW(TVINSERTSTRUCT)
2218 #define LPTVINSERTSTRUCT WINELIB_NAME_AW(LPTVINSERTSTRUCT)
2220 #define TVINSERTSTRUCT_V1_SIZEA CCSIZEOF_STRUCT(TVINSERTSTRUCTA, item)
2221 #define TVINSERTSTRUCT_V1_SIZEW CCSIZEOF_STRUCT(TVINSERTSTRUCTW, item)
2222 #define TVINSERTSTRUCT_V1_SIZE WINELIB_NAME_AW(TVINSERTSTRUCT_V1_SIZE)
2224 #define TV_INSERTSTRUCT TVINSERTSTRUCT
2225 #define TV_INSERTSTRUCTA TVINSERTSTRUCTA
2226 #define TV_INSERTSTRUCTW TVINSERTSTRUCTW
2227 #define LPTV_INSERTSTRUCT LPTVINSERTSTRUCT
2228 #define LPTV_INSERTSTRUCTA LPTVINSERTSTRUCTA
2229 #define LPTV_INSERTSTRUCTW LPTVINSERTSTRUCTW
2233 typedef struct tagNMTREEVIEWA
{
2239 } NMTREEVIEWA
, *LPNMTREEVIEWA
;
2241 typedef struct tagNMTREEVIEWW
{
2247 } NMTREEVIEWW
, *LPNMTREEVIEWW
;
2249 #define NMTREEVIEW WINELIB_NAME_AW(NMTREEVIEW)
2250 #define NM_TREEVIEW WINELIB_NAME_AW(NMTREEVIEW)
2251 #define LPNMTREEVIEW WINELIB_NAME_AW(LPNMTREEVIEW)
2253 #define LPNM_TREEVIEW LPNMTREEVIEW
2255 typedef struct tagTVDISPINFOA
{
2258 } NMTVDISPINFOA
, *LPNMTVDISPINFOA
;
2260 typedef struct tagTVDISPINFOW
{
2263 } NMTVDISPINFOW
, *LPNMTVDISPINFOW
;
2265 #define NMTVDISPINFO WINELIB_NAME_AW(NMTVDISPINFO)
2266 #define LPNMTVDISPINFO WINELIB_NAME_AW(LPNMTVDISPINFO)
2267 #define TV_DISPINFO NMTVDISPINFO
2269 typedef INT (CALLBACK
*PFNTVCOMPARE
)(LPARAM
, LPARAM
, LPARAM
);
2271 typedef struct tagTVSORTCB
2274 PFNTVCOMPARE lpfnCompare
;
2276 } TVSORTCB
, *LPTVSORTCB
;
2278 #define TV_SORTCB TVSORTCB
2279 #define LPTV_SORTCB LPTVSORTCB
2281 typedef struct tagTVHITTESTINFO
{
2285 } TVHITTESTINFO
, *LPTVHITTESTINFO
;
2287 #define TV_HITTESTINFO TVHITTESTINFO
2290 /* Custom Draw Treeview */
2292 #define NMTVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMTVCUSTOMDRAW, clrTextBk)
2294 #define TVCDRF_NOIMAGES 0x00010000
2296 typedef struct tagNMTVCUSTOMDRAW
2301 INT iLevel
; /* IE>0x0400 */
2302 } NMTVCUSTOMDRAW
, *LPNMTVCUSTOMDRAW
;
2304 /* Treeview tooltips */
2306 typedef struct tagNMTVGETINFOTIPA
2313 } NMTVGETINFOTIPA
, *LPNMTVGETINFOTIPA
;
2315 typedef struct tagNMTVGETINFOTIPW
2322 } NMTVGETINFOTIPW
, *LPNMTVGETINFOTIPW
;
2324 #define NMTVGETINFOTIP WINELIB_NAME_AW(NMTVGETINFOTIP)
2325 #define LPNMTVGETINFOTIP WINELIB_NAME_AW(LPNMTVGETINFOTIP)
2327 #include "pshpack1.h"
2328 typedef struct tagTVKEYDOWN
2333 } NMTVKEYDOWN
, *LPNMTVKEYDOWN
;
2334 #include "poppack.h"
2336 #define TV_KEYDOWN NMTVKEYDOWN
2338 #define TreeView_InsertItemA(hwnd, phdi) \
2339 (HTREEITEM)SendMessageA((hwnd), TVM_INSERTITEMA, 0, \
2340 (LPARAM)(LPTVINSERTSTRUCTA)(phdi))
2341 #define TreeView_InsertItemW(hwnd,phdi) \
2342 (HTREEITEM)SendMessageW((hwnd), TVM_INSERTITEMW, 0, \
2343 (LPARAM)(LPTVINSERTSTRUCTW)(phdi))
2344 #define TreeView_InsertItem WINELIB_NAME_AW(TreeView_InsertItem)
2346 #define TreeView_DeleteItem(hwnd, hItem) \
2347 (BOOL)SendMessageA((hwnd), TVM_DELETEITEM, 0, (LPARAM)(HTREEITEM)(hItem))
2348 #define TreeView_DeleteAllItems(hwnd) \
2349 (BOOL)SendMessageA((hwnd), TVM_DELETEITEM, 0, (LPARAM)TVI_ROOT)
2350 #define TreeView_Expand(hwnd, hitem, code) \
2351 (BOOL)SendMessageA((hwnd), TVM_EXPAND, (WPARAM)code, \
2352 (LPARAM)(HTREEITEM)(hitem))
2354 #define TreeView_GetItemRect(hwnd, hitem, prc, code) \
2355 (*(HTREEITEM *)prc = (hitem), (BOOL)SendMessageA((hwnd), \
2356 TVM_GETITEMRECT, (WPARAM)(code), (LPARAM)(RECT *)(prc)))
2358 #define TreeView_GetCount(hwnd) \
2359 (UINT)SendMessageA((hwnd), TVM_GETCOUNT, 0, 0)
2360 #define TreeView_GetIndent(hwnd) \
2361 (UINT)SendMessageA((hwnd), TVM_GETINDENT, 0, 0)
2362 #define TreeView_SetIndent(hwnd, indent) \
2363 (BOOL)SendMessageA((hwnd), TVM_SETINDENT, (WPARAM)indent, 0)
2365 #define TreeView_GetImageList(hwnd, iImage) \
2366 (HIMAGELIST)SendMessageA((hwnd), TVM_GETIMAGELIST, iImage, 0)
2368 #define TreeView_SetImageList(hwnd, himl, iImage) \
2369 (HIMAGELIST)SendMessageA((hwnd), TVM_SETIMAGELIST, iImage, \
2370 (LPARAM)(UINT)(HIMAGELIST)(himl))
2372 #define TreeView_GetNextItem(hwnd, hitem, code) \
2373 (HTREEITEM)SendMessageA((hwnd), TVM_GETNEXTITEM, (WPARAM)code,\
2374 (LPARAM)(HTREEITEM) (hitem))
2376 #define TreeView_GetChild(hwnd, hitem) \
2377 TreeView_GetNextItem(hwnd, hitem , TVGN_CHILD)
2378 #define TreeView_GetNextSibling(hwnd, hitem) \
2379 TreeView_GetNextItem(hwnd, hitem , TVGN_NEXT)
2380 #define TreeView_GetPrevSibling(hwnd, hitem) \
2381 TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUS)
2382 #define TreeView_GetParent(hwnd, hitem) \
2383 TreeView_GetNextItem(hwnd, hitem , TVGN_PARENT)
2384 #define TreeView_GetFirstVisible(hwnd) \
2385 TreeView_GetNextItem(hwnd, NULL, TVGN_FIRSTVISIBLE)
2386 #define TreeView_GetLastVisible(hwnd) \
2387 TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE)
2388 #define TreeView_GetNextVisible(hwnd, hitem) \
2389 TreeView_GetNextItem(hwnd, hitem , TVGN_NEXTVISIBLE)
2390 #define TreeView_GetPrevVisible(hwnd, hitem) \
2391 TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUSVISIBLE)
2392 #define TreeView_GetSelection(hwnd) \
2393 TreeView_GetNextItem(hwnd, NULL, TVGN_CARET)
2394 #define TreeView_GetDropHilight(hwnd) \
2395 TreeView_GetNextItem(hwnd, NULL, TVGN_DROPHILITE)
2396 #define TreeView_GetRoot(hwnd) \
2397 TreeView_GetNextItem(hwnd, NULL, TVGN_ROOT)
2398 #define TreeView_GetLastVisible(hwnd) \
2399 TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE)
2402 #define TreeView_Select(hwnd, hitem, code) \
2403 (UINT)SendMessageA((hwnd), TVM_SELECTITEM, (WPARAM)code, \
2404 (LPARAM)(UINT)(hitem))
2407 #define TreeView_SelectItem(hwnd, hitem) \
2408 TreeView_Select(hwnd, hitem, TVGN_CARET)
2409 #define TreeView_SelectDropTarget(hwnd, hitem) \
2410 TreeView_Select(hwnd, hitem, TVGN_DROPHILITE)
2411 #define TreeView_SelectSetFirstVisible(hwnd, hitem) \
2412 TreeView_Select(hwnd, hitem, TVGN_FIRSTVISIBLE)
2415 #define TreeView_GetItemA(hwnd, pitem) \
2416 (BOOL)SendMessageA((hwnd), TVM_GETITEMA, 0, (LPARAM) (TVITEMA *)(pitem))
2417 #define TreeView_GetItemW(hwnd, pitem) \
2418 (BOOL)SendMessageW((hwnd), TVM_GETITEMA, 0, (LPARAM) (TVITEMA *)(pitem))
2419 #define TreeView_GetItem WINELIB_NAME_AW(TreeView_GetItem)
2421 #define TreeView_SetItemA(hwnd, pitem) \
2422 (BOOL)SendMessageA((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem))
2423 #define TreeView_SetItemW(hwnd, pitem) \
2424 (BOOL)SendMessageW((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem))
2425 #define TreeView_SetItem WINELIB_NAME_AW(TreeView_SetItem)
2427 #define TreeView_EditLabel(hwnd, hitem) \
2428 (HWND)SendMessageA((hwnd), TVM_EDITLABEL, 0, (LPARAM)(HTREEITEM)(hitem))
2430 #define TreeView_GetEditControl(hwnd) \
2431 (HWND)SendMessageA((hwnd), TVM_GETEDITCONTROL, 0, 0)
2433 #define TreeView_GetVisibleCount(hwnd) \
2434 (UINT)SendMessageA((hwnd), TVM_GETVISIBLECOUNT, 0, 0)
2436 #define TreeView_HitTest(hwnd, lpht) \
2437 (HTREEITEM)SendMessageA((hwnd), TVM_HITTEST, 0,\
2438 (LPARAM)(LPTVHITTESTINFO)(lpht))
2440 #define TreeView_CreateDragImage(hwnd, hitem) \
2441 (HIMAGELIST)SendMessageA((hwnd), TVM_CREATEDRAGIMAGE, 0,\
2442 (LPARAM)(HTREEITEM)(hitem))
2444 #define TreeView_SortChildren(hwnd, hitem, recurse) \
2445 (BOOL)SendMessageA((hwnd), TVM_SORTCHILDREN, (WPARAM)recurse,\
2446 (LPARAM)(HTREEITEM)(hitem))
2448 #define TreeView_EnsureVisible(hwnd, hitem) \
2449 (BOOL)SendMessageA((hwnd), TVM_ENSUREVISIBLE, 0, (LPARAM)(UINT)(hitem))
2451 #define TreeView_SortChildrenCB(hwnd, psort, recurse) \
2452 (BOOL)SendMessageA((hwnd), TVM_SORTCHILDRENCB, (WPARAM)recurse, \
2453 (LPARAM)(LPTV_SORTCB)(psort))
2455 #define TreeView_EndEditLabelNow(hwnd, fCancel) \
2456 (BOOL)SendMessageA((hwnd), TVM_ENDEDITLABELNOW, (WPARAM)fCancel, 0)
2458 #define TreeView_GetISearchString(hwnd, lpsz) \
2459 (BOOL)SendMessageA((hwnd), TVM_GETISEARCHSTRING, 0, \
2460 (LPARAM)(LPTSTR)lpsz)
2462 #define TreeView_SetToolTips(hwnd, hwndTT) \
2463 (HWND)SendMessageA((hwnd), TVM_SETTOOLTIPS, (WPARAM)(hwndTT), 0)
2465 #define TreeView_GetToolTips(hwnd) \
2466 (HWND)SendMessageA((hwnd), TVM_GETTOOLTIPS, 0, 0)
2468 #define TreeView_SetItemHeight(hwnd, iHeight) \
2469 (INT)SendMessageA((hwnd), TVM_SETITEMHEIGHT, (WPARAM)iHeight, 0)
2471 #define TreeView_GetItemHeight(hwnd) \
2472 (INT)SendMessageA((hwnd), TVM_GETITEMHEIGHT, 0, 0)
2474 #define TreeView_SetBkColor(hwnd, clr) \
2475 (COLORREF)SendMessageA((hwnd), TVM_SETBKCOLOR, 0, (LPARAM)clr)
2477 #define TreeView_SetTextColor(hwnd, clr) \
2478 (COLORREF)SendMessageA((hwnd), TVM_SETTEXTCOLOR, 0, (LPARAM)clr)
2480 #define TreeView_GetBkColor(hwnd) \
2481 (COLORREF)SendMessageA((hwnd), TVM_GETBKCOLOR, 0, 0)
2483 #define TreeView_GetTextColor(hwnd) \
2484 (COLORREF)SendMessageA((hwnd), TVM_GETTEXTCOLOR, 0, 0)
2486 #define TreeView_SetScrollTime(hwnd, uTime) \
2487 (UINT)SendMessageA((hwnd), TVM_SETSCROLLTIME, uTime, 0)
2489 #define TreeView_GetScrollTime(hwnd) \
2490 (UINT)SendMessageA((hwnd), TVM_GETSCROLLTIME, 0, 0)
2492 #define TreeView_SetInsertMark(hwnd, hItem, fAfter) \
2493 (BOOL)SendMessageA((hwnd), TVM_SETINSERTMARK, (WPARAM)(fAfter), \
2496 #define TreeView_SetInsertMarkColor(hwnd, clr) \
2497 (COLORREF)SendMessageA((hwnd), TVM_SETINSERTMARKCOLOR, 0, (LPARAM)clr)
2499 #define TreeView_GetInsertMarkColor(hwnd) \
2500 (COLORREF)SendMessageA((hwnd), TVM_GETINSERTMARKCOLOR, 0, 0)
2502 #define TreeView_GetItemState(hwndTV, hti, mask) \
2503 (UINT)SendMessageA((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti), (LPARAM)(mask))
2504 #define TreeView_GetCheckState(hwndTV, hti) \
2505 ((((UINT)(SendMessageA((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti), \
2506 TVIS_STATEIMAGEMASK))) >> 12) -1)
2508 #define TreeView_SetLineColor(hwnd, clr) \
2509 (COLORREF)SendMessageA((hwnd), TVM_SETLINECOLOR, 0, (LPARAM)(clr))
2511 #define TreeView_GetLineColor(hwnd) \
2512 (COLORREF)SendMessageA((hwnd), TVM_GETLINECOLOR, 0, 0)
2514 #define TreeView_SetItemState(hwndTV, hti, data, _mask) \
2516 _TVi.mask = TVIF_STATE; \
2518 _TVi.stateMask = _mask; \
2519 _TVi.state = data; \
2520 SendMessageA((hwndTV), TVM_SETITEM, 0, (LPARAM)(TV_ITEM *)&_TVi); \
2524 /* Listview control */
2526 #define WC_LISTVIEWA "SysListView32"
2527 static const WCHAR WC_LISTVIEWW
[] = { 'S','y','s',
2528 'L','i','s','t','V','i','e','w','3','2',0 };
2529 #define WC_LISTVIEW WINELIB_NAME_AW(WC_LISTVIEW)
2531 #define LVSCW_AUTOSIZE -1
2532 #define LVSCW_AUTOSIZE_USEHEADER -2
2534 #define LVS_ICON 0x0000
2535 #define LVS_REPORT 0x0001
2536 #define LVS_SMALLICON 0x0002
2537 #define LVS_LIST 0x0003
2538 #define LVS_TYPEMASK 0x0003
2539 #define LVS_SINGLESEL 0x0004
2540 #define LVS_SHOWSELALWAYS 0x0008
2541 #define LVS_SORTASCENDING 0x0010
2542 #define LVS_SORTDESCENDING 0x0020
2543 #define LVS_SHAREIMAGELISTS 0x0040
2544 #define LVS_NOLABELWRAP 0x0080
2545 #define LVS_AUTOARRANGE 0x0100
2546 #define LVS_EDITLABELS 0x0200
2547 #define LVS_OWNERDATA 0x1000
2548 #define LVS_NOSCROLL 0x2000
2549 #define LVS_TYPESTYLEMASK 0xfc00
2550 #define LVS_ALIGNTOP 0x0000
2551 #define LVS_ALIGNLEFT 0x0800
2552 #define LVS_ALIGNMASK 0x0c00
2553 #define LVS_OWNERDRAWFIXED 0x0400
2554 #define LVS_NOCOLUMNHEADER 0x4000
2555 #define LVS_NOSORTHEADER 0x8000
2557 #define LVS_EX_GRIDLINES 0x0001
2558 #define LVS_EX_SUBITEMIMAGES 0x0002
2559 #define LVS_EX_CHECKBOXES 0x0004
2560 #define LVS_EX_TRACKSELECT 0x0008
2561 #define LVS_EX_HEADERDRAGDROP 0x0010
2562 #define LVS_EX_FULLROWSELECT 0x0020
2563 #define LVS_EX_ONECLICKACTIVATE 0x0040
2564 #define LVS_EX_TWOCLICKACTIVATE 0x0080
2565 #define LVS_EX_FLATSB 0x0100
2566 #define LVS_EX_REGIONAL 0x0200
2567 #define LVS_EX_INFOTIP 0x0400
2568 #define LVS_EX_UNDERLINEHOT 0x0800
2569 #define LVS_EX_UNDERLINECOLD 0x1000
2570 #define LVS_EX_MULTIWORKAREAS 0x2000
2572 #define LVCF_FMT 0x0001
2573 #define LVCF_WIDTH 0x0002
2574 #define LVCF_TEXT 0x0004
2575 #define LVCF_SUBITEM 0x0008
2576 #define LVCF_IMAGE 0x0010
2577 #define LVCF_ORDER 0x0020
2579 #define LVCFMT_LEFT 0x0000
2580 #define LVCFMT_RIGHT 0x0001
2581 #define LVCFMT_CENTER 0x0002
2582 #define LVCFMT_JUSTIFYMASK 0x0003
2583 #define LVCFMT_IMAGE 0x0800
2584 #define LVCFMT_BITMAP_ON_RIGHT 0x1000
2585 #define LVCFMT_COL_HAS_IMAGES 0x8000
2587 #define LVSIL_NORMAL 0
2588 #define LVSIL_SMALL 1
2589 #define LVSIL_STATE 2
2591 /* following 2 flags only for LVS_OWNERDATA listviews */
2592 /* and only in report or list mode */
2593 #define LVSICF_NOINVALIDATEALL 0x0001
2594 #define LVSICF_NOSCROLL 0x0002
2597 #define LVFI_PARAM 0X0001
2598 #define LVFI_STRING 0X0002
2599 #define LVFI_PARTIAL 0X0008
2600 #define LVFI_WRAP 0X0020
2601 #define LVFI_NEARESTXY 0X0040
2603 #define LVIF_TEXT 0x0001
2604 #define LVIF_IMAGE 0x0002
2605 #define LVIF_PARAM 0x0004
2606 #define LVIF_STATE 0x0008
2607 #define LVIF_INDENT 0x0010
2608 #define LVIF_NORECOMPUTE 0x0800
2609 #define LVIF_DI_SETITEM 0x1000
2611 #define LVIR_BOUNDS 0x0000
2612 #define LVIR_LABEL 0x0002
2613 #define LVIR_ICON 0x0001
2614 #define LVIR_SELECTBOUNDS 0x0003
2616 #define LVIS_FOCUSED 0x0001
2617 #define LVIS_SELECTED 0x0002
2618 #define LVIS_CUT 0x0004
2619 #define LVIS_DROPHILITED 0x0008
2620 #define LVIS_ACTIVATING 0x0020
2622 #define LVIS_OVERLAYMASK 0x0F00
2623 #define LVIS_STATEIMAGEMASK 0xF000
2625 #define LVNI_ALL 0x0000
2626 #define LVNI_FOCUSED 0x0001
2627 #define LVNI_SELECTED 0x0002
2628 #define LVNI_CUT 0x0004
2629 #define LVNI_DROPHILITED 0x0008
2631 #define LVNI_ABOVE 0x0100
2632 #define LVNI_BELOW 0x0200
2633 #define LVNI_TOLEFT 0x0400
2634 #define LVNI_TORIGHT 0x0800
2636 #define LVHT_NOWHERE 0x0001
2637 #define LVHT_ONITEMICON 0x0002
2638 #define LVHT_ONITEMLABEL 0x0004
2639 #define LVHT_ONITEMSTATEICON 0x0008
2640 #define LVHT_ONITEM (LVHT_ONITEMICON|LVHT_ONITEMLABEL|LVHT_ONITEMSTATEICON)
2642 #define LVHT_ABOVE 0x0008
2643 #define LVHT_BELOW 0x0010
2644 #define LVHT_TORIGHT 0x0020
2645 #define LVHT_TOLEFT 0x0040
2647 #define LVM_FIRST 0x1000
2648 #define LVM_GETBKCOLOR (LVM_FIRST+0)
2649 #define LVM_SETBKCOLOR (LVM_FIRST+1)
2650 #define LVM_GETIMAGELIST (LVM_FIRST+2)
2651 #define LVM_SETIMAGELIST (LVM_FIRST+3)
2652 #define LVM_GETITEMCOUNT (LVM_FIRST+4)
2653 #define LVM_GETITEMA (LVM_FIRST+5)
2654 #define LVM_GETITEMW (LVM_FIRST+75)
2655 #define LVM_GETITEM WINELIB_NAME_AW(LVM_GETITEM)
2656 #define LVM_SETITEMA (LVM_FIRST+6)
2657 #define LVM_SETITEMW (LVM_FIRST+76)
2658 #define LVM_SETITEM WINELIB_NAME_AW(LVM_SETITEM)
2659 #define LVM_INSERTITEMA (LVM_FIRST+7)
2660 #define LVM_INSERTITEMW (LVM_FIRST+77)
2661 #define LVM_INSERTITEM WINELIB_NAME_AW(LVM_INSERTITEM)
2662 #define LVM_DELETEITEM (LVM_FIRST+8)
2663 #define LVM_DELETEALLITEMS (LVM_FIRST+9)
2664 #define LVM_GETCALLBACKMASK (LVM_FIRST+10)
2665 #define LVM_SETCALLBACKMASK (LVM_FIRST+11)
2666 #define LVM_GETNEXTITEM (LVM_FIRST+12)
2667 #define LVM_FINDITEMA (LVM_FIRST+13)
2668 #define LVM_FINDITEMW (LVM_FIRST+83)
2669 #define LVM_FINDITEM WINELIB_NAME_AW(LVM_FINDITEM)
2670 #define LVM_GETITEMRECT (LVM_FIRST+14)
2671 #define LVM_SETITEMPOSITION (LVM_FIRST+15)
2672 #define LVM_GETITEMPOSITION (LVM_FIRST+16)
2673 #define LVM_GETSTRINGWIDTHA (LVM_FIRST+17)
2674 #define LVM_GETSTRINGWIDTHW (LVM_FIRST+87)
2675 #define LVM_GETSTRINGWIDTH WINELIB_NAME_AW(LVM_GETSTRINGWIDTH)
2676 #define LVM_HITTEST (LVM_FIRST+18)
2677 #define LVM_ENSUREVISIBLE (LVM_FIRST+19)
2678 #define LVM_SCROLL (LVM_FIRST+20)
2679 #define LVM_REDRAWITEMS (LVM_FIRST+21)
2680 #define LVM_ARRANGE (LVM_FIRST+22)
2681 #define LVM_EDITLABELA (LVM_FIRST+23)
2682 #define LVM_EDITLABELW (LVM_FIRST+118)
2683 #define LVM_EDITLABEL WINELIB_NAME_AW(LVM_EDITLABEL)
2684 #define LVM_GETEDITCONTROL (LVM_FIRST+24)
2685 #define LVM_GETCOLUMNA (LVM_FIRST+25)
2686 #define LVM_GETCOLUMNW (LVM_FIRST+95)
2687 #define LVM_GETCOLUMN WINELIB_NAME_AW(LVM_GETCOLUMN)
2688 #define LVM_SETCOLUMNA (LVM_FIRST+26)
2689 #define LVM_SETCOLUMNW (LVM_FIRST+96)
2690 #define LVM_SETCOLUMN WINELIB_NAME_AW(LVM_SETCOLUMN)
2691 #define LVM_INSERTCOLUMNA (LVM_FIRST+27)
2692 #define LVM_INSERTCOLUMNW (LVM_FIRST+97)
2693 #define LVM_INSERTCOLUMN WINELIB_NAME_AW(LVM_INSERTCOLUMN)
2694 #define LVM_DELETECOLUMN (LVM_FIRST+28)
2695 #define LVM_GETCOLUMNWIDTH (LVM_FIRST+29)
2696 #define LVM_SETCOLUMNWIDTH (LVM_FIRST+30)
2697 #define LVM_GETHEADER (LVM_FIRST+31)
2699 #define LVM_CREATEDRAGIMAGE (LVM_FIRST+33)
2700 #define LVM_GETVIEWRECT (LVM_FIRST+34)
2701 #define LVM_GETTEXTCOLOR (LVM_FIRST+35)
2702 #define LVM_SETTEXTCOLOR (LVM_FIRST+36)
2703 #define LVM_GETTEXTBKCOLOR (LVM_FIRST+37)
2704 #define LVM_SETTEXTBKCOLOR (LVM_FIRST+38)
2705 #define LVM_GETTOPINDEX (LVM_FIRST+39)
2706 #define LVM_GETCOUNTPERPAGE (LVM_FIRST+40)
2707 #define LVM_GETORIGIN (LVM_FIRST+41)
2708 #define LVM_UPDATE (LVM_FIRST+42)
2709 #define LVM_SETITEMSTATE (LVM_FIRST+43)
2710 #define LVM_GETITEMSTATE (LVM_FIRST+44)
2711 #define LVM_GETITEMTEXTA (LVM_FIRST+45)
2712 #define LVM_GETITEMTEXTW (LVM_FIRST+115)
2713 #define LVM_GETITEMTEXT WINELIB_NAME_AW(LVM_GETITEMTEXT)
2714 #define LVM_SETITEMTEXTA (LVM_FIRST+46)
2715 #define LVM_SETITEMTEXTW (LVM_FIRST+116)
2716 #define LVM_SETITEMTEXT WINELIB_NAME_AW(LVM_SETITEMTEXT)
2717 #define LVM_SETITEMCOUNT (LVM_FIRST+47)
2718 #define LVM_SORTITEMS (LVM_FIRST+48)
2719 #define LVM_SETITEMPOSITION32 (LVM_FIRST+49)
2720 #define LVM_GETSELECTEDCOUNT (LVM_FIRST+50)
2721 #define LVM_GETITEMSPACING (LVM_FIRST+51)
2722 #define LVM_GETISEARCHSTRINGA (LVM_FIRST+52)
2723 #define LVM_GETISEARCHSTRINGW (LVM_FIRST+117)
2724 #define LVM_GETISEARCHSTRING WINELIB_NAME_AW(LVM_GETISEARCHSTRING)
2725 #define LVM_SETICONSPACING (LVM_FIRST+53)
2726 #define LVM_SETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+54)
2727 #define LVM_GETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+55)
2728 #define LVM_GETSUBITEMRECT (LVM_FIRST+56)
2729 #define LVM_SUBITEMHITTEST (LVM_FIRST+57)
2730 #define LVM_SETCOLUMNORDERARRAY (LVM_FIRST+58)
2731 #define LVM_GETCOLUMNORDERARRAY (LVM_FIRST+59)
2732 #define LVM_SETHOTITEM (LVM_FIRST+60)
2733 #define LVM_GETHOTITEM (LVM_FIRST+61)
2734 #define LVM_SETHOTCURSOR (LVM_FIRST+62)
2735 #define LVM_GETHOTCURSOR (LVM_FIRST+63)
2736 #define LVM_APPROXIMATEVIEWRECT (LVM_FIRST+64)
2737 #define LVM_SETWORKAREAS (LVM_FIRST+65)
2738 #define LVM_GETSELECTIONMARK (LVM_FIRST+66)
2739 #define LVM_SETSELECTIONMARK (LVM_FIRST+67)
2740 #define LVM_SETBKIMAGEA (LVM_FIRST+68)
2741 #define LVM_SETBKIMAGEW (LVM_FIRST+138)
2742 #define LVM_SETBKIMAGE WINELIB_NAME_AW(LVM_SETBKIMAGE)
2743 #define LVM_GETBKIMAGEA (LVM_FIRST+69)
2744 #define LVM_GETBKIMAGEW (LVM_FIRST+139)
2745 #define LVM_GETBKIMAGE WINELIB_NAME_AW(LVM_GETBKIMAGE)
2746 #define LVM_GETWORKAREAS (LVM_FIRST+70)
2747 #define LVM_SETHOVERTIME (LVM_FIRST+71)
2748 #define LVM_GETHOVERTIME (LVM_FIRST+72)
2749 #define LVM_GETNUMBEROFWORKAREAS (LVM_FIRST+73)
2750 #define LVM_SETTOOLTIPS (LVM_FIRST+74)
2751 #define LVM_GETTOOLTIPS (LVM_FIRST+78)
2753 #define LVN_FIRST (0U-100U)
2754 #define LVN_LAST (0U-199U)
2755 #define LVN_ITEMCHANGING (LVN_FIRST-0)
2756 #define LVN_ITEMCHANGED (LVN_FIRST-1)
2757 #define LVN_INSERTITEM (LVN_FIRST-2)
2758 #define LVN_DELETEITEM (LVN_FIRST-3)
2759 #define LVN_DELETEALLITEMS (LVN_FIRST-4)
2760 #define LVN_BEGINLABELEDITA (LVN_FIRST-5)
2761 #define LVN_BEGINLABELEDITW (LVN_FIRST-75)
2762 #define LVN_BEGINLABELEDIT WINELIB_NAME_AW(LVN_BEGINLABELEDIT)
2763 #define LVN_ENDLABELEDITA (LVN_FIRST-6)
2764 #define LVN_ENDLABELEDITW (LVN_FIRST-76)
2765 #define LVN_ENDLABELEDIT WINELIB_NAME_AW(LVN_ENDLABELEDIT)
2766 #define LVN_COLUMNCLICK (LVN_FIRST-8)
2767 #define LVN_BEGINDRAG (LVN_FIRST-9)
2768 #define LVN_BEGINRDRAG (LVN_FIRST-11)
2769 #define LVN_ODCACHEHINT (LVN_FIRST-13)
2770 #define LVN_ITEMACTIVATE (LVN_FIRST-14)
2771 #define LVN_ODSTATECHANGED (LVN_FIRST-15)
2772 #define LVN_HOTTRACK (LVN_FIRST-21)
2773 #define LVN_ODFINDITEMA (LVN_FIRST-52)
2774 #define LVN_ODFINDITEMW (LVN_FIRST-79)
2775 #define LVN_ODFINDITEM WINELIB_NAME_AW(LVN_ODFINDITEM)
2776 #define LVN_GETDISPINFOA (LVN_FIRST-50)
2777 #define LVN_GETDISPINFOW (LVN_FIRST-77)
2778 #define LVN_GETDISPINFO WINELIB_NAME_AW(LVN_GETDISPINFO)
2779 #define LVN_SETDISPINFOA (LVN_FIRST-51)
2780 #define LVN_SETDISPINFOW (LVN_FIRST-78)
2781 #define LVN_SETDISPINFO WINELIB_NAME_AW(LVN_SETDISPINFO)
2782 #define LVN_KEYDOWN (LVN_FIRST-55)
2783 #define LVN_MARQUEEBEGIN (LVN_FIRST-56)
2784 #define LVN_GETINFOTIPA (LVN_FIRST-57)
2785 #define LVN_GETINFOTIPW (LVN_FIRST-58)
2786 #define LVN_GETINFOTIP WINELIB_NAME_AW(LVN_GETINFOTIP)
2788 #define LVA_ALIGNLEFT 0x0000
2789 #define LVA_DEFAULT 0x0001
2790 #define LVA_ALIGNTOP 0x0002
2791 #define LVA_SNAPTOGRID 0x0005
2793 typedef struct tagLVITEMA
2804 INT iIndent
; /* (_WIN32_IE >= 0x0300) */
2805 } LVITEMA
, *LPLVITEMA
;
2807 typedef struct tagLVITEMW
2818 INT iIndent
; /* (_WIN32_IE >= 0x0300) */
2819 } LVITEMW
, *LPLVITEMW
;
2821 /* ListView background image structs and constants
2822 For _WIN32_IE version 0x400 and later. */
2824 typedef struct tagLVBKIMAGEA
2832 } LVBKIMAGEA
, *LPLVBKIMAGEA
;
2834 typedef struct tagLVBKIMAGEW
2842 } LVBKIMAGEW
, *LPLVBKIMAGEW
;
2844 #define LVBKIMAGE WINELIB_NAME_AW(LVBKIMAGE)
2845 #define LPLVBKIMAGE WINELIB_NAME_AW(LPLVBKIMAGE)
2847 #define LVBKIF_SOURCE_NONE 0x00000000
2848 #define LVBKIF_SOURCE_HBITMAP 0x00000001
2849 #define LVBKIF_SOURCE_URL 0x00000002
2850 #define LVBKIF_SOURCE_MASK 0x00000003
2851 #define LVBKIF_STYLE_NORMAL 0x00000000
2852 #define LVBKIF_STYLE_TILE 0x00000010
2853 #define LVBKIF_STYLE_MASK 0x00000010
2855 #define ListView_SetBkImage(hwnd, plvbki) \
2856 (BOOL)SNDMSG((hwnd), LVM_SETBKIMAGE, 0, (LPARAM)plvbki)
2858 #define ListView_GetBkImage(hwnd, plvbki) \
2859 (BOOL)SNDMSG((hwnd), LVM_GETBKIMAGE, 0, (LPARAM)plvbki)
2861 #define LVITEM WINELIB_NAME_AW(LVITEM)
2862 #define LPLVITEM WINELIB_NAME_AW(LPLVITEM)
2864 #define LVITEM_V1_SIZEA CCSIZEOF_STRUCT(LVITEMA, lParam)
2865 #define LVITEM_V1_SIZEW CCSIZEOF_STRUCT(LVITEMW, lParam)
2866 #define LVITEM_V1_SIZE WINELIB_NAME_AW(LVITEM_V1_SIZE)
2868 #define LV_ITEM LVITEM
2870 typedef struct tagLVCOLUMNA
2878 INT iImage
; /* (_WIN32_IE >= 0x0300) */
2879 INT iOrder
; /* (_WIN32_IE >= 0x0300) */
2880 } LVCOLUMNA
, *LPLVCOLUMNA
;
2882 typedef struct tagLVCOLUMNW
2890 INT iImage
; /* (_WIN32_IE >= 0x0300) */
2891 INT iOrder
; /* (_WIN32_IE >= 0x0300) */
2892 } LVCOLUMNW
, *LPLVCOLUMNW
;
2894 #define LVCOLUMN WINELIB_NAME_AW(LVCOLUMN)
2895 #define LPLVCOLUMN WINELIB_NAME_AW(LPLVCOLUMN)
2897 #define LVCOLUMN_V1_SIZEA CCSIZEOF_STRUCT(LVCOLUMNA, iSubItem)
2898 #define LVCOLUMN_V1_SIZEW CCSIZEOF_STRUCT(LVCOLUMNW, iSubItem)
2899 #define LVCOLUMN_V1_SIZE WINELIB_NAME_AW(LVCOLUMN_V1_SIZE)
2901 #define LV_COLUMN LVCOLUMN
2904 typedef struct tagNMLISTVIEW
2914 } NMLISTVIEW
, *LPNMLISTVIEW
;
2916 #define NM_LISTVIEW NMLISTVIEW
2917 #define LPNM_LISTVIEW LPNMLISTVIEW
2919 typedef struct tagNMITEMACTIVATE
2930 } NMITEMACTIVATE
, *LPNMITEMACTIVATE
;
2932 typedef struct tagLVDISPINFO
2936 } NMLVDISPINFOA
, *LPNMLVDISPINFOA
;
2938 typedef struct tagLVDISPINFOW
2942 } NMLVDISPINFOW
, *LPNMLVDISPINFOW
;
2944 #define NMLVDISPINFO WINELIB_NAME_AW(NMLVDISPINFO)
2945 #define LPNMLVDISPINFO WINELIB_NAME_AW(LPNMLVDISPINFO)
2947 #define LV_DISPINFO NMLVDISPINFO
2949 #include "pshpack1.h"
2950 typedef struct tagLVKEYDOWN
2955 } NMLVKEYDOWN
, *LPNMLVKEYDOWN
;
2956 #include "poppack.h"
2958 #define LV_KEYDOWN NMLVKEYDOWN
2960 typedef struct tagNMLVGETINFOTIPA
2969 } NMLVGETINFOTIPA
, *LPNMLVGETINFOTIPA
;
2971 typedef struct tagNMLVGETINFOTIPW
2980 } NMLVGETINFOTIPW
, *LPNMLVGETINFOTIPW
;
2982 #define NMLVGETINFOTIP WINELIB_NAME_AW(NMLVGETINFOTIP)
2983 #define LPNMLVGETINFOTIP WINELIB_NAME_AW(LPNMLVGETINFOTIP)
2985 typedef struct tagLVHITTESTINFO
2991 } LVHITTESTINFO
, *LPLVHITTESTINFO
;
2993 #define LV_HITTESTINFO LVHITTESTINFO
2994 #define _LV_HITTESTINFO tagLVHITTESTINFO
2995 #define LVHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(LVHITTESTINFO,iItem)
2997 typedef struct tagLVFINDINFOA
3004 } LVFINDINFOA
, *LPLVFINDINFOA
;
3006 typedef struct tagLVFINDINFOW
3013 } LVFINDINFOW
, *LPLVFINDINFOW
;
3015 #define LVFINDINFO WINELIB_NAME_AW(LVFINDINFO)
3016 #define LPLVFINDINFO WINELIB_NAME_AW(LPLVFINDINFO)
3018 typedef struct tagTCHITTESTINFO
3022 } TCHITTESTINFO
, *LPTCHITTESTINFO
;
3024 #define TC_HITTESTINFO TCHITTESTINFO
3026 typedef INT (CALLBACK
*PFNLVCOMPARE
)(LPARAM
, LPARAM
, LPARAM
);
3028 #define NMLVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMLCUSTOMDRW, clrTextBk)
3030 typedef struct tagNMLVCUSTOMDRAW
3036 } NMLVCUSTOMDRAW
, *LPNMLVCUSTOMDRAW
;
3038 typedef struct tagNMLVCACHEHINT
3043 } NMLVCACHEHINT
, *LPNMLVCACHEHINT
;
3045 #define LPNM_CACHEHINT LPNMLVCACHEHINT
3046 #define PNM_CACHEHINT LPNMLVCACHEHINT
3047 #define NM_CACHEHINT NMLVCACHEHINT
3049 typedef struct tagNMLVFINDITEMA
3054 } NMLVFINDITEMA
, *LPNMLVFINDITEMA
;
3056 typedef struct tagNMLVFINDITEMW
3061 } NMLVFINDITEMW
, *LPNMLVFINDITEMW
;
3063 #define NMLVFINDITEM WINELIB_NAME_AW(NMLVFINDITEM)
3064 #define LPNMLVFINDITEM WINELIB_NAME_AW(LPNMLVFINDITEM)
3065 #define NM_FINDITEM NMLVFINDITEM
3066 #define LPNM_FINDITEM LPNMLVFINDITEM
3067 #define PNM_FINDITEM LPNMLVFINDITEM
3069 typedef struct tagNMLVODSTATECHANGE
3076 } NMLVODSTATECHANGE
, *LPNMLVODSTATECHANGE
;
3078 #define PNM_ODSTATECHANGE LPNMLVODSTATECHANGE
3079 #define LPNM_ODSTATECHANGE LPNMLVODSTATECHANGE
3080 #define NM_ODSTATECHANGE NMLVODSTATECHANGE
3082 #define ListView_SetTextBkColor(hwnd,clrBk) \
3083 (BOOL)SendMessageA((hwnd),LVM_SETTEXTBKCOLOR,0,(LPARAM)(COLORREF)(clrBk))
3084 #define ListView_SetTextColor(hwnd,clrBk) \
3085 (BOOL)SendMessageA((hwnd),LVM_SETTEXTCOLOR,0,(LPARAM)(COLORREF)(clrBk))
3086 #define ListView_DeleteColumn(hwnd,col)\
3087 (LRESULT)SendMessageA((hwnd),LVM_DELETECOLUMN,0,(LPARAM)(INT)(col))
3088 #define ListView_GetColumnA(hwnd,x,col)\
3089 (LRESULT)SendMessageA((hwnd),LVM_GETCOLUMNA,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNA)(col))
3090 #define ListView_GetColumnW(hwnd,x,col)\
3091 (LRESULT)SendMessageW((hwnd),LVM_GETCOLUMNW,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNW)(col))
3092 #define ListView_GetColumn WINELIB_NAME_AW(ListView_GetColumn)
3093 #define ListView_SetColumnA(hwnd,x,col)\
3094 (LRESULT)SendMessageA((hwnd),LVM_SETCOLUMNA,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNA)(col))
3095 #define ListView_SetColumnW(hwnd,x,col)\
3096 (LRESULT)SendMessageW((hwnd),LVM_SETCOLUMNW,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNW)(col))
3097 #define ListView_SetColumn WINELIB_NAME_AW(ListView_SetColumn)
3100 #define ListView_GetNextItem(hwnd,nItem,flags) \
3101 (INT)SendMessageA((hwnd),LVM_GETNEXTITEM,(WPARAM)(INT)(nItem),(LPARAM)(MAKELPARAM(flags,0)))
3102 #define ListView_FindItemA(hwnd,nItem,plvfi) \
3103 (INT)SendMessageA((hwnd),LVM_FINDITEMA,(WPARAM)(INT)(nItem),(LPARAM)(LVFINDINFOA*)(plvfi))
3104 #define ListView_FindItemW(hwnd,nItem,plvfi) \
3105 (INT)SendMessageW((hwnd),LVM_FINDITEMW,(WPARAM)(INT)(nItem),(LPARAM)(LVFINDINFOW*)(plvfi))
3106 #define ListView_Arrange(hwnd,code) \
3107 (INT)SendMessageA((hwnd),LVM_ARRANGE,(WPARAM)(INT)(code),0L)
3108 #define ListView_GetItemPosition(hwnd,i,ppt) \
3109 (INT)SendMessageA((hwnd),LVM_GETITEMPOSITION,(WPARAM)(INT)(i),(LPARAM)(LPPOINT)(ppt))
3110 #define ListView_GetItemRect(hwnd,i,prc,code) \
3111 (BOOL)SendMessageA((hwnd), LVM_GETITEMRECT, (WPARAM)(int)(i), \
3112 ((prc) ? (((RECT*)(prc))->left = (code),(LPARAM)(RECT \
3113 *)(prc)) : (LPARAM)(RECT*)NULL))
3114 #define ListView_SetItemA(hwnd,pitem) \
3115 (INT)SendMessageA((hwnd),LVM_SETITEMA,0,(LPARAM)(const LVITEMA *)(pitem))
3116 #define ListView_SetItemW(hwnd,pitem) \
3117 (INT)SendMessageW((hwnd),LVM_SETITEMW,0,(LPARAM)(const LVITEMW *)(pitem))
3118 #define ListView_SetItem WINELIB_NAME_AW(ListView_SetItem)
3119 #define ListView_SetItemState(hwnd,i,pitem) \
3120 (BOOL)SendMessageA((hwnd),LVM_SETITEMSTATE,(WPARAM)(UINT)(i),(LPARAM)(LPLVITEMA)(pitem))
3121 #define ListView_GetItemState(hwnd,i,mask) \
3122 (BOOL)SendMessageA((hwnd),LVM_GETITEMSTATE,(WPARAM)(UINT)(i),(LPARAM)(UINT)(mask))
3123 #define ListView_GetCountPerPage(hwnd) \
3124 (BOOL)SendMessageW((hwnd),LVM_GETCOUNTPERPAGE,0,0L)
3125 #define ListView_GetImageList(hwnd,iImageList) \
3126 (HIMAGELIST)SendMessageA((hwnd),LVM_GETIMAGELIST,(WPARAM)(INT)(iImageList),0L)
3127 #define ListView_GetStringWidthA(hwnd,pstr) \
3128 (INT)SendMessageA((hwnd),LVM_GETSTRINGWIDTHA,0,(LPARAM)(LPCSTR)(pstr))
3129 #define ListView_GetStringWidthW(hwnd,pstr) \
3130 (INT)SendMessageW((hwnd),LVM_GETSTRINGWIDTHW,0,(LPARAM)(LPCWSTR)(pstr))
3131 #define ListView_GetStringWidth WINELIB_NAME_AW(ListView_GetStringWidth)
3132 #define ListView_GetTopIndex(hwnd) \
3133 (BOOL)SendMessageA((hwnd),LVM_GETTOPINDEX,0,0L)
3134 #define ListView_Scroll(hwnd,dx,dy) \
3135 (BOOL)SendMessageA((hwnd),LVM_SCROLL,(WPARAM)(INT)(dx),(LPARAM)(INT)(dy))
3136 #define ListView_EnsureVisible(hwnd,i,fPartialOk) \
3137 (BOOL)SendMessageA((hwnd),LVM_ENSUREVISIBLE,(WPARAM)(INT)i,(LPARAM)(BOOL)fPartialOk)
3138 #define ListView_SetBkColor(hwnd,clrBk) \
3139 (BOOL)SendMessageA((hwnd),LVM_SETBKCOLOR,0,(LPARAM)(COLORREF)(clrBk))
3140 #define ListView_SetImageList(hwnd,himl,iImageList) \
3141 (HIMAGELIST)(UINT)SendMessageA((hwnd),LVM_SETIMAGELIST,(WPARAM)(iImageList),(LPARAM)(UINT)(HIMAGELIST)(himl))
3142 #define ListView_GetItemCount(hwnd) \
3143 (INT)SendMessageA((hwnd),LVM_GETITEMCOUNT,0,0L)
3145 #define ListView_GetItemA(hwnd,pitem) \
3146 (BOOL)SendMessageA((hwnd),LVM_GETITEMA,0,(LPARAM)(LVITEMA *)(pitem))
3147 #define ListView_GetItemW(hwnd,pitem) \
3148 (BOOL)SendMessageW((hwnd),LVM_GETITEMW,0,(LPARAM)(LVITEMW *)(pitem))
3149 #define ListView_GetItem WINELIB_NAME_AW(ListView_GetItem)
3151 #define ListView_HitTest(hwnd,pinfo) \
3152 (INT)SendMessageA((hwnd),LVM_HITTEST,0,(LPARAM)(LPLVHITTESTINFO)(pinfo))
3154 #define ListView_InsertItemA(hwnd,pitem) \
3155 (INT)SendMessageA((hwnd),LVM_INSERTITEMA,0,(LPARAM)(const LVITEMA *)(pitem))
3156 #define ListView_InsertItemW(hwnd,pitem) \
3157 (INT)SendMessageW((hwnd),LVM_INSERTITEMW,0,(LPARAM)(const LVITEMW *)(pitem))
3158 #define ListView_InsertItem WINELIB_NAME_AW(ListView_InsertItem)
3160 #define ListView_DeleteAllItems(hwnd) \
3161 (BOOL)SendMessageA((hwnd),LVM_DELETEALLITEMS,0,0L)
3163 #define ListView_InsertColumnA(hwnd,iCol,pcol) \
3164 (INT)SendMessageA((hwnd),LVM_INSERTCOLUMNA,(WPARAM)(INT)(iCol),(LPARAM)(const LVCOLUMNA *)(pcol))
3165 #define ListView_InsertColumnW(hwnd,iCol,pcol) \
3166 (INT)SendMessageW((hwnd),LVM_INSERTCOLUMNW,(WPARAM)(INT)(iCol),(LPARAM)(const LVCOLUMNW *)(pcol))
3167 #define ListView_InsertColumn WINELIB_NAME_AW(ListView_InsertColumn)
3169 #define ListView_SortItems(hwndLV,_pfnCompare,_lPrm) \
3170 (BOOL)SendMessageA((hwndLV),LVM_SORTITEMS,(WPARAM)(LPARAM)_lPrm,(LPARAM)(PFNLVCOMPARE)_pfnCompare)
3171 #define ListView_SetItemPosition(hwndLV, i, x, y) \
3172 (BOOL)SendMessageA((hwndLV),LVM_SETITEMPOSITION,(WPARAM)(INT)(i),MAKELPARAM((x),(y)))
3173 #define ListView_GetSelectedCount(hwndLV) \
3174 (UINT)SendMessageA((hwndLV),LVM_GETSELECTEDCOUNT,0,0L)
3176 #define ListView_EditLabelA(hwndLV, i) \
3177 (HWND)SendMessageA((hwndLV),LVM_EDITLABELA,(WPARAM)(int)(i), 0L)
3178 #define ListView_EditLabelW(hwndLV, i) \
3179 (HWND)SendMessageW((hwndLV),LVM_EDITLABELW,(WPARAM)(int)(i), 0L)
3180 #define ListView_EditLabel WINELIB_NAME_AW(ListView_EditLabel)
3182 #define ListView_SetItemTextA(hwndLV, i, _iSubItem, _pszText) \
3183 { LVITEMA _LVi; _LVi.iSubItem = _iSubItem; _LVi.pszText = _pszText;\
3184 SendMessageA(hwndLV, LVM_SETITEMTEXTA, (WPARAM)i, (LPARAM) (LVITEMA*)&_LVi);}
3185 #define ListView_SetItemTextW(hwndLV, i, _iSubItem, _pszText) \
3186 { LVITEMW _LVi; _LVi.iSubItem = _iSubItem; _LVi.pszText = _pszText;\
3187 SendMessageW(hwndLV, LVM_SETITEMTEXTW, (WPARAM)i, (LPARAM) (LVITEMW*)& _LVi);}
3188 #define ListView_SetItemText WINELIB_NAME_AW(ListView_SetItemText)
3190 #define ListView_DeleteItem(hwndLV, i) \
3191 (BOOL)SendMessageA(hwndLV, LVM_DELETEITEM, (WPARAM)(int)(i), 0L)
3192 #define ListView_Update(hwndLV, i) \
3193 (BOOL)SendMessageA((hwndLV), LVM_UPDATE, (WPARAM)(i), 0L)
3194 #define ListView_GetColumnOrderArray(hwndLV, iCount, pi) \
3195 (BOOL)SendMessageA((hwndLV), LVM_GETCOLUMNORDERARRAY, (WPARAM)iCount, (LPARAM)(LPINT)pi)
3196 #define ListView_GetExtendedListViewStyle(hwndLV) \
3197 (DWORD)SendMessageA((hwndLV), LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0L)
3198 #define ListView_GetHotCursor(hwndLV) \
3199 (HCURSOR)SendMessageA((hwndLV), LVM_GETHOTCURSOR, 0, 0L)
3200 #define ListView_GetHotItem(hwndLV) \
3201 (int)SendMessageA((hwndLV), LVM_GETHOTITEM, 0, 0L)
3202 #define ListView_GetItemSpacing(hwndLV, fSmall) \
3203 (DWORD)SendMessageA((hwndLV), LVM_GETITEMSPACING, (WPARAM)fSmall, 0L)
3204 #define ListView_GetSubItemRect(hwndLV, iItem, iSubItem, code, prc) \
3205 (BOOL)SendMessageA((hwndLV), LVM_GETSUBITEMRECT, (WPARAM)(int)(iItem), \
3206 ((prc) ? (((LPRECT)(prc))->top = iSubItem), (((LPRECT)(prc))->left = code):0), (LPARAM)prc)
3207 #define ListView_GetToolTips(hwndLV) \
3208 (HWND)SendMessageA((hwndLV), LVM_GETTOOLTIPS, 0, 0L)
3209 #define ListView_SetColumnOrderArray(hwndLV, iCount, pi) \
3210 (BOOL)SendMessageA((hwndLV), LVM_SETCOLUMNORDERARRAY, (WPARAM)iCount, (LPARAM)(LPINT)pi)
3211 #define ListView_SetExtendedListViewStyle(hwndLV, dw) \
3212 (DWORD)SendMessageA((hwndLV), LVM_SETEXTENDEDLISTVIEWSTYLE, 0, (LPARAM)dw)
3213 #define ListView_SetExtendedListViewStyleEx(hwndLV, dwMask, dw) \
3214 (DWORD)SendMessageA((hwndLV), LVM_SETEXTENDEDLISTVIEWSTYLE, (WPARAM)dwMask, (LPARAM)dw)
3215 #define ListView_SetHotCursor(hwndLV, hcur) \
3216 (HCURSOR)SendMessageA((hwndLV), LVM_SETHOTCURSOR, 0, (LPARAM)hcur)
3217 #define ListView_SetHotItem(hwndLV, i) \
3218 (int)SendMessageA((hwndLV), LVM_SETHOTITEM, (WPARAM)i, 0L)
3219 #define ListView_SetIconSpacing(hwndLV, cx, cy) \
3220 (DWORD)SendMessageA((hwndLV), LVM_SETICONSPACING, 0, MAKELONG(cx,cy))
3221 #define ListView_SetToolTips(hwndLV, hwndNewHwnd) \
3222 (HWND)SendMessageA((hwndLV), LVM_SETTOOLTIPS, (WPARAM)hwndNewHwnd, 0L)
3223 #define ListView_SubItemHitTest(hwndLV, plvhti) \
3224 (int)SendMessageA((hwndLV), LVM_SUBITEMHITTEST, 0, (LPARAM)(LPLVHITTESTINFO)(plvhti))
3229 #define WC_TABCONTROL16 "SysTabControl"
3230 #define WC_TABCONTROLA "SysTabControl32"
3231 static const WCHAR WC_TABCONTROLW
[] = { 'S','y','s',
3232 'T','a','b','C','o','n','t','r','o','l','3','2',0 };
3234 #define WC_TABCONTROL WINELIB_NAME_AW(WC_TABCONTROL)
3236 /* tab control styles */
3237 #define TCS_SCROLLOPPOSITE 0x0001 /* assumes multiline tab */
3238 #define TCS_BOTTOM 0x0002
3239 #define TCS_RIGHT 0x0002
3240 #define TCS_MULTISELECT 0x0004 /* allow multi-select in button mode */
3241 #define TCS_FLATBUTTONS 0x0008
3242 #define TCS_FORCEICONLEFT 0x0010
3243 #define TCS_FORCELABELLEFT 0x0020
3244 #define TCS_HOTTRACK 0x0040
3245 #define TCS_VERTICAL 0x0080
3246 #define TCS_TABS 0x0000
3247 #define TCS_BUTTONS 0x0100
3248 #define TCS_SINGLELINE 0x0000
3249 #define TCS_MULTILINE 0x0200
3250 #define TCS_RIGHTJUSTIFY 0x0000
3251 #define TCS_FIXEDWIDTH 0x0400
3252 #define TCS_RAGGEDRIGHT 0x0800
3253 #define TCS_FOCUSONBUTTONDOWN 0x1000
3254 #define TCS_OWNERDRAWFIXED 0x2000
3255 #define TCS_TOOLTIPS 0x4000
3256 #define TCS_FOCUSNEVER 0x8000
3257 #define TCS_EX_FLATSEPARATORS 0x00000001 /* to be used with */
3258 #define TCS_EX_REGISTERDROP 0x00000002 /* TCM_SETEXTENDEDSTYLE */
3261 #define TCM_FIRST 0x1300
3263 #define TCM_GETIMAGELIST (TCM_FIRST + 2)
3264 #define TCM_SETIMAGELIST (TCM_FIRST + 3)
3265 #define TCM_GETITEMCOUNT (TCM_FIRST + 4)
3266 #define TCM_GETITEM WINELIB_NAME_AW(TCM_GETITEM)
3267 #define TCM_GETITEMA (TCM_FIRST + 5)
3268 #define TCM_GETITEMW (TCM_FIRST + 60)
3269 #define TCM_SETITEMA (TCM_FIRST + 6)
3270 #define TCM_SETITEMW (TCM_FIRST + 61)
3271 #define TCM_SETITEM WINELIB_NAME_AW(TCM_SETITEM)
3272 #define TCM_INSERTITEMA (TCM_FIRST + 7)
3273 #define TCM_INSERTITEMW (TCM_FIRST + 62)
3274 #define TCM_INSERTITEM WINELIB_NAME_AW(TCM_INSERTITEM)
3275 #define TCM_DELETEITEM (TCM_FIRST + 8)
3276 #define TCM_DELETEALLITEMS (TCM_FIRST + 9)
3277 #define TCM_GETITEMRECT (TCM_FIRST + 10)
3278 #define TCM_GETCURSEL (TCM_FIRST + 11)
3279 #define TCM_SETCURSEL (TCM_FIRST + 12)
3280 #define TCM_HITTEST (TCM_FIRST + 13)
3281 #define TCM_SETITEMEXTRA (TCM_FIRST + 14)
3282 #define TCM_ADJUSTRECT (TCM_FIRST + 40)
3283 #define TCM_SETITEMSIZE (TCM_FIRST + 41)
3284 #define TCM_REMOVEIMAGE (TCM_FIRST + 42)
3285 #define TCM_SETPADDING (TCM_FIRST + 43)
3286 #define TCM_GETROWCOUNT (TCM_FIRST + 44)
3287 #define TCM_GETTOOLTIPS (TCM_FIRST + 45)
3288 #define TCM_SETTOOLTIPS (TCM_FIRST + 46)
3289 #define TCM_GETCURFOCUS (TCM_FIRST + 47)
3290 #define TCM_SETCURFOCUS (TCM_FIRST + 48)
3291 #define TCM_SETMINTABWIDTH (TCM_FIRST + 49)
3292 #define TCM_DESELECTALL (TCM_FIRST + 50)
3293 #define TCM_HIGHLIGHTITEM (TCM_FIRST + 51)
3294 #define TCM_SETEXTENDEDSTYLE (TCM_FIRST + 52)
3295 #define TCM_GETEXTENDEDSTYLE (TCM_FIRST + 53)
3296 #define TCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
3297 #define TCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
3300 #define TCIF_TEXT 0x0001
3301 #define TCIF_IMAGE 0x0002
3302 #define TCIF_RTLREADING 0x0004
3303 #define TCIF_PARAM 0x0008
3304 #define TCIF_STATE 0x0010
3306 #define TCIS_BUTTONPRESSED 0x0001
3307 #define TCIS_HIGHLIGHTED 0x0002
3309 /* TabCtrl Macros */
3310 #define TabCtrl_GetImageList(hwnd) \
3311 (HIMAGELIST)SendMessageA((hwnd), TCM_GETIMAGELIST, 0, 0L)
3312 #define TabCtrl_SetImageList(hwnd, himl) \
3313 (HIMAGELIST)SendMessageA((hwnd), TCM_SETIMAGELIST, 0, (LPARAM)(UINT)(HIMAGELIST)(himl))
3314 #define TabCtrl_GetItemCount(hwnd) \
3315 (int)SendMessageA((hwnd), TCM_GETITEMCOUNT, 0, 0L)
3316 #define TabCtrl_GetItemA(hwnd, iItem, pitem) \
3317 (BOOL)SendMessageA((hwnd), TCM_GETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM *)(pitem))
3318 #define TabCtrl_GetItemW(hwnd, iItem, pitem) \
3319 (BOOL)SendMessageW((hwnd), TCM_GETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM *)(pitem))
3320 #define TabCtrl_GetItem WINELIB_NAME_AW(TabCtrl_GetItem)
3321 #define TabCtrl_SetItemA(hwnd, iItem, pitem) \
3322 (BOOL)SendMessageA((hwnd), TCM_SETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM *)(pitem))
3323 #define TabCtrl_SetItemW(hwnd, iItem, pitem) \
3324 (BOOL)SendMessageW((hwnd), TCM_SETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM *)(pitem))
3325 #define TabCtrl_SetItem WINELIB_NAME_AW(TabCtrl_GetItem)
3326 #define TabCtrl_InsertItemA(hwnd, iItem, pitem) \
3327 (int)SendMessageA((hwnd), TCM_INSERTITEM, (WPARAM)(int)iItem, (LPARAM)(const TC_ITEM *)(pitem))
3328 #define TabCtrl_InsertItemW(hwnd, iItem, pitem) \
3329 (int)SendMessageW((hwnd), TCM_INSERTITEM, (WPARAM)(int)iItem, (LPARAM)(const TC_ITEM *)(pitem))
3330 #define TabCtrl_InsertItem WINELIB_NAME_AW(TabCtrl_InsertItem)
3331 #define TabCtrl_DeleteItem(hwnd, i) \
3332 (BOOL)SendMessageA((hwnd), TCM_DELETEITEM, (WPARAM)(int)(i), 0L)
3333 #define TabCtrl_DeleteAllItems(hwnd) \
3334 (BOOL)SendMessageA((hwnd), TCM_DELETEALLITEMS, 0, 0L)
3335 #define TabCtrl_GetItemRect(hwnd, i, prc) \
3336 (BOOL)SendMessageA((hwnd), TCM_GETITEMRECT, (WPARAM)(int)(i), (LPARAM)(RECT *)(prc))
3337 #define TabCtrl_GetCurSel(hwnd) \
3338 (int)SendMessageA((hwnd), TCM_GETCURSEL, 0, 0)
3339 #define TabCtrl_SetCurSel(hwnd, i) \
3340 (int)SendMessageA((hwnd), TCM_SETCURSEL, (WPARAM)i, 0)
3341 #define TabCtrl_HitTest(hwndTC, pinfo) \
3342 (int)SendMessageA((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO *)(pinfo))
3343 #define TabCtrl_SetItemExtra(hwndTC, cb) \
3344 (BOOL)SendMessageA((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0L)
3345 #define TabCtrl_AdjustRect(hwnd, bLarger, prc) \
3346 (int)SendMessageA(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)bLarger, (LPARAM)(RECT *)prc)
3347 #define TabCtrl_SetItemSize(hwnd, x, y) \
3348 (DWORD)SendMessageA((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y))
3349 #define TabCtrl_RemoveImage(hwnd, i) \
3350 (void)SendMessageA((hwnd), TCM_REMOVEIMAGE, i, 0L)
3351 #define TabCtrl_SetPadding(hwnd, cx, cy) \
3352 (void)SendMessageA((hwnd), TCM_SETPADDING, 0, MAKELPARAM(cx, cy))
3353 #define TabCtrl_GetRowCount(hwnd) \
3354 (int)SendMessageA((hwnd), TCM_GETROWCOUNT, 0, 0L)
3355 #define TabCtrl_GetToolTips(hwnd) \
3356 (HWND)SendMessageA((hwnd), TCM_GETTOOLTIPS, 0, 0L)
3357 #define TabCtrl_SetToolTips(hwnd, hwndTT) \
3358 (void)SendMessageA((hwnd), TCM_SETTOOLTIPS, (WPARAM)hwndTT, 0L)
3359 #define TabCtrl_GetCurFocus(hwnd) \
3360 (int)SendMessageA((hwnd), TCM_GETCURFOCUS, 0, 0)
3361 #define TabCtrl_SetCurFocus(hwnd, i) \
3362 SendMessageA((hwnd),TCM_SETCURFOCUS, i, 0)
3363 #define TabCtrl_SetMinTabWidth(hwnd, x) \
3364 (int)SendMessageA((hwnd), TCM_SETMINTABWIDTH, 0, x)
3365 #define TabCtrl_DeselectAll(hwnd, fExcludeFocus)\
3366 (void)SendMessageA((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)
3369 /* constants for TCHITTESTINFO */
3371 #define TCHT_NOWHERE 0x01
3372 #define TCHT_ONITEMICON 0x02
3373 #define TCHT_ONITEMLABEL 0x04
3374 #define TCHT_ONITEM (TCHT_ONITEMICON | TCHT_ONITEMLABEL)
3377 typedef struct tagTCITEMA
{
3385 } TCITEMA
, *LPTCITEMA
;
3387 typedef struct tagTCITEMW
3396 } TCITEMW
, *LPTCITEMW
;
3398 #define TCITEM WINELIB_NAME_AW(TCITEM)
3399 #define LPTCITEM WINELIB_NAME_AW(LPTCITEM)
3400 #define TC_ITEM TCITEM
3402 #define TCN_FIRST (0U-550U)
3403 #define TCN_LAST (0U-580U)
3404 #define TCN_KEYDOWN (TCN_FIRST - 0)
3405 #define TCN_SELCHANGE (TCN_FIRST - 1)
3406 #define TCN_SELCHANGING (TCN_FIRST - 2)
3407 #define TCN_GETOBJECT (TCN_FIRST - 3)
3409 #include "pshpack1.h"
3410 typedef struct tagTCKEYDOWN
3416 #include "poppack.h"
3418 #define TC_KEYDOWN NMTCKEYDOWN
3420 /* ComboBoxEx control */
3422 #define WC_COMBOBOXEXA "ComboBoxEx32"
3423 static const WCHAR WC_COMBOBOXEXW
[] = { 'C','o','m','b','o',
3424 'B','o','x','E','x','3','2',0 };
3425 #define WC_COMBOBOXEX WINELIB_NAME_AW(WC_COMBOBOXEX)
3427 #define CBEIF_TEXT 0x00000001
3428 #define CBEIF_IMAGE 0x00000002
3429 #define CBEIF_SELECTEDIMAGE 0x00000004
3430 #define CBEIF_OVERLAY 0x00000008
3431 #define CBEIF_INDENT 0x00000010
3432 #define CBEIF_LPARAM 0x00000020
3433 #define CBEIF_DI_SETITEM 0x10000000
3435 #define CBEM_INSERTITEMA (WM_USER+1)
3436 #define CBEM_INSERTITEMW (WM_USER+11)
3437 #define CBEM_INSERTITEM WINELIB_NAME_AW(CBEM_INSERTITEM)
3438 #define CBEM_SETIMAGELIST (WM_USER+2)
3439 #define CBEM_GETIMAGELIST (WM_USER+3)
3440 #define CBEM_GETITEMA (WM_USER+4)
3441 #define CBEM_GETITEMW (WM_USER+13)
3442 #define CBEM_GETITEM WINELIB_NAME_AW(CBEM_GETITEM)
3443 #define CBEM_SETITEMA (WM_USER+5)
3444 #define CBEM_SETITEMW (WM_USER+12)
3445 #define CBEM_SETITEM WINELIB_NAME_AW(CBEM_SETITEM)
3446 #define CBEM_DELETEITEM CB_DELETESTRING
3447 #define CBEM_GETCOMBOCONTROL (WM_USER+6)
3448 #define CBEM_GETEDITCONTROL (WM_USER+7)
3449 #define CBEM_SETEXSTYLE (WM_USER+8)
3450 #define CBEM_GETEXSTYLE (WM_USER+9)
3451 #define CBEM_GETEXTENDEDSTYLE (WM_USER+9)
3452 #define CBEM_SETEXTENDEDSTYLE (WM_USER+14)
3453 #define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
3454 #define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
3455 #define CBEM_HASEDITCHANGED (WM_USER+10)
3456 #define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
3457 #define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
3459 #define CBEIF_TEXT 0x00000001
3460 #define CBEIF_IMAGE 0x00000002
3461 #define CBEIF_SELECTEDIMAGE 0x00000004
3462 #define CBEIF_OVERLAY 0x00000008
3463 #define CBEIF_INDENT 0x00000010
3464 #define CBEIF_LPARAM 0x00000020
3465 #define CBEIF_DI_SETITEM 0x10000000
3467 #define CBEN_FIRST (0U-800U)
3468 #define CBEN_LAST (0U-830U)
3470 #define CBEN_GETDISPINFOA (CBEN_FIRST - 0)
3471 #define CBEN_GETDISPINFOW (CBEN_FIRST - 7)
3472 #define CBEN_GETDISPINFO WINELIB_NAME_AW(CBEN_GETDISPINFO)
3473 #define CBEN_INSERTITEM (CBEN_FIRST - 1)
3474 #define CBEN_DELETEITEM (CBEN_FIRST - 2)
3475 #define CBEN_BEGINEDIT (CBEN_FIRST - 4)
3476 #define CBEN_ENDEDITA (CBEN_FIRST - 5)
3477 #define CBEN_ENDEDITW (CBEN_FIRST - 6)
3478 #define CBEN_ENDEDIT WINELIB_NAME_AW(CBEN_ENDEDIT)
3479 #define CBEN_DRAGBEGINA (CBEN_FIRST - 8)
3480 #define CBEN_DRAGBEGINW (CBEN_FIRST - 9)
3481 #define CBEN_DRAGBEGIN WINELIB_NAME_AW(CBEN_DRAGBEGIN)
3483 #define CBES_EX_NOEDITIMAGE 0x00000001
3484 #define CBES_EX_NOEDITIMAGEINDENT 0x00000002
3485 #define CBES_EX_PATHWORDBREAKPROC 0x00000004
3486 #define CBES_EX_NOSIZELIMIT 0x00000008
3487 #define CBES_EX_CASESENSITIVE 0x00000010
3490 typedef struct tagCOMBOBOXEXITEMA
3501 } COMBOBOXEXITEMA
, *PCOMBOBOXEXITEMA
;
3502 typedef COMBOBOXEXITEMA
const *PCCOMBOEXITEMA
; /* Yes, there's a BOX missing */
3504 typedef struct tagCOMBOBOXEXITEMW
3515 } COMBOBOXEXITEMW
, *PCOMBOBOXEXITEMW
;
3516 typedef COMBOBOXEXITEMW
const *PCCOMBOEXITEMW
; /* Yes, there's a BOX missing */
3518 #define COMBOBOXEXITEM WINELIB_NAME_AW(COMBOBOXEXITEM)
3519 #define PCOMBOBOXEXITEM WINELIB_NAME_AW(PCOMBOBOXEXITEM)
3520 #define PCCOMBOBOXEXITEM WINELIB_NAME_AW(PCCOMBOEXITEM) /* Yes, there's a BOX missing */
3522 #define CBENF_KILLFOCUS 1
3523 #define CBENF_RETURN 2
3524 #define CBENF_ESCAPE 3
3525 #define CBENF_DROPDOWN 4
3527 #define CBEMAXSTRLEN 260
3529 typedef struct tagNMCBEENDEDITW
3534 WCHAR szText
[CBEMAXSTRLEN
];
3536 } NMCBEENDEDITW
, *LPNMCBEENDEDITW
, *PNMCBEENDEDITW
;
3538 typedef struct tagNMCBEENDEDITA
3543 char szText
[CBEMAXSTRLEN
];
3545 } NMCBEENDEDITA
, *LPNMCBEENDEDITA
, *PNMCBEENDEDITA
;
3547 #define NMCBEENDEDIT WINELIB_NAME_AW(NMCBEENDEDIT)
3548 #define LPNMCBEENDEDIT WINELIB_NAME_AW(LPNMCBEENDEDIT)
3549 #define PNMCBEENDEDIT WINELIB_NAME_AW(PNMCBEENDEDIT)
3554 COMBOBOXEXITEMA ceItem
;
3555 } NMCOMBOBOXEXA
, *PNMCOMBOBOXEXA
;
3560 COMBOBOXEXITEMW ceItem
;
3561 } NMCOMBOBOXEXW
, *PNMCOMBOBOXEXW
;
3563 #define NMCOMBOBOXEX WINELIB_NAME_AW(NMCOMBOBOXEX)
3564 #define PNMCOMBOBOXEX WINELIB_NAME_AW(PNMCOMBOBOXEX)
3570 char szText
[CBEMAXSTRLEN
];
3571 } NMCBEDRAGBEGINA
, *PNMCBEDRAGBEGINA
, *LPNMCBEDRAGBEGINA
;
3577 WCHAR szText
[CBEMAXSTRLEN
];
3578 } NMCBEDRAGBEGINW
, *PNMCBEDRAGBEGINW
, *LPNMCBEDRAGBEGINW
;
3580 #define NMCBEDRAGBEGIN WINELIB_NAME_AW(NMCBEDRAGBEGIN)
3581 #define PNMCBEDRAGBEGIN WINELIB_NAME_AW(PNMCBEDRAGBEGIN)
3582 #define LPNMCBEDRAGBEGIN WINELIB_NAME_AW(LPNMCBEDRAGBEGIN)
3585 /* Hotkey control */
3587 #define HOTKEY_CLASS16 "msctls_hotkey"
3588 #define HOTKEY_CLASSA "msctls_hotkey32"
3589 static const WCHAR HOTKEY_CLASSW
[] = { 'm','s','c','t','l','s','_',
3590 'h','o','t','k','e','y','3','2',0 };
3591 #define HOTKEY_CLASS WINELIB_NAME_AW(HOTKEY_CLASS)
3593 #define HOTKEYF_SHIFT 0x01
3594 #define HOTKEYF_CONTROL 0x02
3595 #define HOTKEYF_ALT 0x04
3596 #define HOTKEYF_EXT 0x08
3598 #define HKCOMB_NONE 0x0001
3599 #define HKCOMB_S 0x0002
3600 #define HKCOMB_C 0x0004
3601 #define HKCOMB_A 0x0008
3602 #define HKCOMB_SC 0x0010
3603 #define HKCOMB_SA 0x0020
3604 #define HKCOMB_CA 0x0040
3605 #define HKCOMB_SCA 0x0080
3607 #define HKM_SETHOTKEY (WM_USER+1)
3608 #define HKM_GETHOTKEY (WM_USER+2)
3609 #define HKM_SETRULES (WM_USER+3)
3612 /* animate control */
3614 #define ANIMATE_CLASSA "SysAnimate32"
3615 static const WCHAR ANIMATE_CLASSW
[] = { 'S','y','s',
3616 'A','n','i','m','a','t','e','3','2',0 };
3617 #define ANIMATE_CLASS WINELIB_NAME_AW(ANIMATE_CLASS)
3619 #define ACS_CENTER 0x0001
3620 #define ACS_TRANSPARENT 0x0002
3621 #define ACS_AUTOPLAY 0x0004
3622 #define ACS_TIMER 0x0008 /* no threads, just timers */
3624 #define ACM_OPENA (WM_USER+100)
3625 #define ACM_OPENW (WM_USER+103)
3626 #define ACM_OPEN WINELIB_NAME_AW(ACM_OPEN)
3627 #define ACM_PLAY (WM_USER+101)
3628 #define ACM_STOP (WM_USER+102)
3633 #define Animate_CreateA(hwndP,id,dwStyle,hInstance) \
3634 CreateWindowA(ANIMATE_CLASSA,NULL,dwStyle,0,0,0,0,hwndP,(HMENU)(id),hInstance,NULL)
3635 #define Animate_CreateW(hwndP,id,dwStyle,hInstance) \
3636 CreateWindowW(ANIMATE_CLASSW,NULL,dwStyle,0,0,0,0,hwndP,(HMENU)(id),hInstance,NULL)
3637 #define Animate_Create WINELIB_NAME_AW(Animate_Create)
3638 #define Animate_OpenA(hwnd,szName) \
3639 (BOOL)SendMessageA(hwnd,ACM_OPENA,0,(LPARAM)(LPSTR)(szName))
3640 #define Animate_OpenW(hwnd,szName) \
3641 (BOOL)SendMessageW(hwnd,ACM_OPENW,0,(LPARAM)(LPWSTR)(szName))
3642 #define Animate_Open WINELIB_NAME_AW(Animate_Open)
3643 #define Animate_OpenExA(hwnd,hInst,szName) \
3644 (BOOL)SendMessageA(hwnd,ACM_OPENA,(WPARAM)hInst,(LPARAM)(LPSTR)(szName))
3645 #define Animate_OpenExW(hwnd,hInst,szName) \
3646 (BOOL)SendMessageW(hwnd,ACM_OPENW,(WPARAM)hInst,(LPARAM)(LPWSTR)(szName))
3647 #define Animate_OpenEx WINELIB_NAME_AW(Animate_OpenEx)
3648 #define Animate_Play(hwnd,from,to,rep) \
3649 (BOOL)SendMessageA(hwnd,ACM_PLAY,(WPARAM)(UINT)(rep),(LPARAM)MAKELONG(from,to))
3650 #define Animate_Stop(hwnd) \
3651 (BOOL)SendMessageA(hwnd,ACM_STOP,0,0)
3652 #define Animate_Close(hwnd) \
3653 (BOOL)SendMessageA(hwnd,ACM_OPENA,0,0)
3654 #define Animate_Seek(hwnd,frame) \
3655 (BOOL)SendMessageA(hwnd,ACM_PLAY,1,(LPARAM)MAKELONG(frame,frame))
3658 /**************************************************************************
3659 * IP Address control
3662 #define WC_IPADDRESSA "SysIPAddress32"
3663 static const WCHAR WC_IPADDRESSW
[] = { 'S','y','s',
3664 'I','P','A','d','d','r','e','s','s','3','2',0 };
3665 #define WC_IPADDRESS WINELIB_NAME_AW(WC_IPADDRESS)
3667 #define IPM_CLEARADDRESS (WM_USER+100)
3668 #define IPM_SETADDRESS (WM_USER+101)
3669 #define IPM_GETADDRESS (WM_USER+102)
3670 #define IPM_SETRANGE (WM_USER+103)
3671 #define IPM_SETFOCUS (WM_USER+104)
3672 #define IPM_ISBLANK (WM_USER+105)
3674 #define IPN_FIRST (0U-860U)
3675 #define IPN_LAST (0U-879U)
3676 #define IPN_FIELDCHANGED (IPN_FIRST-0)
3678 typedef struct tagNMIPADDRESS
3683 } NMIPADDRESS
, *LPNMIPADDRESS
;
3685 #define MAKEIPRANGE(low,high) \
3686 ((LPARAM)(WORD)(((BYTE)(high)<<8)+(BYTE)(low)))
3687 #define MAKEIPADDRESS(b1,b2,b3,b4) \
3688 ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<16)+((DWORD)(b3)<<8)+((DWORD)(b4))))
3690 #define FIRST_IPADDRESS(x) (((x)>>24)&0xff)
3691 #define SECOND_IPADDRESS(x) (((x)>>16)&0xff)
3692 #define THIRD_IPADDRESS(x) (((x)>>8)&0xff)
3693 #define FOURTH_IPADDRESS(x) ((x)&0xff)
3696 /**************************************************************************
3697 * Native Font control
3700 #define WC_NATIVEFONTCTLA "NativeFontCtl"
3701 static const WCHAR WC_NATIVEFONTCTLW
[] = { 'N','a','t','i','v','e',
3702 'F','o','n','t','C','t','l',0 };
3703 #define WC_NATIVEFONTCTL WINELIB_NAME_AW(WC_NATIVEFONTCTL)
3705 #define NFS_EDIT 0x0001
3706 #define NFS_STATIC 0x0002
3707 #define NFS_LISTCOMBO 0x0004
3708 #define NFS_BUTTON 0x0008
3709 #define NFS_ALL 0x0010
3712 /**************************************************************************
3713 * Month calendar control
3717 #define MONTHCAL_CLASSA "SysMonthCal32"
3718 static const WCHAR MONTHCAL_CLASSW
[] = { 'S','y','s',
3719 'M','o','n','t','h','C','a','l','3','2',0 };
3720 #define MONTHCAL_CLASS WINELIB_NAME_AW(MONTHCAL_CLASS)
3722 #define MCM_FIRST 0x1000
3723 #define MCN_FIRST (0U-750U)
3724 #define MCN_LAST (0U-759U)
3727 #define MCM_GETCURSEL (MCM_FIRST + 1)
3728 #define MCM_SETCURSEL (MCM_FIRST + 2)
3729 #define MCM_GETMAXSELCOUNT (MCM_FIRST + 3)
3730 #define MCM_SETMAXSELCOUNT (MCM_FIRST + 4)
3731 #define MCM_GETSELRANGE (MCM_FIRST + 5)
3732 #define MCM_SETSELRANGE (MCM_FIRST + 6)
3733 #define MCM_GETMONTHRANGE (MCM_FIRST + 7)
3734 #define MCM_SETDAYSTATE (MCM_FIRST + 8)
3735 #define MCM_GETMINREQRECT (MCM_FIRST + 9)
3736 #define MCM_SETCOLOR (MCM_FIRST + 10)
3737 #define MCM_GETCOLOR (MCM_FIRST + 11)
3738 #define MCM_SETTODAY (MCM_FIRST + 12)
3739 #define MCM_GETTODAY (MCM_FIRST + 13)
3740 #define MCM_HITTEST (MCM_FIRST + 14)
3741 #define MCM_SETFIRSTDAYOFWEEK (MCM_FIRST + 15)
3742 #define MCM_GETFIRSTDAYOFWEEK (MCM_FIRST + 16)
3743 #define MCM_GETRANGE (MCM_FIRST + 17)
3744 #define MCM_SETRANGE (MCM_FIRST + 18)
3745 #define MCM_GETMONTHDELTA (MCM_FIRST + 19)
3746 #define MCM_SETMONTHDELTA (MCM_FIRST + 20)
3747 #define MCM_GETMAXTODAYWIDTH (MCM_FIRST + 21)
3748 #define MCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
3749 #define MCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
3754 #define MCN_SELCHANGE (MCN_FIRST + 1)
3755 #define MCN_GETDAYSTATE (MCN_FIRST + 3)
3756 #define MCN_SELECT (MCN_FIRST + 4)
3758 #define MCSC_BACKGROUND 0
3760 #define MCSC_TITLEBK 2
3761 #define MCSC_TITLETEXT 3
3762 #define MCSC_MONTHBK 4
3763 #define MCSC_TRAILINGTEXT 5
3765 #define MCS_DAYSTATE 0x0001
3766 #define MCS_MULTISELECT 0x0002
3767 #define MCS_WEEKNUMBERS 0x0004
3768 #define MCS_NOTODAY 0x0010
3769 #define MCS_NOTODAYCIRCLE 0x0008
3771 #define MCHT_TITLE 0x00010000
3772 #define MCHT_CALENDAR 0x00020000
3773 #define MCHT_TODAYLINK 0x00030000
3775 #define MCHT_NEXT 0x01000000
3776 #define MCHT_PREV 0x02000000
3777 #define MCHT_NOWHERE 0x00000000
3778 #define MCHT_TITLEBK (MCHT_TITLE)
3779 #define MCHT_TITLEMONTH (MCHT_TITLE | 0x0001)
3780 #define MCHT_TITLEYEAR (MCHT_TITLE | 0x0002)
3781 #define MCHT_TITLEBTNNEXT (MCHT_TITLE | MCHT_NEXT | 0x0003)
3782 #define MCHT_TITLEBTNPREV (MCHT_TITLE | MCHT_PREV | 0x0003)
3784 #define MCHT_CALENDARBK (MCHT_CALENDAR)
3785 #define MCHT_CALENDARDATE (MCHT_CALENDAR | 0x0001)
3786 #define MCHT_CALENDARDATENEXT (MCHT_CALENDARDATE | MCHT_NEXT)
3787 #define MCHT_CALENDARDATEPREV (MCHT_CALENDARDATE | MCHT_PREV)
3788 #define MCHT_CALENDARDAY (MCHT_CALENDAR | 0x0002)
3789 #define MCHT_CALENDARWEEKNUM (MCHT_CALENDAR | 0x0003)
3793 #define GMR_VISIBLE 0
3794 #define GMR_DAYSTATE 1
3797 /* Month calendar's structures */
3805 } MCHITTESTINFO
, *PMCHITTESTINFO
;
3807 typedef struct tagNMSELCHANGE
3810 SYSTEMTIME stSelStart
;
3811 SYSTEMTIME stSelEnd
;
3812 } NMSELCHANGE
, *LPNMSELCHANGE
;
3814 typedef NMSELCHANGE NMSELECT
, *LPNMSELECT
;
3815 typedef DWORD MONTHDAYSTATE
, *LPMONTHDAYSTATE
;
3817 typedef struct tagNMDAYSTATE
3822 LPMONTHDAYSTATE prgDayState
;
3823 } NMDAYSTATE
, *LPNMDAYSTATE
;
3828 #define MonthCal_GetCurSel(hmc, pst) \
3829 (BOOL)SendMessageA(hmc, MCM_GETCURSEL, 0, (LPARAM)(pst))
3830 #define MonthCal_SetCurSel(hmc, pst) \
3831 (BOOL)SendMessageA(hmc, MCM_SETCURSEL, 0, (LPARAM)(pst))
3832 #define MonthCal_GetMaxSelCount(hmc) \
3833 (DWORD)SendMessageA(hmc, MCM_GETMAXSELCOUNT, 0, 0L)
3834 #define MonthCal_SetMaxSelCount(hmc, n) \
3835 (BOOL)SendMessageA(hmc, MCM_SETMAXSELCOUNT, (WPARAM)(n), 0L)
3836 #define MonthCal_GetSelRange(hmc, rgst) \
3837 SendMessageA(hmc, MCM_GETSELRANGE, 0, (LPARAM) (rgst))
3838 #define MonthCal_SetSelRange(hmc, rgst) \
3839 SendMessageA(hmc, MCM_SETSELRANGE, 0, (LPARAM) (rgst))
3840 #define MonthCal_GetMonthRange(hmc, gmr, rgst) \
3841 (DWORD)SendMessageA(hmc, MCM_GETMONTHRANGE, (WPARAM)(gmr), (LPARAM)(rgst))
3842 #define MonthCal_SetDayState(hmc, cbds, rgds) \
3843 SendMessageA(hmc, MCM_SETDAYSTATE, (WPARAM)(cbds), (LPARAM)(rgds))
3844 #define MonthCal_GetMinReqRect(hmc, prc) \
3845 SendMessageA(hmc, MCM_GETMINREQRECT, 0, (LPARAM)(prc))
3846 #define MonthCal_SetColor(hmc, iColor, clr)\
3847 SendMessageA(hmc, MCM_SETCOLOR, iColor, clr)
3848 #define MonthCal_GetColor(hmc, iColor) \
3849 SendMessageA(hmc, MCM_SETCOLOR, iColor, 0)
3850 #define MonthCal_GetToday(hmc, pst)\
3851 (BOOL)SendMessageA(hmc, MCM_GETTODAY, 0, (LPARAM)pst)
3852 #define MonthCal_SetToday(hmc, pst)\
3853 SendMessageA(hmc, MCM_SETTODAY, 0, (LPARAM)pst)
3854 #define MonthCal_HitTest(hmc, pinfo) \
3855 SendMessageA(hmc, MCM_HITTEST, 0, (LPARAM)(PMCHITTESTINFO)pinfo)
3856 #define MonthCal_SetFirstDayOfWeek(hmc, iDay) \
3857 SendMessageA(hmc, MCM_SETFIRSTDAYOFWEEK, 0, iDay)
3858 #define MonthCal_GetFirstDayOfWeek(hmc) \
3859 (DWORD)SendMessageA(hmc, MCM_GETFIRSTDAYOFWEEK, 0, 0)
3860 #define MonthCal_GetRange(hmc, rgst) \
3861 (DWORD)SendMessageA(hmc, MCM_GETRANGE, 0, (LPARAM)(rgst))
3862 #define MonthCal_SetRange(hmc, gd, rgst) \
3863 (BOOL)SendMessageA(hmc, MCM_SETRANGE, (WPARAM)(gd), (LPARAM)(rgst))
3864 #define MonthCal_GetMonthDelta(hmc) \
3865 (int)SendMessageA(hmc, MCM_GETMONTHDELTA, 0, 0)
3866 #define MonthCal_SetMonthDelta(hmc, n) \
3867 (int)SendMessageA(hmc, MCM_SETMONTHDELTA, n, 0)
3868 #define MonthCal_GetMaxTodayWidth(hmc) \
3869 (DWORD)SendMessageA(hmc, MCM_GETMAXTODAYWIDTH, 0, 0)
3870 #define MonthCal_SetUnicodeFormat(hwnd, fUnicode) \
3871 (BOOL)SendMessageA((hwnd), MCM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0)
3872 #define MonthCal_GetUnicodeFormat(hwnd) \
3873 (BOOL)SendMessageA((hwnd), MCM_GETUNICODEFORMAT, 0, 0)
3876 /**************************************************************************
3877 * Date and time picker control
3880 #define DATETIMEPICK_CLASSA "SysDateTimePick32"
3881 static const WCHAR DATETIMEPICK_CLASSW
[] = { 'S','y','s',
3882 'D','a','t','e','T','i','m','e','P','i','c','k','3','2',0 };
3883 #define DATETIMEPICK_CLASS WINELIB_NAME_AW(DATETIMEPICK_CLASS)
3885 #define DTM_FIRST 0x1000
3886 #define DTN_FIRST (0U-760U)
3887 #define DTN_LAST (0U-799U)
3890 #define DTM_GETSYSTEMTIME (DTM_FIRST+1)
3891 #define DTM_SETSYSTEMTIME (DTM_FIRST+2)
3892 #define DTM_GETRANGE (DTM_FIRST+3)
3893 #define DTM_SETRANGE (DTM_FIRST+4)
3894 #define DTM_SETFORMATA (DTM_FIRST+5)
3895 #define DTM_SETFORMATW (DTM_FIRST + 50)
3896 #define DTM_SETFORMAT WINELIB_NAME_AW(DTM_SETFORMAT)
3897 #define DTM_SETMCCOLOR (DTM_FIRST+6)
3898 #define DTM_GETMCCOLOR (DTM_FIRST+7)
3899 #define DTM_GETMONTHCAL (DTM_FIRST+8)
3900 #define DTM_SETMCFONT (DTM_FIRST+9)
3901 #define DTM_GETMCFONT (DTM_FIRST+10)
3904 /* Datetime Notifications */
3906 #define DTN_DATETIMECHANGE (DTN_FIRST + 1)
3907 #define DTN_USERSTRINGA (DTN_FIRST + 2)
3908 #define DTN_WMKEYDOWNA (DTN_FIRST + 3)
3909 #define DTN_FORMATA (DTN_FIRST + 4)
3910 #define DTN_FORMATQUERYA (DTN_FIRST + 5)
3911 #define DTN_DROPDOWN (DTN_FIRST + 6)
3912 #define DTN_CLOSEUP (DTN_FIRST + 7)
3913 #define DTN_USERSTRINGW (DTN_FIRST + 15)
3914 #define DTN_WMKEYDOWNW (DTN_FIRST + 16)
3915 #define DTN_FORMATW (DTN_FIRST + 17)
3916 #define DTN_FORMATQUERYW (DTN_FIRST + 18)
3918 #define DTN_USERSTRING WINELIB_NAME_AW(DTN_USERSTRING)
3919 #define DTN_WMKEYDOWN WINELIB_NAME_AW(DTN_WMKEYDOWN)
3920 #define DTN_FORMAT WINELIB_NAME_AW(DTN_FORMAT)
3921 #define DTN_FORMATQUERY WINELIB_NAME_AW(DTN_FORMATQUERY)
3923 #define DTS_SHORTDATEFORMAT 0x0000
3924 #define DTS_UPDOWN 0x0001
3925 #define DTS_SHOWNONE 0x0002
3926 #define DTS_LONGDATEFORMAT 0x0004
3927 #define DTS_TIMEFORMAT 0x0009
3928 #define DTS_APPCANPARSE 0x0010
3929 #define DTS_RIGHTALIGN 0x0020
3931 typedef struct tagNMDATETIMECHANGE
3936 } NMDATETIMECHANGE
, *LPNMDATETIMECHANGE
;
3938 typedef struct tagNMDATETIMESTRINGA
3941 LPCSTR pszUserString
;
3944 } NMDATETIMESTRINGA
, *LPNMDATETIMESTRINGA
;
3946 typedef struct tagNMDATETIMESTRINGW
3949 LPCWSTR pszUserString
;
3952 } NMDATETIMESTRINGW
, *LPNMDATETIMESTRINGW
;
3954 DECL_WINELIB_TYPE_AW(NMDATETIMESTRING
)
3955 DECL_WINELIB_TYPE_AW(LPNMDATETIMESTRING
)
3957 typedef struct tagNMDATETIMEWMKEYDOWNA
3963 } NMDATETIMEWMKEYDOWNA
, *LPNMDATETIMEWMKEYDOWNA
;
3965 typedef struct tagNMDATETIMEWMKEYDOWNW
3971 } NMDATETIMEWMKEYDOWNW
, *LPNMDATETIMEWMKEYDOWNW
;
3973 DECL_WINELIB_TYPE_AW(NMDATETIMEWMKEYDOWN
)
3974 DECL_WINELIB_TYPE_AW(LPNMDATETIMEWMKEYDOWN
)
3976 typedef struct tagNMDATETIMEFORMATA
3983 } NMDATETIMEFORMATA
, *LPNMDATETIMEFORMATA
;
3986 typedef struct tagNMDATETIMEFORMATW
3992 WCHAR szDisplay
[64];
3993 } NMDATETIMEFORMATW
, *LPNMDATETIMEFORMATW
;
3995 DECL_WINELIB_TYPE_AW(NMDATETIMEFORMAT
)
3996 DECL_WINELIB_TYPE_AW(LPNMDATETIMEFORMAT
)
3998 typedef struct tagNMDATETIMEFORMATQUERYA
4003 } NMDATETIMEFORMATQUERYA
, *LPNMDATETIMEFORMATQUERYA
;
4005 typedef struct tagNMDATETIMEFORMATQUERYW
4010 } NMDATETIMEFORMATQUERYW
, *LPNMDATETIMEFORMATQUERYW
;
4012 DECL_WINELIB_TYPE_AW(NMDATETIMEFORMATQUERY
)
4013 DECL_WINELIB_TYPE_AW(LPNMDATETIMEFORMATQUERY
)
4017 #define GDT_ERROR -1
4021 #define GDTR_MIN 0x0001
4022 #define GDTR_MAX 0x0002
4025 #define DateTime_GetSystemtime(hdp, pst) \
4026 (DWORD)SendMessageA (hdp, DTM_GETSYSTEMTIME , 0, (LPARAM)(pst))
4027 #define DateTime_SetSystemtime(hdp, gd, pst) \
4028 (BOOL)SendMessageA (hdp, DTM_SETSYSTEMTIME, (LPARAM)(gd), (LPARAM)(pst))
4029 #define DateTime_GetRange(hdp, rgst) \
4030 (DWORD)SendMessageA (hdp, DTM_GETRANGE, 0, (LPARAM)(rgst))
4031 #define DateTime_SetRange(hdp, gd, rgst) \
4032 (BOOL)SendMessageA (hdp, DTM_SETRANGE, (WPARAM)(gd), (LPARAM)(rgst))
4033 #define DateTime_SetFormat WINELIB_NAME_AW(DateTime_SetFormat)
4034 #define DateTime_SetFormatA(hdp, sz) \
4035 (BOOL)SendMessageA (hdp, DTM_SETFORMAT, 0, (LPARAM)(sz))
4036 #define DateTime_SetFormatW(hdp, sz) \
4037 (BOOL)SendMessageW (hdp, DTM_SETFORMAT, 0, (LPARAM)(sz))
4038 #define DateTime_GetMonthCalColor(hdp, iColor) \
4039 SendMessageA (hdp, DTM_GETMCCOLOR, iColor, 0)
4040 #define DateTime_GetMonthCal(hdp) \
4041 (HWND) SendMessageA (hdp, DTM_GETMONTHCAL, 0, 0)
4042 #define DateTime_SetMonthCalFont(hdp, hfont, fRedraw) \
4043 SendMessageA (hdp, DTM_SETMCFONT, (WPARAM)hfont, (LPARAM)fRedraw)
4044 #define DateTime_GetMonthCalFont(hdp) \
4045 SendMessageA (hdp, DTM_GETMCFONT, 0, 0)
4052 /**************************************************************************
4053 * UNDOCUMENTED functions
4056 /* private heap memory functions */
4058 LPVOID WINAPI
COMCTL32_Alloc (DWORD
);
4059 LPVOID WINAPI
COMCTL32_ReAlloc (LPVOID
, DWORD
);
4060 BOOL WINAPI
COMCTL32_Free (LPVOID
);
4061 DWORD WINAPI
COMCTL32_GetSize (LPVOID
);
4063 LPWSTR WINAPI
COMCTL32_StrChrW (LPCWSTR
, WORD
);
4066 INT WINAPI
Str_GetPtrA (LPCSTR
, LPSTR
, INT
);
4067 BOOL WINAPI
Str_SetPtrA (LPSTR
*, LPCSTR
);
4068 INT WINAPI
Str_GetPtrW (LPCWSTR
, LPWSTR
, INT
);
4069 BOOL WINAPI
Str_SetPtrW (LPWSTR
*, LPCWSTR
);
4070 #define Str_GetPtr WINELIB_NAME_AW(Str_GetPtr)
4071 #define Str_SetPtr WINELIB_NAME_AW(Str_SetPtr)
4074 /* Dynamic Storage Array */
4085 HDSA WINAPI
DSA_Create (INT
, INT
);
4086 BOOL WINAPI
DSA_DeleteAllItems (const HDSA
);
4087 INT WINAPI
DSA_DeleteItem (const HDSA
, INT
);
4088 BOOL WINAPI
DSA_Destroy (const HDSA
);
4089 BOOL WINAPI
DSA_GetItem (const HDSA
, INT
, LPVOID
);
4090 LPVOID WINAPI
DSA_GetItemPtr (const HDSA
, INT
);
4091 INT WINAPI
DSA_InsertItem (const HDSA
, INT
, LPVOID
);
4092 BOOL WINAPI
DSA_SetItem (const HDSA
, INT
, LPVOID
);
4094 typedef INT (CALLBACK
*DSAENUMPROC
)(LPVOID
, DWORD
);
4095 VOID WINAPI
DSA_EnumCallback (const HDSA
, DSAENUMPROC
, LPARAM
);
4096 BOOL WINAPI
DSA_DestroyCallback (const HDSA
, DSAENUMPROC
, LPARAM
);
4099 /* Dynamic Pointer Array */
4110 HDPA WINAPI
DPA_Create (INT
);
4111 HDPA WINAPI
DPA_CreateEx (INT
, HANDLE
);
4112 BOOL WINAPI
DPA_Destroy (const HDPA
);
4113 HDPA WINAPI
DPA_Clone (const HDPA
, const HDPA
);
4114 LPVOID WINAPI
DPA_GetPtr (const HDPA
, INT
);
4115 INT WINAPI
DPA_GetPtrIndex (const HDPA
, LPVOID
);
4116 BOOL WINAPI
DPA_Grow (const HDPA
, INT
);
4117 BOOL WINAPI
DPA_SetPtr (const HDPA
, INT
, LPVOID
);
4118 INT WINAPI
DPA_InsertPtr (const HDPA
, INT
, LPVOID
);
4119 LPVOID WINAPI
DPA_DeletePtr (const HDPA
, INT
);
4120 BOOL WINAPI
DPA_DeleteAllPtrs (const HDPA
);
4122 typedef INT (CALLBACK
*PFNDPACOMPARE
)(LPVOID
, LPVOID
, LPARAM
);
4123 BOOL WINAPI
DPA_Sort (const HDPA
, PFNDPACOMPARE
, LPARAM
);
4125 #define DPAS_SORTED 0x0001
4126 #define DPAS_INSERTBEFORE 0x0002
4127 #define DPAS_INSERTAFTER 0x0004
4129 INT WINAPI
DPA_Search (const HDPA
, LPVOID
, INT
, PFNDPACOMPARE
, LPARAM
, UINT
);
4131 #define DPAM_NOSORT 0x0001
4132 #define DPAM_INSERT 0x0004
4133 #define DPAM_DELETE 0x0008
4135 typedef PVOID (CALLBACK
*PFNDPAMERGE
)(DWORD
,PVOID
,PVOID
,LPARAM
);
4136 BOOL WINAPI
DPA_Merge (const HDPA
, const HDPA
, DWORD
, PFNDPACOMPARE
, PFNDPAMERGE
, LPARAM
);
4138 typedef INT (CALLBACK
*DPAENUMPROC
)(LPVOID
, DWORD
);
4139 VOID WINAPI
DPA_EnumCallback (const HDPA
, DPAENUMPROC
, LPARAM
);
4140 BOOL WINAPI
DPA_DestroyCallback (const HDPA
, DPAENUMPROC
, LPARAM
);
4143 #define DPA_GetPtrCount(hdpa) (*(INT*)(hdpa))
4144 #define DPA_GetPtrPtr(hdpa) (*((LPVOID**)((BYTE*)(hdpa)+sizeof(INT))))
4145 #define DPA_FastGetPtr(hdpa,i) (DPA_GetPtrPtr(hdpa)[i])
4148 /* notification helper functions */
4150 LRESULT WINAPI
COMCTL32_SendNotify (HWND
, HWND
, UINT
, LPNMHDR
);
4152 /* type and functionality of last parameter is still unknown */
4153 LRESULT WINAPI
COMCTL32_SendNotifyEx (HWND
, HWND
, UINT
, LPNMHDR
, DWORD
);
4159 #endif /* __WINE_COMMCTRL_H */