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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_COMMCTRL_H
22 #define __WINE_COMMCTRL_H
30 BOOL WINAPI
ShowHideMenuCtl (HWND
, UINT_PTR
, LPINT
);
31 VOID WINAPI
GetEffectiveClientRect (HWND
, LPRECT
, const INT
*);
32 VOID WINAPI
InitCommonControls (VOID
);
34 typedef struct tagINITCOMMONCONTROLSEX
{
37 } INITCOMMONCONTROLSEX
, *LPINITCOMMONCONTROLSEX
;
39 BOOL WINAPI
InitCommonControlsEx (const INITCOMMONCONTROLSEX
*);
41 LANGID WINAPI
GetMUILanguage (VOID
);
42 VOID WINAPI
InitMUILanguage (LANGID uiLang
);
45 #define COMCTL32_VERSION 5 /* dll version */
48 #define _WIN32_IE 0x0400
51 #define ICC_LISTVIEW_CLASSES 0x00000001 /* listview, header */
52 #define ICC_TREEVIEW_CLASSES 0x00000002 /* treeview, tooltips */
53 #define ICC_BAR_CLASSES 0x00000004 /* toolbar, statusbar, trackbar, tooltips */
54 #define ICC_TAB_CLASSES 0x00000008 /* tab, tooltips */
55 #define ICC_UPDOWN_CLASS 0x00000010 /* updown */
56 #define ICC_PROGRESS_CLASS 0x00000020 /* progress */
57 #define ICC_HOTKEY_CLASS 0x00000040 /* hotkey */
58 #define ICC_ANIMATE_CLASS 0x00000080 /* animate */
59 #define ICC_WIN95_CLASSES 0x000000FF
60 #define ICC_DATE_CLASSES 0x00000100 /* month picker, date picker, time picker, updown */
61 #define ICC_USEREX_CLASSES 0x00000200 /* comboex */
62 #define ICC_COOL_CLASSES 0x00000400 /* rebar (coolbar) */
63 #define ICC_INTERNET_CLASSES 0x00000800 /* IP address, ... */
64 #define ICC_PAGESCROLLER_CLASS 0x00001000 /* page scroller */
65 #define ICC_NATIVEFNTCTL_CLASS 0x00002000 /* native font control ???*/
66 #define ICC_STANDARD_CLASSES 0x00004000
67 #define ICC_LINK_CLASS 0x00008000
70 /* common control styles */
71 #define CCS_TOP 0x00000001L
72 #define CCS_NOMOVEY 0x00000002L
73 #define CCS_BOTTOM 0x00000003L
74 #define CCS_NORESIZE 0x00000004L
75 #define CCS_NOPARENTALIGN 0x00000008L
76 #define CCS_ADJUSTABLE 0x00000020L
77 #define CCS_NODIVIDER 0x00000040L
78 #define CCS_VERT 0x00000080L
79 #define CCS_LEFT (CCS_VERT|CCS_TOP)
80 #define CCS_RIGHT (CCS_VERT|CCS_BOTTOM)
81 #define CCS_NOMOVEX (CCS_VERT|CCS_NOMOVEY)
84 /* common control shared messages */
85 #define CCM_FIRST 0x2000
87 #define CCM_SETBKCOLOR (CCM_FIRST+0x1) /* lParam = bkColor */
88 #define CCM_SETCOLORSCHEME (CCM_FIRST+0x2) /* lParam = COLORSCHEME struct ptr */
89 #define CCM_GETCOLORSCHEME (CCM_FIRST+0x3) /* lParam = COLORSCHEME struct ptr */
90 #define CCM_GETDROPTARGET (CCM_FIRST+0x4)
91 #define CCM_SETUNICODEFORMAT (CCM_FIRST+0x5)
92 #define CCM_GETUNICODEFORMAT (CCM_FIRST+0x6)
93 #define CCM_SETVERSION (CCM_FIRST+0x7)
94 #define CCM_GETVERSION (CCM_FIRST+0x8)
95 #define CCM_SETNOTIFYWINDOW (CCM_FIRST+0x9) /* wParam = hwndParent */
96 #define CCM_SETWINDOWTHEME (CCM_FIRST+0xb)
97 #define CCM_DPISCALE (CCM_FIRST+0xc)
100 /* common notification codes (WM_NOTIFY)*/
101 #define NM_FIRST (0U- 0U)
102 #define NM_LAST (0U- 99U)
103 #define NM_OUTOFMEMORY (NM_FIRST-1)
104 #define NM_CLICK (NM_FIRST-2)
105 #define NM_DBLCLK (NM_FIRST-3)
106 #define NM_RETURN (NM_FIRST-4)
107 #define NM_RCLICK (NM_FIRST-5)
108 #define NM_RDBLCLK (NM_FIRST-6)
109 #define NM_SETFOCUS (NM_FIRST-7)
110 #define NM_KILLFOCUS (NM_FIRST-8)
111 #define NM_CUSTOMDRAW (NM_FIRST-12)
112 #define NM_HOVER (NM_FIRST-13)
113 #define NM_NCHITTEST (NM_FIRST-14)
114 #define NM_KEYDOWN (NM_FIRST-15)
115 #define NM_RELEASEDCAPTURE (NM_FIRST-16)
116 #define NM_SETCURSOR (NM_FIRST-17)
117 #define NM_CHAR (NM_FIRST-18)
118 #define NM_TOOLTIPSCREATED (NM_FIRST-19)
119 #define NM_LDOWN (NM_FIRST-20)
120 #define NM_RDOWN (NM_FIRST-21)
121 #define NM_THEMECHANGED (NM_FIRST-22)
122 #define NM_FONTCHANGED (NM_FIRST-23)
123 #define NM_CUSTOMTEXT (NM_FIRST-24)
124 #define NM_TVSTATEIMAGECHANGING (NM_FIRST-24)
126 #define HANDLE_WM_NOTIFY(hwnd, wParam, lParam, fn) \
127 (fn)((hwnd), (int)(wParam), (NMHDR*)(lParam))
128 #define FORWARD_WM_NOTIFY(hwnd, idFrom, pnmhdr, fn) \
129 (LRESULT)(fn)((hwnd), WM_NOTIFY, (WPARAM)(int)(idFrom), (LPARAM)(NMHDR*)(pnmhdr))
132 /* callback constants */
133 #define LPSTR_TEXTCALLBACKA ((LPSTR)-1L)
134 #define LPSTR_TEXTCALLBACKW ((LPWSTR)-1L)
135 #define LPSTR_TEXTCALLBACK WINELIB_NAME_AW(LPSTR_TEXTCALLBACK)
137 #define I_IMAGECALLBACK (-1)
138 #define I_IMAGENONE (-2)
139 #define I_INDENTCALLBACK (-1)
140 #define I_CHILDRENCALLBACK (-1)
141 #define I_GROUPIDCALLBACK (-1)
142 #define I_GROUPIDNONE (-2)
143 #define I_COLUMNSCALLBACK ((UINT)-1)
145 /* owner drawn types */
146 #define ODT_HEADER 100
148 #define ODT_LISTVIEW 102
150 /* common notification structures */
151 typedef struct tagNMTOOLTIPSCREATED
155 } NMTOOLTIPSCREATED
, *LPNMTOOLTIPSCREATED
;
157 typedef struct tagNMMOUSE
160 DWORD_PTR dwItemSpec
;
161 DWORD_PTR dwItemData
;
163 DWORD dwHitInfo
; /* info where on item or control the mouse is */
164 } NMMOUSE
, *LPNMMOUSE
;
166 typedef struct tagNMOBJECTNOTIFY
170 #ifdef __IID_DEFINED__
178 } NMOBJECTNOTIFY
, *LPNMOBJECTNOTIFY
;
180 typedef struct tagNMKEY
187 typedef struct tagNMCHAR
191 DWORD dwItemPrev
; /* Item previously selected */
192 DWORD dwItemNext
; /* Item to be selected */
195 #ifndef CCSIZEOF_STRUCT
196 #define CCSIZEOF_STRUCT(name, member) \
197 (((INT)((LPBYTE)(&((name*)0)->member)-((LPBYTE)((name*)0))))+ \
198 sizeof(((name*)0)->member))
204 #define SNDMSG ::SendMessage
205 #else /* __cplusplus */
206 #define SNDMSG SendMessage
207 #endif /* __cplusplus */
212 #define SNDMSGA ::SendMessageA
213 #define SNDMSGW ::SendMessageW
215 #define SNDMSGA SendMessageA
216 #define SNDMSGW SendMessageW
219 /* Custom Draw messages */
221 #define CDRF_DODEFAULT 0x0
222 #define CDRF_NEWFONT 0x00000002
223 #define CDRF_SKIPDEFAULT 0x00000004
224 #define CDRF_NOTIFYPOSTPAINT 0x00000010
225 #define CDRF_NOTIFYITEMDRAW 0x00000020
226 #define CDRF_NOTIFYSUBITEMDRAW 0x00000020
227 #define CDRF_NOTIFYPOSTERASE 0x00000040
228 #define CDRF_NOTIFYITEMERASE 0x00000080 /* obsolete ??? */
231 /* drawstage flags */
233 #define CDDS_PREPAINT 1
234 #define CDDS_POSTPAINT 2
235 #define CDDS_PREERASE 3
236 #define CDDS_POSTERASE 4
238 #define CDDS_ITEM 0x00010000
239 #define CDDS_ITEMPREPAINT (CDDS_ITEM | CDDS_PREPAINT)
240 #define CDDS_ITEMPOSTPAINT (CDDS_ITEM | CDDS_POSTPAINT)
241 #define CDDS_ITEMPREERASE (CDDS_ITEM | CDDS_PREERASE)
242 #define CDDS_ITEMPOSTERASE (CDDS_ITEM | CDDS_POSTERASE)
243 #define CDDS_SUBITEM 0x00020000
245 /* itemState flags */
247 #define CDIS_SELECTED 0x0001
248 #define CDIS_GRAYED 0x0002
249 #define CDIS_DISABLED 0x0004
250 #define CDIS_CHECKED 0x0008
251 #define CDIS_FOCUS 0x0010
252 #define CDIS_DEFAULT 0x0020
253 #define CDIS_HOT 0x0040
254 #define CDIS_MARKED 0x0080
255 #define CDIS_INDETERMINATE 0x0100
256 #define CDIS_SHOWKEYBOARDCUES 0x0200
257 #define CDIS_NEARHOT 0x0400
258 #define CDIS_OTHERSIDEHOT 0x0800
259 #define CDIS_DROPHILITED 0x1000
262 typedef struct tagNMCUSTOMDRAWINFO
268 DWORD_PTR dwItemSpec
;
271 } NMCUSTOMDRAW
, *LPNMCUSTOMDRAW
;
273 typedef struct tagNMTTCUSTOMDRAW
277 } NMTTCUSTOMDRAW
, *LPNMTTCUSTOMDRAW
;
284 #define STATUSCLASSNAMEA "msctls_statusbar32"
285 #if defined(__GNUC__)
286 # define STATUSCLASSNAMEW (const WCHAR []){ 'm','s','c','t','l','s','_', \
287 's','t','a','t','u','s','b','a','r','3','2',0 }
288 #elif defined(_MSC_VER)
289 # define STATUSCLASSNAMEW L"msctls_statusbar32"
291 static const WCHAR STATUSCLASSNAMEW
[] = { 'm','s','c','t','l','s','_',
292 's','t','a','t','u','s','b','a','r','3','2',0 };
294 #define STATUSCLASSNAME WINELIB_NAME_AW(STATUSCLASSNAME)
296 #define SBT_NOBORDERS 0x0100
297 #define SBT_POPOUT 0x0200
298 #define SBT_RTLREADING 0x0400 /* not supported */
299 #define SBT_TOOLTIPS 0x0800
300 #define SBT_OWNERDRAW 0x1000
302 #define SBARS_SIZEGRIP 0x0100
304 #define SB_SIMPLEID 0x00ff
306 #define SB_SETTEXTA (WM_USER+1)
307 #define SB_SETTEXTW (WM_USER+11)
308 #define SB_SETTEXT WINELIB_NAME_AW(SB_SETTEXT)
309 #define SB_GETTEXTA (WM_USER+2)
310 #define SB_GETTEXTW (WM_USER+13)
311 #define SB_GETTEXT WINELIB_NAME_AW(SB_GETTEXT)
312 #define SB_GETTEXTLENGTHA (WM_USER+3)
313 #define SB_GETTEXTLENGTHW (WM_USER+12)
314 #define SB_GETTEXTLENGTH WINELIB_NAME_AW(SB_GETTEXTLENGTH)
315 #define SB_SETPARTS (WM_USER+4)
316 #define SB_SETBORDERS (WM_USER+5)
317 #define SB_GETPARTS (WM_USER+6)
318 #define SB_GETBORDERS (WM_USER+7)
319 #define SB_SETMINHEIGHT (WM_USER+8)
320 #define SB_SIMPLE (WM_USER+9)
321 #define SB_GETRECT (WM_USER+10)
322 #define SB_ISSIMPLE (WM_USER+14)
323 #define SB_SETICON (WM_USER+15)
324 #define SB_SETTIPTEXTA (WM_USER+16)
325 #define SB_SETTIPTEXTW (WM_USER+17)
326 #define SB_SETTIPTEXT WINELIB_NAME_AW(SB_SETTIPTEXT)
327 #define SB_GETTIPTEXTA (WM_USER+18)
328 #define SB_GETTIPTEXTW (WM_USER+19)
329 #define SB_GETTIPTEXT WINELIB_NAME_AW(SB_GETTIPTEXT)
330 #define SB_GETICON (WM_USER+20)
331 #define SB_SETBKCOLOR CCM_SETBKCOLOR /* lParam = bkColor */
332 #define SB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
333 #define SB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
335 #define SBN_FIRST (0U-880U)
336 #define SBN_LAST (0U-899U)
337 #define SBN_SIMPLEMODECHANGE (SBN_FIRST-0)
339 HWND WINAPI
CreateStatusWindowA (LONG
, LPCSTR
, HWND
, UINT
);
340 HWND WINAPI
CreateStatusWindowW (LONG
, LPCWSTR
, HWND
, UINT
);
341 #define CreateStatusWindow WINELIB_NAME_AW(CreateStatusWindow)
342 VOID WINAPI
DrawStatusTextA (HDC
, LPCRECT
, LPCSTR
, UINT
);
343 VOID WINAPI
DrawStatusTextW (HDC
, LPCRECT
, LPCWSTR
, UINT
);
344 #define DrawStatusText WINELIB_NAME_AW(DrawStatusText)
345 VOID WINAPI
MenuHelp (UINT
, WPARAM
, LPARAM
, HMENU
,
346 HINSTANCE
, HWND
, UINT
*);
348 typedef struct tagCOLORSCHEME
351 COLORREF clrBtnHighlight
; /* highlight color */
352 COLORREF clrBtnShadow
; /* shadow color */
353 } COLORSCHEME
, *LPCOLORSCHEME
;
355 /**************************************************************************
359 typedef struct tagDRAGLISTINFO
364 } DRAGLISTINFO
, *LPDRAGLISTINFO
;
366 #define DL_BEGINDRAG (WM_USER+133)
367 #define DL_DRAGGING (WM_USER+134)
368 #define DL_DROPPED (WM_USER+135)
369 #define DL_CANCELDRAG (WM_USER+136)
371 #define DL_CURSORSET 0
372 #define DL_STOPCURSOR 1
373 #define DL_COPYCURSOR 2
374 #define DL_MOVECURSOR 3
376 #define DRAGLISTMSGSTRINGA "commctrl_DragListMsg"
377 #if defined(__GNUC__)
378 # define DRAGLISTMSGSTRINGW (const WCHAR []){ 'c','o','m','m','c','t','r','l', \
379 '_','D','r','a','g','L','i','s','t','M','s','g',0 }
380 #elif defined(_MSC_VER)
381 # define DRAGLISTMSGSTRINGW L"commctrl_DragListMsg"
383 static const WCHAR DRAGLISTMSGSTRINGW
[] = { 'c','o','m','m','c','t','r','l',
384 '_','D','r','a','g','L','i','s','t','M','s','g',0 };
386 #define DRAGLISTMSGSTRING WINELIB_NAME_AW(DRAGLISTMSGSTRING)
388 BOOL WINAPI
MakeDragList (HWND
);
389 VOID WINAPI
DrawInsert (HWND
, HWND
, INT
);
390 INT WINAPI
LBItemFromPt (HWND
, POINT
, BOOL
);
395 #define UPDOWN_CLASSA "msctls_updown32"
396 #if defined(__GNUC__)
397 # define UPDOWN_CLASSW (const WCHAR []){ 'm','s','c','t','l','s','_', \
398 'u','p','d','o','w','n','3','2',0 }
399 #elif defined(_MSC_VER)
400 # define UPDOWN_CLASSW L"msctls_updown32"
402 static const WCHAR UPDOWN_CLASSW
[] = { 'm','s','c','t','l','s','_',
403 'u','p','d','o','w','n','3','2',0 };
405 #define UPDOWN_CLASS WINELIB_NAME_AW(UPDOWN_CLASS)
407 typedef struct _UDACCEL
411 } UDACCEL
, *LPUDACCEL
;
413 #define UD_MAXVAL 0x7fff
414 #define UD_MINVAL 0x8001
416 #define UDS_WRAP 0x0001
417 #define UDS_SETBUDDYINT 0x0002
418 #define UDS_ALIGNRIGHT 0x0004
419 #define UDS_ALIGNLEFT 0x0008
420 #define UDS_AUTOBUDDY 0x0010
421 #define UDS_ARROWKEYS 0x0020
422 #define UDS_HORZ 0x0040
423 #define UDS_NOTHOUSANDS 0x0080
424 #define UDS_HOTTRACK 0x0100
426 #define UDN_FIRST (0U-721)
427 #define UDN_LAST (0U-740)
428 #define UDN_DELTAPOS (UDN_FIRST-1)
430 #define UDM_SETRANGE (WM_USER+101)
431 #define UDM_GETRANGE (WM_USER+102)
432 #define UDM_SETPOS (WM_USER+103)
433 #define UDM_GETPOS (WM_USER+104)
434 #define UDM_SETBUDDY (WM_USER+105)
435 #define UDM_GETBUDDY (WM_USER+106)
436 #define UDM_SETACCEL (WM_USER+107)
437 #define UDM_GETACCEL (WM_USER+108)
438 #define UDM_SETBASE (WM_USER+109)
439 #define UDM_GETBASE (WM_USER+110)
440 #define UDM_SETRANGE32 (WM_USER+111)
441 #define UDM_GETRANGE32 (WM_USER+112)
442 #define UDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
443 #define UDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
444 #define UDM_SETPOS32 (WM_USER+113)
445 #define UDM_GETPOS32 (WM_USER+114)
448 #define NMUPDOWN NM_UPDOWN
449 #define LPNMUPDOWN LPNM_UPDOWN
451 typedef struct tagNM_UPDOWN
456 } NM_UPDOWN
, *LPNM_UPDOWN
;
458 HWND WINAPI
CreateUpDownControl (DWORD
, INT
, INT
, INT
, INT
,
459 HWND
, INT
, HINSTANCE
, HWND
,
464 #define PROGRESS_CLASSA "msctls_progress32"
465 #if defined(__GNUC__)
466 # define PROGRESS_CLASSW (const WCHAR []){ 'm','s','c','t','l','s','_', \
467 'p','r','o','g','r','e','s','s','3','2',0 }
468 #elif defined(_MSC_VER)
469 # define PROGRESS_CLASSW L"msctls_progress32"
471 static const WCHAR PROGRESS_CLASSW
[] = { 'm','s','c','t','l','s','_',
472 'p','r','o','g','r','e','s','s','3','2',0 };
474 #define PROGRESS_CLASS WINELIB_NAME_AW(PROGRESS_CLASS)
476 #define PBM_SETRANGE (WM_USER+1)
477 #define PBM_SETPOS (WM_USER+2)
478 #define PBM_DELTAPOS (WM_USER+3)
479 #define PBM_SETSTEP (WM_USER+4)
480 #define PBM_STEPIT (WM_USER+5)
481 #define PBM_SETRANGE32 (WM_USER+6)
482 #define PBM_GETRANGE (WM_USER+7)
483 #define PBM_GETPOS (WM_USER+8)
484 #define PBM_SETBARCOLOR (WM_USER+9)
485 #define PBM_SETMARQUEE (WM_USER+10)
486 #define PBM_GETSTEP (WM_USER+13)
487 #define PBM_GETBKCOLOR (WM_USER+14)
488 #define PBM_GETBARCOLOR (WM_USER+15)
489 #define PBM_SETSTATE (WM_USER+16)
490 #define PBM_GETSTATE (WM_USER+17)
491 #define PBM_SETBKCOLOR CCM_SETBKCOLOR
493 #define PBS_SMOOTH 0x01
494 #define PBS_VERTICAL 0x04
495 #define PBS_MARQUEE 0x08
496 #define PBS_SMOOTHREVERSE 0x10
498 #define PBST_NORMAL 1
500 #define PBST_PAUSED 3
506 } PBRANGE
, *PPBRANGE
;
512 typedef struct _IMAGELIST
*HIMAGELIST
;
514 #define CLR_NONE 0xFFFFFFFF
515 #define CLR_DEFAULT 0xFF000000
516 #define CLR_HILIGHT CLR_DEFAULT
518 #define ILC_MASK 0x0001
519 #define ILC_COLOR 0x0000
520 #define ILC_COLORDDB 0x00FE
521 #define ILC_COLOR4 0x0004
522 #define ILC_COLOR8 0x0008
523 #define ILC_COLOR16 0x0010
524 #define ILC_COLOR24 0x0018
525 #define ILC_COLOR32 0x0020
526 #define ILC_PALETTE 0x0800 /* no longer supported by M$ */
527 #define ILC_MIRROR 0x2000
528 #define ILC_PERITEMMIRROR 0x8000
530 #define ILD_NORMAL 0x0000
531 #define ILD_TRANSPARENT 0x0001
532 #define ILD_BLEND25 0x0002
533 #define ILD_BLEND50 0x0004
534 #define ILD_MASK 0x0010
535 #define ILD_IMAGE 0x0020
536 #define ILD_ROP 0x0040
537 #define ILD_OVERLAYMASK 0x0F00
538 #define ILD_PRESERVEALPHA 0x1000
539 #define ILD_SCALE 0x2000
540 #define ILD_DPISCALE 0x4000
541 #define ILD_ASYNC 0x8000
543 #define ILD_SELECTED ILD_BLEND50
544 #define ILD_FOCUS ILD_BLEND25
545 #define ILD_BLEND ILD_BLEND50
547 #define INDEXTOOVERLAYMASK(i) ((i)<<8)
548 #define INDEXTOSTATEIMAGEMASK(i) ((i)<<12)
550 #define ILCF_MOVE (0x00000000)
551 #define ILCF_SWAP (0x00000001)
553 #define ILGT_NORMAL 0x0000
554 #define ILGT_ASYNC 0x0001
556 #define ILS_NORMAL 0x0000
557 #define ILS_GLOW 0x0001
558 #define ILS_SHADOW 0x0002
559 #define ILS_SATURATE 0x0004
560 #define ILS_ALPHA 0x0008
562 typedef struct _IMAGEINFO
569 } IMAGEINFO
, *LPIMAGEINFO
;
572 typedef struct _IMAGELISTDRAWPARAMS
582 INT xBitmap
; /* x offset from the upperleft of bitmap */
583 INT yBitmap
; /* y offset from the upperleft of bitmap */
591 } IMAGELISTDRAWPARAMS
, *LPIMAGELISTDRAWPARAMS
;
593 #define IMAGELISTDRAWPARAMS_V3_SIZE CCSIZEOF_STRUCT(IMAGELISTDRAWPARAMS, dwRop)
595 HRESULT WINAPI
HIMAGELIST_QueryInterface(HIMAGELIST
,REFIID
,void **);
596 INT WINAPI
ImageList_Add(HIMAGELIST
,HBITMAP
,HBITMAP
);
597 INT WINAPI
ImageList_AddMasked(HIMAGELIST
,HBITMAP
,COLORREF
);
598 BOOL WINAPI
ImageList_BeginDrag(HIMAGELIST
,INT
,INT
,INT
);
599 BOOL WINAPI
ImageList_Copy(HIMAGELIST
,INT
,HIMAGELIST
,INT
,UINT
);
600 HIMAGELIST WINAPI
ImageList_Create(INT
,INT
,UINT
,INT
,INT
);
601 BOOL WINAPI
ImageList_Destroy(HIMAGELIST
);
602 BOOL WINAPI
ImageList_DragEnter(HWND
,INT
,INT
);
603 BOOL WINAPI
ImageList_DragLeave(HWND
);
604 BOOL WINAPI
ImageList_DragMove(INT
,INT
);
605 BOOL WINAPI
ImageList_DragShowNolock (BOOL
);
606 BOOL WINAPI
ImageList_Draw(HIMAGELIST
,INT
,HDC
,INT
,INT
,UINT
);
607 BOOL WINAPI
ImageList_DrawEx(HIMAGELIST
,INT
,HDC
,INT
,INT
,INT
,
608 INT
,COLORREF
,COLORREF
,UINT
);
609 BOOL WINAPI
ImageList_DrawIndirect(IMAGELISTDRAWPARAMS
*);
610 HIMAGELIST WINAPI
ImageList_Duplicate(HIMAGELIST
);
611 VOID WINAPI
ImageList_EndDrag(VOID
);
612 COLORREF WINAPI
ImageList_GetBkColor(HIMAGELIST
);
613 HIMAGELIST WINAPI
ImageList_GetDragImage(POINT
*,POINT
*);
614 HICON WINAPI
ImageList_GetIcon(HIMAGELIST
,INT
,UINT
);
615 BOOL WINAPI
ImageList_GetIconSize(HIMAGELIST
,INT
*,INT
*);
616 INT WINAPI
ImageList_GetImageCount(HIMAGELIST
);
617 BOOL WINAPI
ImageList_GetImageInfo(HIMAGELIST
,INT
,IMAGEINFO
*);
618 BOOL WINAPI
ImageList_GetImageRect(HIMAGELIST
,INT
,LPRECT
);
619 HIMAGELIST WINAPI
ImageList_LoadImageA(HINSTANCE
,LPCSTR
,INT
,INT
,
621 HIMAGELIST WINAPI
ImageList_LoadImageW(HINSTANCE
,LPCWSTR
,INT
,INT
,
623 #define ImageList_LoadImage WINELIB_NAME_AW(ImageList_LoadImage)
624 HIMAGELIST WINAPI
ImageList_Merge(HIMAGELIST
,INT
,HIMAGELIST
,INT
,INT
,INT
);
625 BOOL WINAPI
ImageList_Remove(HIMAGELIST
,INT
);
626 BOOL WINAPI
ImageList_Replace(HIMAGELIST
,INT
,HBITMAP
,HBITMAP
);
627 INT WINAPI
ImageList_ReplaceIcon(HIMAGELIST
,INT
,HICON
);
628 COLORREF WINAPI
ImageList_SetBkColor(HIMAGELIST
,COLORREF
);
629 BOOL WINAPI
ImageList_SetDragCursorImage(HIMAGELIST
,INT
,INT
,INT
);
631 BOOL WINAPI
ImageList_SetIconSize(HIMAGELIST
,INT
,INT
);
632 BOOL WINAPI
ImageList_SetImageCount(HIMAGELIST
,UINT
);
633 BOOL WINAPI
ImageList_SetOverlayImage(HIMAGELIST
,INT
,INT
);
635 #ifdef __IStream_INTERFACE_DEFINED__
636 HIMAGELIST WINAPI
ImageList_Read(LPSTREAM
);
637 BOOL WINAPI
ImageList_Write(HIMAGELIST
, LPSTREAM
);
640 #define ImageList_AddIcon(himl,hicon) ImageList_ReplaceIcon(himl,-1,hicon)
641 #define ImageList_ExtractIcon(hi,himl,i) ImageList_GetIcon(himl,i,0)
642 #define ImageList_LoadBitmap(hi,lpbmp,cx,cGrow,crMask) \
643 ImageList_LoadImage(hi,lpbmp,cx,cGrow,crMask,IMAGE_BITMAP,0)
644 #define ImageList_RemoveAll(himl) ImageList_Remove(himl,-1)
647 #ifndef WM_MOUSEHOVER
648 #define WM_MOUSEHOVER 0x02A1
649 #define WM_MOUSELEAVE 0x02A3
654 #define TME_HOVER 0x00000001
655 #define TME_LEAVE 0x00000002
656 #define TME_NONCLIENT 0x00000010
657 #define TME_QUERY 0x40000000
658 #define TME_CANCEL 0x80000000
661 #define HOVER_DEFAULT 0xFFFFFFFF
663 typedef struct tagTRACKMOUSEEVENT
{
668 } TRACKMOUSEEVENT
, *LPTRACKMOUSEEVENT
;
672 BOOL WINAPI
_TrackMouseEvent(LPTRACKMOUSEEVENT lpEventTrack
);
674 /* Flat Scrollbar control */
676 #define FLATSB_CLASSA "flatsb_class32"
677 #if defined(__GNUC__)
678 # define FLATSB_CLASSW (const WCHAR []){ 'f','l','a','t','s','b','_', \
679 'c','l','a','s','s','3','2',0 }
680 #elif defined(_MSC_VER)
681 # define FLATSB_CLASSW L"flatsb_class32"
683 static const WCHAR FLATSB_CLASSW
[] = { 'f','l','a','t','s','b','_',
684 'c','l','a','s','s','3','2',0 };
686 #define FLATSB_CLASS WINELIB_NAME_AW(FLATSB_CLASS)
688 #define WSB_PROP_CYVSCROLL 0x00000001L
689 #define WSB_PROP_CXHSCROLL 0x00000002L
690 #define WSB_PROP_CYHSCROLL 0x00000004L
691 #define WSB_PROP_CXVSCROLL 0x00000008L
692 #define WSB_PROP_CXHTHUMB 0x00000010L
693 #define WSB_PROP_CYVTHUMB 0x00000020L
694 #define WSB_PROP_VBKGCOLOR 0x00000040L
695 #define WSB_PROP_HBKGCOLOR 0x00000080L
696 #define WSB_PROP_VSTYLE 0x00000100L
697 #define WSB_PROP_HSTYLE 0x00000200L
698 #define WSB_PROP_WINSTYLE 0x00000400L
699 #define WSB_PROP_PALETTE 0x00000800L
700 #define WSB_PROP_MASK 0x00000FFFL
702 #define FSB_REGULAR_MODE 0
703 #define FSB_ENCARTA_MODE 1
704 #define FSB_FLAT_MODE 2
707 BOOL WINAPI
FlatSB_EnableScrollBar(HWND
, INT
, UINT
);
708 BOOL WINAPI
FlatSB_ShowScrollBar(HWND
, INT
, BOOL
);
709 BOOL WINAPI
FlatSB_GetScrollRange(HWND
, INT
, LPINT
, LPINT
);
710 BOOL WINAPI
FlatSB_GetScrollInfo(HWND
, INT
, LPSCROLLINFO
);
711 INT WINAPI
FlatSB_GetScrollPos(HWND
, INT
);
712 BOOL WINAPI
FlatSB_GetScrollProp(HWND
, INT
, LPINT
);
713 INT WINAPI
FlatSB_SetScrollPos(HWND
, INT
, INT
, BOOL
);
714 INT WINAPI
FlatSB_SetScrollInfo(HWND
, INT
, LPSCROLLINFO
, BOOL
);
715 INT WINAPI
FlatSB_SetScrollRange(HWND
, INT
, INT
, INT
, BOOL
);
716 BOOL WINAPI
FlatSB_SetScrollProp(HWND
, UINT
, INT
, BOOL
);
717 BOOL WINAPI
InitializeFlatSB(HWND
);
718 HRESULT WINAPI
UninitializeFlatSB(HWND
);
720 /* Subclassing stuff */
721 typedef LRESULT (CALLBACK
*SUBCLASSPROC
)(HWND
, UINT
, WPARAM
, LPARAM
, UINT_PTR
, DWORD_PTR
);
722 BOOL WINAPI
SetWindowSubclass(HWND
, SUBCLASSPROC
, UINT_PTR
, DWORD_PTR
);
723 BOOL WINAPI
GetWindowSubclass(HWND
, SUBCLASSPROC
, UINT_PTR
, DWORD_PTR
*);
724 BOOL WINAPI
RemoveWindowSubclass(HWND
, SUBCLASSPROC
, UINT_PTR
);
725 LRESULT WINAPI
DefSubclassProc(HWND
, UINT
, WPARAM
, LPARAM
);
727 int WINAPI
DrawShadowText(HDC
, LPCWSTR
, UINT
, RECT
*, DWORD
, COLORREF
, COLORREF
, int, int);
731 #define WC_HEADERA "SysHeader32"
732 #if defined(__GNUC__)
733 # define WC_HEADERW (const WCHAR []){ 'S','y','s','H','e','a','d','e','r','3','2',0 }
734 #elif defined(_MSC_VER)
735 # define WC_HEADERW L"SysHeader32"
737 static const WCHAR WC_HEADERW
[] = { 'S','y','s','H','e','a','d','e','r','3','2',0 };
739 #define WC_HEADER WINELIB_NAME_AW(WC_HEADER)
741 #define HDS_HORZ 0x0000
742 #define HDS_BUTTONS 0x0002
743 #define HDS_HOTTRACK 0x0004
744 #define HDS_HIDDEN 0x0008
745 #define HDS_DRAGDROP 0x0040
746 #define HDS_FULLDRAG 0x0080
747 #define HDS_FILTERBAR 0x0100
748 #define HDS_FLAT 0x0200
749 #define HDS_CHECKBOXES 0x0400
750 #define HDS_NOSIZING 0x0800
751 #define HDS_OVERFLOW 0x1000
753 #define HDI_WIDTH 0x0001
754 #define HDI_HEIGHT HDI_WIDTH
755 #define HDI_TEXT 0x0002
756 #define HDI_FORMAT 0x0004
757 #define HDI_LPARAM 0x0008
758 #define HDI_BITMAP 0x0010
759 #define HDI_IMAGE 0x0020
760 #define HDI_DI_SETITEM 0x0040
761 #define HDI_ORDER 0x0080
762 #define HDI_FILTER 0x0100
763 #define HDI_STATE 0x0200
765 #define HDIS_FOCUSED 0x00000001
767 #define HDF_LEFT 0x0000
768 #define HDF_RIGHT 0x0001
769 #define HDF_CENTER 0x0002
770 #define HDF_JUSTIFYMASK 0x0003
771 #define HDF_RTLREADING 0x0004
772 #define HDF_CHECKBOX 0x0040
773 #define HDF_CHECKED 0x0080
774 #define HDF_FIXEDWIDTH 0x0100
775 #define HDF_SORTDOWN 0x0200
776 #define HDF_SORTUP 0x0400
777 #define HDF_IMAGE 0x0800
778 #define HDF_BITMAP_ON_RIGHT 0x1000
779 #define HDF_BITMAP 0x2000
780 #define HDF_STRING 0x4000
781 #define HDF_OWNERDRAW 0x8000
782 #define HDF_SPLITBUTTON 0x1000000
784 #define HHT_NOWHERE 0x0001
785 #define HHT_ONHEADER 0x0002
786 #define HHT_ONDIVIDER 0x0004
787 #define HHT_ONDIVOPEN 0x0008
788 #define HHT_ONFILTER 0x0010
789 #define HHT_ONFILTERBUTTON 0x0020
790 #define HHT_ABOVE 0x0100
791 #define HHT_BELOW 0x0200
792 #define HHT_TORIGHT 0x0400
793 #define HHT_TOLEFT 0x0800
794 #define HHT_ONITEMSTATEICON 0x1000
795 #define HHT_ONDROPDOWN 0x2000
796 #define HHT_ONOVERFLOW 0x4000
798 #define HDM_FIRST 0x1200
799 #define HDM_GETITEMCOUNT (HDM_FIRST+0)
800 #define HDM_INSERTITEMA (HDM_FIRST+1)
801 #define HDM_INSERTITEMW (HDM_FIRST+10)
802 #define HDM_INSERTITEM WINELIB_NAME_AW(HDM_INSERTITEM)
803 #define HDM_DELETEITEM (HDM_FIRST+2)
804 #define HDM_GETITEMA (HDM_FIRST+3)
805 #define HDM_GETITEMW (HDM_FIRST+11)
806 #define HDM_GETITEM WINELIB_NAME_AW(HDM_GETITEM)
807 #define HDM_SETITEMA (HDM_FIRST+4)
808 #define HDM_SETITEMW (HDM_FIRST+12)
809 #define HDM_SETITEM WINELIB_NAME_AW(HDM_SETITEM)
810 #define HDM_LAYOUT (HDM_FIRST+5)
811 #define HDM_HITTEST (HDM_FIRST+6)
812 #define HDM_GETITEMRECT (HDM_FIRST+7)
813 #define HDM_SETIMAGELIST (HDM_FIRST+8)
814 #define HDM_GETIMAGELIST (HDM_FIRST+9)
816 #define HDM_ORDERTOINDEX (HDM_FIRST+15)
817 #define HDM_CREATEDRAGIMAGE (HDM_FIRST+16)
818 #define HDM_GETORDERARRAY (HDM_FIRST+17)
819 #define HDM_SETORDERARRAY (HDM_FIRST+18)
820 #define HDM_SETHOTDIVIDER (HDM_FIRST+19)
821 #define HDM_SETBITMAPMARGIN (HDM_FIRST+20)
822 #define HDM_GETBITMAPMARGIN (HDM_FIRST+21)
823 #define HDM_SETFILTERCHANGETIMEOUT (HDM_FIRST+22)
824 #define HDM_EDITFILTER (HDM_FIRST+23)
825 #define HDM_CLEARFILTER (HDM_FIRST+24)
826 #define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
827 #define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
829 #define HDN_FIRST (0U-300U)
830 #define HDN_LAST (0U-399U)
831 #define HDN_ITEMCHANGINGA (HDN_FIRST-0)
832 #define HDN_ITEMCHANGINGW (HDN_FIRST-20)
833 #define HDN_ITEMCHANGING WINELIB_NAME_AW(HDN_ITEMCHANGING)
834 #define HDN_ITEMCHANGEDA (HDN_FIRST-1)
835 #define HDN_ITEMCHANGEDW (HDN_FIRST-21)
836 #define HDN_ITEMCHANGED WINELIB_NAME_AW(HDN_ITEMCHANGED)
837 #define HDN_ITEMCLICKA (HDN_FIRST-2)
838 #define HDN_ITEMCLICKW (HDN_FIRST-22)
839 #define HDN_ITEMCLICK WINELIB_NAME_AW(HDN_ITEMCLICK)
840 #define HDN_ITEMDBLCLICKA (HDN_FIRST-3)
841 #define HDN_ITEMDBLCLICKW (HDN_FIRST-23)
842 #define HDN_ITEMDBLCLICK WINELIB_NAME_AW(HDN_ITEMDBLCLICK)
843 #define HDN_DIVIDERDBLCLICKA (HDN_FIRST-5)
844 #define HDN_DIVIDERDBLCLICKW (HDN_FIRST-25)
845 #define HDN_DIVIDERDBLCLICK WINELIB_NAME_AW(HDN_DIVIDERDBLCLICK)
846 #define HDN_BEGINTRACKA (HDN_FIRST-6)
847 #define HDN_BEGINTRACKW (HDN_FIRST-26)
848 #define HDN_BEGINTRACK WINELIB_NAME_AW(HDN_BEGINTRACK)
849 #define HDN_ENDTRACKA (HDN_FIRST-7)
850 #define HDN_ENDTRACKW (HDN_FIRST-27)
851 #define HDN_ENDTRACK WINELIB_NAME_AW(HDN_ENDTRACK)
852 #define HDN_TRACKA (HDN_FIRST-8)
853 #define HDN_TRACKW (HDN_FIRST-28)
854 #define HDN_TRACK WINELIB_NAME_AW(HDN_TRACK)
855 #define HDN_GETDISPINFOA (HDN_FIRST-9)
856 #define HDN_GETDISPINFOW (HDN_FIRST-29)
857 #define HDN_GETDISPINFO WINELIB_NAME_AW(HDN_GETDISPINFO)
858 #define HDN_BEGINDRAG (HDN_FIRST-10)
859 #define HDN_ENDDRAG (HDN_FIRST-11)
860 #define HDN_FILTERCHANGE (HDN_FIRST-12)
861 #define HDN_FILTERBTNCLICK (HDN_FIRST-13)
862 #define HDN_BEGINFILTEREDIT (HDN_FIRST-14)
863 #define HDN_ENDFILTEREDIT (HDN_FIRST-15)
864 #define HDN_ITEMSTATEICONCLICK (HDN_FIRST-16)
865 #define HDN_ITEMKEYDOWN (HDN_FIRST-17)
867 typedef struct _HD_LAYOUT
871 } HDLAYOUT
, *LPHDLAYOUT
;
873 #define HD_LAYOUT HDLAYOUT
875 typedef struct _HD_ITEMA
884 /* (_WIN32_IE >= 0x0300) */
887 /* (_WIN32_IE >= 0x0500) */
890 /* (_WIN32_WINNT >= 0x0600) */
892 } HDITEMA
, *LPHDITEMA
;
894 typedef struct _HD_ITEMW
903 /* (_WIN32_IE >= 0x0300) */
906 /* (_WIN32_IE >= 0x0500) */
909 /* (_WIN32_WINNT >= 0x0600) */
911 } HDITEMW
, *LPHDITEMW
;
913 #define HDITEM WINELIB_NAME_AW(HDITEM)
914 #define LPHDITEM WINELIB_NAME_AW(LPHDITEM)
915 #define HD_ITEM HDITEM
917 #define HDITEM_V1_SIZEA CCSIZEOF_STRUCT(HDITEMA, lParam)
918 #define HDITEM_V1_SIZEW CCSIZEOF_STRUCT(HDITEMW, lParam)
919 #define HDITEM_V1_SIZE WINELIB_NAME_AW(HDITEM_V1_SIZE)
921 #define HDFT_ISSTRING 0x0000
922 #define HDFT_ISNUMBER 0x0001
923 #define HDFT_HASNOVALUE 0x8000
925 typedef struct _HD_TEXTFILTERA
929 } HD_TEXTFILTERA
, *LPHD_TEXTFILTERA
;
931 typedef struct _HD_TEXTFILTERW
935 } HD_TEXTFILTERW
, *LPHD_TEXTFILTERW
;
937 #define HD_TEXTFILTER WINELIB_NAME_AW(HD_TEXTFILTER)
938 #define HDTEXTFILTER WINELIB_NAME_AW(HD_TEXTFILTER)
939 #define LPHD_TEXTFILTER WINELIB_NAME_AW(LPHD_TEXTFILTER)
940 #define LPHDTEXTFILTER WINELIB_NAME_AW(LPHD_TEXTFILTER)
942 typedef struct _HD_HITTESTINFO
947 } HDHITTESTINFO
, *LPHDHITTESTINFO
;
949 #define HD_HITTESTINFO HDHITTESTINFO
951 typedef struct tagNMHEADERA
957 } NMHEADERA
, *LPNMHEADERA
;
959 typedef struct tagNMHEADERW
965 } NMHEADERW
, *LPNMHEADERW
;
967 #define NMHEADER WINELIB_NAME_AW(NMHEADER)
968 #define LPNMHEADER WINELIB_NAME_AW(LPNMHEADER)
969 #define HD_NOTIFY NMHEADER
971 typedef struct tagNMHDDISPINFOA
980 } NMHDDISPINFOA
, *LPNMHDDISPINFOA
;
982 typedef struct tagNMHDDISPINFOW
991 } NMHDDISPINFOW
, *LPNMHDDISPINFOW
;
993 #define NMHDDISPINFO WINELIB_NAME_AW(NMHDDISPINFO)
994 #define LPNMHDDISPINFO WINELIB_NAME_AW(LPNMHDDISPINFO)
996 typedef struct tagNMHDFILTERBTNCLICK
1001 } NMHDFILTERBTNCLICK
, *LPNMHDFILTERBTNCLICK
;
1003 #define Header_GetItemCount(hwndHD) \
1004 (INT)SNDMSG((hwndHD),HDM_GETITEMCOUNT,0,0L)
1005 #define Header_InsertItemA(hwndHD,i,phdi) \
1006 (INT)SNDMSGA((hwndHD),HDM_INSERTITEMA,(WPARAM)(INT)(i),(LPARAM)(const HDITEMA*)(phdi))
1007 #define Header_InsertItemW(hwndHD,i,phdi) \
1008 (INT)SNDMSGW((hwndHD),HDM_INSERTITEMW,(WPARAM)(INT)(i),(LPARAM)(const HDITEMW*)(phdi))
1009 #define Header_InsertItem WINELIB_NAME_AW(Header_InsertItem)
1010 #define Header_DeleteItem(hwndHD,i) \
1011 (BOOL)SNDMSG((hwndHD),HDM_DELETEITEM,(WPARAM)(INT)(i),0L)
1012 #define Header_GetItemA(hwndHD,i,phdi) \
1013 (BOOL)SNDMSGA((hwndHD),HDM_GETITEMA,(WPARAM)(INT)(i),(LPARAM)(HDITEMA*)(phdi))
1014 #define Header_GetItemW(hwndHD,i,phdi) \
1015 (BOOL)SNDMSGW((hwndHD),HDM_GETITEMW,(WPARAM)(INT)(i),(LPARAM)(HDITEMW*)(phdi))
1016 #define Header_GetItem WINELIB_NAME_AW(Header_GetItem)
1017 #define Header_SetItemA(hwndHD,i,phdi) \
1018 (BOOL)SNDMSGA((hwndHD),HDM_SETITEMA,(WPARAM)(INT)(i),(LPARAM)(const HDITEMA*)(phdi))
1019 #define Header_SetItemW(hwndHD,i,phdi) \
1020 (BOOL)SNDMSGW((hwndHD),HDM_SETITEMW,(WPARAM)(INT)(i),(LPARAM)(const HDITEMW*)(phdi))
1021 #define Header_SetItem WINELIB_NAME_AW(Header_SetItem)
1022 #define Header_Layout(hwndHD,playout) \
1023 (BOOL)SNDMSG((hwndHD),HDM_LAYOUT,0,(LPARAM)(LPHDLAYOUT)(playout))
1024 #define Header_GetItemRect(hwnd,iItem,lprc) \
1025 (BOOL)SNDMSG((hwnd),HDM_GETITEMRECT,(WPARAM)iItem,(LPARAM)lprc)
1026 #define Header_SetImageList(hwnd,himl) \
1027 (HIMAGELIST)SNDMSG((hwnd),HDM_SETIMAGELIST,0,(LPARAM)himl)
1028 #define Header_GetImageList(hwnd) \
1029 (HIMAGELIST)SNDMSG((hwnd),HDM_GETIMAGELIST,0,0)
1030 #define Header_OrderToIndex(hwnd,i) \
1031 (INT)SNDMSG((hwnd),HDM_ORDERTOINDEX,(WPARAM)i,0)
1032 #define Header_CreateDragImage(hwnd,i) \
1033 (HIMAGELIST)SNDMSG((hwnd),HDM_CREATEDRAGIMAGE,(WPARAM)i,0)
1034 #define Header_GetOrderArray(hwnd,iCount,lpi) \
1035 (BOOL)SNDMSG((hwnd),HDM_GETORDERARRAY,(WPARAM)iCount,(LPARAM)lpi)
1036 #define Header_SetOrderArray(hwnd,iCount,lpi) \
1037 (BOOL)SNDMSG((hwnd),HDM_SETORDERARRAY,(WPARAM)iCount,(LPARAM)lpi)
1038 #define Header_SetHotDivider(hwnd,fPos,dw) \
1039 (INT)SNDMSG((hwnd),HDM_SETHOTDIVIDER,(WPARAM)fPos,(LPARAM)dw)
1040 #define Header_SetUnicodeFormat(hwnd,fUnicode) \
1041 (BOOL)SNDMSG((hwnd),HDM_SETUNICODEFORMAT,(WPARAM)(fUnicode),0)
1042 #define Header_GetUnicodeFormat(hwnd) \
1043 (BOOL)SNDMSG((hwnd),HDM_GETUNICODEFORMAT,0,0)
1045 /* Win32 5.1 Button Theme */
1046 #define WC_BUTTONA "Button"
1047 #if defined(__GNUC__)
1048 # define WC_BUTTONW (const WCHAR []){ 'B','u','t','t','o','n',0 }
1049 #elif defined(_MSC_VER)
1050 # define WC_BUTTONW L"Button"
1052 static const WCHAR WC_BUTTONW
[] = { 'B','u','t','t','o','n',0 };
1054 #define WC_BUTTON WINELIB_NAME_AW(WC_BUTTON)
1056 #define BCN_FIRST (0U-1250U)
1057 #define BCN_LAST (0U-1350U)
1059 #define BCN_HOTITEMCHANGE (BCN_FIRST + 0x0001)
1061 typedef struct tagNMBCHOTITEM
1065 } NMBCHOTITEM
, *LPNMBCHOTITEM
;
1067 #define BST_HOT 0x0200
1069 /* Button control styles for _WIN32_WINNT >= 0x600 */
1070 #define BS_SPLITBUTTON 0x0000000C
1071 #define BS_DEFSPLITBUTTON 0x0000000D
1072 #define BS_COMMANDLINK 0x0000000E
1073 #define BS_DEFCOMMANDLINK 0x0000000F
1077 #define TOOLBARCLASSNAMEA "ToolbarWindow32"
1078 #if defined(__GNUC__)
1079 # define TOOLBARCLASSNAMEW (const WCHAR []){ 'T','o','o','l','b','a','r', \
1080 'W','i','n','d','o','w','3','2',0 }
1081 #elif defined(_MSC_VER)
1082 # define TOOLBARCLASSNAMEW L"ToolbarWindow32"
1084 static const WCHAR TOOLBARCLASSNAMEW
[] = { 'T','o','o','l','b','a','r',
1085 'W','i','n','d','o','w','3','2',0 };
1087 #define TOOLBARCLASSNAME WINELIB_NAME_AW(TOOLBARCLASSNAME)
1089 #define CMB_MASKED 0x02
1091 #define TBSTATE_CHECKED 0x01
1092 #define TBSTATE_PRESSED 0x02
1093 #define TBSTATE_ENABLED 0x04
1094 #define TBSTATE_HIDDEN 0x08
1095 #define TBSTATE_INDETERMINATE 0x10
1096 #define TBSTATE_WRAP 0x20
1097 #define TBSTATE_ELLIPSES 0x40
1098 #define TBSTATE_MARKED 0x80
1101 /* as of _WIN32_IE >= 0x0500 the following symbols are obsolete,
1102 * "everyone" should use the BTNS_... stuff below
1104 #define TBSTYLE_BUTTON 0x00
1105 #define TBSTYLE_SEP 0x01
1106 #define TBSTYLE_CHECK 0x02
1107 #define TBSTYLE_GROUP 0x04
1108 #define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK)
1109 #define TBSTYLE_DROPDOWN 0x08
1110 #define TBSTYLE_AUTOSIZE 0x10
1111 #define TBSTYLE_NOPREFIX 0x20
1112 #define BTNS_BUTTON TBSTYLE_BUTTON
1113 #define BTNS_SEP TBSTYLE_SEP
1114 #define BTNS_CHECK TBSTYLE_CHECK
1115 #define BTNS_GROUP TBSTYLE_GROUP
1116 #define BTNS_CHECKGROUP TBSTYLE_CHECKGROUP
1117 #define BTNS_DROPDOWN TBSTYLE_DROPDOWN
1118 #define BTNS_AUTOSIZE TBSTYLE_AUTOSIZE
1119 #define BTNS_NOPREFIX TBSTYLE_NOPREFIX
1120 #define BTNS_SHOWTEXT 0x40 /* ignored unless TBSTYLE_EX_MIXEDB set */
1121 #define BTNS_WHOLEDROPDOWN 0x80 /* draw dropdown arrow, but without split arrow section */
1123 #define TBSTYLE_TOOLTIPS 0x0100
1124 #define TBSTYLE_WRAPABLE 0x0200
1125 #define TBSTYLE_ALTDRAG 0x0400
1126 #define TBSTYLE_FLAT 0x0800
1127 #define TBSTYLE_LIST 0x1000
1128 #define TBSTYLE_CUSTOMERASE 0x2000
1129 #define TBSTYLE_REGISTERDROP 0x4000
1130 #define TBSTYLE_TRANSPARENT 0x8000
1131 #define TBSTYLE_EX_DRAWDDARROWS 0x00000001
1132 #define TBSTYLE_EX_UNDOC1 0x00000004 /* similar to TBSTYLE_WRAPABLE */
1133 #define TBSTYLE_EX_MIXEDBUTTONS 0x00000008
1134 #define TBSTYLE_EX_HIDECLIPPEDBUTTONS 0x00000010 /* don't show partially obscured buttons */
1135 #define TBSTYLE_EX_DOUBLEBUFFER 0x00000080 /* Double Buffer the toolbar */
1137 #define TBIF_IMAGE 0x00000001
1138 #define TBIF_TEXT 0x00000002
1139 #define TBIF_STATE 0x00000004
1140 #define TBIF_STYLE 0x00000008
1141 #define TBIF_LPARAM 0x00000010
1142 #define TBIF_COMMAND 0x00000020
1143 #define TBIF_SIZE 0x00000040
1144 #define TBIF_BYINDEX 0x80000000
1146 #define TBBF_LARGE 0x0001
1148 #define TB_ENABLEBUTTON (WM_USER+1)
1149 #define TB_CHECKBUTTON (WM_USER+2)
1150 #define TB_PRESSBUTTON (WM_USER+3)
1151 #define TB_HIDEBUTTON (WM_USER+4)
1152 #define TB_INDETERMINATE (WM_USER+5)
1153 #define TB_MARKBUTTON (WM_USER+6)
1154 #define TB_ISBUTTONENABLED (WM_USER+9)
1155 #define TB_ISBUTTONCHECKED (WM_USER+10)
1156 #define TB_ISBUTTONPRESSED (WM_USER+11)
1157 #define TB_ISBUTTONHIDDEN (WM_USER+12)
1158 #define TB_ISBUTTONINDETERMINATE (WM_USER+13)
1159 #define TB_ISBUTTONHIGHLIGHTED (WM_USER+14)
1160 #define TB_SETSTATE (WM_USER+17)
1161 #define TB_GETSTATE (WM_USER+18)
1162 #define TB_ADDBITMAP (WM_USER+19)
1163 #define TB_ADDBUTTONSA (WM_USER+20)
1164 #define TB_ADDBUTTONSW (WM_USER+68)
1165 #define TB_ADDBUTTONS WINELIB_NAME_AW(TB_ADDBUTTONS)
1166 #define TB_HITTEST (WM_USER+69)
1167 #define TB_INSERTBUTTONA (WM_USER+21)
1168 #define TB_INSERTBUTTONW (WM_USER+67)
1169 #define TB_INSERTBUTTON WINELIB_NAME_AW(TB_INSERTBUTTON)
1170 #define TB_DELETEBUTTON (WM_USER+22)
1171 #define TB_GETBUTTON (WM_USER+23)
1172 #define TB_BUTTONCOUNT (WM_USER+24)
1173 #define TB_COMMANDTOINDEX (WM_USER+25)
1174 #define TB_SAVERESTOREA (WM_USER+26)
1175 #define TB_SAVERESTOREW (WM_USER+76)
1176 #define TB_SAVERESTORE WINELIB_NAME_AW(TB_SAVERESTORE)
1177 #define TB_CUSTOMIZE (WM_USER+27)
1178 #define TB_ADDSTRINGA (WM_USER+28)
1179 #define TB_ADDSTRINGW (WM_USER+77)
1180 #define TB_ADDSTRING WINELIB_NAME_AW(TB_ADDSTRING)
1181 #define TB_GETITEMRECT (WM_USER+29)
1182 #define TB_BUTTONSTRUCTSIZE (WM_USER+30)
1183 #define TB_SETBUTTONSIZE (WM_USER+31)
1184 #define TB_SETBITMAPSIZE (WM_USER+32)
1185 #define TB_AUTOSIZE (WM_USER+33)
1186 #define TB_GETTOOLTIPS (WM_USER+35)
1187 #define TB_SETTOOLTIPS (WM_USER+36)
1188 #define TB_SETPARENT (WM_USER+37)
1189 #define TB_SETROWS (WM_USER+39)
1190 #define TB_GETROWS (WM_USER+40)
1191 #define TB_GETBITMAPFLAGS (WM_USER+41)
1192 #define TB_SETCMDID (WM_USER+42)
1193 #define TB_CHANGEBITMAP (WM_USER+43)
1194 #define TB_GETBITMAP (WM_USER+44)
1195 #define TB_GETBUTTONTEXTA (WM_USER+45)
1196 #define TB_GETBUTTONTEXTW (WM_USER+75)
1197 #define TB_GETBUTTONTEXT WINELIB_NAME_AW(TB_GETBUTTONTEXT)
1198 #define TB_REPLACEBITMAP (WM_USER+46)
1199 #define TB_SETINDENT (WM_USER+47)
1200 #define TB_SETIMAGELIST (WM_USER+48)
1201 #define TB_GETIMAGELIST (WM_USER+49)
1202 #define TB_LOADIMAGES (WM_USER+50)
1203 #define TB_GETRECT (WM_USER+51) /* wParam is the Cmd instead of index */
1204 #define TB_SETHOTIMAGELIST (WM_USER+52)
1205 #define TB_GETHOTIMAGELIST (WM_USER+53)
1206 #define TB_SETDISABLEDIMAGELIST (WM_USER+54)
1207 #define TB_GETDISABLEDIMAGELIST (WM_USER+55)
1208 #define TB_SETSTYLE (WM_USER+56)
1209 #define TB_GETSTYLE (WM_USER+57)
1210 #define TB_GETBUTTONSIZE (WM_USER+58)
1211 #define TB_SETBUTTONWIDTH (WM_USER+59)
1212 #define TB_SETMAXTEXTROWS (WM_USER+60)
1213 #define TB_GETTEXTROWS (WM_USER+61)
1214 #define TB_GETOBJECT (WM_USER+62)
1215 #define TB_GETBUTTONINFOW (WM_USER+63)
1216 #define TB_GETBUTTONINFOA (WM_USER+65)
1217 #define TB_GETBUTTONINFO WINELIB_NAME_AW(TB_GETBUTTONINFO)
1218 #define TB_SETBUTTONINFOW (WM_USER+64)
1219 #define TB_SETBUTTONINFOA (WM_USER+66)
1220 #define TB_SETBUTTONINFO WINELIB_NAME_AW(TB_SETBUTTONINFO)
1221 #define TB_SETDRAWTEXTFLAGS (WM_USER+70)
1222 #define TB_GETHOTITEM (WM_USER+71)
1223 #define TB_SETHOTITEM (WM_USER+72)
1224 #define TB_SETANCHORHIGHLIGHT (WM_USER+73)
1225 #define TB_GETANCHORHIGHLIGHT (WM_USER+74)
1226 #define TB_MAPACCELERATORA (WM_USER+78)
1227 #define TB_MAPACCELERATORW (WM_USER+90)
1228 #define TB_MAPACCELERATOR WINELIB_NAME_AW(TB_MAPACCELERATOR)
1229 #define TB_GETINSERTMARK (WM_USER+79)
1230 #define TB_SETINSERTMARK (WM_USER+80)
1231 #define TB_INSERTMARKHITTEST (WM_USER+81)
1232 #define TB_MOVEBUTTON (WM_USER+82)
1233 #define TB_GETMAXSIZE (WM_USER+83)
1234 #define TB_SETEXTENDEDSTYLE (WM_USER+84)
1235 #define TB_GETEXTENDEDSTYLE (WM_USER+85)
1236 #define TB_GETPADDING (WM_USER+86)
1237 #define TB_SETPADDING (WM_USER+87)
1238 #define TB_SETINSERTMARKCOLOR (WM_USER+88)
1239 #define TB_GETINSERTMARKCOLOR (WM_USER+89)
1240 #define TB_SETCOLORSCHEME CCM_SETCOLORSCHEME
1241 #define TB_GETCOLORSCHEME CCM_GETCOLORSCHEME
1242 #define TB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1243 #define TB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1244 #define TB_GETSTRINGW (WM_USER+91)
1245 #define TB_GETSTRINGA (WM_USER+92)
1246 #define TB_GETSTRING WINELIB_NAME_AW(TB_GETSTRING)
1248 /* undocumented messages in Toolbar */
1250 #define TB_UNKWN45D (WM_USER+93)
1251 #define TB_SETHOTITEM2 (WM_USER+94)
1252 #define TB_SETLISTGAP (WM_USER+96)
1253 #define TB_GETIMAGELISTCOUNT (WM_USER+98)
1254 #define TB_GETIDEALSIZE (WM_USER+99)
1255 #define TB_UNKWN464 (WM_USER+100)
1258 #define TB_GETMETRICS (WM_USER+101)
1259 #define TB_SETMETRICS (WM_USER+102)
1260 #define TB_SETWINDOWTHEME CCM_SETWINDOWTHEME
1262 #define TBN_FIRST (0U-700U)
1263 #define TBN_LAST (0U-720U)
1264 #define TBN_GETBUTTONINFOA (TBN_FIRST-0)
1265 #define TBN_GETBUTTONINFOW (TBN_FIRST-20)
1266 #define TBN_GETBUTTONINFO WINELIB_NAME_AW(TBN_GETBUTTONINFO)
1267 #define TBN_BEGINDRAG (TBN_FIRST-1)
1268 #define TBN_ENDDRAG (TBN_FIRST-2)
1269 #define TBN_BEGINADJUST (TBN_FIRST-3)
1270 #define TBN_ENDADJUST (TBN_FIRST-4)
1271 #define TBN_RESET (TBN_FIRST-5)
1272 #define TBN_QUERYINSERT (TBN_FIRST-6)
1273 #define TBN_QUERYDELETE (TBN_FIRST-7)
1274 #define TBN_TOOLBARCHANGE (TBN_FIRST-8)
1275 #define TBN_CUSTHELP (TBN_FIRST-9)
1276 #define TBN_DROPDOWN (TBN_FIRST-10)
1277 #define TBN_GETOBJECT (TBN_FIRST-12)
1278 #define TBN_HOTITEMCHANGE (TBN_FIRST-13)
1279 #define TBN_DRAGOUT (TBN_FIRST-14)
1280 #define TBN_DELETINGBUTTON (TBN_FIRST-15)
1281 #define TBN_GETDISPINFOA (TBN_FIRST-16)
1282 #define TBN_GETDISPINFOW (TBN_FIRST-17)
1283 #define TBN_GETDISPINFO WINELIB_NAME_AW(TBN_GETDISPINFO)
1284 #define TBN_GETINFOTIPA (TBN_FIRST-18)
1285 #define TBN_GETINFOTIPW (TBN_FIRST-19)
1286 #define TBN_GETINFOTIP WINELIB_NAME_AW(TBN_GETINFOTIP)
1287 #define TBN_RESTORE (TBN_FIRST-21)
1288 #define TBN_SAVE (TBN_FIRST-22)
1289 #define TBN_INITCUSTOMIZE (TBN_FIRST-23)
1290 #define TBN_WRAPHOTITEM (TBN_FIRST-24) /* this is undocumented and the name is a guess */
1291 #define TBNRF_HIDEHELP 0x00000001
1294 /* Return values from TBN_DROPDOWN */
1295 #define TBDDRET_DEFAULT 0
1296 #define TBDDRET_NODEFAULT 1
1297 #define TBDDRET_TREATPRESSED 2
1299 typedef struct _NMTBCUSTOMDRAW
1302 HBRUSH hbrMonoDither
;
1307 COLORREF clrTextHighlight
;
1308 COLORREF clrBtnFace
;
1309 COLORREF clrBtnHighlight
;
1310 COLORREF clrHighlightHotTrack
;
1313 int nHLStringBkMode
;
1315 } NMTBCUSTOMDRAW
, *LPNMTBCUSTOMDRAW
;
1317 /* return flags for Toolbar NM_CUSTOMDRAW notifications */
1318 #define TBCDRF_NOEDGES 0x00010000 /* Don't draw button edges */
1319 #define TBCDRF_HILITEHOTTRACK 0x00020000 /* Use color of the button bkgnd */
1320 /* when hottracked */
1321 #define TBCDRF_NOOFFSET 0x00040000 /* No offset button if pressed */
1322 #define TBCDRF_NOMARK 0x00080000 /* Don't draw default highlight */
1323 /* for TBSTATE_MARKED */
1324 #define TBCDRF_NOETCHEDEFFECT 0x00100000 /* No etched effect for */
1325 /* disabled items */
1326 #define TBCDRF_BLENDICON 0x00200000 /* ILD_BLEND50 on the icon image */
1327 #define TBCDRF_NOBACKGROUND 0x00400000 /* ILD_BLEND50 on the icon image */
1328 #define TBCDRF_USECDCOLORS 0x00800000
1331 /* This is just for old CreateToolbar. */
1332 /* Don't use it in new programs. */
1333 typedef struct _OLDTBBUTTON
{
1340 } OLDTBBUTTON
, *POLDTBBUTTON
, *LPOLDTBBUTTON
;
1341 typedef const OLDTBBUTTON
*LPCOLDTBBUTTON
;
1344 typedef struct _TBBUTTON
{
1356 } TBBUTTON
, *PTBBUTTON
, *LPTBBUTTON
;
1357 typedef const TBBUTTON
*LPCTBBUTTON
;
1360 typedef struct _COLORMAP
{
1363 } COLORMAP
, *LPCOLORMAP
;
1366 typedef struct tagTBADDBITMAP
{
1369 } TBADDBITMAP
, *LPTBADDBITMAP
;
1371 #define HINST_COMMCTRL ((HINSTANCE)-1)
1372 #define IDB_STD_SMALL_COLOR 0
1373 #define IDB_STD_LARGE_COLOR 1
1374 #define IDB_VIEW_SMALL_COLOR 4
1375 #define IDB_VIEW_LARGE_COLOR 5
1376 #define IDB_HIST_SMALL_COLOR 8
1377 #define IDB_HIST_LARGE_COLOR 9
1384 #define STD_DELETE 5
1385 #define STD_FILENEW 6
1386 #define STD_FILEOPEN 7
1387 #define STD_FILESAVE 8
1388 #define STD_PRINTPRE 9
1389 #define STD_PROPERTIES 10
1392 #define STD_REPLACE 13
1393 #define STD_PRINT 14
1395 #define VIEW_LARGEICONS 0
1396 #define VIEW_SMALLICONS 1
1398 #define VIEW_DETAILS 3
1399 #define VIEW_SORTNAME 4
1400 #define VIEW_SORTSIZE 5
1401 #define VIEW_SORTDATE 6
1402 #define VIEW_SORTTYPE 7
1403 #define VIEW_PARENTFOLDER 8
1404 #define VIEW_NETCONNECT 9
1405 #define VIEW_NETDISCONNECT 10
1406 #define VIEW_NEWFOLDER 11
1407 #define VIEW_VIEWMENU 12
1410 #define HIST_FORWARD 1
1411 #define HIST_FAVORITES 2
1412 #define HIST_ADDTOFAVORITES 3
1413 #define HIST_VIEWTREE 4
1415 typedef struct tagTBSAVEPARAMSA
{
1418 LPCSTR pszValueName
;
1419 } TBSAVEPARAMSA
, *LPTBSAVEPARAMSA
;
1421 typedef struct tagTBSAVEPARAMSW
{
1424 LPCWSTR pszValueName
;
1425 } TBSAVEPARAMSW
, *LPTBSAVEPARAMSW
;
1427 #define TBSAVEPARAMS WINELIB_NAME_AW(TBSAVEPARAMS)
1428 #define LPTBSAVEPARAMS WINELIB_NAME_AW(LPTBSAVEPARAMS)
1442 } TBBUTTONINFOA
, *LPTBBUTTONINFOA
;
1456 } TBBUTTONINFOW
, *LPTBBUTTONINFOW
;
1458 #define TBBUTTONINFO WINELIB_NAME_AW(TBBUTTONINFO)
1459 #define LPTBBUTTONINFO WINELIB_NAME_AW(LPTBBUTTONINFO)
1461 typedef struct tagNMTBHOTITEM
1467 } NMTBHOTITEM
, *LPNMTBHOTITEM
;
1469 typedef struct tagNMTBGETINFOTIPA
1476 } NMTBGETINFOTIPA
, *LPNMTBGETINFOTIPA
;
1478 typedef struct tagNMTBGETINFOTIPW
1485 } NMTBGETINFOTIPW
, *LPNMTBGETINFOTIPW
;
1487 #define NMTBGETINFOTIP WINELIB_NAME_AW(NMTBGETINFOTIP)
1488 #define LPNMTBGETINFOTIP WINELIB_NAME_AW(LPNMTBGETINFOTIP)
1499 } NMTBDISPINFOA
, *LPNMTBDISPINFOA
;
1510 } NMTBDISPINFOW
, *LPNMTBDISPINFOW
;
1512 #define NMTBDISPINFO WINELIB_NAME_AW(NMTBDISPINFO)
1513 #define LPNMTBDISPINFO WINELIB_NAME_AW(LPNMTBDISPINFO)
1515 /* contents of dwMask in the NMTBDISPINFO structure */
1516 #define TBNF_IMAGE 0x00000001
1517 #define TBNF_TEXT 0x00000002
1518 #define TBNF_DI_SETITEM 0x10000000
1521 typedef struct tagNMTOOLBARA
1528 RECT rcButton
; /* Version 5.80 */
1529 } NMTOOLBARA
, *LPNMTOOLBARA
, TBNOTIFYA
, *LPTBNOTIFYA
;
1531 typedef struct tagNMTOOLBARW
1538 RECT rcButton
; /* Version 5.80 */
1539 } NMTOOLBARW
, *LPNMTOOLBARW
, TBNOTIFYW
, *LPTBNOTIFYW
;
1541 #define NMTOOLBAR WINELIB_NAME_AW(NMTOOLBAR)
1542 #define LPNMTOOLBAR WINELIB_NAME_AW(LPNMTOOLBAR)
1543 #define TBNOTIFY WINELIB_NAME_AW(TBNOTIFY)
1544 #define LPTBNOTIFY WINELIB_NAME_AW(LPTBNOTIFY)
1553 } TBREPLACEBITMAP
, *LPTBREPLACEBITMAP
;
1555 #define HICF_OTHER 0x00000000
1556 #define HICF_MOUSE 0x00000001 /* Triggered by mouse */
1557 #define HICF_ARROWKEYS 0x00000002 /* Triggered by arrow keys */
1558 #define HICF_ACCELERATOR 0x00000004 /* Triggered by accelerator */
1559 #define HICF_DUPACCEL 0x00000008 /* This accelerator is not unique */
1560 #define HICF_ENTERING 0x00000010 /* idOld is invalid */
1561 #define HICF_LEAVING 0x00000020 /* idNew is invalid */
1562 #define HICF_RESELECT 0x00000040 /* hot item reselected */
1563 #define HICF_LMOUSE 0x00000080 /* left mouse button selected */
1564 #define HICF_TOGGLEDROPDOWN 0x00000100 /* Toggle button's dropdown state */
1570 } TBINSERTMARK
, *LPTBINSERTMARK
;
1571 #define TBIMHT_AFTER 0x00000001 /* TRUE = insert After iButton, otherwise before */
1572 #define TBIMHT_BACKGROUND 0x00000002 /* TRUE if and only if missed buttons completely */
1574 typedef struct tagNMTBSAVE
1583 } NMTBSAVE
, *LPNMTBSAVE
;
1585 typedef struct tagNMTBRESTORE
1593 int cbBytesPerRecord
;
1595 } NMTBRESTORE
, *LPNMTBRESTORE
;
1597 #define TBMF_PAD 0x00000001
1598 #define TBMF_BARPAD 0x00000002
1599 #define TBMF_BUTTONSPACING 0x00000004
1609 INT cxButtonSpacing
;
1610 INT cyButtonSpacing
;
1611 } TBMETRICS
, *LPTBMETRICS
;
1613 /* these are undocumented and the names are guesses */
1618 } NMTBINITCUSTOMIZE
;
1624 INT iDirection
; /* left is -1, right is 1 */
1625 DWORD dwReason
; /* HICF_* */
1630 CreateToolbar(HWND
, DWORD
, UINT
, INT
, HINSTANCE
,
1631 UINT
, LPCTBBUTTON
, INT
);
1634 CreateToolbarEx(HWND
, DWORD
, UINT
, INT
,
1635 HINSTANCE
, UINT_PTR
, LPCTBBUTTON
,
1636 INT
, INT
, INT
, INT
, INT
, UINT
);
1639 CreateMappedBitmap (HINSTANCE
, INT_PTR
, UINT
, LPCOLORMAP
, INT
);
1644 #define TOOLTIPS_CLASSA "tooltips_class32"
1645 #if defined(__GNUC__)
1646 # define TOOLTIPS_CLASSW (const WCHAR []){ 't','o','o','l','t','i','p','s','_', \
1647 'c','l','a','s','s','3','2',0 }
1648 #elif defined(_MSC_VER)
1649 # define TOOLTIPS_CLASSW L"tooltips_class32"
1651 static const WCHAR TOOLTIPS_CLASSW
[] = { 't','o','o','l','t','i','p','s','_',
1652 'c','l','a','s','s','3','2',0 };
1654 #define TOOLTIPS_CLASS WINELIB_NAME_AW(TOOLTIPS_CLASS)
1656 #define INFOTIPSIZE 1024
1658 #define TTS_ALWAYSTIP 0x01
1659 #define TTS_NOPREFIX 0x02
1660 #define TTS_NOANIMATE 0x10
1661 #define TTS_NOFADE 0x20
1662 #define TTS_BALLOON 0x40
1663 #define TTS_CLOSE 0x80
1664 #define TTS_USEVISUALSTYLE 0x100
1666 #define TTF_IDISHWND 0x0001
1667 #define TTF_CENTERTIP 0x0002
1668 #define TTF_RTLREADING 0x0004
1669 #define TTF_SUBCLASS 0x0010
1670 #define TTF_TRACK 0x0020
1671 #define TTF_ABSOLUTE 0x0080
1672 #define TTF_TRANSPARENT 0x0100
1673 #define TTF_DI_SETITEM 0x8000 /* valid only on the TTN_NEEDTEXT callback */
1676 #define TTDT_AUTOMATIC 0
1677 #define TTDT_RESHOW 1
1678 #define TTDT_AUTOPOP 2
1679 #define TTDT_INITIAL 3
1684 #define TTI_WARNING 2
1688 #define TTM_ACTIVATE (WM_USER+1)
1689 #define TTM_SETDELAYTIME (WM_USER+3)
1690 #define TTM_ADDTOOLA (WM_USER+4)
1691 #define TTM_ADDTOOLW (WM_USER+50)
1692 #define TTM_ADDTOOL WINELIB_NAME_AW(TTM_ADDTOOL)
1693 #define TTM_DELTOOLA (WM_USER+5)
1694 #define TTM_DELTOOLW (WM_USER+51)
1695 #define TTM_DELTOOL WINELIB_NAME_AW(TTM_DELTOOL)
1696 #define TTM_NEWTOOLRECTA (WM_USER+6)
1697 #define TTM_NEWTOOLRECTW (WM_USER+52)
1698 #define TTM_NEWTOOLRECT WINELIB_NAME_AW(TTM_NEWTOOLRECT)
1699 #define TTM_RELAYEVENT (WM_USER+7)
1700 #define TTM_GETTOOLINFOA (WM_USER+8)
1701 #define TTM_GETTOOLINFOW (WM_USER+53)
1702 #define TTM_GETTOOLINFO WINELIB_NAME_AW(TTM_GETTOOLINFO)
1703 #define TTM_SETTOOLINFOA (WM_USER+9)
1704 #define TTM_SETTOOLINFOW (WM_USER+54)
1705 #define TTM_SETTOOLINFO WINELIB_NAME_AW(TTM_SETTOOLINFO)
1706 #define TTM_HITTESTA (WM_USER+10)
1707 #define TTM_HITTESTW (WM_USER+55)
1708 #define TTM_HITTEST WINELIB_NAME_AW(TTM_HITTEST)
1709 #define TTM_GETTEXTA (WM_USER+11)
1710 #define TTM_GETTEXTW (WM_USER+56)
1711 #define TTM_GETTEXT WINELIB_NAME_AW(TTM_GETTEXT)
1712 #define TTM_UPDATETIPTEXTA (WM_USER+12)
1713 #define TTM_UPDATETIPTEXTW (WM_USER+57)
1714 #define TTM_UPDATETIPTEXT WINELIB_NAME_AW(TTM_UPDATETIPTEXT)
1715 #define TTM_GETTOOLCOUNT (WM_USER+13)
1716 #define TTM_ENUMTOOLSA (WM_USER+14)
1717 #define TTM_ENUMTOOLSW (WM_USER+58)
1718 #define TTM_ENUMTOOLS WINELIB_NAME_AW(TTM_ENUMTOOLS)
1719 #define TTM_GETCURRENTTOOLA (WM_USER+15)
1720 #define TTM_GETCURRENTTOOLW (WM_USER+59)
1721 #define TTM_GETCURRENTTOOL WINELIB_NAME_AW(TTM_GETCURRENTTOOL)
1722 #define TTM_WINDOWFROMPOINT (WM_USER+16)
1723 #define TTM_TRACKACTIVATE (WM_USER+17)
1724 #define TTM_TRACKPOSITION (WM_USER+18)
1725 #define TTM_SETTIPBKCOLOR (WM_USER+19)
1726 #define TTM_SETTIPTEXTCOLOR (WM_USER+20)
1727 #define TTM_GETDELAYTIME (WM_USER+21)
1728 #define TTM_GETTIPBKCOLOR (WM_USER+22)
1729 #define TTM_GETTIPTEXTCOLOR (WM_USER+23)
1730 #define TTM_SETMAXTIPWIDTH (WM_USER+24)
1731 #define TTM_GETMAXTIPWIDTH (WM_USER+25)
1732 #define TTM_SETMARGIN (WM_USER+26)
1733 #define TTM_GETMARGIN (WM_USER+27)
1734 #define TTM_POP (WM_USER+28)
1735 #define TTM_UPDATE (WM_USER+29)
1736 #define TTM_GETBUBBLESIZE (WM_USER+30)
1737 #define TTM_ADJUSTRECT (WM_USER+31)
1738 #define TTM_SETTITLEA (WM_USER+32)
1739 #define TTM_SETTITLEW (WM_USER+33)
1740 #define TTM_SETTITLE WINELIB_NAME_AW(TTM_SETTITLE)
1741 #define TTM_POPUP (WM_USER+34)
1742 #define TTM_GETTITLE (WM_USER+35)
1743 #define TTM_SETWINDOWTHEME CCM_SETWINDOWTHEME
1746 #define TTN_FIRST (0U-520U)
1747 #define TTN_LAST (0U-549U)
1748 #define TTN_GETDISPINFOA (TTN_FIRST-0)
1749 #define TTN_GETDISPINFOW (TTN_FIRST-10)
1750 #define TTN_GETDISPINFO WINELIB_NAME_AW(TTN_GETDISPINFO)
1751 #define TTN_SHOW (TTN_FIRST-1)
1752 #define TTN_POP (TTN_FIRST-2)
1754 #define TTN_NEEDTEXT TTN_GETDISPINFO
1755 #define TTN_NEEDTEXTA TTN_GETDISPINFOA
1756 #define TTN_NEEDTEXTW TTN_GETDISPINFOW
1758 typedef struct tagTOOLINFOA
{
1768 } TTTOOLINFOA
, *LPTOOLINFOA
, *PTOOLINFOA
, *LPTTTOOLINFOA
;
1770 typedef struct tagTOOLINFOW
{
1780 } TTTOOLINFOW
, *LPTOOLINFOW
, *PTOOLINFOW
, *LPTTTOOLINFOW
;
1782 #define TTTOOLINFO WINELIB_NAME_AW(TTTOOLINFO)
1783 #define TOOLINFO WINELIB_NAME_AW(TTTOOLINFO)
1784 #define PTOOLINFO WINELIB_NAME_AW(PTOOLINFO)
1785 #define LPTTTOOLINFO WINELIB_NAME_AW(LPTTTOOLINFO)
1786 #define LPTOOLINFO WINELIB_NAME_AW(LPTOOLINFO)
1788 #define TTTOOLINFOA_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lpszText)
1789 #define TTTOOLINFOW_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lpszText)
1790 #define TTTOOLINFO_V1_SIZE CCSIZEOF_STRUCT(WINELIB_NAME_AW(TTTOOLINFO), lpszText)
1791 #define TTTOOLINFOA_V2_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lParam)
1792 #define TTTOOLINFOW_V2_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lParam)
1793 #define TTTOOLINFOA_V3_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lpReserved)
1794 #define TTTOOLINFOW_V3_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lpReserved)
1796 typedef struct _TT_HITTESTINFOA
1801 } TTHITTESTINFOA
, *LPTTHITTESTINFOA
;
1802 #define LPHITTESTINFOA LPTTHITTESTINFOA
1804 typedef struct _TT_HITTESTINFOW
1809 } TTHITTESTINFOW
, *LPTTHITTESTINFOW
;
1810 #define LPHITTESTINFOW LPTTHITTESTINFOW
1812 #define TTHITTESTINFO WINELIB_NAME_AW(TTHITTESTINFO)
1813 #define LPTTHITTESTINFO WINELIB_NAME_AW(LPTTHITTESTINFO)
1814 #define LPHITTESTINFO WINELIB_NAME_AW(LPHITTESTINFO)
1816 typedef struct tagNMTTDISPINFOA
1824 } NMTTDISPINFOA
, *LPNMTTDISPINFOA
;
1826 typedef struct tagNMTTDISPINFOW
1834 } NMTTDISPINFOW
, *LPNMTTDISPINFOW
;
1836 #define NMTTDISPINFO WINELIB_NAME_AW(NMTTDISPINFO)
1837 #define LPNMTTDISPINFO WINELIB_NAME_AW(LPNMTTDISPINFO)
1839 #define NMTTDISPINFO_V1_SIZEA CCSIZEOF_STRUCT(NMTTDISPINFOA, uFlags)
1840 #define NMTTDISPINFO_V1_SIZEW CCSIZEOF_STRUCT(NMTTDISPINFOW, uFlags)
1841 #define NMTTDISPINFO_V1_SIZE WINELIB_NAME_AW(NMTTDISPINFO_V1_SIZE)
1843 typedef struct _TTGETTITLE
1849 } TTGETTITLE
, *PTTGETTITLE
;
1851 #define TOOLTIPTEXTW NMTTDISPINFOW
1852 #define TOOLTIPTEXTA NMTTDISPINFOA
1853 #define TOOLTIPTEXT NMTTDISPINFO
1854 #define LPTOOLTIPTEXTW LPNMTTDISPINFOW
1855 #define LPTOOLTIPTEXTA LPNMTTDISPINFOA
1856 #define LPTOOLTIPTEXT LPNMTTDISPINFO
1861 #define REBARCLASSNAMEA "ReBarWindow32"
1862 #if defined(__GNUC__)
1863 # define REBARCLASSNAMEW (const WCHAR []){ 'R','e','B','a','r', \
1864 'W','i','n','d','o','w','3','2',0 }
1865 #elif defined(_MSC_VER)
1866 # define REBARCLASSNAMEW L"ReBarWindow32"
1868 static const WCHAR REBARCLASSNAMEW
[] = { 'R','e','B','a','r',
1869 'W','i','n','d','o','w','3','2',0 };
1871 #define REBARCLASSNAME WINELIB_NAME_AW(REBARCLASSNAME)
1873 #define RBS_TOOLTIPS 0x0100
1874 #define RBS_VARHEIGHT 0x0200
1875 #define RBS_BANDBORDERS 0x0400
1876 #define RBS_FIXEDORDER 0x0800
1877 #define RBS_REGISTERDROP 0x1000
1878 #define RBS_AUTOSIZE 0x2000
1879 #define RBS_VERTICALGRIPPER 0x4000
1880 #define RBS_DBLCLKTOGGLE 0x8000
1882 #define RBIM_IMAGELIST 0x00000001
1884 #define RBBIM_STYLE 0x00000001
1885 #define RBBIM_COLORS 0x00000002
1886 #define RBBIM_TEXT 0x00000004
1887 #define RBBIM_IMAGE 0x00000008
1888 #define RBBIM_CHILD 0x00000010
1889 #define RBBIM_CHILDSIZE 0x00000020
1890 #define RBBIM_SIZE 0x00000040
1891 #define RBBIM_BACKGROUND 0x00000080
1892 #define RBBIM_ID 0x00000100
1893 #define RBBIM_IDEALSIZE 0x00000200
1894 #define RBBIM_LPARAM 0x00000400
1895 #define RBBIM_HEADERSIZE 0x00000800
1897 #define RBBS_BREAK 0x00000001
1898 #define RBBS_FIXEDSIZE 0x00000002
1899 #define RBBS_CHILDEDGE 0x00000004
1900 #define RBBS_HIDDEN 0x00000008
1901 #define RBBS_NOVERT 0x00000010
1902 #define RBBS_FIXEDBMP 0x00000020
1903 #define RBBS_VARIABLEHEIGHT 0x00000040
1904 #define RBBS_GRIPPERALWAYS 0x00000080
1905 #define RBBS_NOGRIPPER 0x00000100
1906 #define RBBS_USECHEVRON 0x00000200
1907 #define RBBS_HIDETITLE 0x00000400
1908 #define RBBS_TOPALIGN 0x00000800
1910 #define RBNM_ID 0x00000001
1911 #define RBNM_STYLE 0x00000002
1912 #define RBNM_LPARAM 0x00000004
1914 #define RBHT_NOWHERE 0x0001
1915 #define RBHT_CAPTION 0x0002
1916 #define RBHT_CLIENT 0x0003
1917 #define RBHT_GRABBER 0x0004
1918 #define RBHT_CHEVRON 0x0008
1920 #define RB_INSERTBANDA (WM_USER+1)
1921 #define RB_INSERTBANDW (WM_USER+10)
1922 #define RB_INSERTBAND WINELIB_NAME_AW(RB_INSERTBAND)
1923 #define RB_DELETEBAND (WM_USER+2)
1924 #define RB_GETBARINFO (WM_USER+3)
1925 #define RB_SETBARINFO (WM_USER+4)
1926 #define RB_SETBANDINFOA (WM_USER+6)
1927 #define RB_SETBANDINFOW (WM_USER+11)
1928 #define RB_SETBANDINFO WINELIB_NAME_AW(RB_SETBANDINFO)
1929 #define RB_SETPARENT (WM_USER+7)
1930 #define RB_HITTEST (WM_USER+8)
1931 #define RB_GETRECT (WM_USER+9)
1932 #define RB_GETBANDCOUNT (WM_USER+12)
1933 #define RB_GETROWCOUNT (WM_USER+13)
1934 #define RB_GETROWHEIGHT (WM_USER+14)
1935 #define RB_IDTOINDEX (WM_USER+16)
1936 #define RB_GETTOOLTIPS (WM_USER+17)
1937 #define RB_SETTOOLTIPS (WM_USER+18)
1938 #define RB_SETBKCOLOR (WM_USER+19)
1939 #define RB_GETBKCOLOR (WM_USER+20)
1940 #define RB_SETTEXTCOLOR (WM_USER+21)
1941 #define RB_GETTEXTCOLOR (WM_USER+22)
1942 #define RB_SIZETORECT (WM_USER+23)
1943 #define RB_BEGINDRAG (WM_USER+24)
1944 #define RB_ENDDRAG (WM_USER+25)
1945 #define RB_DRAGMOVE (WM_USER+26)
1946 #define RB_GETBARHEIGHT (WM_USER+27)
1947 #define RB_GETBANDINFOW (WM_USER+28)
1948 #define RB_GETBANDINFOA (WM_USER+29)
1949 #define RB_GETBANDINFO WINELIB_NAME_AW(RB_GETBANDINFO)
1950 #define RB_MINIMIZEBAND (WM_USER+30)
1951 #define RB_MAXIMIZEBAND (WM_USER+31)
1952 #define RB_GETBANDBORDERS (WM_USER+34)
1953 #define RB_SHOWBAND (WM_USER+35)
1954 #define RB_SETPALETTE (WM_USER+37)
1955 #define RB_GETPALETTE (WM_USER+38)
1956 #define RB_MOVEBAND (WM_USER+39)
1957 #define RB_GETBANDMARGINS (WM_USER+40)
1958 #define RB_PUSHCHEVRON (WM_USER+43)
1959 #define RB_GETDROPTARGET CCM_GETDROPTARGET
1960 #define RB_SETCOLORSCHEME CCM_SETCOLORSCHEME
1961 #define RB_GETCOLORSCHEME CCM_GETCOLORSCHEME
1962 #define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1963 #define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1964 #define RB_SETWINDOWTHEME CCM_SETWINDOWTHEME
1966 #define RBN_FIRST (0U-831U)
1967 #define RBN_LAST (0U-859U)
1968 #define RBN_HEIGHTCHANGE (RBN_FIRST-0)
1969 #define RBN_GETOBJECT (RBN_FIRST-1)
1970 #define RBN_LAYOUTCHANGED (RBN_FIRST-2)
1971 #define RBN_AUTOSIZE (RBN_FIRST-3)
1972 #define RBN_BEGINDRAG (RBN_FIRST-4)
1973 #define RBN_ENDDRAG (RBN_FIRST-5)
1974 #define RBN_DELETINGBAND (RBN_FIRST-6)
1975 #define RBN_DELETEDBAND (RBN_FIRST-7)
1976 #define RBN_CHILDSIZE (RBN_FIRST-8)
1977 #define RBN_CHEVRONPUSHED (RBN_FIRST-10)
1978 #define RBN_MINMAX (RBN_FIRST-21)
1979 #define RBN_AUTOBREAK (RBN_FIRST-22)
1981 typedef struct tagREBARINFO
1986 } REBARINFO
, *LPREBARINFO
;
1988 typedef struct tagREBARBANDINFOA
2010 /* _WIN32_WINNT >= 0x0600 */
2011 RECT rcChevronLocation
;
2013 } REBARBANDINFOA
, *LPREBARBANDINFOA
;
2015 typedef REBARBANDINFOA
const *LPCREBARBANDINFOA
;
2017 typedef struct tagREBARBANDINFOW
2039 /* _WIN32_WINNT >= 0x0600 */
2040 RECT rcChevronLocation
;
2042 } REBARBANDINFOW
, *LPREBARBANDINFOW
;
2044 typedef REBARBANDINFOW
const *LPCREBARBANDINFOW
;
2046 #define REBARBANDINFO WINELIB_NAME_AW(REBARBANDINFO)
2047 #define LPREBARBANDINFO WINELIB_NAME_AW(LPREBARBANDINFO)
2048 #define LPCREBARBANDINFO WINELIB_NAME_AW(LPCREBARBANDINFO)
2050 #define REBARBANDINFOA_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOA, wID)
2051 #define REBARBANDINFOW_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOW, wID)
2052 #define REBARBANDINFO_V3_SIZE CCSIZEOF_STRUCT(WINELIB_NAME_AW(REBARBANDINFO), wID)
2053 #define REBARBANDINFOA_V6_SIZE CCSIZEOF_STRUCT(REBARBANDINFOA, cxHeader)
2054 #define REBARBANDINFOW_V6_SIZE CCSIZEOF_STRUCT(REBARBANDINFOW, cxHeader)
2055 #define REBARBANDINFO_V6_SIZE CCSIZEOF_STRUCT(WINELIB_NAME_AW(REBARBANDINFO), cxHeader)
2057 typedef struct tagNMREBARCHILDSIZE
2064 } NMREBARCHILDSIZE
, *LPNMREBARCHILDSIZE
;
2066 typedef struct tagNMREBAR
2074 } NMREBAR
, *LPNMREBAR
;
2076 typedef struct tagNMRBAUTOSIZE
2082 } NMRBAUTOSIZE
, *LPNMRBAUTOSIZE
;
2084 typedef struct tagNMREBARCHEVRON
2092 } NMREBARCHEVRON
, *LPNMREBARCHEVRON
;
2094 typedef struct _RB_HITTESTINFO
2099 } RBHITTESTINFO
, *LPRBHITTESTINFO
;
2101 #define RBAB_AUTOSIZE 0x0001
2102 #define RBAB_ADDBAND 0x0002
2104 typedef struct tagNMREBARAUTOBREAK
2113 } NMREBARAUTOBREAK
, *LPNMREBARAUTOBREAK
;
2116 /* Trackbar control */
2118 #define TRACKBAR_CLASSA "msctls_trackbar32"
2119 #if defined(__GNUC__)
2120 # define TRACKBAR_CLASSW (const WCHAR []){ 'm','s','c','t','l','s','_', \
2121 't','r','a','c','k','b','a','r','3','2',0 }
2122 #elif defined(_MSC_VER)
2123 # define TRACKBAR_CLASSW L"msctls_trackbar32"
2125 static const WCHAR TRACKBAR_CLASSW
[] = { 'm','s','c','t','l','s','_',
2126 't','r','a','c','k','b','a','r','3','2',0 };
2128 #define TRACKBAR_CLASS WINELIB_NAME_AW(TRACKBAR_CLASS)
2130 #define TBS_AUTOTICKS 0x0001
2131 #define TBS_VERT 0x0002
2132 #define TBS_HORZ 0x0000
2133 #define TBS_TOP 0x0004
2134 #define TBS_BOTTOM 0x0000
2135 #define TBS_LEFT 0x0004
2136 #define TBS_RIGHT 0x0000
2137 #define TBS_BOTH 0x0008
2138 #define TBS_NOTICKS 0x0010
2139 #define TBS_ENABLESELRANGE 0x0020
2140 #define TBS_FIXEDLENGTH 0x0040
2141 #define TBS_NOTHUMB 0x0080
2142 #define TBS_TOOLTIPS 0x0100
2143 #define TBS_REVERSED 0x0200
2144 #define TBS_DOWNISLEFT 0x0400
2148 #define TBTS_BOTTOM 2
2149 #define TBTS_RIGHT 3
2152 #define TB_LINEDOWN 1
2154 #define TB_PAGEDOWN 3
2155 #define TB_THUMBPOSITION 4
2156 #define TB_THUMBTRACK 5
2159 #define TB_ENDTRACK 8
2161 #define TBCD_TICS 0x0001
2162 #define TBCD_THUMB 0x0002
2163 #define TBCD_CHANNEL 0x0003
2165 #define TBM_GETPOS (WM_USER)
2166 #define TBM_GETRANGEMIN (WM_USER+1)
2167 #define TBM_GETRANGEMAX (WM_USER+2)
2168 #define TBM_GETTIC (WM_USER+3)
2169 #define TBM_SETTIC (WM_USER+4)
2170 #define TBM_SETPOS (WM_USER+5)
2171 #define TBM_SETRANGE (WM_USER+6)
2172 #define TBM_SETRANGEMIN (WM_USER+7)
2173 #define TBM_SETRANGEMAX (WM_USER+8)
2174 #define TBM_CLEARTICS (WM_USER+9)
2175 #define TBM_SETSEL (WM_USER+10)
2176 #define TBM_SETSELSTART (WM_USER+11)
2177 #define TBM_SETSELEND (WM_USER+12)
2178 #define TBM_GETPTICS (WM_USER+14)
2179 #define TBM_GETTICPOS (WM_USER+15)
2180 #define TBM_GETNUMTICS (WM_USER+16)
2181 #define TBM_GETSELSTART (WM_USER+17)
2182 #define TBM_GETSELEND (WM_USER+18)
2183 #define TBM_CLEARSEL (WM_USER+19)
2184 #define TBM_SETTICFREQ (WM_USER+20)
2185 #define TBM_SETPAGESIZE (WM_USER+21)
2186 #define TBM_GETPAGESIZE (WM_USER+22)
2187 #define TBM_SETLINESIZE (WM_USER+23)
2188 #define TBM_GETLINESIZE (WM_USER+24)
2189 #define TBM_GETTHUMBRECT (WM_USER+25)
2190 #define TBM_GETCHANNELRECT (WM_USER+26)
2191 #define TBM_SETTHUMBLENGTH (WM_USER+27)
2192 #define TBM_GETTHUMBLENGTH (WM_USER+28)
2193 #define TBM_SETTOOLTIPS (WM_USER+29)
2194 #define TBM_GETTOOLTIPS (WM_USER+30)
2195 #define TBM_SETTIPSIDE (WM_USER+31)
2196 #define TBM_SETBUDDY (WM_USER+32)
2197 #define TBM_GETBUDDY (WM_USER+33)
2198 #define TBM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
2199 #define TBM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
2204 #define WC_PAGESCROLLERA "SysPager"
2205 #if defined(__GNUC__)
2206 # define WC_PAGESCROLLERW (const WCHAR []){ 'S','y','s','P','a','g','e','r',0 }
2207 #elif defined(_MSC_VER)
2208 # define WC_PAGESCROLLERW L"SysPager"
2210 static const WCHAR WC_PAGESCROLLERW
[] = { 'S','y','s','P','a','g','e','r',0 };
2212 #define WC_PAGESCROLLER WINELIB_NAME_AW(WC_PAGESCROLLER)
2214 #define PGS_VERT 0x00000000
2215 #define PGS_HORZ 0x00000001
2216 #define PGS_AUTOSCROLL 0x00000002
2217 #define PGS_DRAGNDROP 0x00000004
2219 #define PGF_INVISIBLE 0
2220 #define PGF_NORMAL 1
2221 #define PGF_GRAYED 2
2222 #define PGF_DEPRESSED 4
2225 #define PGB_TOPORLEFT 0
2226 #define PGB_BOTTOMORRIGHT 1
2228 /* only used with PGN_SCROLL */
2229 #define PGF_SCROLLUP 1
2230 #define PGF_SCROLLDOWN 2
2231 #define PGF_SCROLLLEFT 4
2232 #define PGF_SCROLLRIGHT 8
2235 #define PGK_CONTROL 2
2238 /* only used with PGN_CALCSIZE */
2239 #define PGF_CALCWIDTH 1
2240 #define PGF_CALCHEIGHT 2
2242 #define PGM_FIRST 0x1400
2243 #define PGM_SETCHILD (PGM_FIRST+1)
2244 #define PGM_RECALCSIZE (PGM_FIRST+2)
2245 #define PGM_FORWARDMOUSE (PGM_FIRST+3)
2246 #define PGM_SETBKCOLOR (PGM_FIRST+4)
2247 #define PGM_GETBKCOLOR (PGM_FIRST+5)
2248 #define PGM_SETBORDER (PGM_FIRST+6)
2249 #define PGM_GETBORDER (PGM_FIRST+7)
2250 #define PGM_SETPOS (PGM_FIRST+8)
2251 #define PGM_GETPOS (PGM_FIRST+9)
2252 #define PGM_SETBUTTONSIZE (PGM_FIRST+10)
2253 #define PGM_GETBUTTONSIZE (PGM_FIRST+11)
2254 #define PGM_GETBUTTONSTATE (PGM_FIRST+12)
2255 #define PGM_GETDROPTARGET CCM_GETDROPTARGET
2257 #define PGN_FIRST (0U-900U)
2258 #define PGN_LAST (0U-950U)
2259 #define PGN_SCROLL (PGN_FIRST-1)
2260 #define PGN_CALCSIZE (PGN_FIRST-2)
2262 #include <pshpack1.h>
2273 } NMPGSCROLL
, *LPNMPGSCROLL
;
2275 #include <poppack.h>
2283 } NMPGCALCSIZE
, *LPNMPGCALCSIZE
;
2286 /* Treeview control */
2288 #define WC_TREEVIEWA "SysTreeView32"
2289 #if defined(__GNUC__)
2290 # define WC_TREEVIEWW (const WCHAR []){ 'S','y','s', \
2291 'T','r','e','e','V','i','e','w','3','2',0 }
2292 #elif defined(_MSC_VER)
2293 # define WC_TREEVIEWW L"SysTreeView32"
2295 static const WCHAR WC_TREEVIEWW
[] = { 'S','y','s',
2296 'T','r','e','e','V','i','e','w','3','2',0 };
2298 #define WC_TREEVIEW WINELIB_NAME_AW(WC_TREEVIEW)
2300 #define TVSIL_NORMAL 0
2301 #define TVSIL_STATE 2
2303 #define TV_FIRST 0x1100
2304 #define TVM_INSERTITEMA (TV_FIRST+0)
2305 #define TVM_INSERTITEMW (TV_FIRST+50)
2306 #define TVM_INSERTITEM WINELIB_NAME_AW(TVM_INSERTITEM)
2307 #define TVM_DELETEITEM (TV_FIRST+1)
2308 #define TVM_EXPAND (TV_FIRST+2)
2309 #define TVM_GETITEMRECT (TV_FIRST+4)
2310 #define TVM_GETCOUNT (TV_FIRST+5)
2311 #define TVM_GETINDENT (TV_FIRST+6)
2312 #define TVM_SETINDENT (TV_FIRST+7)
2313 #define TVM_GETIMAGELIST (TV_FIRST+8)
2314 #define TVM_SETIMAGELIST (TV_FIRST+9)
2315 #define TVM_GETNEXTITEM (TV_FIRST+10)
2316 #define TVM_SELECTITEM (TV_FIRST+11)
2317 #define TVM_GETITEMA (TV_FIRST+12)
2318 #define TVM_GETITEMW (TV_FIRST+62)
2319 #define TVM_GETITEM WINELIB_NAME_AW(TVM_GETITEM)
2320 #define TVM_SETITEMA (TV_FIRST+13)
2321 #define TVM_SETITEMW (TV_FIRST+63)
2322 #define TVM_SETITEM WINELIB_NAME_AW(TVM_SETITEM)
2323 #define TVM_EDITLABELA (TV_FIRST+14)
2324 #define TVM_EDITLABELW (TV_FIRST+65)
2325 #define TVM_EDITLABEL WINELIB_NAME_AW(TVM_EDITLABEL)
2326 #define TVM_GETEDITCONTROL (TV_FIRST+15)
2327 #define TVM_GETVISIBLECOUNT (TV_FIRST+16)
2328 #define TVM_HITTEST (TV_FIRST+17)
2329 #define TVM_CREATEDRAGIMAGE (TV_FIRST+18)
2330 #define TVM_SORTCHILDREN (TV_FIRST+19)
2331 #define TVM_ENSUREVISIBLE (TV_FIRST+20)
2332 #define TVM_SORTCHILDRENCB (TV_FIRST+21)
2333 #define TVM_ENDEDITLABELNOW (TV_FIRST+22)
2334 #define TVM_GETISEARCHSTRINGA (TV_FIRST+23)
2335 #define TVM_GETISEARCHSTRINGW (TV_FIRST+64)
2336 #define TVM_GETISEARCHSTRING WINELIB_NAME_AW(TVM_GETISEARCHSTRING)
2337 #define TVM_SETTOOLTIPS (TV_FIRST+24)
2338 #define TVM_GETTOOLTIPS (TV_FIRST+25)
2339 #define TVM_SETINSERTMARK (TV_FIRST+26)
2340 #define TVM_SETITEMHEIGHT (TV_FIRST+27)
2341 #define TVM_GETITEMHEIGHT (TV_FIRST+28)
2342 #define TVM_SETBKCOLOR (TV_FIRST+29)
2343 #define TVM_SETTEXTCOLOR (TV_FIRST+30)
2344 #define TVM_GETBKCOLOR (TV_FIRST+31)
2345 #define TVM_GETTEXTCOLOR (TV_FIRST+32)
2346 #define TVM_SETSCROLLTIME (TV_FIRST+33)
2347 #define TVM_GETSCROLLTIME (TV_FIRST+34)
2348 #define TVM_UNKNOWN35 (TV_FIRST+35)
2349 #define TVM_UNKNOWN36 (TV_FIRST+36)
2350 #define TVM_SETINSERTMARKCOLOR (TV_FIRST+37)
2351 #define TVM_GETINSERTMARKCOLOR (TV_FIRST+38)
2352 #define TVM_GETITEMSTATE (TV_FIRST+39)
2353 #define TVM_SETLINECOLOR (TV_FIRST+40)
2354 #define TVM_GETLINECOLOR (TV_FIRST+41)
2355 #define TVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
2356 #define TVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
2357 #define TVM_MAPACCIDTOHTREEITEM (TV_FIRST + 42)
2358 #define TVM_MAPHTREEITEMTOACCID (TV_FIRST + 43)
2359 #define TVM_SETEXTENDEDSTYLE (TV_FIRST + 44)
2360 #define TVM_GETEXTENDEDSTYLE (TV_FIRST + 45)
2361 #define TVM_SETAUTOSCROLLINFO (TV_FIRST + 59)
2362 #define TVM_GETSELECTEDCOUNT (TV_FIRST + 70)
2363 #define TVM_SHOWINFOTIP (TV_FIRST + 71)
2364 #define TVM_GETITEMPARTRECT (TV_FIRST + 72)
2367 #define TVN_FIRST (0U-400U)
2368 #define TVN_LAST (0U-499U)
2370 #define TVN_SELCHANGINGA (TVN_FIRST-1)
2371 #define TVN_SELCHANGINGW (TVN_FIRST-50)
2372 #define TVN_SELCHANGING WINELIB_NAME_AW(TVN_SELCHANGING)
2374 #define TVN_SELCHANGEDA (TVN_FIRST-2)
2375 #define TVN_SELCHANGEDW (TVN_FIRST-51)
2376 #define TVN_SELCHANGED WINELIB_NAME_AW(TVN_SELCHANGED)
2378 #define TVN_GETDISPINFOA (TVN_FIRST-3)
2379 #define TVN_GETDISPINFOW (TVN_FIRST-52)
2380 #define TVN_GETDISPINFO WINELIB_NAME_AW(TVN_GETDISPINFO)
2382 #define TVN_SETDISPINFOA (TVN_FIRST-4)
2383 #define TVN_SETDISPINFOW (TVN_FIRST-53)
2384 #define TVN_SETDISPINFO WINELIB_NAME_AW(TVN_SETDISPINFO)
2386 #define TVN_ITEMEXPANDINGA (TVN_FIRST-5)
2387 #define TVN_ITEMEXPANDINGW (TVN_FIRST-54)
2388 #define TVN_ITEMEXPANDING WINELIB_NAME_AW(TVN_ITEMEXPANDING)
2390 #define TVN_ITEMEXPANDEDA (TVN_FIRST-6)
2391 #define TVN_ITEMEXPANDEDW (TVN_FIRST-55)
2392 #define TVN_ITEMEXPANDED WINELIB_NAME_AW(TVN_ITEMEXPANDED)
2394 #define TVN_BEGINDRAGA (TVN_FIRST-7)
2395 #define TVN_BEGINDRAGW (TVN_FIRST-56)
2396 #define TVN_BEGINDRAG WINELIB_NAME_AW(TVN_BEGINDRAG)
2398 #define TVN_BEGINRDRAGA (TVN_FIRST-8)
2399 #define TVN_BEGINRDRAGW (TVN_FIRST-57)
2400 #define TVN_BEGINRDRAG WINELIB_NAME_AW(TVN_BEGINRDRAG)
2402 #define TVN_DELETEITEMA (TVN_FIRST-9)
2403 #define TVN_DELETEITEMW (TVN_FIRST-58)
2404 #define TVN_DELETEITEM WINELIB_NAME_AW(TVN_DELETEITEM)
2406 #define TVN_BEGINLABELEDITA (TVN_FIRST-10)
2407 #define TVN_BEGINLABELEDITW (TVN_FIRST-59)
2408 #define TVN_BEGINLABELEDIT WINELIB_NAME_AW(TVN_BEGINLABELEDIT)
2410 #define TVN_ENDLABELEDITA (TVN_FIRST-11)
2411 #define TVN_ENDLABELEDITW (TVN_FIRST-60)
2412 #define TVN_ENDLABELEDIT WINELIB_NAME_AW(TVN_ENDLABELEDIT)
2414 #define TVN_KEYDOWN (TVN_FIRST-12)
2416 #define TVN_GETINFOTIPA (TVN_FIRST-13)
2417 #define TVN_GETINFOTIPW (TVN_FIRST-14)
2418 #define TVN_GETINFOTIP WINELIB_NAME_AW(TVN_GETINFOTIP)
2420 #define TVN_SINGLEEXPAND (TVN_FIRST-15)
2426 #define TVIF_TEXT 0x0001
2427 #define TVIF_IMAGE 0x0002
2428 #define TVIF_PARAM 0x0004
2429 #define TVIF_STATE 0x0008
2430 #define TVIF_HANDLE 0x0010
2431 #define TVIF_SELECTEDIMAGE 0x0020
2432 #define TVIF_CHILDREN 0x0040
2433 #define TVIF_INTEGRAL 0x0080
2434 #define TVIF_STATEEX 0x0100
2435 #define TVIF_EXPANDEDIMAGE 0x0200
2436 #define TVIF_DI_SETITEM 0x1000
2438 #define TVI_ROOT ((HTREEITEM)-65536)
2439 #define TVI_FIRST ((HTREEITEM)-65535)
2440 #define TVI_LAST ((HTREEITEM)-65534)
2441 #define TVI_SORT ((HTREEITEM)-65533)
2443 #define TVIS_FOCUSED 0x0001
2444 #define TVIS_SELECTED 0x0002
2445 #define TVIS_CUT 0x0004
2446 #define TVIS_DROPHILITED 0x0008
2447 #define TVIS_BOLD 0x0010
2448 #define TVIS_EXPANDED 0x0020
2449 #define TVIS_EXPANDEDONCE 0x0040
2450 #define TVIS_EXPANDPARTIAL 0x0080
2451 #define TVIS_OVERLAYMASK 0x0f00
2452 #define TVIS_STATEIMAGEMASK 0xf000
2453 #define TVIS_USERMASK 0xf000
2455 #define TVIS_EX_FLAT 0x0001
2456 #define TVIS_EX_DISABLED 0x0002
2457 /* TVIS_EX_HWND is listed on MSDN but apparently not in any header. */
2458 #define TVIS_EX_ALL 0x0002
2460 #define TVHT_NOWHERE 0x0001
2461 #define TVHT_ONITEMICON 0x0002
2462 #define TVHT_ONITEMLABEL 0x0004
2463 #define TVHT_ONITEMINDENT 0x0008
2464 #define TVHT_ONITEMBUTTON 0x0010
2465 #define TVHT_ONITEMRIGHT 0x0020
2466 #define TVHT_ONITEMSTATEICON 0x0040
2467 #define TVHT_ONITEM 0x0046
2468 #define TVHT_ABOVE 0x0100
2469 #define TVHT_BELOW 0x0200
2470 #define TVHT_TORIGHT 0x0400
2471 #define TVHT_TOLEFT 0x0800
2473 #define TVS_HASBUTTONS 0x0001
2474 #define TVS_HASLINES 0x0002
2475 #define TVS_LINESATROOT 0x0004
2476 #define TVS_EDITLABELS 0x0008
2477 #define TVS_DISABLEDRAGDROP 0x0010
2478 #define TVS_SHOWSELALWAYS 0x0020
2479 #define TVS_RTLREADING 0x0040
2480 #define TVS_NOTOOLTIPS 0x0080
2481 #define TVS_CHECKBOXES 0x0100
2482 #define TVS_TRACKSELECT 0x0200
2483 #define TVS_SINGLEEXPAND 0x0400
2484 #define TVS_INFOTIP 0x0800
2485 #define TVS_FULLROWSELECT 0x1000
2486 #define TVS_NOSCROLL 0x2000
2487 #define TVS_NONEVENHEIGHT 0x4000
2488 #define TVS_NOHSCROLL 0x8000
2490 #define TVS_SHAREDIMAGELISTS 0x0000
2491 #define TVS_PRIVATEIMAGELISTS 0x0400
2493 #define TVS_EX_MULTISELECT 0x0002
2494 #define TVS_EX_DOUBLEBUFFER 0x0004
2495 #define TVS_EX_NOINDENTSTATE 0x0008
2496 #define TVS_EX_RICHTOOLTIP 0x0010
2497 #define TVS_EX_AUTOHSCROLL 0x0020
2498 #define TVS_EX_FADEINOUTEXPANDOS 0x0040
2499 #define TVS_EX_PARTIALCHECKBOXES 0x0080
2500 #define TVS_EX_EXCLUSIONCHECKBOXES 0x0100
2501 #define TVS_EX_DIMMEDCHECKBOXES 0x0200
2502 #define TVS_EX_DRAWIMAGEASYNC 0x0400
2504 #define TVE_COLLAPSE 0x0001
2505 #define TVE_EXPAND 0x0002
2506 #define TVE_TOGGLE 0x0003
2507 #define TVE_EXPANDPARTIAL 0x4000
2508 #define TVE_COLLAPSERESET 0x8000
2512 #define TVGN_PREVIOUS 2
2513 #define TVGN_PARENT 3
2514 #define TVGN_CHILD 4
2515 #define TVGN_FIRSTVISIBLE 5
2516 #define TVGN_NEXTVISIBLE 6
2517 #define TVGN_PREVIOUSVISIBLE 7
2518 #define TVGN_DROPHILITE 8
2519 #define TVGN_CARET 9
2520 #define TVGN_LASTVISIBLE 10
2521 #define TVSI_NOSINGLEEXPAND 0x8000
2523 #define TVC_UNKNOWN 0x00
2524 #define TVC_BYMOUSE 0x01
2525 #define TVC_BYKEYBOARD 0x02
2528 typedef struct _TREEITEM
*HTREEITEM
;
2541 } TVITEMA
, *LPTVITEMA
;
2554 } TVITEMW
, *LPTVITEMW
;
2556 #define TV_ITEMA TVITEMA
2557 #define TV_ITEMW TVITEMW
2558 #define LPTV_ITEMA LPTVITEMA
2559 #define LPTV_ITEMW LPTVITEMW
2561 #define TVITEM WINELIB_NAME_AW(TVITEM)
2562 #define LPTVITEM WINELIB_NAME_AW(LPTVITEM)
2563 #define TV_ITEM WINELIB_NAME_AW(TV_ITEM)
2564 #define LPTV_ITEM WINELIB_NAME_AW(LPTV_ITEM)
2578 UINT uStateEx
; /* _WIN32_IE >= 0x600 */
2579 HWND hwnd
; /* _WIN32_IE >= 0x600 */
2580 INT iExpandedImage
; /* _WIN32_IE >= 0x600 */
2581 } TVITEMEXA
, *LPTVITEMEXA
;
2595 UINT uStateEx
; /* _WIN32_IE >= 0x600 */
2596 HWND hwnd
; /* _WIN32_IE >= 0x600 */
2597 INT iExpandedImage
; /* _WIN32_IE >= 0x600 */
2598 } TVITEMEXW
, *LPTVITEMEXW
;
2600 #define TVITEMEX WINELIB_NAME_AW(TVITEMEX)
2601 #define LPTVITEMEX WINELIB_NAME_AW(LPTVITEMEX)
2603 typedef struct tagTVINSERTSTRUCTA
{
2605 HTREEITEM hInsertAfter
;
2610 } TVINSERTSTRUCTA
, *LPTVINSERTSTRUCTA
;
2612 typedef struct tagTVINSERTSTRUCTW
{
2614 HTREEITEM hInsertAfter
;
2619 } TVINSERTSTRUCTW
, *LPTVINSERTSTRUCTW
;
2621 #define TVINSERTSTRUCT WINELIB_NAME_AW(TVINSERTSTRUCT)
2622 #define LPTVINSERTSTRUCT WINELIB_NAME_AW(LPTVINSERTSTRUCT)
2624 #define TVINSERTSTRUCT_V1_SIZEA CCSIZEOF_STRUCT(TVINSERTSTRUCTA, item)
2625 #define TVINSERTSTRUCT_V1_SIZEW CCSIZEOF_STRUCT(TVINSERTSTRUCTW, item)
2626 #define TVINSERTSTRUCT_V1_SIZE WINELIB_NAME_AW(TVINSERTSTRUCT_V1_SIZE)
2628 #define TV_INSERTSTRUCT TVINSERTSTRUCT
2629 #define TV_INSERTSTRUCTA TVINSERTSTRUCTA
2630 #define TV_INSERTSTRUCTW TVINSERTSTRUCTW
2631 #define LPTV_INSERTSTRUCT LPTVINSERTSTRUCT
2632 #define LPTV_INSERTSTRUCTA LPTVINSERTSTRUCTA
2633 #define LPTV_INSERTSTRUCTW LPTVINSERTSTRUCTW
2637 typedef struct tagNMTREEVIEWA
{
2643 } NMTREEVIEWA
, *LPNMTREEVIEWA
;
2645 typedef struct tagNMTREEVIEWW
{
2651 } NMTREEVIEWW
, *LPNMTREEVIEWW
;
2653 #define NMTREEVIEW WINELIB_NAME_AW(NMTREEVIEW)
2654 #define NM_TREEVIEW WINELIB_NAME_AW(NMTREEVIEW)
2655 #define NM_TREEVIEWA NMTREEVIEWA
2656 #define NM_TREEVIEWW NMTREEVIEWW
2657 #define LPNMTREEVIEW WINELIB_NAME_AW(LPNMTREEVIEW)
2659 #define LPNM_TREEVIEW LPNMTREEVIEW
2660 #define LPNM_TREEVIEWA LPNMTREEVIEWA
2661 #define LPNM_TREEVIEWW LPNMTREEVIEWW
2663 typedef struct tagTVDISPINFOA
{
2666 } NMTVDISPINFOA
, *LPNMTVDISPINFOA
;
2668 typedef struct tagTVDISPINFOW
{
2671 } NMTVDISPINFOW
, *LPNMTVDISPINFOW
;
2673 typedef struct tagTVDISPINFOEXA
{
2676 } NMTVDISPINFOEXA
, *LPNMTVDISPINFOEXA
;
2678 typedef struct tagTVDISPINFOEXW
{
2681 } NMTVDISPINFOEXW
, *LPNMTVDISPINFOEXW
;
2683 #define NMTVDISPINFO WINELIB_NAME_AW(NMTVDISPINFO)
2684 #define LPNMTVDISPINFO WINELIB_NAME_AW(LPNMTVDISPINFO)
2685 #define NMTVDISPINFOEX WINELIB_NAME_AW(NMTVDISPINFOEX)
2686 #define LPNMTVDISPINFOEX WINELIB_NAME_AW(LPNMTVDISPINFOEX)
2687 #define TV_DISPINFOA NMTVDISPINFOA
2688 #define TV_DISPINFOW NMTVDISPINFOW
2689 #define TV_DISPINFO NMTVDISPINFO
2691 typedef INT (CALLBACK
*PFNTVCOMPARE
)(LPARAM
, LPARAM
, LPARAM
);
2693 typedef struct tagTVSORTCB
2696 PFNTVCOMPARE lpfnCompare
;
2698 } TVSORTCB
, *LPTVSORTCB
;
2700 #define TV_SORTCB TVSORTCB
2701 #define LPTV_SORTCB LPTVSORTCB
2703 typedef struct tagTVHITTESTINFO
{
2707 } TVHITTESTINFO
, *LPTVHITTESTINFO
;
2709 #define TV_HITTESTINFO TVHITTESTINFO
2712 /* Custom Draw Treeview */
2714 #define NMTVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMTVCUSTOMDRAW, clrTextBk)
2716 #define TVCDRF_NOIMAGES 0x00010000
2718 typedef struct tagNMTVCUSTOMDRAW
2723 INT iLevel
; /* IE>0x0400 */
2724 } NMTVCUSTOMDRAW
, *LPNMTVCUSTOMDRAW
;
2726 /* Treeview tooltips */
2728 typedef struct tagNMTVGETINFOTIPA
2735 } NMTVGETINFOTIPA
, *LPNMTVGETINFOTIPA
;
2737 typedef struct tagNMTVGETINFOTIPW
2744 } NMTVGETINFOTIPW
, *LPNMTVGETINFOTIPW
;
2746 #define NMTVGETINFOTIP WINELIB_NAME_AW(NMTVGETINFOTIP)
2747 #define LPNMTVGETINFOTIP WINELIB_NAME_AW(LPNMTVGETINFOTIP)
2749 #include <pshpack1.h>
2750 typedef struct tagTVKEYDOWN
2755 } NMTVKEYDOWN
, *LPNMTVKEYDOWN
;
2756 #include <poppack.h>
2758 #define TV_KEYDOWN NMTVKEYDOWN
2760 #define TreeView_InsertItemA(hwnd, phdi) \
2761 (HTREEITEM)SNDMSGA((hwnd), TVM_INSERTITEMA, 0, \
2762 (LPARAM)(LPTVINSERTSTRUCTA)(phdi))
2763 #define TreeView_InsertItemW(hwnd,phdi) \
2764 (HTREEITEM)SNDMSGW((hwnd), TVM_INSERTITEMW, 0, \
2765 (LPARAM)(LPTVINSERTSTRUCTW)(phdi))
2766 #define TreeView_InsertItem WINELIB_NAME_AW(TreeView_InsertItem)
2768 #define TreeView_DeleteItem(hwnd, hItem) \
2769 (BOOL)SNDMSG((hwnd), TVM_DELETEITEM, 0, (LPARAM)(HTREEITEM)(hItem))
2770 #define TreeView_DeleteAllItems(hwnd) \
2771 (BOOL)SNDMSG((hwnd), TVM_DELETEITEM, 0, (LPARAM)TVI_ROOT)
2772 #define TreeView_Expand(hwnd, hitem, code) \
2773 (BOOL)SNDMSG((hwnd), TVM_EXPAND, (WPARAM)code, \
2774 (LPARAM)(HTREEITEM)(hitem))
2776 #define TreeView_GetItemRect(hwnd, hitem, prc, code) \
2777 (*(HTREEITEM *)prc = (hitem), (BOOL)SNDMSG((hwnd), \
2778 TVM_GETITEMRECT, (WPARAM)(code), (LPARAM)(RECT *)(prc)))
2780 #define TreeView_GetCount(hwnd) \
2781 (UINT)SNDMSG((hwnd), TVM_GETCOUNT, 0, 0)
2782 #define TreeView_GetIndent(hwnd) \
2783 (UINT)SNDMSG((hwnd), TVM_GETINDENT, 0, 0)
2784 #define TreeView_SetIndent(hwnd, indent) \
2785 (BOOL)SNDMSG((hwnd), TVM_SETINDENT, (WPARAM)indent, 0)
2787 #define TreeView_GetImageList(hwnd, iImage) \
2788 (HIMAGELIST)SNDMSG((hwnd), TVM_GETIMAGELIST, iImage, 0)
2790 #define TreeView_SetImageList(hwnd, himl, iImage) \
2791 (HIMAGELIST)SNDMSG((hwnd), TVM_SETIMAGELIST, iImage, \
2792 (LPARAM)(HIMAGELIST)(himl))
2794 #define TreeView_GetNextItem(hwnd, hitem, code) \
2795 (HTREEITEM)SNDMSG((hwnd), TVM_GETNEXTITEM, (WPARAM)code,\
2796 (LPARAM)(HTREEITEM) (hitem))
2798 #define TreeView_GetChild(hwnd, hitem) \
2799 TreeView_GetNextItem(hwnd, hitem , TVGN_CHILD)
2800 #define TreeView_GetNextSibling(hwnd, hitem) \
2801 TreeView_GetNextItem(hwnd, hitem , TVGN_NEXT)
2802 #define TreeView_GetPrevSibling(hwnd, hitem) \
2803 TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUS)
2804 #define TreeView_GetParent(hwnd, hitem) \
2805 TreeView_GetNextItem(hwnd, hitem , TVGN_PARENT)
2806 #define TreeView_GetFirstVisible(hwnd) \
2807 TreeView_GetNextItem(hwnd, NULL, TVGN_FIRSTVISIBLE)
2808 #define TreeView_GetLastVisible(hwnd) \
2809 TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE)
2810 #define TreeView_GetNextVisible(hwnd, hitem) \
2811 TreeView_GetNextItem(hwnd, hitem , TVGN_NEXTVISIBLE)
2812 #define TreeView_GetPrevVisible(hwnd, hitem) \
2813 TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUSVISIBLE)
2814 #define TreeView_GetSelection(hwnd) \
2815 TreeView_GetNextItem(hwnd, NULL, TVGN_CARET)
2816 #define TreeView_GetDropHilight(hwnd) \
2817 TreeView_GetNextItem(hwnd, NULL, TVGN_DROPHILITE)
2818 #define TreeView_GetRoot(hwnd) \
2819 TreeView_GetNextItem(hwnd, NULL, TVGN_ROOT)
2820 #define TreeView_GetLastVisible(hwnd) \
2821 TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE)
2824 #define TreeView_Select(hwnd, hitem, code) \
2825 (BOOL)SNDMSG((hwnd), TVM_SELECTITEM, (WPARAM)(code), \
2826 (LPARAM)(HTREEITEM)(hitem))
2829 #define TreeView_SelectItem(hwnd, hitem) \
2830 TreeView_Select(hwnd, hitem, TVGN_CARET)
2831 #define TreeView_SelectDropTarget(hwnd, hitem) \
2832 TreeView_Select(hwnd, hitem, TVGN_DROPHILITE)
2833 #define TreeView_SelectSetFirstVisible(hwnd, hitem) \
2834 TreeView_Select(hwnd, hitem, TVGN_FIRSTVISIBLE)
2837 #define TreeView_GetItemA(hwnd, pitem) \
2838 (BOOL)SNDMSGA((hwnd), TVM_GETITEMA, 0, (LPARAM) (TVITEMA *)(pitem))
2839 #define TreeView_GetItemW(hwnd, pitem) \
2840 (BOOL)SNDMSGW((hwnd), TVM_GETITEMW, 0, (LPARAM) (TVITEMW *)(pitem))
2841 #define TreeView_GetItem WINELIB_NAME_AW(TreeView_GetItem)
2843 #define TreeView_SetItemA(hwnd, pitem) \
2844 (BOOL)SNDMSGA((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem))
2845 #define TreeView_SetItemW(hwnd, pitem) \
2846 (BOOL)SNDMSGW((hwnd), TVM_SETITEMW, 0, (LPARAM)(const TVITEMW *)(pitem))
2847 #define TreeView_SetItem WINELIB_NAME_AW(TreeView_SetItem)
2849 #define TreeView_EditLabel(hwnd, hitem) \
2850 (HWND)SNDMSG((hwnd), TVM_EDITLABEL, 0, (LPARAM)(HTREEITEM)(hitem))
2852 #define TreeView_GetEditControl(hwnd) \
2853 (HWND)SNDMSG((hwnd), TVM_GETEDITCONTROL, 0, 0)
2855 #define TreeView_GetVisibleCount(hwnd) \
2856 (UINT)SNDMSG((hwnd), TVM_GETVISIBLECOUNT, 0, 0)
2858 #define TreeView_HitTest(hwnd, lpht) \
2859 (HTREEITEM)SNDMSG((hwnd), TVM_HITTEST, 0,\
2860 (LPARAM)(LPTVHITTESTINFO)(lpht))
2862 #define TreeView_CreateDragImage(hwnd, hitem) \
2863 (HIMAGELIST)SNDMSG((hwnd), TVM_CREATEDRAGIMAGE, 0,\
2864 (LPARAM)(HTREEITEM)(hitem))
2866 #define TreeView_SortChildren(hwnd, hitem, recurse) \
2867 (BOOL)SNDMSG((hwnd), TVM_SORTCHILDREN, (WPARAM)recurse,\
2868 (LPARAM)(HTREEITEM)(hitem))
2870 #define TreeView_EnsureVisible(hwnd, hitem) \
2871 (BOOL)SNDMSG((hwnd), TVM_ENSUREVISIBLE, 0, (LPARAM)(UINT)(hitem))
2873 #define TreeView_SortChildrenCB(hwnd, psort, recurse) \
2874 (BOOL)SNDMSG((hwnd), TVM_SORTCHILDRENCB, (WPARAM)recurse, \
2875 (LPARAM)(LPTV_SORTCB)(psort))
2877 #define TreeView_EndEditLabelNow(hwnd, fCancel) \
2878 (BOOL)SNDMSG((hwnd), TVM_ENDEDITLABELNOW, (WPARAM)fCancel, 0)
2880 #define TreeView_GetISearchString(hwnd, lpsz) \
2881 (BOOL)SNDMSG((hwnd), TVM_GETISEARCHSTRING, 0, \
2882 (LPARAM)(LPTSTR)lpsz)
2884 #define TreeView_SetToolTips(hwnd, hwndTT) \
2885 (HWND)SNDMSG((hwnd), TVM_SETTOOLTIPS, (WPARAM)(hwndTT), 0)
2887 #define TreeView_GetToolTips(hwnd) \
2888 (HWND)SNDMSG((hwnd), TVM_GETTOOLTIPS, 0, 0)
2890 #define TreeView_SetItemHeight(hwnd, iHeight) \
2891 (INT)SNDMSG((hwnd), TVM_SETITEMHEIGHT, (WPARAM)iHeight, 0)
2893 #define TreeView_GetItemHeight(hwnd) \
2894 (INT)SNDMSG((hwnd), TVM_GETITEMHEIGHT, 0, 0)
2896 #define TreeView_SetBkColor(hwnd, clr) \
2897 (COLORREF)SNDMSG((hwnd), TVM_SETBKCOLOR, 0, (LPARAM)clr)
2899 #define TreeView_SetTextColor(hwnd, clr) \
2900 (COLORREF)SNDMSG((hwnd), TVM_SETTEXTCOLOR, 0, (LPARAM)clr)
2902 #define TreeView_GetBkColor(hwnd) \
2903 (COLORREF)SNDMSG((hwnd), TVM_GETBKCOLOR, 0, 0)
2905 #define TreeView_GetTextColor(hwnd) \
2906 (COLORREF)SNDMSG((hwnd), TVM_GETTEXTCOLOR, 0, 0)
2908 #define TreeView_SetScrollTime(hwnd, uTime) \
2909 (UINT)SNDMSG((hwnd), TVM_SETSCROLLTIME, uTime, 0)
2911 #define TreeView_GetScrollTime(hwnd) \
2912 (UINT)SNDMSG((hwnd), TVM_GETSCROLLTIME, 0, 0)
2914 #define TreeView_SetInsertMark(hwnd, hItem, fAfter) \
2915 (BOOL)SNDMSG((hwnd), TVM_SETINSERTMARK, (WPARAM)(fAfter), \
2918 #define TreeView_SetInsertMarkColor(hwnd, clr) \
2919 (COLORREF)SNDMSG((hwnd), TVM_SETINSERTMARKCOLOR, 0, (LPARAM)clr)
2921 #define TreeView_GetInsertMarkColor(hwnd) \
2922 (COLORREF)SNDMSG((hwnd), TVM_GETINSERTMARKCOLOR, 0, 0)
2924 #define TreeView_SetItemState(hwndTV, hti, data, _mask) \
2926 _TVi.mask = TVIF_STATE; \
2928 _TVi.stateMask = _mask; \
2929 _TVi.state = data; \
2930 SNDMSG((hwndTV), TVM_SETITEM, 0, (LPARAM)&_TVi); \
2933 #define TreeView_GetItemState(hwndTV, hti, mask) \
2934 (UINT)SNDMSG((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti), (LPARAM)(mask))
2935 #define TreeView_GetCheckState(hwndTV, hti) \
2936 ((((UINT)(SNDMSG((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti), \
2937 TVIS_STATEIMAGEMASK))) >> 12) -1)
2939 #define TreeView_SetLineColor(hwnd, clr) \
2940 (COLORREF)SNDMSG((hwnd), TVM_SETLINECOLOR, 0, (LPARAM)(clr))
2942 #define TreeView_GetLineColor(hwnd) \
2943 (COLORREF)SNDMSG((hwnd), TVM_GETLINECOLOR, 0, 0)
2945 #define TreeView_MapAccIDToHTREEITEM(hwnd, id) \
2946 (HTREEITEM)SNDMSG((hwnd), TVM_MAPACCIDTOHTREEITEM, id, 0)
2948 #define TreeView_MapHTREEITEMToAccID(hwnd, htreeitem) \
2949 (UINT)SNDMSG((hwnd), TVM_MAPHTREEITEMTOACCID, (WPARAM)htreeitem, 0)
2951 #define TreeView_SetUnicodeFormat(hwnd, fUnicode) \
2952 (BOOL)SNDMSG((hwnd), TVM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0)
2953 #define TreeView_GetUnicodeFormat(hwnd) \
2954 (BOOL)SNDMSG((hwnd), TVM_GETUNICODEFORMAT, 0, 0)
2956 /* Listview control */
2958 #define WC_LISTVIEWA "SysListView32"
2959 #if defined(__GNUC__)
2960 # define WC_LISTVIEWW (const WCHAR []){ 'S','y','s', \
2961 'L','i','s','t','V','i','e','w','3','2',0 }
2962 #elif defined(_MSC_VER)
2963 # define WC_LISTVIEWW L"SysListView32"
2965 static const WCHAR WC_LISTVIEWW
[] = { 'S','y','s',
2966 'L','i','s','t','V','i','e','w','3','2',0 };
2968 #define WC_LISTVIEW WINELIB_NAME_AW(WC_LISTVIEW)
2970 #define LVSCW_AUTOSIZE -1
2971 #define LVSCW_AUTOSIZE_USEHEADER -2
2973 #define LVS_ICON 0x0000
2974 #define LVS_REPORT 0x0001
2975 #define LVS_SMALLICON 0x0002
2976 #define LVS_LIST 0x0003
2977 #define LVS_TYPEMASK 0x0003
2978 #define LVS_SINGLESEL 0x0004
2979 #define LVS_SHOWSELALWAYS 0x0008
2980 #define LVS_SORTASCENDING 0x0010
2981 #define LVS_SORTDESCENDING 0x0020
2982 #define LVS_SHAREIMAGELISTS 0x0040
2983 #define LVS_NOLABELWRAP 0x0080
2984 #define LVS_AUTOARRANGE 0x0100
2985 #define LVS_EDITLABELS 0x0200
2986 #define LVS_OWNERDATA 0x1000
2987 #define LVS_NOSCROLL 0x2000
2988 #define LVS_TYPESTYLEMASK 0xfc00
2989 #define LVS_ALIGNTOP 0x0000
2990 #define LVS_ALIGNLEFT 0x0800
2991 #define LVS_ALIGNMASK 0x0c00
2992 #define LVS_OWNERDRAWFIXED 0x0400
2993 #define LVS_NOCOLUMNHEADER 0x4000
2994 #define LVS_NOSORTHEADER 0x8000
2996 #define LVS_EX_GRIDLINES 0x0001
2997 #define LVS_EX_SUBITEMIMAGES 0x0002
2998 #define LVS_EX_CHECKBOXES 0x0004
2999 #define LVS_EX_TRACKSELECT 0x0008
3000 #define LVS_EX_HEADERDRAGDROP 0x0010
3001 #define LVS_EX_FULLROWSELECT 0x0020
3002 #define LVS_EX_ONECLICKACTIVATE 0x0040
3003 #define LVS_EX_TWOCLICKACTIVATE 0x0080
3004 #define LVS_EX_FLATSB 0x0100
3005 #define LVS_EX_REGIONAL 0x0200
3006 #define LVS_EX_INFOTIP 0x0400
3007 #define LVS_EX_UNDERLINEHOT 0x0800
3008 #define LVS_EX_UNDERLINECOLD 0x1000
3009 #define LVS_EX_MULTIWORKAREAS 0x2000
3010 #define LVS_EX_LABELTIP 0x4000
3011 #define LVS_EX_BORDERSELECT 0x8000
3012 #define LVS_EX_DOUBLEBUFFER 0x00010000
3013 #define LVS_EX_HIDELABELS 0x00020000
3014 #define LVS_EX_SINGLEROW 0x00040000
3015 #define LVS_EX_SNAPTOGRID 0x00080000
3016 #define LVS_EX_SIMPLESELECT 0x00100000
3017 #define LVS_EX_JUSTIFYCOLUMNS 0x00200000
3018 #define LVS_EX_TRANSPARENTBKGND 0x00400000
3019 #define LVS_EX_TRANSPARENTSHADOWTEXT 0x00800000
3020 #define LVS_EX_AUTOAUTOARRANGE 0x01000000
3021 #define LVS_EX_HEADERINALLVIEWS 0x02000000
3022 #define LVS_EX_AUTOCHECKSELECT 0x08000000
3023 #define LVS_EX_AUTOSIZECOLUMNS 0x10000000
3024 #define LVS_EX_COLUMNSNAPPOINTS 0x40000000
3025 #define LVS_EX_COLUMNOVERFLOW 0x80000000
3027 #define LVCF_FMT 0x0001
3028 #define LVCF_WIDTH 0x0002
3029 #define LVCF_TEXT 0x0004
3030 #define LVCF_SUBITEM 0x0008
3031 #define LVCF_IMAGE 0x0010
3032 #define LVCF_ORDER 0x0020
3033 #define LVCF_MINWIDTH 0x0040
3035 #define LVCFMT_LEFT 0x0000
3036 #define LVCFMT_RIGHT 0x0001
3037 #define LVCFMT_CENTER 0x0002
3038 #define LVCFMT_JUSTIFYMASK 0x0003
3039 #define LVCFMT_FIXED_WIDTH 0x0100
3040 #define LVCFMT_IMAGE 0x0800
3041 #define LVCFMT_BITMAP_ON_RIGHT 0x1000
3042 #define LVCFMT_COL_HAS_IMAGES 0x8000
3043 #define LVCFMT_NO_DPI_SCALE 0x00040000
3044 #define LVCFMT_FIXED_RATIO 0x00080000
3045 #define LVCFMT_LINE_BREAK 0x00100000
3046 #define LVCFMT_FILL 0x00200000
3047 #define LVCFMT_WRAP 0x00400000
3048 #define LVCFMT_NO_TITLE 0x00800000
3049 #define LVCFMT_SPLIT_BUTTON 0x01000000
3050 #define LVCFMT_TILE_PLACEMENTMASK (LVCFMT_LINE_BREAK | LVCFMT_FILL)
3052 #define LVSIL_NORMAL 0
3053 #define LVSIL_SMALL 1
3054 #define LVSIL_STATE 2
3055 #define LVSIL_GROUPHEADER 3
3057 /* following 2 flags only for LVS_OWNERDATA listviews */
3058 /* and only in report or list mode */
3059 #define LVSICF_NOINVALIDATEALL 0x0001
3060 #define LVSICF_NOSCROLL 0x0002
3063 #define LVFI_PARAM 0x0001
3064 #define LVFI_STRING 0x0002
3065 #define LVFI_SUBSTRING 0x0004
3066 #define LVFI_PARTIAL 0x0008
3067 #define LVFI_WRAP 0x0020
3068 #define LVFI_NEARESTXY 0x0040
3070 #define LVIF_TEXT 0x0001
3071 #define LVIF_IMAGE 0x0002
3072 #define LVIF_PARAM 0x0004
3073 #define LVIF_STATE 0x0008
3074 #define LVIF_INDENT 0x0010
3075 #define LVIF_GROUPID 0x0100
3076 #define LVIF_COLUMNS 0x0200
3077 #define LVIF_NORECOMPUTE 0x0800
3078 #define LVIF_DI_SETITEM 0x1000
3079 #define LVIF_COLFMT 0x00010000
3081 #define LVIR_BOUNDS 0x0000
3082 #define LVIR_ICON 0x0001
3083 #define LVIR_LABEL 0x0002
3084 #define LVIR_SELECTBOUNDS 0x0003
3086 #define LVIS_FOCUSED 0x0001
3087 #define LVIS_SELECTED 0x0002
3088 #define LVIS_CUT 0x0004
3089 #define LVIS_DROPHILITED 0x0008
3090 #define LVIS_ACTIVATING 0x0020
3092 #define LVIS_OVERLAYMASK 0x0F00
3093 #define LVIS_STATEIMAGEMASK 0xF000
3095 #define LVNI_ALL 0x0000
3096 #define LVNI_FOCUSED 0x0001
3097 #define LVNI_SELECTED 0x0002
3098 #define LVNI_CUT 0x0004
3099 #define LVNI_DROPHILITED 0x0008
3101 #define LVNI_ABOVE 0x0100
3102 #define LVNI_BELOW 0x0200
3103 #define LVNI_TOLEFT 0x0400
3104 #define LVNI_TORIGHT 0x0800
3106 #define LVHT_NOWHERE 0x0001
3107 #define LVHT_ONITEMICON 0x0002
3108 #define LVHT_ONITEMLABEL 0x0004
3109 #define LVHT_ONITEMSTATEICON 0x0008
3110 #define LVHT_ONITEM (LVHT_ONITEMICON|LVHT_ONITEMLABEL|LVHT_ONITEMSTATEICON)
3112 #define LVHT_ABOVE 0x0008
3113 #define LVHT_BELOW 0x0010
3114 #define LVHT_TORIGHT 0x0020
3115 #define LVHT_TOLEFT 0x0040
3117 #define LV_VIEW_ICON 0x0000
3118 #define LV_VIEW_DETAILS 0x0001
3119 #define LV_VIEW_SMALLICON 0x0002
3120 #define LV_VIEW_LIST 0x0003
3121 #define LV_VIEW_TILE 0x0004
3122 #define LV_VIEW_MAX 0x0004
3124 #define LVGF_NONE 0x00000000
3125 #define LVGF_HEADER 0x00000001
3126 #define LVGF_FOOTER 0x00000002
3127 #define LVGF_STATE 0x00000004
3128 #define LVGF_ALIGN 0x00000008
3129 #define LVGF_GROUPID 0x00000010
3130 #define LVGF_SUBTITLE 0x00000100
3131 #define LVGF_TASK 0x00000200
3132 #define LVGF_DESCRIPTIONTOP 0x00000400
3133 #define LVGF_DESCRIPTIONBOTTOM 0x00000800
3134 #define LVGF_TITLEIMAGE 0x00001000
3135 #define LVGF_EXTENDEDIMAGE 0x00002000
3136 #define LVGF_ITEMS 0x00004000
3137 #define LVGF_SUBSET 0x00008000
3138 #define LVGF_SUBSETITEMS 0x00010000
3140 #define LVGS_NORMAL 0x00000000
3141 #define LVGS_COLLAPSED 0x00000001
3142 #define LVGS_HIDDEN 0x00000002
3144 #define LVGA_HEADER_LEFT 0x00000001
3145 #define LVGA_HEADER_CENTER 0x00000002
3146 #define LVGA_HEADER_RIGHT 0x00000004
3147 #define LVGA_FOOTER_LEFT 0x00000008
3148 #define LVGA_FOOTER_CENTER 0x00000010
3149 #define LVGA_FOOTER_RIGHT 0x00000020
3151 #define LVGMF_NONE 0x00000000
3152 #define LVGMF_BORDERSIZE 0x00000001
3153 #define LVGMF_BORDERCOLOR 0x00000002
3154 #define LVGMF_TEXTCOLOR 0x00000004
3156 #define LVTVIF_AUTOSIZE 0x00000000
3157 #define LVTVIF_FIXEDWIDTH 0x00000001
3158 #define LVTVIF_FIXEDHEIGHT 0x00000002
3159 #define LVTVIF_FIXEDSIZE 0x00000003
3160 #define LVTVIF_EXTENDED 0x00000004
3162 #define LVTVIM_TILESIZE 0x00000001
3163 #define LVTVIM_COLUMNS 0x00000002
3164 #define LVTVIM_LABELMARGIN 0x00000004
3166 #define LVIM_AFTER 0x00000001
3168 #define LVM_FIRST 0x1000
3169 #define LVM_GETBKCOLOR (LVM_FIRST+0)
3170 #define LVM_SETBKCOLOR (LVM_FIRST+1)
3171 #define LVM_GETIMAGELIST (LVM_FIRST+2)
3172 #define LVM_SETIMAGELIST (LVM_FIRST+3)
3173 #define LVM_GETITEMCOUNT (LVM_FIRST+4)
3174 #define LVM_GETITEMA (LVM_FIRST+5)
3175 #define LVM_GETITEMW (LVM_FIRST+75)
3176 #define LVM_GETITEM WINELIB_NAME_AW(LVM_GETITEM)
3177 #define LVM_SETITEMA (LVM_FIRST+6)
3178 #define LVM_SETITEMW (LVM_FIRST+76)
3179 #define LVM_SETITEM WINELIB_NAME_AW(LVM_SETITEM)
3180 #define LVM_INSERTITEMA (LVM_FIRST+7)
3181 #define LVM_INSERTITEMW (LVM_FIRST+77)
3182 #define LVM_INSERTITEM WINELIB_NAME_AW(LVM_INSERTITEM)
3183 #define LVM_DELETEITEM (LVM_FIRST+8)
3184 #define LVM_DELETEALLITEMS (LVM_FIRST+9)
3185 #define LVM_GETCALLBACKMASK (LVM_FIRST+10)
3186 #define LVM_SETCALLBACKMASK (LVM_FIRST+11)
3187 #define LVM_GETNEXTITEM (LVM_FIRST+12)
3188 #define LVM_FINDITEMA (LVM_FIRST+13)
3189 #define LVM_FINDITEMW (LVM_FIRST+83)
3190 #define LVM_FINDITEM WINELIB_NAME_AW(LVM_FINDITEM)
3191 #define LVM_GETITEMRECT (LVM_FIRST+14)
3192 #define LVM_SETITEMPOSITION (LVM_FIRST+15)
3193 #define LVM_GETITEMPOSITION (LVM_FIRST+16)
3194 #define LVM_GETSTRINGWIDTHA (LVM_FIRST+17)
3195 #define LVM_GETSTRINGWIDTHW (LVM_FIRST+87)
3196 #define LVM_GETSTRINGWIDTH WINELIB_NAME_AW(LVM_GETSTRINGWIDTH)
3197 #define LVM_HITTEST (LVM_FIRST+18)
3198 #define LVM_ENSUREVISIBLE (LVM_FIRST+19)
3199 #define LVM_SCROLL (LVM_FIRST+20)
3200 #define LVM_REDRAWITEMS (LVM_FIRST+21)
3201 #define LVM_ARRANGE (LVM_FIRST+22)
3202 #define LVM_EDITLABELA (LVM_FIRST+23)
3203 #define LVM_EDITLABELW (LVM_FIRST+118)
3204 #define LVM_EDITLABEL WINELIB_NAME_AW(LVM_EDITLABEL)
3205 #define LVM_GETEDITCONTROL (LVM_FIRST+24)
3206 #define LVM_GETCOLUMNA (LVM_FIRST+25)
3207 #define LVM_GETCOLUMNW (LVM_FIRST+95)
3208 #define LVM_GETCOLUMN WINELIB_NAME_AW(LVM_GETCOLUMN)
3209 #define LVM_SETCOLUMNA (LVM_FIRST+26)
3210 #define LVM_SETCOLUMNW (LVM_FIRST+96)
3211 #define LVM_SETCOLUMN WINELIB_NAME_AW(LVM_SETCOLUMN)
3212 #define LVM_INSERTCOLUMNA (LVM_FIRST+27)
3213 #define LVM_INSERTCOLUMNW (LVM_FIRST+97)
3214 #define LVM_INSERTCOLUMN WINELIB_NAME_AW(LVM_INSERTCOLUMN)
3215 #define LVM_DELETECOLUMN (LVM_FIRST+28)
3216 #define LVM_GETCOLUMNWIDTH (LVM_FIRST+29)
3217 #define LVM_SETCOLUMNWIDTH (LVM_FIRST+30)
3218 #define LVM_GETHEADER (LVM_FIRST+31)
3220 #define LVM_CREATEDRAGIMAGE (LVM_FIRST+33)
3221 #define LVM_GETVIEWRECT (LVM_FIRST+34)
3222 #define LVM_GETTEXTCOLOR (LVM_FIRST+35)
3223 #define LVM_SETTEXTCOLOR (LVM_FIRST+36)
3224 #define LVM_GETTEXTBKCOLOR (LVM_FIRST+37)
3225 #define LVM_SETTEXTBKCOLOR (LVM_FIRST+38)
3226 #define LVM_GETTOPINDEX (LVM_FIRST+39)
3227 #define LVM_GETCOUNTPERPAGE (LVM_FIRST+40)
3228 #define LVM_GETORIGIN (LVM_FIRST+41)
3229 #define LVM_UPDATE (LVM_FIRST+42)
3230 #define LVM_SETITEMSTATE (LVM_FIRST+43)
3231 #define LVM_GETITEMSTATE (LVM_FIRST+44)
3232 #define LVM_GETITEMTEXTA (LVM_FIRST+45)
3233 #define LVM_GETITEMTEXTW (LVM_FIRST+115)
3234 #define LVM_GETITEMTEXT WINELIB_NAME_AW(LVM_GETITEMTEXT)
3235 #define LVM_SETITEMTEXTA (LVM_FIRST+46)
3236 #define LVM_SETITEMTEXTW (LVM_FIRST+116)
3237 #define LVM_SETITEMTEXT WINELIB_NAME_AW(LVM_SETITEMTEXT)
3238 #define LVM_SETITEMCOUNT (LVM_FIRST+47)
3239 #define LVM_SORTITEMS (LVM_FIRST+48)
3240 #define LVM_SORTITEMSEX (LVM_FIRST+81)
3241 #define LVM_SETITEMPOSITION32 (LVM_FIRST+49)
3242 #define LVM_GETSELECTEDCOUNT (LVM_FIRST+50)
3243 #define LVM_GETITEMSPACING (LVM_FIRST+51)
3244 #define LVM_GETISEARCHSTRINGA (LVM_FIRST+52)
3245 #define LVM_GETISEARCHSTRINGW (LVM_FIRST+117)
3246 #define LVM_GETISEARCHSTRING WINELIB_NAME_AW(LVM_GETISEARCHSTRING)
3247 #define LVM_SETICONSPACING (LVM_FIRST+53)
3248 #define LVM_SETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+54)
3249 #define LVM_GETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+55)
3250 #define LVM_GETSUBITEMRECT (LVM_FIRST+56)
3251 #define LVM_SUBITEMHITTEST (LVM_FIRST+57)
3252 #define LVM_SETCOLUMNORDERARRAY (LVM_FIRST+58)
3253 #define LVM_GETCOLUMNORDERARRAY (LVM_FIRST+59)
3254 #define LVM_SETHOTITEM (LVM_FIRST+60)
3255 #define LVM_GETHOTITEM (LVM_FIRST+61)
3256 #define LVM_SETHOTCURSOR (LVM_FIRST+62)
3257 #define LVM_GETHOTCURSOR (LVM_FIRST+63)
3258 #define LVM_APPROXIMATEVIEWRECT (LVM_FIRST+64)
3259 #define LVM_SETWORKAREAS (LVM_FIRST+65)
3260 #define LVM_GETSELECTIONMARK (LVM_FIRST+66)
3261 #define LVM_SETSELECTIONMARK (LVM_FIRST+67)
3262 #define LVM_SETBKIMAGEA (LVM_FIRST+68)
3263 #define LVM_SETBKIMAGEW (LVM_FIRST+138)
3264 #define LVM_SETBKIMAGE WINELIB_NAME_AW(LVM_SETBKIMAGE)
3265 #define LVM_GETBKIMAGEA (LVM_FIRST+69)
3266 #define LVM_GETBKIMAGEW (LVM_FIRST+139)
3267 #define LVM_GETBKIMAGE WINELIB_NAME_AW(LVM_GETBKIMAGE)
3268 #define LVM_GETWORKAREAS (LVM_FIRST+70)
3269 #define LVM_SETHOVERTIME (LVM_FIRST+71)
3270 #define LVM_GETHOVERTIME (LVM_FIRST+72)
3271 #define LVM_GETNUMBEROFWORKAREAS (LVM_FIRST+73)
3272 #define LVM_SETTOOLTIPS (LVM_FIRST+74)
3273 #define LVM_GETTOOLTIPS (LVM_FIRST+78)
3274 #define LVM_GETUNICODEFORMAT (CCM_GETUNICODEFORMAT)
3275 #define LVM_SETUNICODEFORMAT (CCM_SETUNICODEFORMAT)
3276 #define LVM_SETSELECTEDCOLUMN (LVM_FIRST + 140)
3277 #define LVM_SETTILEWIDTH (LVM_FIRST + 141)
3278 #define LVM_SETVIEW (LVM_FIRST + 142)
3279 #define LVM_GETVIEW (LVM_FIRST + 143)
3280 #define LVM_INSERTGROUP (LVM_FIRST + 145)
3281 #define LVM_SETGROUPINFO (LVM_FIRST + 147)
3282 #define LVM_GETGROUPINFO (LVM_FIRST + 149)
3283 #define LVM_REMOVEGROUP (LVM_FIRST + 150)
3284 #define LVM_MOVEGROUP (LVM_FIRST + 151)
3285 #define LVM_MOVEITEMTOGROUP (LVM_FIRST + 154)
3286 #define LVM_SETGROUPMETRICS (LVM_FIRST + 155)
3287 #define LVM_GETGROUPMETRICS (LVM_FIRST + 156)
3288 #define LVM_ENABLEGROUPVIEW (LVM_FIRST + 157)
3289 #define LVM_SORTGROUPS (LVM_FIRST + 158)
3290 #define LVM_INSERTGROUPSORTED (LVM_FIRST + 159)
3291 #define LVM_REMOVEALLGROUPS (LVM_FIRST + 160)
3292 #define LVM_HASGROUP (LVM_FIRST + 161)
3293 #define LVM_SETTILEVIEWINFO (LVM_FIRST + 162)
3294 #define LVM_GETTILEVIEWINFO (LVM_FIRST + 163)
3295 #define LVM_SETTILEINFO (LVM_FIRST + 164)
3296 #define LVM_GETTILEINFO (LVM_FIRST + 165)
3297 #define LVM_SETINSERTMARK (LVM_FIRST + 166)
3298 #define LVM_GETINSERTMARK (LVM_FIRST + 167)
3299 #define LVM_INSERTMARKHITTEST (LVM_FIRST + 168)
3300 #define LVM_GETINSERTMARKRECT (LVM_FIRST + 169)
3301 #define LVM_SETINSERTMARKCOLOR (LVM_FIRST + 170)
3302 #define LVM_GETINSERTMARKCOLOR (LVM_FIRST + 171)
3303 #define LVM_SETINFOTIP (LVM_FIRST + 173)
3304 #define LVM_GETSELECTEDCOLUMN (LVM_FIRST + 174)
3305 #define LVM_ISGROUPVIEWENABLED (LVM_FIRST + 175)
3306 #define LVM_GETOUTLINECOLOR (LVM_FIRST + 176)
3307 #define LVM_SETOUTLINECOLOR (LVM_FIRST + 177)
3308 #define LVM_CANCELEDITLABEL (LVM_FIRST + 179)
3309 #define LVM_MAPINDEXTOID (LVM_FIRST + 180)
3310 #define LVM_MAPIDTOINDEX (LVM_FIRST + 181)
3311 #define LVM_ISITEMVISIBLE (LVM_FIRST + 182)
3313 #define LVN_FIRST (0U-100U)
3314 #define LVN_LAST (0U-199U)
3315 #define LVN_ITEMCHANGING (LVN_FIRST-0)
3316 #define LVN_ITEMCHANGED (LVN_FIRST-1)
3317 #define LVN_INSERTITEM (LVN_FIRST-2)
3318 #define LVN_DELETEITEM (LVN_FIRST-3)
3319 #define LVN_DELETEALLITEMS (LVN_FIRST-4)
3320 #define LVN_BEGINLABELEDITA (LVN_FIRST-5)
3321 #define LVN_BEGINLABELEDITW (LVN_FIRST-75)
3322 #define LVN_BEGINLABELEDIT WINELIB_NAME_AW(LVN_BEGINLABELEDIT)
3323 #define LVN_ENDLABELEDITA (LVN_FIRST-6)
3324 #define LVN_ENDLABELEDITW (LVN_FIRST-76)
3325 #define LVN_ENDLABELEDIT WINELIB_NAME_AW(LVN_ENDLABELEDIT)
3326 #define LVN_COLUMNCLICK (LVN_FIRST-8)
3327 #define LVN_BEGINDRAG (LVN_FIRST-9)
3328 #define LVN_BEGINRDRAG (LVN_FIRST-11)
3329 #define LVN_ODCACHEHINT (LVN_FIRST-13)
3330 #define LVN_ITEMACTIVATE (LVN_FIRST-14)
3331 #define LVN_ODSTATECHANGED (LVN_FIRST-15)
3332 #define LVN_HOTTRACK (LVN_FIRST-21)
3333 #define LVN_ODFINDITEMA (LVN_FIRST-52)
3334 #define LVN_ODFINDITEMW (LVN_FIRST-79)
3335 #define LVN_ODFINDITEM WINELIB_NAME_AW(LVN_ODFINDITEM)
3336 #define LVN_GETDISPINFOA (LVN_FIRST-50)
3337 #define LVN_GETDISPINFOW (LVN_FIRST-77)
3338 #define LVN_GETDISPINFO WINELIB_NAME_AW(LVN_GETDISPINFO)
3339 #define LVN_SETDISPINFOA (LVN_FIRST-51)
3340 #define LVN_SETDISPINFOW (LVN_FIRST-78)
3341 #define LVN_SETDISPINFO WINELIB_NAME_AW(LVN_SETDISPINFO)
3342 #define LVN_KEYDOWN (LVN_FIRST-55)
3343 #define LVN_MARQUEEBEGIN (LVN_FIRST-56)
3344 #define LVN_GETINFOTIPA (LVN_FIRST-57)
3345 #define LVN_GETINFOTIPW (LVN_FIRST-58)
3346 #define LVN_GETINFOTIP WINELIB_NAME_AW(LVN_GETINFOTIP)
3347 #define LVN_INCREMENTALSEARCHA (LVN_FIRST-62)
3348 #define LVN_INCREMENTALSEARCHW (LVN_FIRST-63)
3349 #define LVN_INCREMENTALSEARCH WINELIB_NAME_AW(LVN_INCREMENTALSEARCH)
3350 #define LVN_BEGINSCROLL (LVN_FIRST-80)
3351 #define LVN_ENDSCROLL (LVN_FIRST-81)
3352 #define LVN_LINKCLICK (LVN_FIRST-84)
3353 #define LVN_ASYNCDRAWN (LVN_FIRST-86)
3354 #define LVN_GETEMPTYMARKUP (LVN_FIRST-87)
3356 /* LVN_INCREMENTALSEARCH return codes */
3357 #define LVNSCH_DEFAULT -1
3358 #define LVNSCH_ERROR -2
3359 #define LVNSCH_IGNORE -3
3361 #define LVA_DEFAULT 0x0000
3362 #define LVA_ALIGNLEFT 0x0001
3363 #define LVA_ALIGNTOP 0x0002
3364 #define LVA_SNAPTOGRID 0x0005
3366 typedef struct tagLVITEMA
3377 /* (_WIN32_IE >= 0x0300) */
3379 /* (_WIN32_IE >= 0x0560) */
3383 /* (_WIN32_WINNT >= 0x0600) */
3386 } LVITEMA
, *LPLVITEMA
;
3388 typedef struct tagLVITEMW
3399 /* (_WIN32_IE >= 0x0300) */
3401 /* (_WIN32_IE >= 0x0560) */
3405 /* (_WIN32_WINNT >= 0x0600) */
3408 } LVITEMW
, *LPLVITEMW
;
3410 #define LVITEM WINELIB_NAME_AW(LVITEM)
3411 #define LPLVITEM WINELIB_NAME_AW(LPLVITEM)
3413 #define LVITEM_V1_SIZEA CCSIZEOF_STRUCT(LVITEMA, lParam)
3414 #define LVITEM_V1_SIZEW CCSIZEOF_STRUCT(LVITEMW, lParam)
3415 #define LVITEM_V1_SIZE WINELIB_NAME_AW(LVITEM_V1_SIZE)
3417 #define LVITEMA_V5_SIZE CCSIZEOF_STRUCT(LVITEMA, puColumns)
3418 #define LVITEMW_V5_SIZE CCSIZEOF_STRUCT(LVITEMW, puColumns)
3419 #define LVITEM_V5_SIZE WINELIB_NAME_AW(LVITEM_V5_SIZE)
3421 #define LV_ITEM LVITEM
3422 #define LV_ITEMA LVITEMA
3423 #define LV_ITEMW LVITEMW
3425 typedef struct LVSETINFOTIP
3432 } LVSETINFOTIP
, *PLVSETINFOTIP
;
3434 /* ListView background image structs and constants
3435 For _WIN32_IE version 0x400 and later. */
3437 typedef struct tagLVBKIMAGEA
3445 } LVBKIMAGEA
, *LPLVBKIMAGEA
;
3447 typedef struct tagLVBKIMAGEW
3455 } LVBKIMAGEW
, *LPLVBKIMAGEW
;
3457 #define LVBKIMAGE WINELIB_NAME_AW(LVBKIMAGE)
3458 #define LPLVBKIMAGE WINELIB_NAME_AW(LPLVBKIMAGE)
3460 #define LVBKIF_SOURCE_NONE 0x00000000
3461 #define LVBKIF_SOURCE_HBITMAP 0x00000001
3462 #define LVBKIF_SOURCE_URL 0x00000002
3463 #define LVBKIF_SOURCE_MASK 0x00000003
3464 #define LVBKIF_STYLE_NORMAL 0x00000000
3465 #define LVBKIF_STYLE_TILE 0x00000010
3466 #define LVBKIF_STYLE_MASK 0x00000010
3467 #define LVBKIF_FLAG_TILEOFFSET 0x00000100
3468 #define LVBKIF_TYPE_WATERMARK 0x10000000
3470 #define ListView_SetBkImage(hwnd, plvbki) \
3471 (BOOL)SNDMSG((hwnd), LVM_SETBKIMAGE, 0, (LPARAM)plvbki)
3473 #define ListView_GetBkImage(hwnd, plvbki) \
3474 (BOOL)SNDMSG((hwnd), LVM_GETBKIMAGE, 0, (LPARAM)plvbki)
3476 typedef struct tagLVCOLUMNA
3484 /* (_WIN32_IE >= 0x0300) */
3487 /* (_WIN32_WINNT >= 0x0600) */
3491 } LVCOLUMNA
, *LPLVCOLUMNA
;
3493 typedef struct tagLVCOLUMNW
3501 /* (_WIN32_IE >= 0x0300) */
3504 /* (_WIN32_WINNT >= 0x0600) */
3508 } LVCOLUMNW
, *LPLVCOLUMNW
;
3510 #define LVCOLUMN WINELIB_NAME_AW(LVCOLUMN)
3511 #define LPLVCOLUMN WINELIB_NAME_AW(LPLVCOLUMN)
3513 #define LVCOLUMN_V1_SIZEA CCSIZEOF_STRUCT(LVCOLUMNA, iSubItem)
3514 #define LVCOLUMN_V1_SIZEW CCSIZEOF_STRUCT(LVCOLUMNW, iSubItem)
3515 #define LVCOLUMN_V1_SIZE WINELIB_NAME_AW(LVCOLUMN_V1_SIZE)
3517 #define LV_COLUMN LVCOLUMN
3520 typedef struct tagNMLISTVIEW
3530 } NMLISTVIEW
, *LPNMLISTVIEW
;
3532 #define NM_LISTVIEW NMLISTVIEW
3533 #define LPNM_LISTVIEW LPNMLISTVIEW
3535 typedef struct tagNMITEMACTIVATE
3546 } NMITEMACTIVATE
, *LPNMITEMACTIVATE
;
3548 #define LVKF_ALT 0x0001
3549 #define LVKF_CONTROL 0x0002
3550 #define LVKF_SHIFT 0x0004
3552 typedef struct tagLVDISPINFO
3556 } NMLVDISPINFOA
, *LPNMLVDISPINFOA
;
3558 typedef struct tagLVDISPINFOW
3562 } NMLVDISPINFOW
, *LPNMLVDISPINFOW
;
3564 #define NMLVDISPINFO WINELIB_NAME_AW(NMLVDISPINFO)
3565 #define LPNMLVDISPINFO WINELIB_NAME_AW(LPNMLVDISPINFO)
3567 #define LV_DISPINFO NMLVDISPINFO
3568 #define LV_DISPINFOA NMLVDISPINFOA
3569 #define LV_DISPINFOW NMLVDISPINFOW
3571 #include <pshpack1.h>
3572 typedef struct tagLVKEYDOWN
3577 } NMLVKEYDOWN
, *LPNMLVKEYDOWN
;
3578 #include <poppack.h>
3580 #define LV_KEYDOWN NMLVKEYDOWN
3582 typedef struct tagNMLVGETINFOTIPA
3591 } NMLVGETINFOTIPA
, *LPNMLVGETINFOTIPA
;
3593 typedef struct tagNMLVGETINFOTIPW
3602 } NMLVGETINFOTIPW
, *LPNMLVGETINFOTIPW
;
3604 #define NMLVGETINFOTIP WINELIB_NAME_AW(NMLVGETINFOTIP)
3605 #define LPNMLVGETINFOTIP WINELIB_NAME_AW(LPNMLVGETINFOTIP)
3607 typedef struct tagLVHITTESTINFO
3613 /* (_WIN32_WINNT >= 0x0600) */
3615 } LVHITTESTINFO
, *LPLVHITTESTINFO
;
3617 #define LV_HITTESTINFO LVHITTESTINFO
3618 #define _LV_HITTESTINFO tagLVHITTESTINFO
3619 #define LVHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(LVHITTESTINFO,iItem)
3621 typedef struct tagLVFINDINFOA
3628 } LVFINDINFOA
, *LPLVFINDINFOA
;
3630 typedef struct tagLVFINDINFOW
3637 } LVFINDINFOW
, *LPLVFINDINFOW
;
3639 #define LVFINDINFO WINELIB_NAME_AW(LVFINDINFO)
3640 #define LPLVFINDINFO WINELIB_NAME_AW(LPLVFINDINFO)
3642 #define LV_FINDINFO LVFINDINFO
3643 #define LV_FINDINFOA LVFINDINFOA
3644 #define LV_FINDINFOW LVFINDINFOW
3646 /* Groups relates structures */
3648 typedef struct LVGROUP
3660 /* (_WIN32_WINNT >= 0x0600) */
3665 LPWSTR pszDescriptionTop
;
3666 UINT cchDescriptionTop
;
3667 LPWSTR pszDescriptionBottom
;
3668 UINT cchDescriptionBottom
;
3673 LPWSTR pszSubsetTitle
;
3674 UINT cchSubsetTitle
;
3675 } LVGROUP
, *PLVGROUP
;
3677 #define LVGROUP_V5_SIZE CCSIZEOF_STRUCT(LVGROUP, uAlign)
3679 typedef struct LVGROUPMETRICS
3691 COLORREF crRightHeader
;
3693 } LVGROUPMETRICS
, *PLVGROUPMETRICS
;
3695 typedef INT (*PFNLVGROUPCOMPARE
)(INT
, INT
, VOID
*);
3697 typedef struct LVINSERTGROUPSORTED
3699 PFNLVGROUPCOMPARE pfnGroupCompare
;
3702 } LVINSERTGROUPSORTED
, *PLVINSERTGROUPSORTED
;
3704 /* Tile related structures */
3706 typedef struct LVTILEINFO
3712 /* (_WIN32_WINNT >= 0x0600) */
3714 } LVTILEINFO
, *PLVTILEINFO
;
3716 typedef struct LVTILEVIEWINFO
3724 } LVTILEVIEWINFO
, *PLVTILEVIEWINFO
;
3726 typedef struct LVINSERTMARK
3732 } LVINSERTMARK
, *PLVINSERTMARK
;
3734 typedef struct tagTCHITTESTINFO
3738 } TCHITTESTINFO
, *LPTCHITTESTINFO
;
3740 #define TC_HITTESTINFO TCHITTESTINFO
3742 typedef INT (CALLBACK
*PFNLVCOMPARE
)(LPARAM
, LPARAM
, LPARAM
);
3744 #define NMLVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMLCUSTOMDRW, clrTextBk)
3746 typedef struct tagNMLVCUSTOMDRAW
3751 int iSubItem
; /* (_WIN32_IE >= 0x0400) */
3752 DWORD dwItemType
; /* (_WIN32_IE >= 0x560) */
3753 COLORREF clrFace
; /* (_WIN32_IE >= 0x560) */
3754 int iIconEffect
; /* (_WIN32_IE >= 0x560) */
3755 int iIconPhase
; /* (_WIN32_IE >= 0x560) */
3756 int iPartId
; /* (_WIN32_IE >= 0x560) */
3757 int iStateId
; /* (_WIN32_IE >= 0x560) */
3758 RECT rcText
; /* (_WIN32_IE >= 0x560) */
3759 UINT uAlign
; /* (_WIN32_IE >= 0x560) */
3760 } NMLVCUSTOMDRAW
, *LPNMLVCUSTOMDRAW
;
3762 typedef struct tagNMLVCACHEHINT
3767 } NMLVCACHEHINT
, *LPNMLVCACHEHINT
;
3769 #define LPNM_CACHEHINT LPNMLVCACHEHINT
3770 #define PNM_CACHEHINT LPNMLVCACHEHINT
3771 #define NM_CACHEHINT NMLVCACHEHINT
3773 typedef struct tagNMLVFINDITEMA
3778 } NMLVFINDITEMA
, *LPNMLVFINDITEMA
;
3780 typedef struct tagNMLVFINDITEMW
3785 } NMLVFINDITEMW
, *LPNMLVFINDITEMW
;
3787 #define NMLVFINDITEM WINELIB_NAME_AW(NMLVFINDITEM)
3788 #define LPNMLVFINDITEM WINELIB_NAME_AW(LPNMLVFINDITEM)
3789 #define NM_FINDITEM NMLVFINDITEM
3790 #define LPNM_FINDITEM LPNMLVFINDITEM
3791 #define PNM_FINDITEM LPNMLVFINDITEM
3793 typedef struct tagNMLVODSTATECHANGE
3800 } NMLVODSTATECHANGE
, *LPNMLVODSTATECHANGE
;
3802 #define PNM_ODSTATECHANGE LPNMLVODSTATECHANGE
3803 #define LPNM_ODSTATECHANGE LPNMLVODSTATECHANGE
3804 #define NM_ODSTATECHANGE NMLVODSTATECHANGE
3806 typedef struct NMLVSCROLL
3811 } NMLVSCROLL
, *LPNMLVSCROLL
;
3813 #define ListView_SetItemCount(hwnd,count) \
3814 (BOOL)SNDMSG((hwnd),LVM_SETITEMCOUNT,(WPARAM)(INT)(count),0)
3815 #define ListView_SetTextBkColor(hwnd,clrBk) \
3816 (BOOL)SNDMSG((hwnd),LVM_SETTEXTBKCOLOR,0,(LPARAM)(COLORREF)(clrBk))
3817 #define ListView_SetTextColor(hwnd,clrBk) \
3818 (BOOL)SNDMSG((hwnd),LVM_SETTEXTCOLOR,0,(LPARAM)(COLORREF)(clrBk))
3819 #define ListView_DeleteColumn(hwnd,col)\
3820 (LRESULT)SNDMSG((hwnd),LVM_DELETECOLUMN,0,(LPARAM)(INT)(col))
3821 #define ListView_GetColumnA(hwnd,x,col)\
3822 (LRESULT)SNDMSGA((hwnd),LVM_GETCOLUMNA,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNA)(col))
3823 #define ListView_GetColumnW(hwnd,x,col)\
3824 (LRESULT)SNDMSGW((hwnd),LVM_GETCOLUMNW,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNW)(col))
3825 #define ListView_GetColumn WINELIB_NAME_AW(ListView_GetColumn)
3826 #define ListView_SetColumnA(hwnd,x,col)\
3827 (LRESULT)SNDMSGA((hwnd),LVM_SETCOLUMNA,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNA)(col))
3828 #define ListView_SetColumnW(hwnd,x,col)\
3829 (LRESULT)SNDMSGW((hwnd),LVM_SETCOLUMNW,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNW)(col))
3830 #define ListView_SetColumn WINELIB_NAME_AW(ListView_SetColumn)
3831 #define ListView_GetColumnWidth(hwnd,x)\
3832 (INT)SNDMSG((hwnd),LVM_GETCOLUMNWIDTH,(WPARAM)(INT)(x),0L)
3833 #define ListView_SetColumnWidth(hwnd,x,width)\
3834 (BOOL)SNDMSG((hwnd),LVM_SETCOLUMNWIDTH,(WPARAM)(INT)(x),(LPARAM)(MAKELPARAM(width,0)))
3837 #define ListView_GetNextItem(hwnd,nItem,flags) \
3838 (INT)SNDMSG((hwnd),LVM_GETNEXTITEM,(WPARAM)(INT)(nItem),(LPARAM)(MAKELPARAM(flags,0)))
3839 #define ListView_FindItemA(hwnd,nItem,plvfi) \
3840 (INT)SNDMSGA((hwnd),LVM_FINDITEMA,(WPARAM)(INT)(nItem),(LPARAM)(LVFINDINFOA*)(plvfi))
3841 #define ListView_FindItemW(hwnd,nItem,plvfi) \
3842 (INT)SNDMSGW((hwnd),LVM_FINDITEMW,(WPARAM)(INT)(nItem),(LPARAM)(LVFINDINFOW*)(plvfi))
3843 #define ListView_FindItem WINELIB_NAME_AW(ListView_FindItem)
3845 #define ListView_Arrange(hwnd,code) \
3846 (INT)SNDMSG((hwnd),LVM_ARRANGE,(WPARAM)(INT)(code),0L)
3847 #define ListView_GetItemPosition(hwnd,i,ppt) \
3848 (INT)SNDMSG((hwnd),LVM_GETITEMPOSITION,(WPARAM)(INT)(i),(LPARAM)(LPPOINT)(ppt))
3849 #define ListView_GetItemRect(hwnd,i,prc,code) \
3850 (BOOL)SNDMSG((hwnd), LVM_GETITEMRECT, (WPARAM)(int)(i), \
3851 ((prc) ? (((RECT*)(prc))->left = (code),(LPARAM)(RECT \
3852 *)(prc)) : (LPARAM)(RECT*)NULL))
3853 #define ListView_SetItemA(hwnd,pitem) \
3854 (INT)SNDMSGA((hwnd),LVM_SETITEMA,0,(LPARAM)(const LVITEMA *)(pitem))
3855 #define ListView_SetItemW(hwnd,pitem) \
3856 (INT)SNDMSGW((hwnd),LVM_SETITEMW,0,(LPARAM)(const LVITEMW *)(pitem))
3857 #define ListView_SetItem WINELIB_NAME_AW(ListView_SetItem)
3858 #define ListView_SetItemState(hwnd,i,data,dataMask) \
3859 { LVITEM _LVi; _LVi.state = data; _LVi.stateMask = dataMask;\
3860 SNDMSG(hwnd, LVM_SETITEMSTATE, (WPARAM)(UINT)i, (LPARAM) (LPLVITEM)&_LVi);}
3861 #define ListView_GetItemState(hwnd,i,mask) \
3862 (UINT)SNDMSG((hwnd),LVM_GETITEMSTATE,(WPARAM)(UINT)(i),(LPARAM)(UINT)(mask))
3863 #define ListView_SetCheckState(hwndLV, i, bCheck) \
3864 { LVITEM _LVi; _LVi.state = INDEXTOSTATEIMAGEMASK((bCheck)?2:1); _LVi.stateMask = LVIS_STATEIMAGEMASK; \
3865 SNDMSG(hwndLV, LVM_SETITEMSTATE, (WPARAM)(UINT)(i), (LPARAM)(LPLVITEM)&_LVi);}
3866 #define ListView_GetCheckState(hwndLV, i) \
3867 (((UINT)SNDMSG((hwndLV), LVM_GETITEMSTATE, (i), LVIS_STATEIMAGEMASK) >> 12) - 1)
3868 #define ListView_GetCountPerPage(hwnd) \
3869 (BOOL)SNDMSG((hwnd),LVM_GETCOUNTPERPAGE,0,0L)
3870 #define ListView_GetImageList(hwnd,iImageList) \
3871 (HIMAGELIST)SNDMSG((hwnd),LVM_GETIMAGELIST,(WPARAM)(INT)(iImageList),0L)
3872 #define ListView_GetStringWidthA(hwnd,pstr) \
3873 (INT)SNDMSGA((hwnd),LVM_GETSTRINGWIDTHA,0,(LPARAM)(LPCSTR)(pstr))
3874 #define ListView_GetStringWidthW(hwnd,pstr) \
3875 (INT)SNDMSGW((hwnd),LVM_GETSTRINGWIDTHW,0,(LPARAM)(LPCWSTR)(pstr))
3876 #define ListView_GetStringWidth WINELIB_NAME_AW(ListView_GetStringWidth)
3877 #define ListView_GetTopIndex(hwnd) \
3878 (BOOL)SNDMSG((hwnd),LVM_GETTOPINDEX,0,0L)
3879 #define ListView_Scroll(hwnd,dx,dy) \
3880 (BOOL)SNDMSG((hwnd),LVM_SCROLL,(WPARAM)(INT)(dx),(LPARAM)(INT)(dy))
3881 #define ListView_EnsureVisible(hwnd,i,fPartialOk) \
3882 (BOOL)SNDMSG((hwnd),LVM_ENSUREVISIBLE,(WPARAM)(INT)i,(LPARAM)(BOOL)fPartialOk)
3883 #define ListView_SetBkColor(hwnd,clrBk) \
3884 (BOOL)SNDMSG((hwnd),LVM_SETBKCOLOR,0,(LPARAM)(COLORREF)(clrBk))
3885 #define ListView_SetImageList(hwnd,himl,iImageList) \
3886 (HIMAGELIST)SNDMSG((hwnd),LVM_SETIMAGELIST,(WPARAM)(iImageList),(LPARAM)(HIMAGELIST)(himl))
3887 #define ListView_GetItemCount(hwnd) \
3888 (INT)SNDMSG((hwnd),LVM_GETITEMCOUNT,0,0L)
3889 #define ListView_RedrawItems(hwnd,first,last) \
3890 (BOOL)SNDMSG((hwnd),LVM_REDRAWITEMS,(WPARAM)(INT)(first),(LPARAM)(INT)(last))
3891 #define ListView_GetEditControl(hwnd) \
3892 (HWND)SNDMSG((hwnd), LVM_GETEDITCONTROL, 0, 0)
3893 #define ListView_GetTextColor(hwnd) \
3894 (COLORREF)SNDMSG((hwnd), LVM_GETTEXTCOLOR, 0, 0)
3895 #define ListView_GetTextBkColor(hwnd) \
3896 (COLORREF)SNDMSG((hwnd), LVM_GETTEXTBKCOLOR, 0, 0)
3897 #define ListView_GetBkColor(hwnd) \
3898 (COLORREF)SNDMSG((hwnd), LVM_GETBKCOLOR, 0, 0)
3899 #define ListView_GetItemA(hwnd,pitem) \
3900 (BOOL)SNDMSGA((hwnd),LVM_GETITEMA,0,(LPARAM)(LVITEMA *)(pitem))
3901 #define ListView_GetItemW(hwnd,pitem) \
3902 (BOOL)SNDMSGW((hwnd),LVM_GETITEMW,0,(LPARAM)(LVITEMW *)(pitem))
3903 #define ListView_GetItem WINELIB_NAME_AW(ListView_GetItem)
3904 #define ListView_GetOrigin(hwnd,ppt) \
3905 (BOOL)SNDMSG((hwnd),LVM_GETORIGIN,0,(LPARAM)(POINT *)(ppt))
3907 #define ListView_HitTest(hwnd,pinfo) \
3908 (INT)SNDMSG((hwnd),LVM_HITTEST,0,(LPARAM)(LPLVHITTESTINFO)(pinfo))
3910 #define ListView_InsertItemA(hwnd,pitem) \
3911 (INT)SNDMSGA((hwnd),LVM_INSERTITEMA,0,(LPARAM)(const LVITEMA *)(pitem))
3912 #define ListView_InsertItemW(hwnd,pitem) \
3913 (INT)SNDMSGW((hwnd),LVM_INSERTITEMW,0,(LPARAM)(const LVITEMW *)(pitem))
3914 #define ListView_InsertItem WINELIB_NAME_AW(ListView_InsertItem)
3916 #define ListView_DeleteAllItems(hwnd) \
3917 (BOOL)SNDMSG((hwnd),LVM_DELETEALLITEMS,0,0L)
3919 #define ListView_InsertColumnA(hwnd,iCol,pcol) \
3920 (INT)SNDMSGA((hwnd),LVM_INSERTCOLUMNA,(WPARAM)(INT)(iCol),(LPARAM)(const LVCOLUMNA *)(pcol))
3921 #define ListView_InsertColumnW(hwnd,iCol,pcol) \
3922 (INT)SNDMSGW((hwnd),LVM_INSERTCOLUMNW,(WPARAM)(INT)(iCol),(LPARAM)(const LVCOLUMNW *)(pcol))
3923 #define ListView_InsertColumn WINELIB_NAME_AW(ListView_InsertColumn)
3925 #define ListView_SortItems(hwndLV,_pfnCompare,_lPrm) \
3926 (BOOL)SNDMSG((hwndLV),LVM_SORTITEMS,(WPARAM)(LPARAM)_lPrm,(LPARAM)(PFNLVCOMPARE)_pfnCompare)
3927 #define ListView_SortItemsEx(hwndLV, _pfnCompare, _lPrm) \
3928 (BOOL)SNDMSG((hwndLV), LVM_SORTITEMSEX, (WPARAM)(LPARAM)(_lPrm), (LPARAM)(PFNLVCOMPARE)(_pfnCompare))
3930 #define ListView_SetItemPosition(hwndLV, i, x, y) \
3931 (BOOL)SNDMSG((hwndLV),LVM_SETITEMPOSITION,(WPARAM)(INT)(i),MAKELPARAM((x),(y)))
3932 #define ListView_GetSelectedCount(hwndLV) \
3933 (UINT)SNDMSG((hwndLV),LVM_GETSELECTEDCOUNT,0,0L)
3935 #define ListView_EditLabelA(hwndLV, i) \
3936 (HWND)SNDMSG((hwndLV),LVM_EDITLABELA,(WPARAM)(int)(i), 0L)
3937 #define ListView_EditLabelW(hwndLV, i) \
3938 (HWND)SNDMSG((hwndLV),LVM_EDITLABELW,(WPARAM)(int)(i), 0L)
3939 #define ListView_EditLabel WINELIB_NAME_AW(ListView_EditLabel)
3941 #define ListView_GetItemTextA(hwndLV, i, _iSubItem, _pszText, _cchTextMax) \
3944 _LVi.iSubItem = _iSubItem;\
3945 _LVi.cchTextMax = _cchTextMax;\
3946 _LVi.pszText = _pszText;\
3947 SNDMSGA(hwndLV, LVM_GETITEMTEXTA, (WPARAM)(i), (LPARAM)&_LVi);\
3949 #define ListView_GetItemTextW(hwndLV, i, _iSubItem, _pszText, _cchTextMax) \
3952 _LVi.iSubItem = _iSubItem;\
3953 _LVi.cchTextMax = _cchTextMax;\
3954 _LVi.pszText = _pszText;\
3955 SNDMSGW(hwndLV, LVM_GETITEMTEXTW, (WPARAM)(i), (LPARAM)&_LVi);\
3957 #define ListView_GetItemText WINELIB_NAME_AW(ListView_GetItemText)
3958 #define ListView_SetItemPosition32(hwnd,n,x1,y1) \
3959 { POINT ptNewPos; ptNewPos.x = (x1); ptNewPos.y = (y1); SNDMSG((hwnd), LVM_SETITEMPOSITION32, (WPARAM)(int)(n), (LPARAM)&ptNewPos); }
3960 #define ListView_SetItemTextA(hwndLV, i, _iSubItem, _pszText) \
3961 { LVITEMA _LVi; _LVi.iSubItem = _iSubItem; _LVi.pszText = _pszText;\
3962 SNDMSGA(hwndLV, LVM_SETITEMTEXTA, (WPARAM)i, (LPARAM) (LVITEMA*)&_LVi);}
3963 #define ListView_SetItemTextW(hwndLV, i, _iSubItem, _pszText) \
3964 { LVITEMW _LVi; _LVi.iSubItem = _iSubItem; _LVi.pszText = _pszText;\
3965 SNDMSGW(hwndLV, LVM_SETITEMTEXTW, (WPARAM)i, (LPARAM) (LVITEMW*)& _LVi);}
3966 #define ListView_SetItemText WINELIB_NAME_AW(ListView_SetItemText)
3968 #define ListView_DeleteItem(hwndLV, i) \
3969 (BOOL)SNDMSG(hwndLV, LVM_DELETEITEM, (WPARAM)(int)(i), 0L)
3970 #define ListView_Update(hwndLV, i) \
3971 (BOOL)SNDMSG((hwndLV), LVM_UPDATE, (WPARAM)(i), 0L)
3972 #define ListView_GetColumnOrderArray(hwndLV, iCount, pi) \
3973 (BOOL)SNDMSG((hwndLV), LVM_GETCOLUMNORDERARRAY, (WPARAM)iCount, (LPARAM)(LPINT)pi)
3974 #define ListView_GetExtendedListViewStyle(hwndLV) \
3975 (DWORD)SNDMSG((hwndLV), LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0L)
3976 #define ListView_GetHotCursor(hwndLV) \
3977 (HCURSOR)SNDMSG((hwndLV), LVM_GETHOTCURSOR, 0, 0L)
3978 #define ListView_GetHotItem(hwndLV) \
3979 (int)SNDMSG((hwndLV), LVM_GETHOTITEM, 0, 0L)
3980 #define ListView_GetItemSpacing(hwndLV, fSmall) \
3981 (DWORD)SNDMSG((hwndLV), LVM_GETITEMSPACING, (WPARAM)fSmall, 0L)
3982 #define ListView_GetSubItemRect(hwndLV, iItem, iSubItem, code, prc) \
3983 (BOOL)SNDMSG((hwndLV), LVM_GETSUBITEMRECT, (WPARAM)(int)(iItem), \
3984 ((prc) ? ((((LPRECT)(prc))->top = iSubItem), (((LPRECT)(prc))->left = code), (LPARAM)(prc)) : 0))
3985 #define ListView_GetToolTips(hwndLV) \
3986 (HWND)SNDMSG((hwndLV), LVM_GETTOOLTIPS, 0, 0L)
3987 #define ListView_SetColumnOrderArray(hwndLV, iCount, pi) \
3988 (BOOL)SNDMSG((hwndLV), LVM_SETCOLUMNORDERARRAY, (WPARAM)iCount, (LPARAM)(LPINT)pi)
3989 #define ListView_SetExtendedListViewStyle(hwndLV, dw) \
3990 (DWORD)SNDMSG((hwndLV), LVM_SETEXTENDEDLISTVIEWSTYLE, 0, (LPARAM)dw)
3991 #define ListView_SetExtendedListViewStyleEx(hwndLV, dwMask, dw) \
3992 (DWORD)SNDMSG((hwndLV), LVM_SETEXTENDEDLISTVIEWSTYLE, (WPARAM)dwMask, (LPARAM)dw)
3993 #define ListView_SetHotCursor(hwndLV, hcur) \
3994 (HCURSOR)SNDMSG((hwndLV), LVM_SETHOTCURSOR, 0, (LPARAM)hcur)
3995 #define ListView_SetHotItem(hwndLV, i) \
3996 (int)SNDMSG((hwndLV), LVM_SETHOTITEM, (WPARAM)i, 0L)
3997 #define ListView_SetIconSpacing(hwndLV, cx, cy) \
3998 (DWORD)SNDMSG((hwndLV), LVM_SETICONSPACING, 0, MAKELONG(cx,cy))
3999 #define ListView_SetToolTips(hwndLV, hwndNewHwnd) \
4000 (HWND)SNDMSG((hwndLV), LVM_SETTOOLTIPS, (WPARAM)hwndNewHwnd, 0L)
4001 #define ListView_SubItemHitTest(hwndLV, plvhti) \
4002 (int)SNDMSG((hwndLV), LVM_SUBITEMHITTEST, 0, (LPARAM)(LPLVHITTESTINFO)(plvhti))
4003 #define ListView_GetSelectionMark(hwndLV) \
4004 (int)SNDMSG((hwndLV), LVM_GETSELECTIONMARK, 0, 0)
4005 #define ListView_SetSelectionMark(hwndLV, iItem) \
4006 (int)SNDMSG((hwndLV), LVM_SETSELECTIONMARK, 0, (LPARAM)(iItem))
4007 #define ListView_GetViewRect(hwndLV, prc) \
4008 (BOOL)SNDMSG((hwndLV),LVM_GETVIEWRECT,0,(LPARAM)(LPRECT)(prc))
4009 #define ListView_GetHeader(hwndLV) \
4010 (HWND)SNDMSG((hwndLV),LVM_GETHEADER,0,0L)
4011 #define ListView_SetSelectedColumn(hwnd, iCol) \
4012 SNDMSG((hwnd), LVM_SETSELECTEDCOLUMN, (WPARAM)iCol, 0)
4013 #define ListView_SetTileWidth(hwnd, cpWidth) \
4014 SNDMSG((hwnd), LVM_SETTILEWIDTH, (WPARAM)cpWidth, 0)
4015 #define ListView_SetView(hwnd, iView) \
4016 (DWORD)SNDMSG((hwnd), LVM_SETVIEW, (WPARAM)(DWORD)iView, 0)
4017 #define ListView_GetView(hwnd) \
4018 (DWORD)SNDMSG((hwnd), LVM_GETVIEW, 0, 0)
4019 #define ListView_InsertGroup(hwnd, index, pgrp) \
4020 SNDMSG((hwnd), LVM_INSERTGROUP, (WPARAM)index, (LPARAM)pgrp)
4021 #define ListView_SetGroupHeaderImageList(hwnd, himl) \
4022 SNDMSG((hwnd), LVM_SETIMAGELIST, (WPARAM)LVSIL_GROUPHEADER, (LPARAM)himl)
4023 #define ListView_GetGroupHeaderImageList(hwnd) \
4024 SNDMSG((hwnd), LVM_GETIMAGELIST, (WPARAM)LVSIL_GROUPHEADER, 0)
4025 #define ListView_SetGroupInfo(hwnd, iGroupId, pgrp) \
4026 SNDMSG((hwnd), LVM_SETGROUPINFO, (WPARAM)iGroupId, (LPARAM)pgrp)
4027 #define ListView_GetGroupInfo(hwnd, iGroupId, pgrp) \
4028 SNDMSG((hwnd), LVM_GETGROUPINFO, (WPARAM)iGroupId, (LPARAM)pgrp)
4029 #define ListView_RemoveGroup(hwnd, iGroupId) \
4030 SNDMSG((hwnd), LVM_REMOVEGROUP, (WPARAM)iGroupId, 0)
4031 #define ListView_MoveGroup(hwnd, iGroupId, toIndex) \
4032 SNDMSG((hwnd), LVM_MOVEGROUP, (WPARAM)iGroupId, (LPARAM)toIndex)
4033 #define ListView_MoveItemToGroup(hwnd, idItemFrom, idGroupTo) \
4034 SNDMSG((hwnd), LVM_MOVEITEMTOGROUP, (WPARAM)idItemFrom, (LPARAM)idGroupTo)
4035 #define ListView_SetGroupMetrics(hwnd, pGroupMetrics) \
4036 SNDMSG((hwnd), LVM_SETGROUPMETRICS, 0, (LPARAM)pGroupMetrics)
4037 #define ListView_GetGroupMetrics(hwnd, pGroupMetrics) \
4038 SNDMSG((hwnd), LVM_GETGROUPMETRICS, 0, (LPARAM)pGroupMetrics)
4039 #define ListView_EnableGroupView(hwnd, fEnable) \
4040 SNDMSG((hwnd), LVM_ENABLEGROUPVIEW, (WPARAM)fEnable, 0)
4041 #define ListView_SortGroups(hwnd, _pfnGroupCompate, _plv) \
4042 SNDMSG((hwnd), LVM_SORTGROUPS, (WPARAM)_pfnGroupCompate, (LPARAM)_plv)
4043 #define ListView_InsertGroupSorted(hwnd, structInsert) \
4044 SNDMSG((hwnd), LVM_INSERTGROUPSORTED, (WPARAM)structInsert, 0)
4045 #define ListView_RemoveAllGroups(hwnd) \
4046 SNDMSG((hwnd), LVM_REMOVEALLGROUPS, 0, 0)
4047 #define ListView_HasGroup(hwnd, dwGroupId) \
4048 SNDMSG((hwnd), LVM_HASGROUP, dwGroupId, 0)
4049 #define ListView_SetTileViewInfo(hwnd, ptvi) \
4050 SNDMSG((hwnd), LVM_SETTILEVIEWINFO, 0, (LPARAM)ptvi)
4051 #define ListView_GetTileViewInfo(hwnd, ptvi) \
4052 SNDMSG((hwnd), LVM_GETTILEVIEWINFO, 0, (LPARAM)ptvi)
4053 #define ListView_SetTileInfo(hwnd, pti) \
4054 SNDMSG((hwnd), LVM_SETTILEINFO, 0, (LPARAM)pti)
4055 #define ListView_GetTileInfo(hwnd, pti) \
4056 SNDMSG((hwnd), LVM_GETTILEINFO, 0, (LPARAM)pti)
4057 #define ListView_SetInsertMark(hwnd, lvim) \
4058 (BOOL)SNDMSG((hwnd), LVM_SETINSERTMARK, (WPARAM) 0, (LPARAM) (lvim))
4059 #define ListView_GetInsertMark(hwnd, lvim) \
4060 (BOOL)SNDMSG((hwnd), LVM_GETINSERTMARK, (WPARAM) 0, (LPARAM) (lvim))
4061 #define ListView_InsertMarkHitTest(hwnd, point, lvim) \
4062 (int)SNDMSG((hwnd), LVM_INSERTMARKHITTEST, (WPARAM)(LPPOINT)(point), (LPARAM)(LPLVINSERTMARK)(lvim))
4063 #define ListView_GetInsertMarkRect(hwnd, rc) \
4064 (int)SNDMSG((hwnd), LVM_GETINSERTMARKRECT, (WPARAM)0, (LPARAM)(LPRECT)(rc))
4065 #define ListView_SetInsertMarkColor(hwnd, color) \
4066 (COLORREF)SNDMSG((hwnd), LVM_SETINSERTMARKCOLOR, (WPARAM)0, (LPARAM)(COLORREF)(color))
4067 #define ListView_GetInsertMarkColor(hwnd) \
4068 (COLORREF)SNDMSG((hwnd), LVM_GETINSERTMARKCOLOR, (WPARAM)0, (LPARAM)0)
4069 #define ListView_SetInfoTip(hwndLV, plvInfoTip)\
4070 (BOOL)SNDMSG((hwndLV), LVM_SETINFOTIP, (WPARAM)0, (LPARAM)plvInfoTip)
4071 #define ListView_GetSelectedColumn(hwnd) \
4072 (UINT)SNDMSG((hwnd), LVM_GETSELECTEDCOLUMN, 0, 0)
4073 #define ListView_IsGroupViewEnabled(hwnd) \
4074 (BOOL)SNDMSG((hwnd), LVM_ISGROUPVIEWENABLED, 0, 0)
4075 #define ListView_GetOutlineColor(hwnd) \
4076 (COLORREF)SNDMSG((hwnd), LVM_GETOUTLINECOLOR, 0, 0)
4077 #define ListView_SetOutlineColor(hwnd, color) \
4078 (COLORREF)SNDMSG((hwnd), LVM_SETOUTLINECOLOR, (WPARAM)0, (LPARAM)(COLORREF)(color))
4079 #define ListView_CancelEditLabel(hwnd) \
4080 (VOID)SNDMSG((hwnd), LVM_CANCELEDITLABEL, (WPARAM)0, (LPARAM)0)
4081 #define ListView_MapIndexToID(hwnd, index) \
4082 (UINT)SNDMSG((hwnd), LVM_MAPINDEXTOID, (WPARAM)index, (LPARAM)0)
4083 #define ListView_MapIDToIndex(hwnd, id) \
4084 (UINT)SNDMSG((hwnd), LVM_MAPIDTOINDEX, (WPARAM)id, (LPARAM)0)
4085 #define ListView_SetUnicodeFormat(hwnd, fUnicode) \
4086 (BOOL)SNDMSG((hwnd), LVM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0)
4087 #define ListView_GetUnicodeFormat(hwnd) \
4088 (BOOL)SNDMSG((hwnd), LVM_GETUNICODEFORMAT, 0, 0)
4092 #define WC_TABCONTROLA "SysTabControl32"
4093 #if defined(__GNUC__)
4094 # define WC_TABCONTROLW (const WCHAR []){ 'S','y','s', \
4095 'T','a','b','C','o','n','t','r','o','l','3','2',0 }
4096 #elif defined(_MSC_VER)
4097 # define WC_TABCONTROLW L"SysTabControl32"
4099 static const WCHAR WC_TABCONTROLW
[] = { 'S','y','s',
4100 'T','a','b','C','o','n','t','r','o','l','3','2',0 };
4102 #define WC_TABCONTROL WINELIB_NAME_AW(WC_TABCONTROL)
4104 /* tab control styles */
4105 #define TCS_SCROLLOPPOSITE 0x0001 /* assumes multiline tab */
4106 #define TCS_BOTTOM 0x0002
4107 #define TCS_RIGHT 0x0002
4108 #define TCS_MULTISELECT 0x0004 /* allow multi-select in button mode */
4109 #define TCS_FLATBUTTONS 0x0008
4110 #define TCS_FORCEICONLEFT 0x0010
4111 #define TCS_FORCELABELLEFT 0x0020
4112 #define TCS_HOTTRACK 0x0040
4113 #define TCS_VERTICAL 0x0080
4114 #define TCS_TABS 0x0000
4115 #define TCS_BUTTONS 0x0100
4116 #define TCS_SINGLELINE 0x0000
4117 #define TCS_MULTILINE 0x0200
4118 #define TCS_RIGHTJUSTIFY 0x0000
4119 #define TCS_FIXEDWIDTH 0x0400
4120 #define TCS_RAGGEDRIGHT 0x0800
4121 #define TCS_FOCUSONBUTTONDOWN 0x1000
4122 #define TCS_OWNERDRAWFIXED 0x2000
4123 #define TCS_TOOLTIPS 0x4000
4124 #define TCS_FOCUSNEVER 0x8000
4125 #define TCS_EX_FLATSEPARATORS 0x00000001 /* to be used with */
4126 #define TCS_EX_REGISTERDROP 0x00000002 /* TCM_SETEXTENDEDSTYLE */
4129 #define TCM_FIRST 0x1300
4131 #define TCM_GETIMAGELIST (TCM_FIRST + 2)
4132 #define TCM_SETIMAGELIST (TCM_FIRST + 3)
4133 #define TCM_GETITEMCOUNT (TCM_FIRST + 4)
4134 #define TCM_GETITEM WINELIB_NAME_AW(TCM_GETITEM)
4135 #define TCM_GETITEMA (TCM_FIRST + 5)
4136 #define TCM_GETITEMW (TCM_FIRST + 60)
4137 #define TCM_SETITEMA (TCM_FIRST + 6)
4138 #define TCM_SETITEMW (TCM_FIRST + 61)
4139 #define TCM_SETITEM WINELIB_NAME_AW(TCM_SETITEM)
4140 #define TCM_INSERTITEMA (TCM_FIRST + 7)
4141 #define TCM_INSERTITEMW (TCM_FIRST + 62)
4142 #define TCM_INSERTITEM WINELIB_NAME_AW(TCM_INSERTITEM)
4143 #define TCM_DELETEITEM (TCM_FIRST + 8)
4144 #define TCM_DELETEALLITEMS (TCM_FIRST + 9)
4145 #define TCM_GETITEMRECT (TCM_FIRST + 10)
4146 #define TCM_GETCURSEL (TCM_FIRST + 11)
4147 #define TCM_SETCURSEL (TCM_FIRST + 12)
4148 #define TCM_HITTEST (TCM_FIRST + 13)
4149 #define TCM_SETITEMEXTRA (TCM_FIRST + 14)
4150 #define TCM_ADJUSTRECT (TCM_FIRST + 40)
4151 #define TCM_SETITEMSIZE (TCM_FIRST + 41)
4152 #define TCM_REMOVEIMAGE (TCM_FIRST + 42)
4153 #define TCM_SETPADDING (TCM_FIRST + 43)
4154 #define TCM_GETROWCOUNT (TCM_FIRST + 44)
4155 #define TCM_GETTOOLTIPS (TCM_FIRST + 45)
4156 #define TCM_SETTOOLTIPS (TCM_FIRST + 46)
4157 #define TCM_GETCURFOCUS (TCM_FIRST + 47)
4158 #define TCM_SETCURFOCUS (TCM_FIRST + 48)
4159 #define TCM_SETMINTABWIDTH (TCM_FIRST + 49)
4160 #define TCM_DESELECTALL (TCM_FIRST + 50)
4161 #define TCM_HIGHLIGHTITEM (TCM_FIRST + 51)
4162 #define TCM_SETEXTENDEDSTYLE (TCM_FIRST + 52)
4163 #define TCM_GETEXTENDEDSTYLE (TCM_FIRST + 53)
4164 #define TCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
4165 #define TCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
4168 #define TCIF_TEXT 0x0001
4169 #define TCIF_IMAGE 0x0002
4170 #define TCIF_RTLREADING 0x0004
4171 #define TCIF_PARAM 0x0008
4172 #define TCIF_STATE 0x0010
4174 #define TCIS_BUTTONPRESSED 0x0001
4175 #define TCIS_HIGHLIGHTED 0x0002
4177 /* TabCtrl Macros */
4178 #define TabCtrl_GetImageList(hwnd) \
4179 (HIMAGELIST)SNDMSG((hwnd), TCM_GETIMAGELIST, 0, 0L)
4180 #define TabCtrl_SetImageList(hwnd, himl) \
4181 (HIMAGELIST)SNDMSG((hwnd), TCM_SETIMAGELIST, 0, (LPARAM)(UINT)(HIMAGELIST)(himl))
4182 #define TabCtrl_GetItemCount(hwnd) \
4183 (int)SNDMSG((hwnd), TCM_GETITEMCOUNT, 0, 0L)
4184 #define TabCtrl_GetItemA(hwnd, iItem, pitem) \
4185 (BOOL)SNDMSGA((hwnd), TCM_GETITEMA, (WPARAM)(int)iItem, (LPARAM)(TCITEMA *)(pitem))
4186 #define TabCtrl_GetItemW(hwnd, iItem, pitem) \
4187 (BOOL)SNDMSGW((hwnd), TCM_GETITEMW, (WPARAM)(int)iItem, (LPARAM)(TCITEMW *)(pitem))
4188 #define TabCtrl_GetItem WINELIB_NAME_AW(TabCtrl_GetItem)
4189 #define TabCtrl_SetItemA(hwnd, iItem, pitem) \
4190 (BOOL)SNDMSGA((hwnd), TCM_SETITEMA, (WPARAM)(int)iItem, (LPARAM)(TCITEMA *)(pitem))
4191 #define TabCtrl_SetItemW(hwnd, iItem, pitem) \
4192 (BOOL)SNDMSGW((hwnd), TCM_SETITEMW, (WPARAM)(int)iItem, (LPARAM)(TCITEMW *)(pitem))
4193 #define TabCtrl_SetItem WINELIB_NAME_AW(TabCtrl_SetItem)
4194 #define TabCtrl_InsertItemA(hwnd, iItem, pitem) \
4195 (int)SNDMSGA((hwnd), TCM_INSERTITEMA, (WPARAM)(int)iItem, (LPARAM)(const TCITEMA *)(pitem))
4196 #define TabCtrl_InsertItemW(hwnd, iItem, pitem) \
4197 (int)SNDMSGW((hwnd), TCM_INSERTITEMW, (WPARAM)(int)iItem, (LPARAM)(const TCITEMW *)(pitem))
4198 #define TabCtrl_InsertItem WINELIB_NAME_AW(TabCtrl_InsertItem)
4199 #define TabCtrl_DeleteItem(hwnd, i) \
4200 (BOOL)SNDMSG((hwnd), TCM_DELETEITEM, (WPARAM)(int)(i), 0L)
4201 #define TabCtrl_DeleteAllItems(hwnd) \
4202 (BOOL)SNDMSG((hwnd), TCM_DELETEALLITEMS, 0, 0L)
4203 #define TabCtrl_GetItemRect(hwnd, i, prc) \
4204 (BOOL)SNDMSG((hwnd), TCM_GETITEMRECT, (WPARAM)(int)(i), (LPARAM)(RECT *)(prc))
4205 #define TabCtrl_GetCurSel(hwnd) \
4206 (int)SNDMSG((hwnd), TCM_GETCURSEL, 0, 0)
4207 #define TabCtrl_SetCurSel(hwnd, i) \
4208 (int)SNDMSG((hwnd), TCM_SETCURSEL, (WPARAM)i, 0)
4209 #define TabCtrl_HitTest(hwndTC, pinfo) \
4210 (int)SNDMSG((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO *)(pinfo))
4211 #define TabCtrl_SetItemExtra(hwndTC, cb) \
4212 (BOOL)SNDMSG((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0L)
4213 #define TabCtrl_AdjustRect(hwnd, bLarger, prc) \
4214 (int)SNDMSG(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)bLarger, (LPARAM)(RECT *)prc)
4215 #define TabCtrl_SetItemSize(hwnd, x, y) \
4216 (DWORD)SNDMSG((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y))
4217 #define TabCtrl_RemoveImage(hwnd, i) \
4218 (void)SNDMSG((hwnd), TCM_REMOVEIMAGE, i, 0L)
4219 #define TabCtrl_SetPadding(hwnd, cx, cy) \
4220 (void)SNDMSG((hwnd), TCM_SETPADDING, 0, MAKELPARAM(cx, cy))
4221 #define TabCtrl_GetRowCount(hwnd) \
4222 (int)SNDMSG((hwnd), TCM_GETROWCOUNT, 0, 0L)
4223 #define TabCtrl_GetToolTips(hwnd) \
4224 (HWND)SNDMSG((hwnd), TCM_GETTOOLTIPS, 0, 0L)
4225 #define TabCtrl_SetToolTips(hwnd, hwndTT) \
4226 (void)SNDMSG((hwnd), TCM_SETTOOLTIPS, (WPARAM)hwndTT, 0L)
4227 #define TabCtrl_GetCurFocus(hwnd) \
4228 (int)SNDMSG((hwnd), TCM_GETCURFOCUS, 0, 0)
4229 #define TabCtrl_SetCurFocus(hwnd, i) \
4230 SNDMSG((hwnd),TCM_SETCURFOCUS, i, 0)
4231 #define TabCtrl_SetMinTabWidth(hwnd, x) \
4232 (int)SNDMSG((hwnd), TCM_SETMINTABWIDTH, 0, x)
4233 #define TabCtrl_DeselectAll(hwnd, fExcludeFocus)\
4234 (void)SNDMSG((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)
4235 #define TabCtrl_GetUnicodeFormat(hwnd) \
4236 (BOOL)SNDMSG((hwnd), TCM_GETUNICODEFORMAT, 0, 0)
4237 #define TabCtrl_SetUnicodeFormat(hwnd, fUnicode) \
4238 (BOOL)SNDMSG((hwnd), TCM_SETUNICODEFORMAT, (WPARAM)fUnicode, 0)
4239 #define TabCtrl_GetExtendedStyle(hwnd) \
4240 (BOOL)SNDMSG((hwnd), TCM_GETEXTENDEDSTYLE, 0, 0)
4241 #define TabCtrl_SetExtendedStyle(hwnd, dwExStyle) \
4242 (BOOL)SNDMSG((hwnd), TCM_GETEXTENDEDSTYLE, 0, (LPARAM)dwExStyle)
4243 #define TabCtrl_HighlightItem(hwnd, i, fHighlight) \
4244 (BOOL)SNDMSG((hwnd), TCM_HIGHLIGHTITEM, (WPARAM)i, (LPARAM)MAKELONG(fHighlight, 0))
4246 /* constants for TCHITTESTINFO */
4248 #define TCHT_NOWHERE 0x01
4249 #define TCHT_ONITEMICON 0x02
4250 #define TCHT_ONITEMLABEL 0x04
4251 #define TCHT_ONITEM (TCHT_ONITEMICON | TCHT_ONITEMLABEL)
4253 typedef struct tagTCITEMHEADERA
4261 } TCITEMHEADERA
, *LPTCITEMHEADERA
;
4263 typedef struct tagTCITEMHEADERW
4271 } TCITEMHEADERW
, *LPTCITEMHEADERW
;
4273 #define TCITEMHEADER WINELIB_NAME_AW(TCITEMHEADER)
4274 #define LPTCITEMHEADER WINELIB_NAME_AW(LPTCITEMHEADER)
4275 #define TC_ITEMHEADER WINELIB_NAME_AW(TCITEMHEADER)
4276 #define LPTC_ITEMHEADER WINELIB_NAME_AW(LPTCITEMHEADER)
4278 typedef struct tagTCITEMA
4287 } TCITEMA
, *LPTCITEMA
;
4289 typedef struct tagTCITEMW
4298 } TCITEMW
, *LPTCITEMW
;
4300 #define TCITEM WINELIB_NAME_AW(TCITEM)
4301 #define LPTCITEM WINELIB_NAME_AW(LPTCITEM)
4302 #define TC_ITEM WINELIB_NAME_AW(TCITEM)
4303 #define LPTC_ITEM WINELIB_NAME_AW(LPTCITEM)
4305 #define TCN_FIRST (0U-550U)
4306 #define TCN_LAST (0U-580U)
4307 #define TCN_KEYDOWN (TCN_FIRST - 0)
4308 #define TCN_SELCHANGE (TCN_FIRST - 1)
4309 #define TCN_SELCHANGING (TCN_FIRST - 2)
4310 #define TCN_GETOBJECT (TCN_FIRST - 3)
4311 #define TCN_FOCUSCHANGE (TCN_FIRST - 4)
4313 #include <pshpack1.h>
4314 typedef struct tagTCKEYDOWN
4320 #include <poppack.h>
4322 #define TC_KEYDOWN NMTCKEYDOWN
4324 /* ComboBoxEx control */
4326 #define WC_COMBOBOXEXA "ComboBoxEx32"
4327 #if defined(__GNUC__)
4328 # define WC_COMBOBOXEXW (const WCHAR []){ 'C','o','m','b','o', \
4329 'B','o','x','E','x','3','2',0 }
4330 #elif defined(_MSC_VER)
4331 # define WC_COMBOBOXEXW L"ComboBoxEx32"
4333 static const WCHAR WC_COMBOBOXEXW
[] = { 'C','o','m','b','o',
4334 'B','o','x','E','x','3','2',0 };
4336 #define WC_COMBOBOXEX WINELIB_NAME_AW(WC_COMBOBOXEX)
4338 #define CBEIF_TEXT 0x00000001
4339 #define CBEIF_IMAGE 0x00000002
4340 #define CBEIF_SELECTEDIMAGE 0x00000004
4341 #define CBEIF_OVERLAY 0x00000008
4342 #define CBEIF_INDENT 0x00000010
4343 #define CBEIF_LPARAM 0x00000020
4344 #define CBEIF_DI_SETITEM 0x10000000
4346 #define CBEM_INSERTITEMA (WM_USER+1)
4347 #define CBEM_INSERTITEMW (WM_USER+11)
4348 #define CBEM_INSERTITEM WINELIB_NAME_AW(CBEM_INSERTITEM)
4349 #define CBEM_SETIMAGELIST (WM_USER+2)
4350 #define CBEM_GETIMAGELIST (WM_USER+3)
4351 #define CBEM_GETITEMA (WM_USER+4)
4352 #define CBEM_GETITEMW (WM_USER+13)
4353 #define CBEM_GETITEM WINELIB_NAME_AW(CBEM_GETITEM)
4354 #define CBEM_SETITEMA (WM_USER+5)
4355 #define CBEM_SETITEMW (WM_USER+12)
4356 #define CBEM_SETITEM WINELIB_NAME_AW(CBEM_SETITEM)
4357 #define CBEM_DELETEITEM CB_DELETESTRING
4358 #define CBEM_GETCOMBOCONTROL (WM_USER+6)
4359 #define CBEM_GETEDITCONTROL (WM_USER+7)
4360 #define CBEM_SETEXSTYLE (WM_USER+8)
4361 #define CBEM_GETEXSTYLE (WM_USER+9)
4362 #define CBEM_GETEXTENDEDSTYLE (WM_USER+9)
4363 #define CBEM_SETEXTENDEDSTYLE (WM_USER+14)
4364 #define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
4365 #define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
4366 #define CBEM_HASEDITCHANGED (WM_USER+10)
4367 #define CBEM_SETWINDOWTHEME CCM_SETWINDOWTHEME
4369 #define CBEIF_TEXT 0x00000001
4370 #define CBEIF_IMAGE 0x00000002
4371 #define CBEIF_SELECTEDIMAGE 0x00000004
4372 #define CBEIF_OVERLAY 0x00000008
4373 #define CBEIF_INDENT 0x00000010
4374 #define CBEIF_LPARAM 0x00000020
4375 #define CBEIF_DI_SETITEM 0x10000000
4377 #define CBEN_FIRST (0U-800U)
4378 #define CBEN_LAST (0U-830U)
4380 #define CBEN_GETDISPINFOA (CBEN_FIRST - 0)
4381 #define CBEN_GETDISPINFOW (CBEN_FIRST - 7)
4382 #define CBEN_GETDISPINFO WINELIB_NAME_AW(CBEN_GETDISPINFO)
4383 #define CBEN_INSERTITEM (CBEN_FIRST - 1)
4384 #define CBEN_DELETEITEM (CBEN_FIRST - 2)
4385 #define CBEN_BEGINEDIT (CBEN_FIRST - 4)
4386 #define CBEN_ENDEDITA (CBEN_FIRST - 5)
4387 #define CBEN_ENDEDITW (CBEN_FIRST - 6)
4388 #define CBEN_ENDEDIT WINELIB_NAME_AW(CBEN_ENDEDIT)
4389 #define CBEN_DRAGBEGINA (CBEN_FIRST - 8)
4390 #define CBEN_DRAGBEGINW (CBEN_FIRST - 9)
4391 #define CBEN_DRAGBEGIN WINELIB_NAME_AW(CBEN_DRAGBEGIN)
4393 #define CBES_EX_NOEDITIMAGE 0x00000001
4394 #define CBES_EX_NOEDITIMAGEINDENT 0x00000002
4395 #define CBES_EX_PATHWORDBREAKPROC 0x00000004
4396 #define CBES_EX_NOSIZELIMIT 0x00000008
4397 #define CBES_EX_CASESENSITIVE 0x00000010
4400 typedef struct tagCOMBOBOXEXITEMA
4411 } COMBOBOXEXITEMA
, *PCOMBOBOXEXITEMA
;
4412 typedef COMBOBOXEXITEMA
const *PCCOMBOEXITEMA
; /* Yes, there's a BOX missing */
4414 typedef struct tagCOMBOBOXEXITEMW
4425 } COMBOBOXEXITEMW
, *PCOMBOBOXEXITEMW
;
4426 typedef COMBOBOXEXITEMW
const *PCCOMBOEXITEMW
; /* Yes, there's a BOX missing */
4428 #define COMBOBOXEXITEM WINELIB_NAME_AW(COMBOBOXEXITEM)
4429 #define PCOMBOBOXEXITEM WINELIB_NAME_AW(PCOMBOBOXEXITEM)
4430 #define PCCOMBOBOXEXITEM WINELIB_NAME_AW(PCCOMBOEXITEM) /* Yes, there's a BOX missing */
4432 #define CBENF_KILLFOCUS 1
4433 #define CBENF_RETURN 2
4434 #define CBENF_ESCAPE 3
4435 #define CBENF_DROPDOWN 4
4437 #define CBEMAXSTRLEN 260
4439 typedef struct tagNMCBEENDEDITW
4444 WCHAR szText
[CBEMAXSTRLEN
];
4446 } NMCBEENDEDITW
, *LPNMCBEENDEDITW
, *PNMCBEENDEDITW
;
4448 typedef struct tagNMCBEENDEDITA
4453 char szText
[CBEMAXSTRLEN
];
4455 } NMCBEENDEDITA
, *LPNMCBEENDEDITA
, *PNMCBEENDEDITA
;
4457 #define NMCBEENDEDIT WINELIB_NAME_AW(NMCBEENDEDIT)
4458 #define LPNMCBEENDEDIT WINELIB_NAME_AW(LPNMCBEENDEDIT)
4459 #define PNMCBEENDEDIT WINELIB_NAME_AW(PNMCBEENDEDIT)
4464 COMBOBOXEXITEMA ceItem
;
4465 } NMCOMBOBOXEXA
, *PNMCOMBOBOXEXA
;
4470 COMBOBOXEXITEMW ceItem
;
4471 } NMCOMBOBOXEXW
, *PNMCOMBOBOXEXW
;
4473 #define NMCOMBOBOXEX WINELIB_NAME_AW(NMCOMBOBOXEX)
4474 #define PNMCOMBOBOXEX WINELIB_NAME_AW(PNMCOMBOBOXEX)
4480 char szText
[CBEMAXSTRLEN
];
4481 } NMCBEDRAGBEGINA
, *PNMCBEDRAGBEGINA
, *LPNMCBEDRAGBEGINA
;
4487 WCHAR szText
[CBEMAXSTRLEN
];
4488 } NMCBEDRAGBEGINW
, *PNMCBEDRAGBEGINW
, *LPNMCBEDRAGBEGINW
;
4490 #define NMCBEDRAGBEGIN WINELIB_NAME_AW(NMCBEDRAGBEGIN)
4491 #define PNMCBEDRAGBEGIN WINELIB_NAME_AW(PNMCBEDRAGBEGIN)
4492 #define LPNMCBEDRAGBEGIN WINELIB_NAME_AW(LPNMCBEDRAGBEGIN)
4495 /* Hotkey control */
4497 #define HOTKEY_CLASSA "msctls_hotkey32"
4498 #if defined(__GNUC__)
4499 # define HOTKEY_CLASSW (const WCHAR []){ 'm','s','c','t','l','s','_', \
4500 'h','o','t','k','e','y','3','2',0 }
4501 #elif defined(_MSC_VER)
4502 # define HOTKEY_CLASSW L"msctls_hotkey32"
4504 static const WCHAR HOTKEY_CLASSW
[] = { 'm','s','c','t','l','s','_',
4505 'h','o','t','k','e','y','3','2',0 };
4507 #define HOTKEY_CLASS WINELIB_NAME_AW(HOTKEY_CLASS)
4509 #define HOTKEYF_SHIFT 0x01
4510 #define HOTKEYF_CONTROL 0x02
4511 #define HOTKEYF_ALT 0x04
4512 #define HOTKEYF_EXT 0x08
4514 #define HKCOMB_NONE 0x0001
4515 #define HKCOMB_S 0x0002
4516 #define HKCOMB_C 0x0004
4517 #define HKCOMB_A 0x0008
4518 #define HKCOMB_SC 0x0010
4519 #define HKCOMB_SA 0x0020
4520 #define HKCOMB_CA 0x0040
4521 #define HKCOMB_SCA 0x0080
4523 #define HKM_SETHOTKEY (WM_USER+1)
4524 #define HKM_GETHOTKEY (WM_USER+2)
4525 #define HKM_SETRULES (WM_USER+3)
4528 /* animate control */
4530 #define ANIMATE_CLASSA "SysAnimate32"
4531 #if defined(__GNUC__)
4532 # define ANIMATE_CLASSW (const WCHAR []){ 'S','y','s', \
4533 'A','n','i','m','a','t','e','3','2',0 }
4534 #elif defined(_MSC_VER)
4535 # define ANIMATE_CLASSW L"SysAnimate32"
4537 static const WCHAR ANIMATE_CLASSW
[] = { 'S','y','s',
4538 'A','n','i','m','a','t','e','3','2',0 };
4540 #define ANIMATE_CLASS WINELIB_NAME_AW(ANIMATE_CLASS)
4542 #define ACS_CENTER 0x0001
4543 #define ACS_TRANSPARENT 0x0002
4544 #define ACS_AUTOPLAY 0x0004
4545 #define ACS_TIMER 0x0008 /* no threads, just timers */
4547 #define ACM_OPENA (WM_USER+100)
4548 #define ACM_OPENW (WM_USER+103)
4549 #define ACM_OPEN WINELIB_NAME_AW(ACM_OPEN)
4550 #define ACM_PLAY (WM_USER+101)
4551 #define ACM_STOP (WM_USER+102)
4556 #define Animate_CreateA(hwndP,id,dwStyle,hInstance) \
4557 CreateWindowA(ANIMATE_CLASSA,NULL,dwStyle,0,0,0,0,hwndP,(HMENU)(id),hInstance,NULL)
4558 #define Animate_CreateW(hwndP,id,dwStyle,hInstance) \
4559 CreateWindowW(ANIMATE_CLASSW,NULL,dwStyle,0,0,0,0,hwndP,(HMENU)(id),hInstance,NULL)
4560 #define Animate_Create WINELIB_NAME_AW(Animate_Create)
4561 #define Animate_OpenA(hwnd,szName) \
4562 (BOOL)SNDMSGA(hwnd,ACM_OPENA,0,(LPARAM)(LPSTR)(szName))
4563 #define Animate_OpenW(hwnd,szName) \
4564 (BOOL)SNDMSGW(hwnd,ACM_OPENW,0,(LPARAM)(LPWSTR)(szName))
4565 #define Animate_Open WINELIB_NAME_AW(Animate_Open)
4566 #define Animate_OpenExA(hwnd,hInst,szName) \
4567 (BOOL)SNDMSGA(hwnd,ACM_OPENA,(WPARAM)hInst,(LPARAM)(LPSTR)(szName))
4568 #define Animate_OpenExW(hwnd,hInst,szName) \
4569 (BOOL)SNDMSGW(hwnd,ACM_OPENW,(WPARAM)hInst,(LPARAM)(LPWSTR)(szName))
4570 #define Animate_OpenEx WINELIB_NAME_AW(Animate_OpenEx)
4571 #define Animate_Play(hwnd,from,to,rep) \
4572 (BOOL)SNDMSG(hwnd,ACM_PLAY,(WPARAM)(UINT)(rep),(LPARAM)MAKELONG(from,to))
4573 #define Animate_Stop(hwnd) \
4574 (BOOL)SNDMSG(hwnd,ACM_STOP,0,0)
4575 #define Animate_Close(hwnd) \
4576 (BOOL)SNDMSG(hwnd,ACM_OPENA,0,0)
4577 #define Animate_Seek(hwnd,frame) \
4578 (BOOL)SNDMSG(hwnd,ACM_PLAY,1,(LPARAM)MAKELONG(frame,frame))
4581 /**************************************************************************
4582 * IP Address control
4585 #define WC_IPADDRESSA "SysIPAddress32"
4586 #if defined(__GNUC__)
4587 # define WC_IPADDRESSW (const WCHAR []){ 'S','y','s', \
4588 'I','P','A','d','d','r','e','s','s','3','2',0 }
4589 #elif defined(_MSC_VER)
4590 # define WC_IPADDRESSW L"SysIPAddress32"
4592 static const WCHAR WC_IPADDRESSW
[] = { 'S','y','s',
4593 'I','P','A','d','d','r','e','s','s','3','2',0 };
4595 #define WC_IPADDRESS WINELIB_NAME_AW(WC_IPADDRESS)
4597 #define IPM_CLEARADDRESS (WM_USER+100)
4598 #define IPM_SETADDRESS (WM_USER+101)
4599 #define IPM_GETADDRESS (WM_USER+102)
4600 #define IPM_SETRANGE (WM_USER+103)
4601 #define IPM_SETFOCUS (WM_USER+104)
4602 #define IPM_ISBLANK (WM_USER+105)
4604 #define IPN_FIRST (0U-860U)
4605 #define IPN_LAST (0U-879U)
4606 #define IPN_FIELDCHANGED (IPN_FIRST-0)
4608 typedef struct tagNMIPADDRESS
4613 } NMIPADDRESS
, *LPNMIPADDRESS
;
4615 #define MAKEIPRANGE(low,high) \
4616 ((LPARAM)(WORD)(((BYTE)(high)<<8)+(BYTE)(low)))
4617 #define MAKEIPADDRESS(b1,b2,b3,b4) \
4618 ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<<16)+((DWORD)(b3)<<8)+((DWORD)(b4))))
4620 #define FIRST_IPADDRESS(x) (((x)>>24)&0xff)
4621 #define SECOND_IPADDRESS(x) (((x)>>16)&0xff)
4622 #define THIRD_IPADDRESS(x) (((x)>>8)&0xff)
4623 #define FOURTH_IPADDRESS(x) ((x)&0xff)
4626 /**************************************************************************
4627 * Native Font control
4630 #define WC_NATIVEFONTCTLA "NativeFontCtl"
4631 #if defined(__GNUC__)
4632 # define WC_NATIVEFONTCTLW (const WCHAR []){ 'N','a','t','i','v','e', \
4633 'F','o','n','t','C','t','l',0 }
4634 #elif defined(_MSC_VER)
4635 # define WC_NATIVEFONTCTLW L"NativeFontCtl"
4637 static const WCHAR WC_NATIVEFONTCTLW
[] = { 'N','a','t','i','v','e',
4638 'F','o','n','t','C','t','l',0 };
4640 #define WC_NATIVEFONTCTL WINELIB_NAME_AW(WC_NATIVEFONTCTL)
4642 #define NFS_EDIT 0x0001
4643 #define NFS_STATIC 0x0002
4644 #define NFS_LISTCOMBO 0x0004
4645 #define NFS_BUTTON 0x0008
4646 #define NFS_ALL 0x0010
4649 /**************************************************************************
4650 * Month calendar control
4654 #define MONTHCAL_CLASSA "SysMonthCal32"
4655 #if defined(__GNUC__)
4656 # define MONTHCAL_CLASSW (const WCHAR []){ 'S','y','s', \
4657 'M','o','n','t','h','C','a','l','3','2',0 }
4658 #elif defined(_MSC_VER)
4659 # define MONTHCAL_CLASSW L"SysMonthCal32"
4661 static const WCHAR MONTHCAL_CLASSW
[] = { 'S','y','s',
4662 'M','o','n','t','h','C','a','l','3','2',0 };
4664 #define MONTHCAL_CLASS WINELIB_NAME_AW(MONTHCAL_CLASS)
4666 #define MCM_FIRST 0x1000
4667 #define MCN_FIRST (0U-750U)
4668 #define MCN_LAST (0U-759U)
4671 #define MCM_GETCURSEL (MCM_FIRST + 1)
4672 #define MCM_SETCURSEL (MCM_FIRST + 2)
4673 #define MCM_GETMAXSELCOUNT (MCM_FIRST + 3)
4674 #define MCM_SETMAXSELCOUNT (MCM_FIRST + 4)
4675 #define MCM_GETSELRANGE (MCM_FIRST + 5)
4676 #define MCM_SETSELRANGE (MCM_FIRST + 6)
4677 #define MCM_GETMONTHRANGE (MCM_FIRST + 7)
4678 #define MCM_SETDAYSTATE (MCM_FIRST + 8)
4679 #define MCM_GETMINREQRECT (MCM_FIRST + 9)
4680 #define MCM_SETCOLOR (MCM_FIRST + 10)
4681 #define MCM_GETCOLOR (MCM_FIRST + 11)
4682 #define MCM_SETTODAY (MCM_FIRST + 12)
4683 #define MCM_GETTODAY (MCM_FIRST + 13)
4684 #define MCM_HITTEST (MCM_FIRST + 14)
4685 #define MCM_SETFIRSTDAYOFWEEK (MCM_FIRST + 15)
4686 #define MCM_GETFIRSTDAYOFWEEK (MCM_FIRST + 16)
4687 #define MCM_GETRANGE (MCM_FIRST + 17)
4688 #define MCM_SETRANGE (MCM_FIRST + 18)
4689 #define MCM_GETMONTHDELTA (MCM_FIRST + 19)
4690 #define MCM_SETMONTHDELTA (MCM_FIRST + 20)
4691 #define MCM_GETMAXTODAYWIDTH (MCM_FIRST + 21)
4692 #define MCM_GETCALENDARCOUNT (MCM_FIRST + 23)
4693 #define MCM_SIZERECTTOMIN (MCM_FIRST + 29)
4694 #define MCM_SETCALENDARBORDER (MCM_FIRST + 30)
4695 #define MCM_GETCALENDARBORDER (MCM_FIRST + 31)
4696 #define MCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
4697 #define MCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
4702 #define MCN_SELCHANGE (MCN_FIRST + 1)
4703 #define MCN_GETDAYSTATE (MCN_FIRST + 3)
4704 #define MCN_SELECT (MCN_FIRST + 4)
4706 #define MCSC_BACKGROUND 0
4708 #define MCSC_TITLEBK 2
4709 #define MCSC_TITLETEXT 3
4710 #define MCSC_MONTHBK 4
4711 #define MCSC_TRAILINGTEXT 5
4713 #define MCS_DAYSTATE 0x0001
4714 #define MCS_MULTISELECT 0x0002
4715 #define MCS_WEEKNUMBERS 0x0004
4716 #define MCS_NOTODAY 0x0010
4717 #define MCS_NOTODAYCIRCLE 0x0008
4718 #define MCS_NOTRAILINGDATES 0x0040
4720 #define MCHT_TITLE 0x00010000
4721 #define MCHT_CALENDAR 0x00020000
4722 #define MCHT_TODAYLINK 0x00030000
4724 #define MCHT_NEXT 0x01000000
4725 #define MCHT_PREV 0x02000000
4726 #define MCHT_NOWHERE 0x00000000
4727 #define MCHT_TITLEBK (MCHT_TITLE)
4728 #define MCHT_TITLEMONTH (MCHT_TITLE | 0x0001)
4729 #define MCHT_TITLEYEAR (MCHT_TITLE | 0x0002)
4730 #define MCHT_TITLEBTNNEXT (MCHT_TITLE | MCHT_NEXT | 0x0003)
4731 #define MCHT_TITLEBTNPREV (MCHT_TITLE | MCHT_PREV | 0x0003)
4733 #define MCHT_CALENDARBK (MCHT_CALENDAR)
4734 #define MCHT_CALENDARDATE (MCHT_CALENDAR | 0x0001)
4735 #define MCHT_CALENDARDATENEXT (MCHT_CALENDARDATE | MCHT_NEXT)
4736 #define MCHT_CALENDARDATEPREV (MCHT_CALENDARDATE | MCHT_PREV)
4737 #define MCHT_CALENDARDAY (MCHT_CALENDAR | 0x0002)
4738 #define MCHT_CALENDARWEEKNUM (MCHT_CALENDAR | 0x0003)
4742 #define GMR_VISIBLE 0
4743 #define GMR_DAYSTATE 1
4746 /* Month calendar's structures */
4759 } MCHITTESTINFO
, *PMCHITTESTINFO
;
4761 #define MCHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(MCHITTESTINFO, st)
4763 typedef struct tagNMSELCHANGE
4766 SYSTEMTIME stSelStart
;
4767 SYSTEMTIME stSelEnd
;
4768 } NMSELCHANGE
, *LPNMSELCHANGE
;
4770 typedef NMSELCHANGE NMSELECT
, *LPNMSELECT
;
4771 typedef DWORD MONTHDAYSTATE
, *LPMONTHDAYSTATE
;
4773 typedef struct tagNMDAYSTATE
4778 LPMONTHDAYSTATE prgDayState
;
4779 } NMDAYSTATE
, *LPNMDAYSTATE
;
4784 #define MonthCal_GetCurSel(hmc, pst) \
4785 (BOOL)SNDMSG(hmc, MCM_GETCURSEL, 0, (LPARAM)(pst))
4786 #define MonthCal_SetCurSel(hmc, pst) \
4787 (BOOL)SNDMSG(hmc, MCM_SETCURSEL, 0, (LPARAM)(pst))
4788 #define MonthCal_GetMaxSelCount(hmc) \
4789 (DWORD)SNDMSG(hmc, MCM_GETMAXSELCOUNT, 0, 0L)
4790 #define MonthCal_SetMaxSelCount(hmc, n) \
4791 (BOOL)SNDMSG(hmc, MCM_SETMAXSELCOUNT, (WPARAM)(n), 0L)
4792 #define MonthCal_GetSelRange(hmc, rgst) \
4793 SNDMSG(hmc, MCM_GETSELRANGE, 0, (LPARAM) (rgst))
4794 #define MonthCal_SetSelRange(hmc, rgst) \
4795 SNDMSG(hmc, MCM_SETSELRANGE, 0, (LPARAM) (rgst))
4796 #define MonthCal_GetMonthRange(hmc, gmr, rgst) \
4797 (DWORD)SNDMSG(hmc, MCM_GETMONTHRANGE, (WPARAM)(gmr), (LPARAM)(rgst))
4798 #define MonthCal_SetDayState(hmc, cbds, rgds) \
4799 SNDMSG(hmc, MCM_SETDAYSTATE, (WPARAM)(cbds), (LPARAM)(rgds))
4800 #define MonthCal_GetMinReqRect(hmc, prc) \
4801 SNDMSG(hmc, MCM_GETMINREQRECT, 0, (LPARAM)(prc))
4802 #define MonthCal_SetColor(hmc, iColor, clr)\
4803 SNDMSG(hmc, MCM_SETCOLOR, iColor, clr)
4804 #define MonthCal_GetColor(hmc, iColor) \
4805 SNDMSG(hmc, MCM_SETCOLOR, iColor, 0)
4806 #define MonthCal_GetToday(hmc, pst)\
4807 (BOOL)SNDMSG(hmc, MCM_GETTODAY, 0, (LPARAM)pst)
4808 #define MonthCal_SetToday(hmc, pst)\
4809 SNDMSG(hmc, MCM_SETTODAY, 0, (LPARAM)pst)
4810 #define MonthCal_HitTest(hmc, pinfo) \
4811 SNDMSG(hmc, MCM_HITTEST, 0, (LPARAM)(PMCHITTESTINFO)pinfo)
4812 #define MonthCal_SetFirstDayOfWeek(hmc, iDay) \
4813 SNDMSG(hmc, MCM_SETFIRSTDAYOFWEEK, 0, iDay)
4814 #define MonthCal_GetFirstDayOfWeek(hmc) \
4815 (DWORD)SNDMSG(hmc, MCM_GETFIRSTDAYOFWEEK, 0, 0)
4816 #define MonthCal_GetRange(hmc, rgst) \
4817 (DWORD)SNDMSG(hmc, MCM_GETRANGE, 0, (LPARAM)(rgst))
4818 #define MonthCal_SetRange(hmc, gd, rgst) \
4819 (BOOL)SNDMSG(hmc, MCM_SETRANGE, (WPARAM)(gd), (LPARAM)(rgst))
4820 #define MonthCal_GetMonthDelta(hmc) \
4821 (int)SNDMSG(hmc, MCM_GETMONTHDELTA, 0, 0)
4822 #define MonthCal_SetMonthDelta(hmc, n) \
4823 (int)SNDMSG(hmc, MCM_SETMONTHDELTA, n, 0)
4824 #define MonthCal_GetMaxTodayWidth(hmc) \
4825 (DWORD)SNDMSG(hmc, MCM_GETMAXTODAYWIDTH, 0, 0)
4826 #define MonthCal_SetUnicodeFormat(hwnd, fUnicode) \
4827 (BOOL)SNDMSG((hwnd), MCM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0)
4828 #define MonthCal_GetUnicodeFormat(hwnd) \
4829 (BOOL)SNDMSG((hwnd), MCM_GETUNICODEFORMAT, 0, 0)
4832 /**************************************************************************
4833 * Date and time picker control
4836 #define DATETIMEPICK_CLASSA "SysDateTimePick32"
4837 #if defined(__GNUC__)
4838 # define DATETIMEPICK_CLASSW (const WCHAR []){ 'S','y','s', \
4839 'D','a','t','e','T','i','m','e','P','i','c','k','3','2',0 }
4840 #elif defined(_MSC_VER)
4841 # define DATETIMEPICK_CLASSW L"SysDateTimePick32"
4843 static const WCHAR DATETIMEPICK_CLASSW
[] = { 'S','y','s',
4844 'D','a','t','e','T','i','m','e','P','i','c','k','3','2',0 };
4846 #define DATETIMEPICK_CLASS WINELIB_NAME_AW(DATETIMEPICK_CLASS)
4848 #define DTM_FIRST 0x1000
4849 #define DTN_FIRST (0U-760U)
4850 #define DTN_LAST (0U-799U)
4853 #define DTM_GETSYSTEMTIME (DTM_FIRST+1)
4854 #define DTM_SETSYSTEMTIME (DTM_FIRST+2)
4855 #define DTM_GETRANGE (DTM_FIRST+3)
4856 #define DTM_SETRANGE (DTM_FIRST+4)
4857 #define DTM_SETFORMATA (DTM_FIRST+5)
4858 #define DTM_SETFORMATW (DTM_FIRST + 50)
4859 #define DTM_SETFORMAT WINELIB_NAME_AW(DTM_SETFORMAT)
4860 #define DTM_SETMCCOLOR (DTM_FIRST+6)
4861 #define DTM_GETMCCOLOR (DTM_FIRST+7)
4862 #define DTM_GETMONTHCAL (DTM_FIRST+8)
4863 #define DTM_SETMCFONT (DTM_FIRST+9)
4864 #define DTM_GETMCFONT (DTM_FIRST+10)
4867 /* Datetime Notifications */
4869 #define DTN_DATETIMECHANGE (DTN_FIRST + 1)
4870 #define DTN_USERSTRINGA (DTN_FIRST + 2)
4871 #define DTN_WMKEYDOWNA (DTN_FIRST + 3)
4872 #define DTN_FORMATA (DTN_FIRST + 4)
4873 #define DTN_FORMATQUERYA (DTN_FIRST + 5)
4874 #define DTN_DROPDOWN (DTN_FIRST + 6)
4875 #define DTN_CLOSEUP (DTN_FIRST + 7)
4876 #define DTN_USERSTRINGW (DTN_FIRST + 15)
4877 #define DTN_WMKEYDOWNW (DTN_FIRST + 16)
4878 #define DTN_FORMATW (DTN_FIRST + 17)
4879 #define DTN_FORMATQUERYW (DTN_FIRST + 18)
4881 #define DTN_USERSTRING WINELIB_NAME_AW(DTN_USERSTRING)
4882 #define DTN_WMKEYDOWN WINELIB_NAME_AW(DTN_WMKEYDOWN)
4883 #define DTN_FORMAT WINELIB_NAME_AW(DTN_FORMAT)
4884 #define DTN_FORMATQUERY WINELIB_NAME_AW(DTN_FORMATQUERY)
4886 #define DTS_SHORTDATEFORMAT 0x0000
4887 #define DTS_UPDOWN 0x0001
4888 #define DTS_SHOWNONE 0x0002
4889 #define DTS_LONGDATEFORMAT 0x0004
4890 #define DTS_TIMEFORMAT 0x0009
4891 #define DTS_APPCANPARSE 0x0010
4892 #define DTS_RIGHTALIGN 0x0020
4894 typedef struct tagNMDATETIMECHANGE
4899 } NMDATETIMECHANGE
, *LPNMDATETIMECHANGE
;
4901 typedef struct tagNMDATETIMESTRINGA
4904 LPCSTR pszUserString
;
4907 } NMDATETIMESTRINGA
, *LPNMDATETIMESTRINGA
;
4909 typedef struct tagNMDATETIMESTRINGW
4912 LPCWSTR pszUserString
;
4915 } NMDATETIMESTRINGW
, *LPNMDATETIMESTRINGW
;
4917 DECL_WINELIB_TYPE_AW(NMDATETIMESTRING
)
4918 DECL_WINELIB_TYPE_AW(LPNMDATETIMESTRING
)
4920 typedef struct tagNMDATETIMEWMKEYDOWNA
4926 } NMDATETIMEWMKEYDOWNA
, *LPNMDATETIMEWMKEYDOWNA
;
4928 typedef struct tagNMDATETIMEWMKEYDOWNW
4934 } NMDATETIMEWMKEYDOWNW
, *LPNMDATETIMEWMKEYDOWNW
;
4936 DECL_WINELIB_TYPE_AW(NMDATETIMEWMKEYDOWN
)
4937 DECL_WINELIB_TYPE_AW(LPNMDATETIMEWMKEYDOWN
)
4939 typedef struct tagNMDATETIMEFORMATA
4946 } NMDATETIMEFORMATA
, *LPNMDATETIMEFORMATA
;
4949 typedef struct tagNMDATETIMEFORMATW
4955 WCHAR szDisplay
[64];
4956 } NMDATETIMEFORMATW
, *LPNMDATETIMEFORMATW
;
4958 DECL_WINELIB_TYPE_AW(NMDATETIMEFORMAT
)
4959 DECL_WINELIB_TYPE_AW(LPNMDATETIMEFORMAT
)
4961 typedef struct tagNMDATETIMEFORMATQUERYA
4966 } NMDATETIMEFORMATQUERYA
, *LPNMDATETIMEFORMATQUERYA
;
4968 typedef struct tagNMDATETIMEFORMATQUERYW
4973 } NMDATETIMEFORMATQUERYW
, *LPNMDATETIMEFORMATQUERYW
;
4975 DECL_WINELIB_TYPE_AW(NMDATETIMEFORMATQUERY
)
4976 DECL_WINELIB_TYPE_AW(LPNMDATETIMEFORMATQUERY
)
4980 #define GDT_ERROR -1
4984 #define GDTR_MIN 0x0001
4985 #define GDTR_MAX 0x0002
4988 #define DateTime_GetSystemtime(hdp, pst) \
4989 (DWORD)SNDMSG (hdp, DTM_GETSYSTEMTIME , 0, (LPARAM)(pst))
4990 #define DateTime_SetSystemtime(hdp, gd, pst) \
4991 (BOOL)SNDMSG (hdp, DTM_SETSYSTEMTIME, (LPARAM)(gd), (LPARAM)(pst))
4992 #define DateTime_GetRange(hdp, rgst) \
4993 (DWORD)SNDMSG (hdp, DTM_GETRANGE, 0, (LPARAM)(rgst))
4994 #define DateTime_SetRange(hdp, gd, rgst) \
4995 (BOOL)SNDMSG (hdp, DTM_SETRANGE, (WPARAM)(gd), (LPARAM)(rgst))
4996 #define DateTime_SetFormatA(hdp, sz) \
4997 (BOOL)SNDMSGA (hdp, DTM_SETFORMATA, 0, (LPARAM)(sz))
4998 #define DateTime_SetFormatW(hdp, sz) \
4999 (BOOL)SNDMSGW (hdp, DTM_SETFORMATW, 0, (LPARAM)(sz))
5000 #define DateTime_SetFormat WINELIB_NAME_AW(DateTime_SetFormat)
5001 #define DateTime_GetMonthCalColor(hdp, iColor) \
5002 SNDMSG (hdp, DTM_GETMCCOLOR, iColor, 0)
5003 #define DateTime_SetMonthCalColor(hdp, iColor, clr) \
5004 SNDMSG (hdp, DTM_SETMCCOLOR, iColor, clr)
5005 #define DateTime_GetMonthCal(hdp) \
5006 (HWND) SNDMSG (hdp, DTM_GETMONTHCAL, 0, 0)
5007 #define DateTime_SetMonthCalFont(hdp, hfont, fRedraw) \
5008 SNDMSG (hdp, DTM_SETMCFONT, (WPARAM)hfont, (LPARAM)fRedraw)
5009 #define DateTime_GetMonthCalFont(hdp) \
5010 SNDMSG (hdp, DTM_GETMCFONT, 0, 0)
5012 #define DA_LAST (0x7fffffff)
5013 #define DPA_APPEND (0x7fffffff)
5014 #define DPA_ERR (-1)
5016 #define DSA_APPEND (0x7fffffff)
5017 #define DSA_ERR (-1)
5020 typedef struct _DSA
*HDSA
;
5022 typedef INT (CALLBACK
*PFNDSAENUMCALLBACK
)(LPVOID
, LPVOID
);
5024 HDSA WINAPI
DSA_Create(INT
, INT
);
5025 BOOL WINAPI
DSA_Destroy(HDSA
);
5026 void WINAPI
DSA_DestroyCallback(HDSA
, PFNDSAENUMCALLBACK
, LPVOID
);
5027 LPVOID WINAPI
DSA_GetItemPtr(HDSA
, INT
);
5028 INT WINAPI
DSA_InsertItem(HDSA
, INT
, LPVOID
);
5030 #define DPAS_SORTED 0x0001
5031 #define DPAS_INSERTBEFORE 0x0002
5032 #define DPAS_INSERTAFTER 0x0004
5036 typedef struct _DPA
*HDPA
;
5038 #define DPA_GetPtrCount(hdpa) (*(INT*)(hdpa))
5040 typedef INT (CALLBACK
*PFNDPAENUMCALLBACK
)(LPVOID
, LPVOID
);
5041 typedef INT (CALLBACK
*PFNDPACOMPARE
)(LPVOID
, LPVOID
, LPARAM
);
5042 typedef PVOID (CALLBACK
*PFNDPAMERGE
)(UINT
,PVOID
,PVOID
,LPARAM
);
5044 /* merge callback codes */
5045 #define DPAMM_MERGE 1
5046 #define DPAMM_DELETE 2
5047 #define DPAMM_INSERT 3
5050 #define DPAM_SORTED 0x00000001
5051 #define DPAM_NORMAL 0x00000002
5052 #define DPAM_UNION 0x00000004
5053 #define DPAM_INTERSECT 0x00000008
5055 HDPA WINAPI
DPA_Create(INT
);
5056 BOOL WINAPI
DPA_Destroy(HDPA
);
5057 LPVOID WINAPI
DPA_DeletePtr(HDPA
, INT
);
5058 BOOL WINAPI
DPA_DeleteAllPtrs(HDPA
);
5059 BOOL WINAPI
DPA_SetPtr(HDPA
, INT
, LPVOID
);
5060 LPVOID WINAPI
DPA_GetPtr(HDPA
, INT
);
5061 INT WINAPI
DPA_GetPtrIndex(HDPA
, LPCVOID
);
5062 ULONGLONG WINAPI
DPA_GetSize(HDPA
);
5063 BOOL WINAPI
DPA_Grow(HDPA
, INT
);
5064 INT WINAPI
DPA_InsertPtr(HDPA
, INT
, LPVOID
);
5065 BOOL WINAPI
DPA_Sort(HDPA
, PFNDPACOMPARE
, LPARAM
);
5066 void WINAPI
DPA_EnumCallback(HDPA
, PFNDPAENUMCALLBACK
, LPVOID
);
5067 void WINAPI
DPA_DestroyCallback(HDPA
, PFNDPAENUMCALLBACK
, LPVOID
);
5068 INT WINAPI
DPA_Search(HDPA
, LPVOID
, INT
, PFNDPACOMPARE
, LPARAM
, UINT
);
5069 BOOL WINAPI
DPA_Merge(HDPA
, HDPA
, DWORD
, PFNDPACOMPARE
, PFNDPAMERGE
, LPARAM
);
5071 /* save/load from stream */
5072 typedef struct _DPASTREAMINFO
5074 INT iPos
; /* item index */
5079 typedef HRESULT (CALLBACK
*PFNDPASTREAM
)(DPASTREAMINFO
*, struct IStream
*, LPVOID
);
5081 HRESULT WINAPI
DPA_LoadStream(HDPA
*, PFNDPASTREAM
, struct IStream
*, LPVOID
);
5082 HRESULT WINAPI
DPA_SaveStream(HDPA
, PFNDPASTREAM
, struct IStream
*, LPVOID
);
5084 BOOL WINAPI
Str_SetPtrW (LPWSTR
*, LPCWSTR
);
5086 /**************************************************************************
5090 #if defined(__GNUC__)
5091 # define WC_LINK (const WCHAR []){ 'S','y','s','L','i','n','k',0 }
5092 #elif defined(_MSC_VER)
5093 # define WC_LINK L"SysLink"
5095 static const WCHAR WC_LINK
[] = { 'S','y','s','L','i','n','k',0 };
5098 /* SysLink styles */
5099 #define LWS_TRANSPARENT 0x0001
5100 #define LWS_IGNORERETURN 0x0002
5102 /* SysLink messages */
5103 #define LM_HITTEST (WM_USER + 768)
5104 #define LM_GETIDEALHEIGHT (WM_USER + 769)
5105 #define LM_GETIDEALSIZE (LM_GETIDEALHEIGHT)
5106 #define LM_SETITEM (WM_USER + 770)
5107 #define LM_GETITEM (WM_USER + 771)
5109 /* SysLink links flags */
5111 #define LIF_ITEMINDEX 1
5113 #define LIF_ITEMID 4
5116 /* SysLink links states */
5118 #define LIS_FOCUSED 1
5119 #define LIS_ENABLED 2
5120 #define LIS_VISITED 4
5124 #define INVALID_LINK_INDEX (-1)
5125 #define MAX_LINKID_TEXT 48
5126 #define L_MAX_URL_LENGTH 2084
5128 /* SysLink structures */
5130 typedef struct tagLITEM
5136 WCHAR szID
[MAX_LINKID_TEXT
];
5137 WCHAR szUrl
[L_MAX_URL_LENGTH
];
5140 typedef struct tagLHITTESTINFO
5144 } LHITTESTINFO
, *PLHITTESTINFO
;
5146 typedef struct tagNMLINK
5152 typedef struct tagNMLVLINK
5158 } NMLVLINK
, *PNMLVLINK
;
5160 /**************************************************************************
5164 #define WC_STATICA "Static"
5165 #if defined(__GNUC__)
5166 # define WC_STATICW (const WCHAR []){ 'S','t','a','t','i','c',0 }
5167 #elif defined(_MSC_VER)
5168 # define WC_STATICW L"Static"
5170 static const WCHAR WC_STATICW
[] = { 'S','t','a','t','i','c',0 };
5172 #define WC_STATIC WINELIB_NAME_AW(WC_STATIC)
5174 /**************************************************************************
5178 #define WC_COMBOBOXA "ComboBox"
5179 #if defined(__GNUC__)
5180 # define WC_COMBOBOXW (const WCHAR []){ 'C','o','m','b','o','B','o','x',0 }
5181 #elif defined(_MSC_VER)
5182 # define WC_COMBOBOXW L"ComboBox"
5184 static const WCHAR WC_COMBOBOXW
[] = { 'C','o','m','b','o','B','o','x',0 };
5186 #define WC_COMBOBOX WINELIB_NAME_AW(WC_COMBOBOX)
5188 /**************************************************************************
5192 #define WC_EDITA "Edit"
5193 #if defined(__GNUC__)
5194 # define WC_EDITW (const WCHAR []){ 'E','d','i','t',0 }
5195 #elif defined(_MSC_VER)
5196 # define WC_EDITW L"Edit"
5198 static const WCHAR WC_EDITW
[] = { 'E','d','i','t',0 };
5200 #define WC_EDIT WINELIB_NAME_AW(WC_EDIT)
5202 /**************************************************************************
5206 #define WC_LISTBOXA "ListBox"
5207 #if defined(__GNUC__)
5208 # define WC_LISTBOXW (const WCHAR []){ 'L','i','s','t','B','o','x',0 }
5209 #elif defined(_MSC_VER)
5210 # define WC_LISTBOXW L"ListBox"
5212 static const WCHAR WC_LISTBOXW
[] = { 'L','i','s','t','B','o','x',0 };
5214 #define WC_LISTBOX WINELIB_NAME_AW(WC_LISTBOX)
5216 /**************************************************************************
5220 #define WC_SCROLLBARA "ScrollBar"
5221 #if defined(__GNUC__)
5222 # define WC_SCROLLBARW (const WCHAR []){ 'S','c','r','o','l','l','B','a','r',0 }
5223 #elif defined(_MSC_VER)
5224 # define WC_SCROLLBARW L"ScrollBar"
5226 static const WCHAR WC_SCROLLBARW
[] = { 'S','c','r','o','l','l','B','a','r',0 };
5228 #define WC_SCROLLBAR WINELIB_NAME_AW(WC_SCROLLBAR)
5230 /**************************************************************************
5234 #ifndef NOTASKDIALOG
5236 #include <pshpack1.h>
5238 enum _TASKDIALOG_FLAGS
5240 TDF_ENABLE_HYPERLINKS
= 0x0001,
5241 TDF_USE_HICON_MAIN
= 0x0002,
5242 TDF_USE_HICON_FOOTER
= 0x0004,
5243 TDF_ALLOW_DIALOG_CANCELLATION
= 0x0008,
5244 TDF_USE_COMMAND_LINKS
= 0x0010,
5245 TDF_USE_COMMAND_LINKS_NO_ICON
= 0x0020,
5246 TDF_EXPAND_FOOTER_AREA
= 0x0040,
5247 TDF_EXPANDED_BY_DEFAULT
= 0x0080,
5248 TDF_VERIFICATION_FLAG_CHECKED
= 0x0100,
5249 TDF_SHOW_PROGRESS_BAR
= 0x0200,
5250 TDF_SHOW_MARQUEE_PROGRESS_BAR
= 0x0400,
5251 TDF_CALLBACK_TIMER
= 0x0800,
5252 TDF_POSITION_RELATIVE_TO_WINDOW
= 0x1000,
5253 TDF_RTL_LAYOUT
= 0x2000,
5254 TDF_NO_DEFAULT_RADIO_BUTTON
= 0x4000,
5255 TDF_CAN_BE_MINIMIZED
= 0x8000
5257 typedef int TASKDIALOG_FLAGS
;
5259 enum _TASKDIALOG_COMMON_BUTTON_FLAGS
5261 TDCBF_OK_BUTTON
= 0x0001,
5262 TDCBF_YES_BUTTON
= 0x0002,
5263 TDCBF_NO_BUTTON
= 0x0004,
5264 TDCBF_CANCEL_BUTTON
= 0x0008,
5265 TDCBF_RETRY_BUTTON
= 0x0010,
5266 TDCBF_CLOSE_BUTTON
= 0x0020
5268 typedef int TASKDIALOG_COMMON_BUTTON_FLAGS
;
5270 typedef struct _TASKDIALOG_BUTTON
5273 PCWSTR pszButtonText
;
5274 } TASKDIALOG_BUTTON
;
5276 typedef HRESULT (CALLBACK
*PFTASKDIALOGCALLBACK
)(HWND
, UINT
, WPARAM
, LPARAM
, LONG_PTR
);
5278 typedef struct _TASKDIALOGCONFIG
5282 HINSTANCE hInstance
;
5283 TASKDIALOG_FLAGS dwFlags
;
5284 TASKDIALOG_COMMON_BUTTON_FLAGS dwCommonButtons
;
5285 PCWSTR pszWindowTitle
;
5291 PCWSTR pszMainInstruction
;
5294 const TASKDIALOG_BUTTON
*pButtons
;
5297 const TASKDIALOG_BUTTON
*pRadioButtons
;
5298 int nDefaultRadioButton
;
5299 PCWSTR pszVerificationText
;
5300 PCWSTR pszExpandedInformation
;
5301 PCWSTR pszExpandedControlText
;
5302 PCWSTR pszCollapsedControlText
;
5306 PCWSTR pszFooterIcon
;
5309 PFTASKDIALOGCALLBACK pfCallback
;
5310 LONG_PTR lpCallbackData
;
5314 HRESULT WINAPI
TaskDialogIndirect(const TASKDIALOGCONFIG
*, int *, int *, BOOL
*);
5316 #include <poppack.h>
5318 #endif /* NOTASKDIALOG */
5324 #endif /* __WINE_COMMCTRL_H */