mlang/tests: Make the tests more silent.
[wine/hacks.git] / include / commctrl.h
blobe39f4a2391f52ed7d8b2aa00dfa5141c381dd185
1 /*
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
24 #include <prsht.h>
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
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 {
35 DWORD dwSize;
36 DWORD dwICC;
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 */
47 #ifndef _WIN32_IE
48 #define _WIN32_IE 0x0400
49 #endif
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
147 #define ODT_TAB 101
148 #define ODT_LISTVIEW 102
150 /* common notification structures */
151 typedef struct tagNMTOOLTIPSCREATED
153 NMHDR hdr;
154 HWND hwndToolTips;
155 } NMTOOLTIPSCREATED, *LPNMTOOLTIPSCREATED;
157 typedef struct tagNMMOUSE
159 NMHDR hdr;
160 DWORD_PTR dwItemSpec;
161 DWORD_PTR dwItemData;
162 POINT pt;
163 DWORD dwHitInfo; /* info where on item or control the mouse is */
164 } NMMOUSE, *LPNMMOUSE;
166 typedef struct tagNMOBJECTNOTIFY
168 NMHDR hdr;
169 int iItem;
170 #ifdef __IID_DEFINED__
171 const IID *piid;
172 #else
173 const void *piid;
174 #endif
175 void *pObject;
176 HRESULT hResult;
177 DWORD dwFlags;
178 } NMOBJECTNOTIFY, *LPNMOBJECTNOTIFY;
180 typedef struct tagNMKEY
182 NMHDR hdr;
183 UINT nVKey;
184 UINT uFlags;
185 } NMKEY, *LPNMKEY;
187 typedef struct tagNMCHAR
189 NMHDR hdr;
190 UINT ch;
191 DWORD dwItemPrev; /* Item previously selected */
192 DWORD dwItemNext; /* Item to be selected */
193 } NMCHAR, *LPNMCHAR;
195 #ifndef CCSIZEOF_STRUCT
196 #define CCSIZEOF_STRUCT(name, member) \
197 (((INT)((LPBYTE)(&((name*)0)->member)-((LPBYTE)((name*)0))))+ \
198 sizeof(((name*)0)->member))
199 #endif
202 /* This is only for Winelib applications. DON't use it wine itself!!! */
203 #ifndef SNDMSG
204 #ifdef __cplusplus
205 #define SNDMSG ::SendMessage
206 #else /* __cplusplus */
207 #define SNDMSG SendMessage
208 #endif /* __cplusplus */
209 #endif /* SNDMSG */
212 #ifdef __cplusplus
213 #define SNDMSGA ::SendMessageA
214 #define SNDMSGW ::SendMessageW
215 #else
216 #define SNDMSGA SendMessageA
217 #define SNDMSGW SendMessageW
218 #endif
220 /* Custom Draw messages */
222 #define CDRF_DODEFAULT 0x0
223 #define CDRF_NEWFONT 0x00000002
224 #define CDRF_SKIPDEFAULT 0x00000004
225 #define CDRF_NOTIFYPOSTPAINT 0x00000010
226 #define CDRF_NOTIFYITEMDRAW 0x00000020
227 #define CDRF_NOTIFYSUBITEMDRAW 0x00000020
228 #define CDRF_NOTIFYPOSTERASE 0x00000040
229 #define CDRF_NOTIFYITEMERASE 0x00000080 /* obsolete ??? */
232 /* drawstage flags */
234 #define CDDS_PREPAINT 1
235 #define CDDS_POSTPAINT 2
236 #define CDDS_PREERASE 3
237 #define CDDS_POSTERASE 4
239 #define CDDS_ITEM 0x00010000
240 #define CDDS_ITEMPREPAINT (CDDS_ITEM | CDDS_PREPAINT)
241 #define CDDS_ITEMPOSTPAINT (CDDS_ITEM | CDDS_POSTPAINT)
242 #define CDDS_ITEMPREERASE (CDDS_ITEM | CDDS_PREERASE)
243 #define CDDS_ITEMPOSTERASE (CDDS_ITEM | CDDS_POSTERASE)
244 #define CDDS_SUBITEM 0x00020000
246 /* itemState flags */
248 #define CDIS_SELECTED 0x0001
249 #define CDIS_GRAYED 0x0002
250 #define CDIS_DISABLED 0x0004
251 #define CDIS_CHECKED 0x0008
252 #define CDIS_FOCUS 0x0010
253 #define CDIS_DEFAULT 0x0020
254 #define CDIS_HOT 0x0040
255 #define CDIS_MARKED 0x0080
256 #define CDIS_INDETERMINATE 0x0100
257 #define CDIS_SHOWKEYBOARDCUES 0x0200
258 #define CDIS_NEARHOT 0x0400
259 #define CDIS_OTHERSIDEHOT 0x0800
260 #define CDIS_DROPHILITED 0x1000
263 typedef struct tagNMCUSTOMDRAWINFO
265 NMHDR hdr;
266 DWORD dwDrawStage;
267 HDC hdc;
268 RECT rc;
269 DWORD_PTR dwItemSpec;
270 UINT uItemState;
271 LPARAM lItemlParam;
272 } NMCUSTOMDRAW, *LPNMCUSTOMDRAW;
274 typedef struct tagNMTTCUSTOMDRAW
276 NMCUSTOMDRAW nmcd;
277 UINT uDrawFlags;
278 } NMTTCUSTOMDRAW, *LPNMTTCUSTOMDRAW;
283 /* StatusWindow */
285 #define STATUSCLASSNAMEA "msctls_statusbar32"
286 #if defined(__GNUC__)
287 # define STATUSCLASSNAMEW (const WCHAR []){ 'm','s','c','t','l','s','_', \
288 's','t','a','t','u','s','b','a','r','3','2',0 }
289 #elif defined(_MSC_VER)
290 # define STATUSCLASSNAMEW L"msctls_statusbar32"
291 #else
292 static const WCHAR STATUSCLASSNAMEW[] = { 'm','s','c','t','l','s','_',
293 's','t','a','t','u','s','b','a','r','3','2',0 };
294 #endif
295 #define STATUSCLASSNAME WINELIB_NAME_AW(STATUSCLASSNAME)
297 #define SBT_NOBORDERS 0x0100
298 #define SBT_POPOUT 0x0200
299 #define SBT_RTLREADING 0x0400 /* not supported */
300 #define SBT_TOOLTIPS 0x0800
301 #define SBT_OWNERDRAW 0x1000
303 #define SBARS_SIZEGRIP 0x0100
305 #define SB_SIMPLEID 0x00ff
307 #define SB_SETTEXTA (WM_USER+1)
308 #define SB_SETTEXTW (WM_USER+11)
309 #define SB_SETTEXT WINELIB_NAME_AW(SB_SETTEXT)
310 #define SB_GETTEXTA (WM_USER+2)
311 #define SB_GETTEXTW (WM_USER+13)
312 #define SB_GETTEXT WINELIB_NAME_AW(SB_GETTEXT)
313 #define SB_GETTEXTLENGTHA (WM_USER+3)
314 #define SB_GETTEXTLENGTHW (WM_USER+12)
315 #define SB_GETTEXTLENGTH WINELIB_NAME_AW(SB_GETTEXTLENGTH)
316 #define SB_SETPARTS (WM_USER+4)
317 #define SB_SETBORDERS (WM_USER+5)
318 #define SB_GETPARTS (WM_USER+6)
319 #define SB_GETBORDERS (WM_USER+7)
320 #define SB_SETMINHEIGHT (WM_USER+8)
321 #define SB_SIMPLE (WM_USER+9)
322 #define SB_GETRECT (WM_USER+10)
323 #define SB_ISSIMPLE (WM_USER+14)
324 #define SB_SETICON (WM_USER+15)
325 #define SB_SETTIPTEXTA (WM_USER+16)
326 #define SB_SETTIPTEXTW (WM_USER+17)
327 #define SB_SETTIPTEXT WINELIB_NAME_AW(SB_SETTIPTEXT)
328 #define SB_GETTIPTEXTA (WM_USER+18)
329 #define SB_GETTIPTEXTW (WM_USER+19)
330 #define SB_GETTIPTEXT WINELIB_NAME_AW(SB_GETTIPTEXT)
331 #define SB_GETICON (WM_USER+20)
332 #define SB_SETBKCOLOR CCM_SETBKCOLOR /* lParam = bkColor */
333 #define SB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
334 #define SB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
336 #define SBN_FIRST (0U-880U)
337 #define SBN_LAST (0U-899U)
338 #define SBN_SIMPLEMODECHANGE (SBN_FIRST-0)
340 HWND WINAPI CreateStatusWindowA (LONG, LPCSTR, HWND, UINT);
341 HWND WINAPI CreateStatusWindowW (LONG, LPCWSTR, HWND, UINT);
342 #define CreateStatusWindow WINELIB_NAME_AW(CreateStatusWindow)
343 VOID WINAPI DrawStatusTextA (HDC, LPCRECT, LPCSTR, UINT);
344 VOID WINAPI DrawStatusTextW (HDC, LPCRECT, LPCWSTR, UINT);
345 #define DrawStatusText WINELIB_NAME_AW(DrawStatusText)
346 VOID WINAPI MenuHelp (UINT, WPARAM, LPARAM, HMENU,
347 HINSTANCE, HWND, UINT*);
349 typedef struct tagCOLORSCHEME
351 DWORD dwSize;
352 COLORREF clrBtnHighlight; /* highlight color */
353 COLORREF clrBtnShadow; /* shadow color */
354 } COLORSCHEME, *LPCOLORSCHEME;
356 /**************************************************************************
357 * Drag List control
360 typedef struct tagDRAGLISTINFO
362 UINT uNotification;
363 HWND hWnd;
364 POINT ptCursor;
365 } DRAGLISTINFO, *LPDRAGLISTINFO;
367 #define DL_BEGINDRAG (WM_USER+133)
368 #define DL_DRAGGING (WM_USER+134)
369 #define DL_DROPPED (WM_USER+135)
370 #define DL_CANCELDRAG (WM_USER+136)
372 #define DL_CURSORSET 0
373 #define DL_STOPCURSOR 1
374 #define DL_COPYCURSOR 2
375 #define DL_MOVECURSOR 3
377 #define DRAGLISTMSGSTRINGA "commctrl_DragListMsg"
378 #if defined(__GNUC__)
379 # define DRAGLISTMSGSTRINGW (const WCHAR []){ 'c','o','m','m','c','t','r','l', \
380 '_','D','r','a','g','L','i','s','t','M','s','g',0 }
381 #elif defined(_MSC_VER)
382 # define DRAGLISTMSGSTRINGW L"commctrl_DragListMsg"
383 #else
384 static const WCHAR DRAGLISTMSGSTRINGW[] = { 'c','o','m','m','c','t','r','l',
385 '_','D','r','a','g','L','i','s','t','M','s','g',0 };
386 #endif
387 #define DRAGLISTMSGSTRING WINELIB_NAME_AW(DRAGLISTMSGSTRING)
389 BOOL WINAPI MakeDragList (HWND);
390 VOID WINAPI DrawInsert (HWND, HWND, INT);
391 INT WINAPI LBItemFromPt (HWND, POINT, BOOL);
394 /* UpDown */
396 #define UPDOWN_CLASSA "msctls_updown32"
397 #if defined(__GNUC__)
398 # define UPDOWN_CLASSW (const WCHAR []){ 'm','s','c','t','l','s','_', \
399 'u','p','d','o','w','n','3','2',0 }
400 #elif defined(_MSC_VER)
401 # define UPDOWN_CLASSW L"msctls_updown32"
402 #else
403 static const WCHAR UPDOWN_CLASSW[] = { 'm','s','c','t','l','s','_',
404 'u','p','d','o','w','n','3','2',0 };
405 #endif
406 #define UPDOWN_CLASS WINELIB_NAME_AW(UPDOWN_CLASS)
408 typedef struct _UDACCEL
410 UINT nSec;
411 UINT nInc;
412 } UDACCEL, *LPUDACCEL;
414 #define UD_MAXVAL 0x7fff
415 #define UD_MINVAL 0x8001
417 #define UDS_WRAP 0x0001
418 #define UDS_SETBUDDYINT 0x0002
419 #define UDS_ALIGNRIGHT 0x0004
420 #define UDS_ALIGNLEFT 0x0008
421 #define UDS_AUTOBUDDY 0x0010
422 #define UDS_ARROWKEYS 0x0020
423 #define UDS_HORZ 0x0040
424 #define UDS_NOTHOUSANDS 0x0080
425 #define UDS_HOTTRACK 0x0100
427 #define UDN_FIRST (0U-721)
428 #define UDN_LAST (0U-740)
429 #define UDN_DELTAPOS (UDN_FIRST-1)
431 #define UDM_SETRANGE (WM_USER+101)
432 #define UDM_GETRANGE (WM_USER+102)
433 #define UDM_SETPOS (WM_USER+103)
434 #define UDM_GETPOS (WM_USER+104)
435 #define UDM_SETBUDDY (WM_USER+105)
436 #define UDM_GETBUDDY (WM_USER+106)
437 #define UDM_SETACCEL (WM_USER+107)
438 #define UDM_GETACCEL (WM_USER+108)
439 #define UDM_SETBASE (WM_USER+109)
440 #define UDM_GETBASE (WM_USER+110)
441 #define UDM_SETRANGE32 (WM_USER+111)
442 #define UDM_GETRANGE32 (WM_USER+112)
443 #define UDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
444 #define UDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
445 #define UDM_SETPOS32 (WM_USER+113)
446 #define UDM_GETPOS32 (WM_USER+114)
449 #define NMUPDOWN NM_UPDOWN
450 #define LPNMUPDOWN LPNM_UPDOWN
452 typedef struct tagNM_UPDOWN
454 NMHDR hdr;
455 int iPos;
456 int iDelta;
457 } NM_UPDOWN, *LPNM_UPDOWN;
459 HWND WINAPI CreateUpDownControl (DWORD, INT, INT, INT, INT,
460 HWND, INT, HINSTANCE, HWND,
461 INT, INT, INT);
463 /* Progress Bar */
465 #define PROGRESS_CLASSA "msctls_progress32"
466 #if defined(__GNUC__)
467 # define PROGRESS_CLASSW (const WCHAR []){ 'm','s','c','t','l','s','_', \
468 'p','r','o','g','r','e','s','s','3','2',0 }
469 #elif defined(_MSC_VER)
470 # define PROGRESS_CLASSW L"msctls_progress32"
471 #else
472 static const WCHAR PROGRESS_CLASSW[] = { 'm','s','c','t','l','s','_',
473 'p','r','o','g','r','e','s','s','3','2',0 };
474 #endif
475 #define PROGRESS_CLASS WINELIB_NAME_AW(PROGRESS_CLASS)
477 #define PBM_SETRANGE (WM_USER+1)
478 #define PBM_SETPOS (WM_USER+2)
479 #define PBM_DELTAPOS (WM_USER+3)
480 #define PBM_SETSTEP (WM_USER+4)
481 #define PBM_STEPIT (WM_USER+5)
482 #define PBM_SETRANGE32 (WM_USER+6)
483 #define PBM_GETRANGE (WM_USER+7)
484 #define PBM_GETPOS (WM_USER+8)
485 #define PBM_SETBARCOLOR (WM_USER+9)
486 #define PBM_SETMARQUEE (WM_USER+10)
487 #define PBM_SETBKCOLOR CCM_SETBKCOLOR
489 #define PBS_SMOOTH 0x01
490 #define PBS_VERTICAL 0x04
491 #define PBS_MARQUEE 0x08
493 typedef struct
495 INT iLow;
496 INT iHigh;
497 } PBRANGE, *PPBRANGE;
500 /* ImageList */
502 struct _IMAGELIST;
503 typedef struct _IMAGELIST *HIMAGELIST;
505 #define CLR_NONE 0xFFFFFFFF
506 #define CLR_DEFAULT 0xFF000000
507 #define CLR_HILIGHT CLR_DEFAULT
509 #define ILC_MASK 0x0001
510 #define ILC_COLOR 0x0000
511 #define ILC_COLORDDB 0x00FE
512 #define ILC_COLOR4 0x0004
513 #define ILC_COLOR8 0x0008
514 #define ILC_COLOR16 0x0010
515 #define ILC_COLOR24 0x0018
516 #define ILC_COLOR32 0x0020
517 #define ILC_PALETTE 0x0800 /* no longer supported by M$ */
518 #define ILC_MIRROR 0x2000
519 #define ILC_PERITEMMIRROR 0x8000
521 #define ILD_NORMAL 0x0000
522 #define ILD_TRANSPARENT 0x0001
523 #define ILD_BLEND25 0x0002
524 #define ILD_BLEND50 0x0004
525 #define ILD_MASK 0x0010
526 #define ILD_IMAGE 0x0020
527 #define ILD_ROP 0x0040
528 #define ILD_OVERLAYMASK 0x0F00
529 #define ILD_PRESERVEALPHA 0x1000
530 #define ILD_SCALE 0x2000
531 #define ILD_DPISCALE 0x4000
532 #define ILD_ASYNC 0x8000
534 #define ILD_SELECTED ILD_BLEND50
535 #define ILD_FOCUS ILD_BLEND25
536 #define ILD_BLEND ILD_BLEND50
538 #define INDEXTOOVERLAYMASK(i) ((i)<<8)
539 #define INDEXTOSTATEIMAGEMASK(i) ((i)<<12)
541 #define ILCF_MOVE (0x00000000)
542 #define ILCF_SWAP (0x00000001)
544 #define ILGT_NORMAL 0x0000
545 #define ILGT_ASYNC 0x0001
547 #define ILS_NORMAL 0x0000
548 #define ILS_GLOW 0x0001
549 #define ILS_SHADOW 0x0002
550 #define ILS_SATURATE 0x0004
551 #define ILS_ALPHA 0x0008
553 typedef struct _IMAGEINFO
555 HBITMAP hbmImage;
556 HBITMAP hbmMask;
557 INT Unused1;
558 INT Unused2;
559 RECT rcImage;
560 } IMAGEINFO, *LPIMAGEINFO;
563 typedef struct _IMAGELISTDRAWPARAMS
565 DWORD cbSize;
566 HIMAGELIST himl;
567 INT i;
568 HDC hdcDst;
569 INT x;
570 INT y;
571 INT cx;
572 INT cy;
573 INT xBitmap; /* x offest from the upperleft of bitmap */
574 INT yBitmap; /* y offset from the upperleft of bitmap */
575 COLORREF rgbBk;
576 COLORREF rgbFg;
577 UINT fStyle;
578 DWORD dwRop;
579 DWORD fState;
580 DWORD Frame;
581 DWORD crEffect;
582 } IMAGELISTDRAWPARAMS, *LPIMAGELISTDRAWPARAMS;
585 INT WINAPI ImageList_Add(HIMAGELIST,HBITMAP,HBITMAP);
586 INT WINAPI ImageList_AddMasked(HIMAGELIST,HBITMAP,COLORREF);
587 BOOL WINAPI ImageList_BeginDrag(HIMAGELIST,INT,INT,INT);
588 BOOL WINAPI ImageList_Copy(HIMAGELIST,INT,HIMAGELIST,INT,UINT);
589 HIMAGELIST WINAPI ImageList_Create(INT,INT,UINT,INT,INT);
590 BOOL WINAPI ImageList_Destroy(HIMAGELIST);
591 BOOL WINAPI ImageList_DragEnter(HWND,INT,INT);
592 BOOL WINAPI ImageList_DragLeave(HWND);
593 BOOL WINAPI ImageList_DragMove(INT,INT);
594 BOOL WINAPI ImageList_DragShowNolock (BOOL);
595 BOOL WINAPI ImageList_Draw(HIMAGELIST,INT,HDC,INT,INT,UINT);
596 BOOL WINAPI ImageList_DrawEx(HIMAGELIST,INT,HDC,INT,INT,INT,
597 INT,COLORREF,COLORREF,UINT);
598 BOOL WINAPI ImageList_DrawIndirect(IMAGELISTDRAWPARAMS*);
599 HIMAGELIST WINAPI ImageList_Duplicate(HIMAGELIST);
600 VOID WINAPI ImageList_EndDrag(VOID);
601 COLORREF WINAPI ImageList_GetBkColor(HIMAGELIST);
602 HIMAGELIST WINAPI ImageList_GetDragImage(POINT*,POINT*);
603 HICON WINAPI ImageList_GetIcon(HIMAGELIST,INT,UINT);
604 BOOL WINAPI ImageList_GetIconSize(HIMAGELIST,INT*,INT*);
605 INT WINAPI ImageList_GetImageCount(HIMAGELIST);
606 BOOL WINAPI ImageList_GetImageInfo(HIMAGELIST,INT,IMAGEINFO*);
607 BOOL WINAPI ImageList_GetImageRect(HIMAGELIST,INT,LPRECT);
608 HIMAGELIST WINAPI ImageList_LoadImageA(HINSTANCE,LPCSTR,INT,INT,
609 COLORREF,UINT,UINT);
610 HIMAGELIST WINAPI ImageList_LoadImageW(HINSTANCE,LPCWSTR,INT,INT,
611 COLORREF,UINT,UINT);
612 #define ImageList_LoadImage WINELIB_NAME_AW(ImageList_LoadImage)
613 HIMAGELIST WINAPI ImageList_Merge(HIMAGELIST,INT,HIMAGELIST,INT,INT,INT);
614 BOOL WINAPI ImageList_Remove(HIMAGELIST,INT);
615 BOOL WINAPI ImageList_Replace(HIMAGELIST,INT,HBITMAP,HBITMAP);
616 INT WINAPI ImageList_ReplaceIcon(HIMAGELIST,INT,HICON);
617 COLORREF WINAPI ImageList_SetBkColor(HIMAGELIST,COLORREF);
618 BOOL WINAPI ImageList_SetDragCursorImage(HIMAGELIST,INT,INT,INT);
620 BOOL WINAPI ImageList_SetIconSize(HIMAGELIST,INT,INT);
621 BOOL WINAPI ImageList_SetImageCount(HIMAGELIST,UINT);
622 BOOL WINAPI ImageList_SetOverlayImage(HIMAGELIST,INT,INT);
624 #ifdef __IStream_INTERFACE_DEFINED__
625 HIMAGELIST WINAPI ImageList_Read(LPSTREAM);
626 BOOL WINAPI ImageList_Write(HIMAGELIST, LPSTREAM);
627 #endif
629 #define ImageList_AddIcon(himl,hicon) ImageList_ReplaceIcon(himl,-1,hicon)
630 #define ImageList_ExtractIcon(hi,himl,i) ImageList_GetIcon(himl,i,0)
631 #define ImageList_LoadBitmap(hi,lpbmp,cx,cGrow,crMask) \
632 ImageList_LoadImage(hi,lpbmp,cx,cGrow,crMask,IMAGE_BITMAP,0)
633 #define ImageList_RemoveAll(himl) ImageList_Remove(himl,-1)
636 #ifndef WM_MOUSEHOVER
637 #define WM_MOUSEHOVER 0x02A1
638 #define WM_MOUSELEAVE 0x02A3
639 #endif
641 #ifndef TME_HOVER
643 #define TME_HOVER 0x00000001
644 #define TME_LEAVE 0x00000002
645 #define TME_NONCLIENT 0x00000010
646 #define TME_QUERY 0x40000000
647 #define TME_CANCEL 0x80000000
650 #define HOVER_DEFAULT 0xFFFFFFFF
652 typedef struct tagTRACKMOUSEEVENT {
653 DWORD cbSize;
654 DWORD dwFlags;
655 HWND hwndTrack;
656 DWORD dwHoverTime;
657 } TRACKMOUSEEVENT, *LPTRACKMOUSEEVENT;
659 #endif
661 BOOL WINAPI _TrackMouseEvent(LPTRACKMOUSEEVENT lpEventTrack);
663 /* Flat Scrollbar control */
665 #define FLATSB_CLASSA "flatsb_class32"
666 #if defined(__GNUC__)
667 # define FLATSB_CLASSW (const WCHAR []){ 'f','l','a','t','s','b','_', \
668 'c','l','a','s','s','3','2',0 }
669 #elif defined(_MSC_VER)
670 # define FLATSB_CLASSW L"flatsb_class32"
671 #else
672 static const WCHAR FLATSB_CLASSW[] = { 'f','l','a','t','s','b','_',
673 'c','l','a','s','s','3','2',0 };
674 #endif
675 #define FLATSB_CLASS WINELIB_NAME_AW(FLATSB_CLASS)
677 #define WSB_PROP_CYVSCROLL 0x00000001L
678 #define WSB_PROP_CXHSCROLL 0x00000002L
679 #define WSB_PROP_CYHSCROLL 0x00000004L
680 #define WSB_PROP_CXVSCROLL 0x00000008L
681 #define WSB_PROP_CXHTHUMB 0x00000010L
682 #define WSB_PROP_CYVTHUMB 0x00000020L
683 #define WSB_PROP_VBKGCOLOR 0x00000040L
684 #define WSB_PROP_HBKGCOLOR 0x00000080L
685 #define WSB_PROP_VSTYLE 0x00000100L
686 #define WSB_PROP_HSTYLE 0x00000200L
687 #define WSB_PROP_WINSTYLE 0x00000400L
688 #define WSB_PROP_PALETTE 0x00000800L
689 #define WSB_PROP_MASK 0x00000FFFL
691 #define FSB_REGULAR_MODE 0
692 #define FSB_ENCARTA_MODE 1
693 #define FSB_FLAT_MODE 2
696 BOOL WINAPI FlatSB_EnableScrollBar(HWND, INT, UINT);
697 BOOL WINAPI FlatSB_ShowScrollBar(HWND, INT, BOOL);
698 BOOL WINAPI FlatSB_GetScrollRange(HWND, INT, LPINT, LPINT);
699 BOOL WINAPI FlatSB_GetScrollInfo(HWND, INT, LPSCROLLINFO);
700 INT WINAPI FlatSB_GetScrollPos(HWND, INT);
701 BOOL WINAPI FlatSB_GetScrollProp(HWND, INT, LPINT);
702 INT WINAPI FlatSB_SetScrollPos(HWND, INT, INT, BOOL);
703 INT WINAPI FlatSB_SetScrollInfo(HWND, INT, LPSCROLLINFO, BOOL);
704 INT WINAPI FlatSB_SetScrollRange(HWND, INT, INT, INT, BOOL);
705 BOOL WINAPI FlatSB_SetScrollProp(HWND, UINT, INT, BOOL);
706 BOOL WINAPI InitializeFlatSB(HWND);
707 HRESULT WINAPI UninitializeFlatSB(HWND);
709 /* Subclassing stuff */
710 typedef LRESULT (CALLBACK *SUBCLASSPROC)(HWND, UINT, WPARAM, LPARAM, UINT_PTR, DWORD_PTR);
711 BOOL WINAPI SetWindowSubclass(HWND, SUBCLASSPROC, UINT_PTR, DWORD_PTR);
712 BOOL WINAPI GetWindowSubclass(HWND, SUBCLASSPROC, UINT_PTR, DWORD_PTR*);
713 BOOL WINAPI RemoveWindowSubclass(HWND, SUBCLASSPROC, UINT_PTR);
714 LRESULT WINAPI DefSubclassProc(HWND, UINT, WPARAM, LPARAM);
716 int WINAPI DrawShadowText(HDC, LPCWSTR, UINT, RECT*, DWORD, COLORREF, COLORREF, int, int);
718 /* Header control */
720 #define WC_HEADERA "SysHeader32"
721 #if defined(__GNUC__)
722 # define WC_HEADERW (const WCHAR []){ 'S','y','s','H','e','a','d','e','r','3','2',0 }
723 #elif defined(_MSC_VER)
724 # define WC_HEADERW L"SysHeader32"
725 #else
726 static const WCHAR WC_HEADERW[] = { 'S','y','s','H','e','a','d','e','r','3','2',0 };
727 #endif
728 #define WC_HEADER WINELIB_NAME_AW(WC_HEADER)
730 #define HDS_HORZ 0x0000
731 #define HDS_BUTTONS 0x0002
732 #define HDS_HOTTRACK 0x0004
733 #define HDS_HIDDEN 0x0008
734 #define HDS_DRAGDROP 0x0040
735 #define HDS_FULLDRAG 0x0080
736 #define HDS_FILTERBAR 0x0100
737 #define HDS_FLAT 0x0200
738 #define HDS_CHECKBOXES 0x0400
740 #define HDI_WIDTH 0x0001
741 #define HDI_HEIGHT HDI_WIDTH
742 #define HDI_TEXT 0x0002
743 #define HDI_FORMAT 0x0004
744 #define HDI_LPARAM 0x0008
745 #define HDI_BITMAP 0x0010
746 #define HDI_IMAGE 0x0020
747 #define HDI_DI_SETITEM 0x0040
748 #define HDI_ORDER 0x0080
749 #define HDI_FILTER 0x0100
751 #define HDF_LEFT 0x0000
752 #define HDF_RIGHT 0x0001
753 #define HDF_CENTER 0x0002
754 #define HDF_JUSTIFYMASK 0x0003
755 #define HDF_RTLREADING 0x0004
756 #define HDF_CHECKBOX 0x0040
757 #define HDF_CHECKED 0x0080
758 #define HDF_FIXEDWIDTH 0x0100
759 #define HDF_SORTDOWN 0x0200
760 #define HDF_SORTUP 0x0400
761 #define HDF_IMAGE 0x0800
762 #define HDF_BITMAP_ON_RIGHT 0x1000
763 #define HDF_BITMAP 0x2000
764 #define HDF_STRING 0x4000
765 #define HDF_OWNERDRAW 0x8000
767 #define HHT_NOWHERE 0x0001
768 #define HHT_ONHEADER 0x0002
769 #define HHT_ONDIVIDER 0x0004
770 #define HHT_ONDIVOPEN 0x0008
771 #define HHT_ONFILTER 0x0010
772 #define HHT_ONFILTERBUTTON 0x0020
773 #define HHT_ABOVE 0x0100
774 #define HHT_BELOW 0x0200
775 #define HHT_TORIGHT 0x0400
776 #define HHT_TOLEFT 0x0800
777 #define HHT_ONITEMSTATEICON 0x1000
779 #define HDM_FIRST 0x1200
780 #define HDM_GETITEMCOUNT (HDM_FIRST+0)
781 #define HDM_INSERTITEMA (HDM_FIRST+1)
782 #define HDM_INSERTITEMW (HDM_FIRST+10)
783 #define HDM_INSERTITEM WINELIB_NAME_AW(HDM_INSERTITEM)
784 #define HDM_DELETEITEM (HDM_FIRST+2)
785 #define HDM_GETITEMA (HDM_FIRST+3)
786 #define HDM_GETITEMW (HDM_FIRST+11)
787 #define HDM_GETITEM WINELIB_NAME_AW(HDM_GETITEM)
788 #define HDM_SETITEMA (HDM_FIRST+4)
789 #define HDM_SETITEMW (HDM_FIRST+12)
790 #define HDM_SETITEM WINELIB_NAME_AW(HDM_SETITEM)
791 #define HDM_LAYOUT (HDM_FIRST+5)
792 #define HDM_HITTEST (HDM_FIRST+6)
793 #define HDM_GETITEMRECT (HDM_FIRST+7)
794 #define HDM_SETIMAGELIST (HDM_FIRST+8)
795 #define HDM_GETIMAGELIST (HDM_FIRST+9)
797 #define HDM_ORDERTOINDEX (HDM_FIRST+15)
798 #define HDM_CREATEDRAGIMAGE (HDM_FIRST+16)
799 #define HDM_GETORDERARRAY (HDM_FIRST+17)
800 #define HDM_SETORDERARRAY (HDM_FIRST+18)
801 #define HDM_SETHOTDIVIDER (HDM_FIRST+19)
802 #define HDM_SETBITMAPMARGIN (HDM_FIRST+20)
803 #define HDM_GETBITMAPMARGIN (HDM_FIRST+21)
804 #define HDM_SETFILTERCHANGETIMEOUT (HDM_FIRST+22)
805 #define HDM_EDITFILTER (HDM_FIRST+23)
806 #define HDM_CLEARFILTER (HDM_FIRST+24)
807 #define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
808 #define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
810 #define HDN_FIRST (0U-300U)
811 #define HDN_LAST (0U-399U)
812 #define HDN_ITEMCHANGINGA (HDN_FIRST-0)
813 #define HDN_ITEMCHANGINGW (HDN_FIRST-20)
814 #define HDN_ITEMCHANGING WINELIB_NAME_AW(HDN_ITEMCHANGING)
815 #define HDN_ITEMCHANGEDA (HDN_FIRST-1)
816 #define HDN_ITEMCHANGEDW (HDN_FIRST-21)
817 #define HDN_ITEMCHANGED WINELIB_NAME_AW(HDN_ITEMCHANGED)
818 #define HDN_ITEMCLICKA (HDN_FIRST-2)
819 #define HDN_ITEMCLICKW (HDN_FIRST-22)
820 #define HDN_ITEMCLICK WINELIB_NAME_AW(HDN_ITEMCLICK)
821 #define HDN_ITEMDBLCLICKA (HDN_FIRST-3)
822 #define HDN_ITEMDBLCLICKW (HDN_FIRST-23)
823 #define HDN_ITEMDBLCLICK WINELIB_NAME_AW(HDN_ITEMDBLCLICK)
824 #define HDN_DIVIDERDBLCLICKA (HDN_FIRST-5)
825 #define HDN_DIVIDERDBLCLICKW (HDN_FIRST-25)
826 #define HDN_DIVIDERDBLCLICK WINELIB_NAME_AW(HDN_DIVIDERDBLCLICK)
827 #define HDN_BEGINTRACKA (HDN_FIRST-6)
828 #define HDN_BEGINTRACKW (HDN_FIRST-26)
829 #define HDN_BEGINTRACK WINELIB_NAME_AW(HDN_BEGINTRACK)
830 #define HDN_ENDTRACKA (HDN_FIRST-7)
831 #define HDN_ENDTRACKW (HDN_FIRST-27)
832 #define HDN_ENDTRACK WINELIB_NAME_AW(HDN_ENDTRACK)
833 #define HDN_TRACKA (HDN_FIRST-8)
834 #define HDN_TRACKW (HDN_FIRST-28)
835 #define HDN_TRACK WINELIB_NAME_AW(HDN_TRACK)
836 #define HDN_GETDISPINFOA (HDN_FIRST-9)
837 #define HDN_GETDISPINFOW (HDN_FIRST-29)
838 #define HDN_GETDISPINFO WINELIB_NAME_AW(HDN_GETDISPINFO)
839 #define HDN_BEGINDRAG (HDN_FIRST-10)
840 #define HDN_ENDDRAG (HDN_FIRST-11)
841 #define HDN_FILTERCHANGE (HDN_FIRST-12)
842 #define HDN_FILTERBTNCLICK (HDN_FIRST-13)
843 #define HDN_BEGINFILTEREDIT (HDN_FIRST-14)
844 #define HDN_ENDFILTEREDIT (HDN_FIRST-15)
845 #define HDN_ITEMSTATEICONCLICK (HDN_FIRST-16)
846 #define HDN_ITEMKEYDOWN (HDN_FIRST-17)
848 typedef struct _HD_LAYOUT
850 RECT *prc;
851 WINDOWPOS *pwpos;
852 } HDLAYOUT, *LPHDLAYOUT;
854 #define HD_LAYOUT HDLAYOUT
856 typedef struct _HD_ITEMA
858 UINT mask;
859 INT cxy;
860 LPSTR pszText;
861 HBITMAP hbm;
862 INT cchTextMax;
863 INT fmt;
864 LPARAM lParam;
865 INT iImage;
866 INT iOrder;
867 UINT type;
868 LPVOID pvFilter;
869 } HDITEMA, *LPHDITEMA;
871 typedef struct _HD_ITEMW
873 UINT mask;
874 INT cxy;
875 LPWSTR pszText;
876 HBITMAP hbm;
877 INT cchTextMax;
878 INT fmt;
879 LPARAM lParam;
880 INT iImage;
881 INT iOrder;
882 UINT type;
883 LPVOID pvFilter;
884 } HDITEMW, *LPHDITEMW;
886 #define HDITEM WINELIB_NAME_AW(HDITEM)
887 #define LPHDITEM WINELIB_NAME_AW(LPHDITEM)
888 #define HD_ITEM HDITEM
890 #define HDITEM_V1_SIZEA CCSIZEOF_STRUCT(HDITEMA, lParam)
891 #define HDITEM_V1_SIZEW CCSIZEOF_STRUCT(HDITEMW, lParam)
892 #define HDITEM_V1_SIZE WINELIB_NAME_AW(HDITEM_V1_SIZE)
894 #define HDFT_ISSTRING 0x0000
895 #define HDFT_ISNUMBER 0x0001
896 #define HDFT_HASNOVALUE 0x8000
898 typedef struct _HD_TEXTFILTERA
900 LPSTR pszText;
901 INT cchTextMax;
902 } HD_TEXTFILTERA, *LPHD_TEXTFILTERA;
904 typedef struct _HD_TEXTFILTERW
906 LPWSTR pszText;
907 INT cchTextMax;
908 } HD_TEXTFILTERW, *LPHD_TEXTFILTERW;
910 #define HD_TEXTFILTER WINELIB_NAME_AW(HD_TEXTFILTER)
911 #define HDTEXTFILTER WINELIB_NAME_AW(HD_TEXTFILTER)
912 #define LPHD_TEXTFILTER WINELIB_NAME_AW(LPHD_TEXTFILTER)
913 #define LPHDTEXTFILTER WINELIB_NAME_AW(LPHD_TEXTFILTER)
915 typedef struct _HD_HITTESTINFO
917 POINT pt;
918 UINT flags;
919 INT iItem;
920 } HDHITTESTINFO, *LPHDHITTESTINFO;
922 #define HD_HITTESTINFO HDHITTESTINFO
924 typedef struct tagNMHEADERA
926 NMHDR hdr;
927 INT iItem;
928 INT iButton;
929 HDITEMA *pitem;
930 } NMHEADERA, *LPNMHEADERA;
932 typedef struct tagNMHEADERW
934 NMHDR hdr;
935 INT iItem;
936 INT iButton;
937 HDITEMW *pitem;
938 } NMHEADERW, *LPNMHEADERW;
940 #define NMHEADER WINELIB_NAME_AW(NMHEADER)
941 #define LPNMHEADER WINELIB_NAME_AW(LPNMHEADER)
942 #define HD_NOTIFY NMHEADER
944 typedef struct tagNMHDDISPINFOA
946 NMHDR hdr;
947 INT iItem;
948 UINT mask;
949 LPSTR pszText;
950 INT cchTextMax;
951 INT iImage;
952 LPARAM lParam;
953 } NMHDDISPINFOA, *LPNMHDDISPINFOA;
955 typedef struct tagNMHDDISPINFOW
957 NMHDR hdr;
958 INT iItem;
959 UINT mask;
960 LPWSTR pszText;
961 INT cchTextMax;
962 INT iImage;
963 LPARAM lParam;
964 } NMHDDISPINFOW, *LPNMHDDISPINFOW;
966 #define NMHDDISPINFO WINELIB_NAME_AW(NMHDDISPINFO)
967 #define LPNMHDDISPINFO WINELIB_NAME_AW(LPNMHDDISPINFO)
969 typedef struct tagNMHDFILTERBTNCLICK
971 NMHDR hdr;
972 INT iItem;
973 RECT rc;
974 } NMHDFILTERBTNCLICK, *LPNMHDFILTERBTNCLICK;
976 #define Header_GetItemCount(hwndHD) \
977 (INT)SNDMSG((hwndHD),HDM_GETITEMCOUNT,0,0L)
978 #define Header_InsertItemA(hwndHD,i,phdi) \
979 (INT)SNDMSGA((hwndHD),HDM_INSERTITEMA,(WPARAM)(INT)(i),(LPARAM)(const HDITEMA*)(phdi))
980 #define Header_InsertItemW(hwndHD,i,phdi) \
981 (INT)SNDMSGW((hwndHD),HDM_INSERTITEMW,(WPARAM)(INT)(i),(LPARAM)(const HDITEMW*)(phdi))
982 #define Header_InsertItem WINELIB_NAME_AW(Header_InsertItem)
983 #define Header_DeleteItem(hwndHD,i) \
984 (BOOL)SNDMSG((hwndHD),HDM_DELETEITEM,(WPARAM)(INT)(i),0L)
985 #define Header_GetItemA(hwndHD,i,phdi) \
986 (BOOL)SNDMSGA((hwndHD),HDM_GETITEMA,(WPARAM)(INT)(i),(LPARAM)(HDITEMA*)(phdi))
987 #define Header_GetItemW(hwndHD,i,phdi) \
988 (BOOL)SNDMSGW((hwndHD),HDM_GETITEMW,(WPARAM)(INT)(i),(LPARAM)(HDITEMW*)(phdi))
989 #define Header_GetItem WINELIB_NAME_AW(Header_GetItem)
990 #define Header_SetItemA(hwndHD,i,phdi) \
991 (BOOL)SNDMSGA((hwndHD),HDM_SETITEMA,(WPARAM)(INT)(i),(LPARAM)(const HDITEMA*)(phdi))
992 #define Header_SetItemW(hwndHD,i,phdi) \
993 (BOOL)SNDMSGW((hwndHD),HDM_SETITEMW,(WPARAM)(INT)(i),(LPARAM)(const HDITEMW*)(phdi))
994 #define Header_SetItem WINELIB_NAME_AW(Header_SetItem)
995 #define Header_Layout(hwndHD,playout) \
996 (BOOL)SNDMSG((hwndHD),HDM_LAYOUT,0,(LPARAM)(LPHDLAYOUT)(playout))
997 #define Header_GetItemRect(hwnd,iItem,lprc) \
998 (BOOL)SNDMSG((hwnd),HDM_GETITEMRECT,(WPARAM)iItem,(LPARAM)lprc)
999 #define Header_SetImageList(hwnd,himl) \
1000 (HIMAGELIST)SNDMSG((hwnd),HDM_SETIMAGELIST,0,(LPARAM)himl)
1001 #define Header_GetImageList(hwnd) \
1002 (HIMAGELIST)SNDMSG((hwnd),HDM_GETIMAGELIST,0,0)
1003 #define Header_OrderToIndex(hwnd,i) \
1004 (INT)SNDMSG((hwnd),HDM_ORDERTOINDEX,(WPARAM)i,0)
1005 #define Header_CreateDragImage(hwnd,i) \
1006 (HIMAGELIST)SNDMSG((hwnd),HDM_CREATEDRAGIMAGE,(WPARAM)i,0)
1007 #define Header_GetOrderArray(hwnd,iCount,lpi) \
1008 (BOOL)SNDMSG((hwnd),HDM_GETORDERARRAY,(WPARAM)iCount,(LPARAM)lpi)
1009 #define Header_SetOrderArray(hwnd,iCount,lpi) \
1010 (BOOL)SNDMSG((hwnd),HDM_SETORDERARRAY,(WPARAM)iCount,(LPARAM)lpi)
1011 #define Header_SetHotDivider(hwnd,fPos,dw) \
1012 (INT)SNDMSG((hwnd),HDM_SETHOTDIVIDER,(WPARAM)fPos,(LPARAM)dw)
1013 #define Header_SetUnicodeFormat(hwnd,fUnicode) \
1014 (BOOL)SNDMSG((hwnd),HDM_SETUNICODEFORMAT,(WPARAM)(fUnicode),0)
1015 #define Header_GetUnicodeFormat(hwnd) \
1016 (BOOL)SNDMSG((hwnd),HDM_GETUNICODEFORMAT,0,0)
1018 /* Win32 5.1 Button Theme */
1019 #define WC_BUTTONA "Button"
1020 #if defined(__GNUC__)
1021 # define WC_BUTTONW (const WCHAR []){ 'B','u','t','t','o','n',0 }
1022 #elif defined(_MSC_VER)
1023 # define WC_BUTTONW L"Button"
1024 #else
1025 static const WCHAR WC_BUTTONW[] = { 'B','u','t','t','o','n',0 };
1026 #endif
1027 #define WC_BUTTON WINELIB_NAME_AW(WC_BUTTON)
1029 #define BCN_FIRST (0U-1250U)
1030 #define BCN_LAST (0U-1350U)
1032 #define BCN_HOTITEMCHANGE (BCN_FIRST + 0x0001)
1034 typedef struct tagNMBCHOTITEM
1036 NMHDR hdr;
1037 DWORD dwFlags;
1038 } NMBCHOTITEM, *LPNMBCHOTITEM;
1040 #define BST_HOT 0x0200
1042 /* Toolbar */
1044 #define TOOLBARCLASSNAMEA "ToolbarWindow32"
1045 #if defined(__GNUC__)
1046 # define TOOLBARCLASSNAMEW (const WCHAR []){ 'T','o','o','l','b','a','r', \
1047 'W','i','n','d','o','w','3','2',0 }
1048 #elif defined(_MSC_VER)
1049 # define TOOLBARCLASSNAMEW L"ToolbarWindow32"
1050 #else
1051 static const WCHAR TOOLBARCLASSNAMEW[] = { 'T','o','o','l','b','a','r',
1052 'W','i','n','d','o','w','3','2',0 };
1053 #endif
1054 #define TOOLBARCLASSNAME WINELIB_NAME_AW(TOOLBARCLASSNAME)
1056 #define CMB_MASKED 0x02
1058 #define TBSTATE_CHECKED 0x01
1059 #define TBSTATE_PRESSED 0x02
1060 #define TBSTATE_ENABLED 0x04
1061 #define TBSTATE_HIDDEN 0x08
1062 #define TBSTATE_INDETERMINATE 0x10
1063 #define TBSTATE_WRAP 0x20
1064 #define TBSTATE_ELLIPSES 0x40
1065 #define TBSTATE_MARKED 0x80
1068 /* as of _WIN32_IE >= 0x0500 the following symbols are obsolete,
1069 * "everyone" should use the BTNS_... stuff below
1071 #define TBSTYLE_BUTTON 0x00
1072 #define TBSTYLE_SEP 0x01
1073 #define TBSTYLE_CHECK 0x02
1074 #define TBSTYLE_GROUP 0x04
1075 #define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK)
1076 #define TBSTYLE_DROPDOWN 0x08
1077 #define TBSTYLE_AUTOSIZE 0x10
1078 #define TBSTYLE_NOPREFIX 0x20
1079 #define BTNS_BUTTON TBSTYLE_BUTTON
1080 #define BTNS_SEP TBSTYLE_SEP
1081 #define BTNS_CHECK TBSTYLE_CHECK
1082 #define BTNS_GROUP TBSTYLE_GROUP
1083 #define BTNS_CHECKGROUP TBSTYLE_CHECKGROUP
1084 #define BTNS_DROPDOWN TBSTYLE_DROPDOWN
1085 #define BTNS_AUTOSIZE TBSTYLE_AUTOSIZE
1086 #define BTNS_NOPREFIX TBSTYLE_NOPREFIX
1087 #define BTNS_SHOWTEXT 0x40 /* ignored unless TBSTYLE_EX_MIXEDB set */
1088 #define BTNS_WHOLEDROPDOWN 0x80 /* draw dropdown arrow, but without split arrow section */
1090 #define TBSTYLE_TOOLTIPS 0x0100
1091 #define TBSTYLE_WRAPABLE 0x0200
1092 #define TBSTYLE_ALTDRAG 0x0400
1093 #define TBSTYLE_FLAT 0x0800
1094 #define TBSTYLE_LIST 0x1000
1095 #define TBSTYLE_CUSTOMERASE 0x2000
1096 #define TBSTYLE_REGISTERDROP 0x4000
1097 #define TBSTYLE_TRANSPARENT 0x8000
1098 #define TBSTYLE_EX_DRAWDDARROWS 0x00000001
1099 #define TBSTYLE_EX_UNDOC1 0x00000004 /* similar to TBSTYLE_WRAPABLE */
1100 #define TBSTYLE_EX_MIXEDBUTTONS 0x00000008
1101 #define TBSTYLE_EX_HIDECLIPPEDBUTTONS 0x00000010 /* don't show partially obscured buttons */
1102 #define TBSTYLE_EX_DOUBLEBUFFER 0x00000080 /* Double Buffer the toolbar */
1104 #define TBIF_IMAGE 0x00000001
1105 #define TBIF_TEXT 0x00000002
1106 #define TBIF_STATE 0x00000004
1107 #define TBIF_STYLE 0x00000008
1108 #define TBIF_LPARAM 0x00000010
1109 #define TBIF_COMMAND 0x00000020
1110 #define TBIF_SIZE 0x00000040
1111 #define TBIF_BYINDEX 0x80000000
1113 #define TBBF_LARGE 0x0001
1115 #define TB_ENABLEBUTTON (WM_USER+1)
1116 #define TB_CHECKBUTTON (WM_USER+2)
1117 #define TB_PRESSBUTTON (WM_USER+3)
1118 #define TB_HIDEBUTTON (WM_USER+4)
1119 #define TB_INDETERMINATE (WM_USER+5)
1120 #define TB_MARKBUTTON (WM_USER+6)
1121 #define TB_ISBUTTONENABLED (WM_USER+9)
1122 #define TB_ISBUTTONCHECKED (WM_USER+10)
1123 #define TB_ISBUTTONPRESSED (WM_USER+11)
1124 #define TB_ISBUTTONHIDDEN (WM_USER+12)
1125 #define TB_ISBUTTONINDETERMINATE (WM_USER+13)
1126 #define TB_ISBUTTONHIGHLIGHTED (WM_USER+14)
1127 #define TB_SETSTATE (WM_USER+17)
1128 #define TB_GETSTATE (WM_USER+18)
1129 #define TB_ADDBITMAP (WM_USER+19)
1130 #define TB_ADDBUTTONSA (WM_USER+20)
1131 #define TB_ADDBUTTONSW (WM_USER+68)
1132 #define TB_ADDBUTTONS WINELIB_NAME_AW(TB_ADDBUTTONS)
1133 #define TB_HITTEST (WM_USER+69)
1134 #define TB_INSERTBUTTONA (WM_USER+21)
1135 #define TB_INSERTBUTTONW (WM_USER+67)
1136 #define TB_INSERTBUTTON WINELIB_NAME_AW(TB_INSERTBUTTON)
1137 #define TB_DELETEBUTTON (WM_USER+22)
1138 #define TB_GETBUTTON (WM_USER+23)
1139 #define TB_BUTTONCOUNT (WM_USER+24)
1140 #define TB_COMMANDTOINDEX (WM_USER+25)
1141 #define TB_SAVERESTOREA (WM_USER+26)
1142 #define TB_SAVERESTOREW (WM_USER+76)
1143 #define TB_SAVERESTORE WINELIB_NAME_AW(TB_SAVERESTORE)
1144 #define TB_CUSTOMIZE (WM_USER+27)
1145 #define TB_ADDSTRINGA (WM_USER+28)
1146 #define TB_ADDSTRINGW (WM_USER+77)
1147 #define TB_ADDSTRING WINELIB_NAME_AW(TB_ADDSTRING)
1148 #define TB_GETITEMRECT (WM_USER+29)
1149 #define TB_BUTTONSTRUCTSIZE (WM_USER+30)
1150 #define TB_SETBUTTONSIZE (WM_USER+31)
1151 #define TB_SETBITMAPSIZE (WM_USER+32)
1152 #define TB_AUTOSIZE (WM_USER+33)
1153 #define TB_GETTOOLTIPS (WM_USER+35)
1154 #define TB_SETTOOLTIPS (WM_USER+36)
1155 #define TB_SETPARENT (WM_USER+37)
1156 #define TB_SETROWS (WM_USER+39)
1157 #define TB_GETROWS (WM_USER+40)
1158 #define TB_GETBITMAPFLAGS (WM_USER+41)
1159 #define TB_SETCMDID (WM_USER+42)
1160 #define TB_CHANGEBITMAP (WM_USER+43)
1161 #define TB_GETBITMAP (WM_USER+44)
1162 #define TB_GETBUTTONTEXTA (WM_USER+45)
1163 #define TB_GETBUTTONTEXTW (WM_USER+75)
1164 #define TB_GETBUTTONTEXT WINELIB_NAME_AW(TB_GETBUTTONTEXT)
1165 #define TB_REPLACEBITMAP (WM_USER+46)
1166 #define TB_SETINDENT (WM_USER+47)
1167 #define TB_SETIMAGELIST (WM_USER+48)
1168 #define TB_GETIMAGELIST (WM_USER+49)
1169 #define TB_LOADIMAGES (WM_USER+50)
1170 #define TB_GETRECT (WM_USER+51) /* wParam is the Cmd instead of index */
1171 #define TB_SETHOTIMAGELIST (WM_USER+52)
1172 #define TB_GETHOTIMAGELIST (WM_USER+53)
1173 #define TB_SETDISABLEDIMAGELIST (WM_USER+54)
1174 #define TB_GETDISABLEDIMAGELIST (WM_USER+55)
1175 #define TB_SETSTYLE (WM_USER+56)
1176 #define TB_GETSTYLE (WM_USER+57)
1177 #define TB_GETBUTTONSIZE (WM_USER+58)
1178 #define TB_SETBUTTONWIDTH (WM_USER+59)
1179 #define TB_SETMAXTEXTROWS (WM_USER+60)
1180 #define TB_GETTEXTROWS (WM_USER+61)
1181 #define TB_GETOBJECT (WM_USER+62)
1182 #define TB_GETBUTTONINFOW (WM_USER+63)
1183 #define TB_GETBUTTONINFOA (WM_USER+65)
1184 #define TB_GETBUTTONINFO WINELIB_NAME_AW(TB_GETBUTTONINFO)
1185 #define TB_SETBUTTONINFOW (WM_USER+64)
1186 #define TB_SETBUTTONINFOA (WM_USER+66)
1187 #define TB_SETBUTTONINFO WINELIB_NAME_AW(TB_SETBUTTONINFO)
1188 #define TB_SETDRAWTEXTFLAGS (WM_USER+70)
1189 #define TB_GETHOTITEM (WM_USER+71)
1190 #define TB_SETHOTITEM (WM_USER+72)
1191 #define TB_SETANCHORHIGHLIGHT (WM_USER+73)
1192 #define TB_GETANCHORHIGHLIGHT (WM_USER+74)
1193 #define TB_MAPACCELERATORA (WM_USER+78)
1194 #define TB_MAPACCELERATORW (WM_USER+90)
1195 #define TB_MAPACCELERATOR WINELIB_NAME_AW(TB_MAPACCELERATOR)
1196 #define TB_GETINSERTMARK (WM_USER+79)
1197 #define TB_SETINSERTMARK (WM_USER+80)
1198 #define TB_INSERTMARKHITTEST (WM_USER+81)
1199 #define TB_MOVEBUTTON (WM_USER+82)
1200 #define TB_GETMAXSIZE (WM_USER+83)
1201 #define TB_SETEXTENDEDSTYLE (WM_USER+84)
1202 #define TB_GETEXTENDEDSTYLE (WM_USER+85)
1203 #define TB_GETPADDING (WM_USER+86)
1204 #define TB_SETPADDING (WM_USER+87)
1205 #define TB_SETINSERTMARKCOLOR (WM_USER+88)
1206 #define TB_GETINSERTMARKCOLOR (WM_USER+89)
1207 #define TB_SETCOLORSCHEME CCM_SETCOLORSCHEME
1208 #define TB_GETCOLORSCHEME CCM_GETCOLORSCHEME
1209 #define TB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1210 #define TB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1211 #define TB_GETSTRINGW (WM_USER+91)
1212 #define TB_GETSTRINGA (WM_USER+92)
1213 #define TB_GETSTRING WINELIB_NAME_AW(TB_GETSTRING)
1215 /* undocumented messages in Toolbar */
1216 #ifdef __WINESRC__
1217 #define TB_UNKWN45D (WM_USER+93)
1218 #define TB_SETHOTITEM2 (WM_USER+94)
1219 #define TB_SETLISTGAP (WM_USER+96)
1220 #define TB_GETIMAGELISTCOUNT (WM_USER+98)
1221 #define TB_GETIDEALSIZE (WM_USER+99)
1222 #define TB_UNKWN464 (WM_USER+100)
1223 #endif
1225 #define TB_GETMETRICS (WM_USER+101)
1226 #define TB_SETMETRICS (WM_USER+102)
1227 #define TB_SETWINDOWTHEME CCM_SETWINDOWTHEME
1229 #define TBN_FIRST (0U-700U)
1230 #define TBN_LAST (0U-720U)
1231 #define TBN_GETBUTTONINFOA (TBN_FIRST-0)
1232 #define TBN_GETBUTTONINFOW (TBN_FIRST-20)
1233 #define TBN_GETBUTTONINFO WINELIB_NAME_AW(TBN_GETBUTTONINFO)
1234 #define TBN_BEGINDRAG (TBN_FIRST-1)
1235 #define TBN_ENDDRAG (TBN_FIRST-2)
1236 #define TBN_BEGINADJUST (TBN_FIRST-3)
1237 #define TBN_ENDADJUST (TBN_FIRST-4)
1238 #define TBN_RESET (TBN_FIRST-5)
1239 #define TBN_QUERYINSERT (TBN_FIRST-6)
1240 #define TBN_QUERYDELETE (TBN_FIRST-7)
1241 #define TBN_TOOLBARCHANGE (TBN_FIRST-8)
1242 #define TBN_CUSTHELP (TBN_FIRST-9)
1243 #define TBN_DROPDOWN (TBN_FIRST-10)
1244 #define TBN_GETOBJECT (TBN_FIRST-12)
1245 #define TBN_HOTITEMCHANGE (TBN_FIRST-13)
1246 #define TBN_DRAGOUT (TBN_FIRST-14)
1247 #define TBN_DELETINGBUTTON (TBN_FIRST-15)
1248 #define TBN_GETDISPINFOA (TBN_FIRST-16)
1249 #define TBN_GETDISPINFOW (TBN_FIRST-17)
1250 #define TBN_GETDISPINFO WINELIB_NAME_AW(TBN_GETDISPINFO)
1251 #define TBN_GETINFOTIPA (TBN_FIRST-18)
1252 #define TBN_GETINFOTIPW (TBN_FIRST-19)
1253 #define TBN_GETINFOTIP WINELIB_NAME_AW(TBN_GETINFOTIP)
1254 #define TBN_RESTORE (TBN_FIRST-21)
1255 #define TBN_SAVE (TBN_FIRST-22)
1256 #define TBN_INITCUSTOMIZE (TBN_FIRST-23)
1257 #define TBN_WRAPHOTITEM (TBN_FIRST-24) /* this is undocumented and the name is a guess */
1258 #define TBNRF_HIDEHELP 0x00000001
1261 /* Return values from TBN_DROPDOWN */
1262 #define TBDDRET_DEFAULT 0
1263 #define TBDDRET_NODEFAULT 1
1264 #define TBDDRET_TREATPRESSED 2
1266 typedef struct _NMTBCUSTOMDRAW
1268 NMCUSTOMDRAW nmcd;
1269 HBRUSH hbrMonoDither;
1270 HBRUSH hbrLines;
1271 HPEN hpenLines;
1272 COLORREF clrText;
1273 COLORREF clrMark;
1274 COLORREF clrTextHighlight;
1275 COLORREF clrBtnFace;
1276 COLORREF clrBtnHighlight;
1277 COLORREF clrHighlightHotTrack;
1278 RECT rcText;
1279 int nStringBkMode;
1280 int nHLStringBkMode;
1281 int iListGap;
1282 } NMTBCUSTOMDRAW, *LPNMTBCUSTOMDRAW;
1284 /* return flags for Toolbar NM_CUSTOMDRAW notifications */
1285 #define TBCDRF_NOEDGES 0x00010000 /* Don't draw button edges */
1286 #define TBCDRF_HILITEHOTTRACK 0x00020000 /* Use color of the button bkgnd */
1287 /* when hottracked */
1288 #define TBCDRF_NOOFFSET 0x00040000 /* No offset button if pressed */
1289 #define TBCDRF_NOMARK 0x00080000 /* Don't draw default highlight */
1290 /* for TBSTATE_MARKED */
1291 #define TBCDRF_NOETCHEDEFFECT 0x00100000 /* No etched effect for */
1292 /* disabled items */
1293 #define TBCDRF_BLENDICON 0x00200000 /* ILD_BLEND50 on the icon image */
1294 #define TBCDRF_NOBACKGROUND 0x00400000 /* ILD_BLEND50 on the icon image */
1295 #define TBCDRF_USECDCOLORS 0x00800000
1298 /* This is just for old CreateToolbar. */
1299 /* Don't use it in new programs. */
1300 typedef struct _OLDTBBUTTON {
1301 INT iBitmap;
1302 INT idCommand;
1303 BYTE fsState;
1304 BYTE fsStyle;
1305 BYTE bReserved[2];
1306 DWORD dwData;
1307 } OLDTBBUTTON, *POLDTBBUTTON, *LPOLDTBBUTTON;
1308 typedef const OLDTBBUTTON *LPCOLDTBBUTTON;
1311 typedef struct _TBBUTTON {
1312 INT iBitmap;
1313 INT idCommand;
1314 BYTE fsState;
1315 BYTE fsStyle;
1316 #ifdef _WIN64
1317 BYTE bReserved[6];
1318 #else
1319 BYTE bReserved[2];
1320 #endif
1321 DWORD_PTR dwData;
1322 INT_PTR iString;
1323 } TBBUTTON, *PTBBUTTON, *LPTBBUTTON;
1324 typedef const TBBUTTON *LPCTBBUTTON;
1327 typedef struct _COLORMAP {
1328 COLORREF from;
1329 COLORREF to;
1330 } COLORMAP, *LPCOLORMAP;
1333 typedef struct tagTBADDBITMAP {
1334 HINSTANCE hInst;
1335 UINT_PTR nID;
1336 } TBADDBITMAP, *LPTBADDBITMAP;
1338 #define HINST_COMMCTRL ((HINSTANCE)-1)
1339 #define IDB_STD_SMALL_COLOR 0
1340 #define IDB_STD_LARGE_COLOR 1
1341 #define IDB_VIEW_SMALL_COLOR 4
1342 #define IDB_VIEW_LARGE_COLOR 5
1343 #define IDB_HIST_SMALL_COLOR 8
1344 #define IDB_HIST_LARGE_COLOR 9
1346 #define STD_CUT 0
1347 #define STD_COPY 1
1348 #define STD_PASTE 2
1349 #define STD_UNDO 3
1350 #define STD_REDOW 4
1351 #define STD_DELETE 5
1352 #define STD_FILENEW 6
1353 #define STD_FILEOPEN 7
1354 #define STD_FILESAVE 8
1355 #define STD_PRINTPRE 9
1356 #define STD_PROPERTIES 10
1357 #define STD_HELP 11
1358 #define STD_FIND 12
1359 #define STD_REPLACE 13
1360 #define STD_PRINT 14
1362 #define VIEW_LARGEICONS 0
1363 #define VIEW_SMALLICONS 1
1364 #define VIEW_LIST 2
1365 #define VIEW_DETAILS 3
1366 #define VIEW_SORTNAME 4
1367 #define VIEW_SORTSIZE 5
1368 #define VIEW_SORTDATE 6
1369 #define VIEW_SORTTYPE 7
1370 #define VIEW_PARENTFOLDER 8
1371 #define VIEW_NETCONNECT 9
1372 #define VIEW_NETDISCONNECT 10
1373 #define VIEW_NEWFOLDER 11
1374 #define VIEW_VIEWMENU 12
1376 #define HIST_BACK 0
1377 #define HIST_FORWARD 1
1378 #define HIST_FAVORITES 2
1379 #define HIST_ADDTOFAVORITES 3
1380 #define HIST_VIEWTREE 4
1382 typedef struct tagTBSAVEPARAMSA {
1383 HKEY hkr;
1384 LPCSTR pszSubKey;
1385 LPCSTR pszValueName;
1386 } TBSAVEPARAMSA, *LPTBSAVEPARAMSA;
1388 typedef struct tagTBSAVEPARAMSW {
1389 HKEY hkr;
1390 LPCWSTR pszSubKey;
1391 LPCWSTR pszValueName;
1392 } TBSAVEPARAMSW, *LPTBSAVEPARAMSW;
1394 #define TBSAVEPARAMS WINELIB_NAME_AW(TBSAVEPARAMS)
1395 #define LPTBSAVEPARAMS WINELIB_NAME_AW(LPTBSAVEPARAMS)
1397 typedef struct
1399 UINT cbSize;
1400 DWORD dwMask;
1401 INT idCommand;
1402 INT iImage;
1403 BYTE fsState;
1404 BYTE fsStyle;
1405 WORD cx;
1406 DWORD_PTR lParam;
1407 LPSTR pszText;
1408 INT cchText;
1409 } TBBUTTONINFOA, *LPTBBUTTONINFOA;
1411 typedef struct
1413 UINT cbSize;
1414 DWORD dwMask;
1415 INT idCommand;
1416 INT iImage;
1417 BYTE fsState;
1418 BYTE fsStyle;
1419 WORD cx;
1420 DWORD_PTR lParam;
1421 LPWSTR pszText;
1422 INT cchText;
1423 } TBBUTTONINFOW, *LPTBBUTTONINFOW;
1425 #define TBBUTTONINFO WINELIB_NAME_AW(TBBUTTONINFO)
1426 #define LPTBBUTTONINFO WINELIB_NAME_AW(LPTBBUTTONINFO)
1428 typedef struct tagNMTBHOTITEM
1430 NMHDR hdr;
1431 int idOld;
1432 int idNew;
1433 DWORD dwFlags;
1434 } NMTBHOTITEM, *LPNMTBHOTITEM;
1436 typedef struct tagNMTBGETINFOTIPA
1438 NMHDR hdr;
1439 LPSTR pszText;
1440 INT cchTextMax;
1441 INT iItem;
1442 LPARAM lParam;
1443 } NMTBGETINFOTIPA, *LPNMTBGETINFOTIPA;
1445 typedef struct tagNMTBGETINFOTIPW
1447 NMHDR hdr;
1448 LPWSTR pszText;
1449 INT cchTextMax;
1450 INT iItem;
1451 LPARAM lParam;
1452 } NMTBGETINFOTIPW, *LPNMTBGETINFOTIPW;
1454 #define NMTBGETINFOTIP WINELIB_NAME_AW(NMTBGETINFOTIP)
1455 #define LPNMTBGETINFOTIP WINELIB_NAME_AW(LPNMTBGETINFOTIP)
1457 typedef struct
1459 NMHDR hdr;
1460 DWORD dwMask;
1461 int idCommand;
1462 DWORD_PTR lParam;
1463 int iImage;
1464 LPSTR pszText;
1465 int cchText;
1466 } NMTBDISPINFOA, *LPNMTBDISPINFOA;
1468 typedef struct
1470 NMHDR hdr;
1471 DWORD dwMask;
1472 int idCommand;
1473 DWORD_PTR lParam;
1474 int iImage;
1475 LPWSTR pszText;
1476 int cchText;
1477 } NMTBDISPINFOW, *LPNMTBDISPINFOW;
1479 #define NMTBDISPINFO WINELIB_NAME_AW(NMTBDISPINFO)
1480 #define LPNMTBDISPINFO WINELIB_NAME_AW(LPNMTBDISPINFO)
1482 /* contents of dwMask in the NMTBDISPINFO structure */
1483 #define TBNF_IMAGE 0x00000001
1484 #define TBNF_TEXT 0x00000002
1485 #define TBNF_DI_SETITEM 0x10000000
1488 typedef struct tagNMTOOLBARA
1490 NMHDR hdr;
1491 INT iItem;
1492 TBBUTTON tbButton;
1493 INT cchText;
1494 LPSTR pszText;
1495 RECT rcButton; /* Version 5.80 */
1496 } NMTOOLBARA, *LPNMTOOLBARA, TBNOTIFYA, *LPTBNOTIFYA;
1498 typedef struct tagNMTOOLBARW
1500 NMHDR hdr;
1501 INT iItem;
1502 TBBUTTON tbButton;
1503 INT cchText;
1504 LPWSTR pszText;
1505 RECT rcButton; /* Version 5.80 */
1506 } NMTOOLBARW, *LPNMTOOLBARW, TBNOTIFYW, *LPTBNOTIFYW;
1508 #define NMTOOLBAR WINELIB_NAME_AW(NMTOOLBAR)
1509 #define LPNMTOOLBAR WINELIB_NAME_AW(LPNMTOOLBAR)
1510 #define TBNOTIFY WINELIB_NAME_AW(TBNOTIFY)
1511 #define LPTBNOTIFY WINELIB_NAME_AW(LPTBNOTIFY)
1513 typedef struct
1515 HINSTANCE hInstOld;
1516 UINT_PTR nIDOld;
1517 HINSTANCE hInstNew;
1518 UINT_PTR nIDNew;
1519 INT nButtons;
1520 } TBREPLACEBITMAP, *LPTBREPLACEBITMAP;
1522 #define HICF_OTHER 0x00000000
1523 #define HICF_MOUSE 0x00000001 /* Triggered by mouse */
1524 #define HICF_ARROWKEYS 0x00000002 /* Triggered by arrow keys */
1525 #define HICF_ACCELERATOR 0x00000004 /* Triggered by accelerator */
1526 #define HICF_DUPACCEL 0x00000008 /* This accelerator is not unique */
1527 #define HICF_ENTERING 0x00000010 /* idOld is invalid */
1528 #define HICF_LEAVING 0x00000020 /* idNew is invalid */
1529 #define HICF_RESELECT 0x00000040 /* hot item reselected */
1530 #define HICF_LMOUSE 0x00000080 /* left mouse button selected */
1531 #define HICF_TOGGLEDROPDOWN 0x00000100 /* Toggle button's dropdown state */
1533 typedef struct
1535 int iButton;
1536 DWORD dwFlags;
1537 } TBINSERTMARK, *LPTBINSERTMARK;
1538 #define TBIMHT_AFTER 0x00000001 /* TRUE = insert After iButton, otherwise before */
1539 #define TBIMHT_BACKGROUND 0x00000002 /* TRUE if and only if missed buttons completely */
1541 typedef struct tagNMTBSAVE
1543 NMHDR hdr;
1544 DWORD* pData;
1545 DWORD* pCurrent;
1546 UINT cbData;
1547 int iItem;
1548 int cButtons;
1549 TBBUTTON tbButton;
1550 } NMTBSAVE, *LPNMTBSAVE;
1552 typedef struct tagNMTBRESTORE
1554 NMHDR hdr;
1555 DWORD* pData;
1556 DWORD* pCurrent;
1557 UINT cbData;
1558 int iItem;
1559 int cButtons;
1560 int cbBytesPerRecord;
1561 TBBUTTON tbButton;
1562 } NMTBRESTORE, *LPNMTBRESTORE;
1564 #define TBMF_PAD 0x00000001
1565 #define TBMF_BARPAD 0x00000002
1566 #define TBMF_BUTTONSPACING 0x00000004
1568 typedef struct
1570 UINT cbSize;
1571 DWORD dwMask;
1572 INT cxPad;
1573 INT cyPad;
1574 INT cxBarPad;
1575 INT cyBarPad;
1576 INT cxButtonSpacing;
1577 INT cyButtonSpacing;
1578 } TBMETRICS, *LPTBMETRICS;
1580 /* these are undocumented and the names are guesses */
1581 typedef struct
1583 NMHDR hdr;
1584 HWND hwndDialog;
1585 } NMTBINITCUSTOMIZE;
1587 typedef struct
1589 NMHDR hdr;
1590 INT idNew;
1591 INT iDirection; /* left is -1, right is 1 */
1592 DWORD dwReason; /* HICF_* */
1593 } NMTBWRAPHOTITEM;
1596 HWND WINAPI
1597 CreateToolbar(HWND, DWORD, UINT, INT, HINSTANCE,
1598 UINT, LPCTBBUTTON, INT);
1600 HWND WINAPI
1601 CreateToolbarEx(HWND, DWORD, UINT, INT,
1602 HINSTANCE, UINT_PTR, LPCTBBUTTON,
1603 INT, INT, INT, INT, INT, UINT);
1605 HBITMAP WINAPI
1606 CreateMappedBitmap (HINSTANCE, INT_PTR, UINT, LPCOLORMAP, INT);
1609 /* Tool tips */
1611 #define TOOLTIPS_CLASSA "tooltips_class32"
1612 #if defined(__GNUC__)
1613 # define TOOLTIPS_CLASSW (const WCHAR []){ 't','o','o','l','t','i','p','s','_', \
1614 'c','l','a','s','s','3','2',0 }
1615 #elif defined(_MSC_VER)
1616 # define TOOLTIPS_CLASSW L"tooltips_class32"
1617 #else
1618 static const WCHAR TOOLTIPS_CLASSW[] = { 't','o','o','l','t','i','p','s','_',
1619 'c','l','a','s','s','3','2',0 };
1620 #endif
1621 #define TOOLTIPS_CLASS WINELIB_NAME_AW(TOOLTIPS_CLASS)
1623 #define INFOTIPSIZE 1024
1625 #define TTS_ALWAYSTIP 0x01
1626 #define TTS_NOPREFIX 0x02
1627 #define TTS_NOANIMATE 0x10
1628 #define TTS_NOFADE 0x20
1629 #define TTS_BALLOON 0x40
1630 #define TTS_CLOSE 0x80
1631 #define TTS_USEVISUALSTYLE 0x100
1633 #define TTF_IDISHWND 0x0001
1634 #define TTF_CENTERTIP 0x0002
1635 #define TTF_RTLREADING 0x0004
1636 #define TTF_SUBCLASS 0x0010
1637 #define TTF_TRACK 0x0020
1638 #define TTF_ABSOLUTE 0x0080
1639 #define TTF_TRANSPARENT 0x0100
1640 #define TTF_DI_SETITEM 0x8000 /* valid only on the TTN_NEEDTEXT callback */
1643 #define TTDT_AUTOMATIC 0
1644 #define TTDT_RESHOW 1
1645 #define TTDT_AUTOPOP 2
1646 #define TTDT_INITIAL 3
1649 #define TTI_NONE 0
1650 #define TTI_INFO 1
1651 #define TTI_WARNING 2
1652 #define TTI_ERROR 3
1655 #define TTM_ACTIVATE (WM_USER+1)
1656 #define TTM_SETDELAYTIME (WM_USER+3)
1657 #define TTM_ADDTOOLA (WM_USER+4)
1658 #define TTM_ADDTOOLW (WM_USER+50)
1659 #define TTM_ADDTOOL WINELIB_NAME_AW(TTM_ADDTOOL)
1660 #define TTM_DELTOOLA (WM_USER+5)
1661 #define TTM_DELTOOLW (WM_USER+51)
1662 #define TTM_DELTOOL WINELIB_NAME_AW(TTM_DELTOOL)
1663 #define TTM_NEWTOOLRECTA (WM_USER+6)
1664 #define TTM_NEWTOOLRECTW (WM_USER+52)
1665 #define TTM_NEWTOOLRECT WINELIB_NAME_AW(TTM_NEWTOOLRECT)
1666 #define TTM_RELAYEVENT (WM_USER+7)
1667 #define TTM_GETTOOLINFOA (WM_USER+8)
1668 #define TTM_GETTOOLINFOW (WM_USER+53)
1669 #define TTM_GETTOOLINFO WINELIB_NAME_AW(TTM_GETTOOLINFO)
1670 #define TTM_SETTOOLINFOA (WM_USER+9)
1671 #define TTM_SETTOOLINFOW (WM_USER+54)
1672 #define TTM_SETTOOLINFO WINELIB_NAME_AW(TTM_SETTOOLINFO)
1673 #define TTM_HITTESTA (WM_USER+10)
1674 #define TTM_HITTESTW (WM_USER+55)
1675 #define TTM_HITTEST WINELIB_NAME_AW(TTM_HITTEST)
1676 #define TTM_GETTEXTA (WM_USER+11)
1677 #define TTM_GETTEXTW (WM_USER+56)
1678 #define TTM_GETTEXT WINELIB_NAME_AW(TTM_GETTEXT)
1679 #define TTM_UPDATETIPTEXTA (WM_USER+12)
1680 #define TTM_UPDATETIPTEXTW (WM_USER+57)
1681 #define TTM_UPDATETIPTEXT WINELIB_NAME_AW(TTM_UPDATETIPTEXT)
1682 #define TTM_GETTOOLCOUNT (WM_USER+13)
1683 #define TTM_ENUMTOOLSA (WM_USER+14)
1684 #define TTM_ENUMTOOLSW (WM_USER+58)
1685 #define TTM_ENUMTOOLS WINELIB_NAME_AW(TTM_ENUMTOOLS)
1686 #define TTM_GETCURRENTTOOLA (WM_USER+15)
1687 #define TTM_GETCURRENTTOOLW (WM_USER+59)
1688 #define TTM_GETCURRENTTOOL WINELIB_NAME_AW(TTM_GETCURRENTTOOL)
1689 #define TTM_WINDOWFROMPOINT (WM_USER+16)
1690 #define TTM_TRACKACTIVATE (WM_USER+17)
1691 #define TTM_TRACKPOSITION (WM_USER+18)
1692 #define TTM_SETTIPBKCOLOR (WM_USER+19)
1693 #define TTM_SETTIPTEXTCOLOR (WM_USER+20)
1694 #define TTM_GETDELAYTIME (WM_USER+21)
1695 #define TTM_GETTIPBKCOLOR (WM_USER+22)
1696 #define TTM_GETTIPTEXTCOLOR (WM_USER+23)
1697 #define TTM_SETMAXTIPWIDTH (WM_USER+24)
1698 #define TTM_GETMAXTIPWIDTH (WM_USER+25)
1699 #define TTM_SETMARGIN (WM_USER+26)
1700 #define TTM_GETMARGIN (WM_USER+27)
1701 #define TTM_POP (WM_USER+28)
1702 #define TTM_UPDATE (WM_USER+29)
1703 #define TTM_GETBUBBLESIZE (WM_USER+30)
1704 #define TTM_ADJUSTRECT (WM_USER+31)
1705 #define TTM_SETTITLEA (WM_USER+32)
1706 #define TTM_SETTITLEW (WM_USER+33)
1707 #define TTM_SETTITLE WINELIB_NAME_AW(TTM_SETTITLE)
1708 #define TTM_POPUP (WM_USER+34)
1709 #define TTM_GETTITLE (WM_USER+35)
1710 #define TTM_SETWINDOWTHEME CCM_SETWINDOWTHEME
1713 #define TTN_FIRST (0U-520U)
1714 #define TTN_LAST (0U-549U)
1715 #define TTN_GETDISPINFOA (TTN_FIRST-0)
1716 #define TTN_GETDISPINFOW (TTN_FIRST-10)
1717 #define TTN_GETDISPINFO WINELIB_NAME_AW(TTN_GETDISPINFO)
1718 #define TTN_SHOW (TTN_FIRST-1)
1719 #define TTN_POP (TTN_FIRST-2)
1721 #define TTN_NEEDTEXT TTN_GETDISPINFO
1722 #define TTN_NEEDTEXTA TTN_GETDISPINFOA
1723 #define TTN_NEEDTEXTW TTN_GETDISPINFOW
1725 typedef struct tagTOOLINFOA {
1726 UINT cbSize;
1727 UINT uFlags;
1728 HWND hwnd;
1729 UINT_PTR uId;
1730 RECT rect;
1731 HINSTANCE hinst;
1732 LPSTR lpszText;
1733 LPARAM lParam;
1734 void *lpReserved;
1735 } TTTOOLINFOA, *LPTOOLINFOA, *PTOOLINFOA, *LPTTTOOLINFOA;
1737 typedef struct tagTOOLINFOW {
1738 UINT cbSize;
1739 UINT uFlags;
1740 HWND hwnd;
1741 UINT_PTR uId;
1742 RECT rect;
1743 HINSTANCE hinst;
1744 LPWSTR lpszText;
1745 LPARAM lParam;
1746 void *lpReserved;
1747 } TTTOOLINFOW, *LPTOOLINFOW, *PTOOLINFOW, *LPTTTOOLINFOW;
1749 #define TTTOOLINFO WINELIB_NAME_AW(TTTOOLINFO)
1750 #define TOOLINFO WINELIB_NAME_AW(TTTOOLINFO)
1751 #define PTOOLINFO WINELIB_NAME_AW(PTOOLINFO)
1752 #define LPTTTOOLINFO WINELIB_NAME_AW(LPTTTOOLINFO)
1753 #define LPTOOLINFO WINELIB_NAME_AW(LPTOOLINFO)
1755 #define TTTOOLINFOA_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lpszText)
1756 #define TTTOOLINFOW_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lpszText)
1757 #define TTTOOLINFO_V1_SIZE CCSIZEOF_STRUCT(WINELIB_NAME_AW(TTTOOLINFO), lpszText)
1759 typedef struct _TT_HITTESTINFOA
1761 HWND hwnd;
1762 POINT pt;
1763 TTTOOLINFOA ti;
1764 } TTHITTESTINFOA, *LPTTHITTESTINFOA;
1765 #define LPHITTESTINFOA LPTTHITTESTINFOA
1767 typedef struct _TT_HITTESTINFOW
1769 HWND hwnd;
1770 POINT pt;
1771 TTTOOLINFOW ti;
1772 } TTHITTESTINFOW, *LPTTHITTESTINFOW;
1773 #define LPHITTESTINFOW LPTTHITTESTINFOW
1775 #define TTHITTESTINFO WINELIB_NAME_AW(TTHITTESTINFO)
1776 #define LPTTHITTESTINFO WINELIB_NAME_AW(LPTTHITTESTINFO)
1777 #define LPHITTESTINFO WINELIB_NAME_AW(LPHITTESTINFO)
1779 typedef struct tagNMTTDISPINFOA
1781 NMHDR hdr;
1782 LPSTR lpszText;
1783 CHAR szText[80];
1784 HINSTANCE hinst;
1785 UINT uFlags;
1786 LPARAM lParam;
1787 } NMTTDISPINFOA, *LPNMTTDISPINFOA;
1789 typedef struct tagNMTTDISPINFOW
1791 NMHDR hdr;
1792 LPWSTR lpszText;
1793 WCHAR szText[80];
1794 HINSTANCE hinst;
1795 UINT uFlags;
1796 LPARAM lParam;
1797 } NMTTDISPINFOW, *LPNMTTDISPINFOW;
1799 #define NMTTDISPINFO WINELIB_NAME_AW(NMTTDISPINFO)
1800 #define LPNMTTDISPINFO WINELIB_NAME_AW(LPNMTTDISPINFO)
1802 #define NMTTDISPINFO_V1_SIZEA CCSIZEOF_STRUCT(NMTTDISPINFOA, uFlags)
1803 #define NMTTDISPINFO_V1_SIZEW CCSIZEOF_STRUCT(NMTTDISPINFOW, uFlags)
1804 #define NMTTDISPINFO_V1_SIZE WINELIB_NAME_AW(NMTTDISPINFO_V1_SIZE)
1806 typedef struct _TTGETTITLE
1808 DWORD dwSize;
1809 UINT uTitleBitmap;
1810 UINT cch;
1811 WCHAR* pszTitle;
1812 } TTGETTITLE, *PTTGETTITLE;
1814 #define TOOLTIPTEXTW NMTTDISPINFOW
1815 #define TOOLTIPTEXTA NMTTDISPINFOA
1816 #define TOOLTIPTEXT NMTTDISPINFO
1817 #define LPTOOLTIPTEXTW LPNMTTDISPINFOW
1818 #define LPTOOLTIPTEXTA LPNMTTDISPINFOA
1819 #define LPTOOLTIPTEXT LPNMTTDISPINFO
1822 /* Rebar control */
1824 #define REBARCLASSNAMEA "ReBarWindow32"
1825 #if defined(__GNUC__)
1826 # define REBARCLASSNAMEW (const WCHAR []){ 'R','e','B','a','r', \
1827 'W','i','n','d','o','w','3','2',0 }
1828 #elif defined(_MSC_VER)
1829 # define REBARCLASSNAMEW L"ReBarWindow32"
1830 #else
1831 static const WCHAR REBARCLASSNAMEW[] = { 'R','e','B','a','r',
1832 'W','i','n','d','o','w','3','2',0 };
1833 #endif
1834 #define REBARCLASSNAME WINELIB_NAME_AW(REBARCLASSNAME)
1836 #define RBS_TOOLTIPS 0x0100
1837 #define RBS_VARHEIGHT 0x0200
1838 #define RBS_BANDBORDERS 0x0400
1839 #define RBS_FIXEDORDER 0x0800
1840 #define RBS_REGISTERDROP 0x1000
1841 #define RBS_AUTOSIZE 0x2000
1842 #define RBS_VERTICALGRIPPER 0x4000
1843 #define RBS_DBLCLKTOGGLE 0x8000
1845 #define RBIM_IMAGELIST 0x00000001
1847 #define RBBIM_STYLE 0x00000001
1848 #define RBBIM_COLORS 0x00000002
1849 #define RBBIM_TEXT 0x00000004
1850 #define RBBIM_IMAGE 0x00000008
1851 #define RBBIM_CHILD 0x00000010
1852 #define RBBIM_CHILDSIZE 0x00000020
1853 #define RBBIM_SIZE 0x00000040
1854 #define RBBIM_BACKGROUND 0x00000080
1855 #define RBBIM_ID 0x00000100
1856 #define RBBIM_IDEALSIZE 0x00000200
1857 #define RBBIM_LPARAM 0x00000400
1858 #define RBBIM_HEADERSIZE 0x00000800
1860 #define RBBS_BREAK 0x00000001
1861 #define RBBS_FIXEDSIZE 0x00000002
1862 #define RBBS_CHILDEDGE 0x00000004
1863 #define RBBS_HIDDEN 0x00000008
1864 #define RBBS_NOVERT 0x00000010
1865 #define RBBS_FIXEDBMP 0x00000020
1866 #define RBBS_VARIABLEHEIGHT 0x00000040
1867 #define RBBS_GRIPPERALWAYS 0x00000080
1868 #define RBBS_NOGRIPPER 0x00000100
1869 #define RBBS_USECHEVRON 0x00000200
1870 #define RBBS_HIDETITLE 0x00000400
1871 #define RBBS_TOPALIGN 0x00000800
1873 #define RBNM_ID 0x00000001
1874 #define RBNM_STYLE 0x00000002
1875 #define RBNM_LPARAM 0x00000004
1877 #define RBHT_NOWHERE 0x0001
1878 #define RBHT_CAPTION 0x0002
1879 #define RBHT_CLIENT 0x0003
1880 #define RBHT_GRABBER 0x0004
1881 #define RBHT_CHEVRON 0x0008
1883 #define RB_INSERTBANDA (WM_USER+1)
1884 #define RB_INSERTBANDW (WM_USER+10)
1885 #define RB_INSERTBAND WINELIB_NAME_AW(RB_INSERTBAND)
1886 #define RB_DELETEBAND (WM_USER+2)
1887 #define RB_GETBARINFO (WM_USER+3)
1888 #define RB_SETBARINFO (WM_USER+4)
1889 #define RB_SETBANDINFOA (WM_USER+6)
1890 #define RB_SETBANDINFOW (WM_USER+11)
1891 #define RB_SETBANDINFO WINELIB_NAME_AW(RB_SETBANDINFO)
1892 #define RB_SETPARENT (WM_USER+7)
1893 #define RB_HITTEST (WM_USER+8)
1894 #define RB_GETRECT (WM_USER+9)
1895 #define RB_GETBANDCOUNT (WM_USER+12)
1896 #define RB_GETROWCOUNT (WM_USER+13)
1897 #define RB_GETROWHEIGHT (WM_USER+14)
1898 #define RB_IDTOINDEX (WM_USER+16)
1899 #define RB_GETTOOLTIPS (WM_USER+17)
1900 #define RB_SETTOOLTIPS (WM_USER+18)
1901 #define RB_SETBKCOLOR (WM_USER+19)
1902 #define RB_GETBKCOLOR (WM_USER+20)
1903 #define RB_SETTEXTCOLOR (WM_USER+21)
1904 #define RB_GETTEXTCOLOR (WM_USER+22)
1905 #define RB_SIZETORECT (WM_USER+23)
1906 #define RB_BEGINDRAG (WM_USER+24)
1907 #define RB_ENDDRAG (WM_USER+25)
1908 #define RB_DRAGMOVE (WM_USER+26)
1909 #define RB_GETBARHEIGHT (WM_USER+27)
1910 #define RB_GETBANDINFOW (WM_USER+28)
1911 #define RB_GETBANDINFOA (WM_USER+29)
1912 #define RB_GETBANDINFO WINELIB_NAME_AW(RB_GETBANDINFO)
1913 #define RB_MINIMIZEBAND (WM_USER+30)
1914 #define RB_MAXIMIZEBAND (WM_USER+31)
1915 #define RB_GETBANDBORDERS (WM_USER+34)
1916 #define RB_SHOWBAND (WM_USER+35)
1917 #define RB_SETPALETTE (WM_USER+37)
1918 #define RB_GETPALETTE (WM_USER+38)
1919 #define RB_MOVEBAND (WM_USER+39)
1920 #define RB_GETBANDMARGINS (WM_USER+40)
1921 #define RB_PUSHCHEVRON (WM_USER+43)
1922 #define RB_GETDROPTARGET CCM_GETDROPTARGET
1923 #define RB_SETCOLORSCHEME CCM_SETCOLORSCHEME
1924 #define RB_GETCOLORSCHEME CCM_GETCOLORSCHEME
1925 #define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1926 #define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1927 #define RB_SETWINDOWTHEME CCM_SETWINDOWTHEME
1929 #define RBN_FIRST (0U-831U)
1930 #define RBN_LAST (0U-859U)
1931 #define RBN_HEIGHTCHANGE (RBN_FIRST-0)
1932 #define RBN_GETOBJECT (RBN_FIRST-1)
1933 #define RBN_LAYOUTCHANGED (RBN_FIRST-2)
1934 #define RBN_AUTOSIZE (RBN_FIRST-3)
1935 #define RBN_BEGINDRAG (RBN_FIRST-4)
1936 #define RBN_ENDDRAG (RBN_FIRST-5)
1937 #define RBN_DELETINGBAND (RBN_FIRST-6)
1938 #define RBN_DELETEDBAND (RBN_FIRST-7)
1939 #define RBN_CHILDSIZE (RBN_FIRST-8)
1940 #define RBN_CHEVRONPUSHED (RBN_FIRST-10)
1941 #define RBN_MINMAX (RBN_FIRST-21)
1942 #define RBN_AUTOBREAK (RBN_FIRST-22)
1944 typedef struct tagREBARINFO
1946 UINT cbSize;
1947 UINT fMask;
1948 HIMAGELIST himl;
1949 } REBARINFO, *LPREBARINFO;
1951 typedef struct tagREBARBANDINFOA
1953 UINT cbSize;
1954 UINT fMask;
1955 UINT fStyle;
1956 COLORREF clrFore;
1957 COLORREF clrBack;
1958 LPSTR lpText;
1959 UINT cch;
1960 INT iImage;
1961 HWND hwndChild;
1962 UINT cxMinChild;
1963 UINT cyMinChild;
1964 UINT cx;
1965 HBITMAP hbmBack;
1966 UINT wID;
1967 UINT cyChild;
1968 UINT cyMaxChild;
1969 UINT cyIntegral;
1970 UINT cxIdeal;
1971 LPARAM lParam;
1972 UINT cxHeader;
1973 } REBARBANDINFOA, *LPREBARBANDINFOA;
1975 typedef REBARBANDINFOA const *LPCREBARBANDINFOA;
1977 typedef struct tagREBARBANDINFOW
1979 UINT cbSize;
1980 UINT fMask;
1981 UINT fStyle;
1982 COLORREF clrFore;
1983 COLORREF clrBack;
1984 LPWSTR lpText;
1985 UINT cch;
1986 INT iImage;
1987 HWND hwndChild;
1988 UINT cxMinChild;
1989 UINT cyMinChild;
1990 UINT cx;
1991 HBITMAP hbmBack;
1992 UINT wID;
1993 UINT cyChild;
1994 UINT cyMaxChild;
1995 UINT cyIntegral;
1996 UINT cxIdeal;
1997 LPARAM lParam;
1998 UINT cxHeader;
1999 } REBARBANDINFOW, *LPREBARBANDINFOW;
2001 typedef REBARBANDINFOW const *LPCREBARBANDINFOW;
2003 #define REBARBANDINFO WINELIB_NAME_AW(REBARBANDINFO)
2004 #define LPREBARBANDINFO WINELIB_NAME_AW(LPREBARBANDINFO)
2005 #define LPCREBARBANDINFO WINELIB_NAME_AW(LPCREBARBANDINFO)
2007 #define REBARBANDINFOA_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOA, wID)
2008 #define REBARBANDINFOW_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOW, wID)
2009 #define REBARBANDINFO_V3_SIZE CCSIZEOF_STRUCT(WINELIB_NAME_AW(REBARBANDINFO), wID)
2011 typedef struct tagNMREBARCHILDSIZE
2013 NMHDR hdr;
2014 UINT uBand;
2015 UINT wID;
2016 RECT rcChild;
2017 RECT rcBand;
2018 } NMREBARCHILDSIZE, *LPNMREBARCHILDSIZE;
2020 typedef struct tagNMREBAR
2022 NMHDR hdr;
2023 DWORD dwMask;
2024 UINT uBand;
2025 UINT fStyle;
2026 UINT wID;
2027 LPARAM lParam;
2028 } NMREBAR, *LPNMREBAR;
2030 typedef struct tagNMRBAUTOSIZE
2032 NMHDR hdr;
2033 BOOL fChanged;
2034 RECT rcTarget;
2035 RECT rcActual;
2036 } NMRBAUTOSIZE, *LPNMRBAUTOSIZE;
2038 typedef struct tagNMREBARCHEVRON
2040 NMHDR hdr;
2041 UINT uBand;
2042 UINT wID;
2043 LPARAM lParam;
2044 RECT rc;
2045 LPARAM lParamNM;
2046 } NMREBARCHEVRON, *LPNMREBARCHEVRON;
2048 typedef struct _RB_HITTESTINFO
2050 POINT pt;
2051 UINT flags;
2052 INT iBand;
2053 } RBHITTESTINFO, *LPRBHITTESTINFO;
2055 #define RBAB_AUTOSIZE 0x0001
2056 #define RBAB_ADDBAND 0x0002
2058 typedef struct tagNMREBARAUTOBREAK
2060 NMHDR hdr;
2061 UINT uBand;
2062 UINT wID;
2063 LPARAM lParam;
2064 UINT uMsg;
2065 UINT fStyleCurrent;
2066 BOOL fAutoBreak;
2067 } NMREBARAUTOBREAK, *LPNMREBARAUTOBREAK;
2070 /* Trackbar control */
2072 #define TRACKBAR_CLASSA "msctls_trackbar32"
2073 #if defined(__GNUC__)
2074 # define TRACKBAR_CLASSW (const WCHAR []){ 'm','s','c','t','l','s','_', \
2075 't','r','a','c','k','b','a','r','3','2',0 }
2076 #elif defined(_MSC_VER)
2077 # define TRACKBAR_CLASSW L"msctls_trackbar32"
2078 #else
2079 static const WCHAR TRACKBAR_CLASSW[] = { 'm','s','c','t','l','s','_',
2080 't','r','a','c','k','b','a','r','3','2',0 };
2081 #endif
2082 #define TRACKBAR_CLASS WINELIB_NAME_AW(TRACKBAR_CLASS)
2084 #define TBS_AUTOTICKS 0x0001
2085 #define TBS_VERT 0x0002
2086 #define TBS_HORZ 0x0000
2087 #define TBS_TOP 0x0004
2088 #define TBS_BOTTOM 0x0000
2089 #define TBS_LEFT 0x0004
2090 #define TBS_RIGHT 0x0000
2091 #define TBS_BOTH 0x0008
2092 #define TBS_NOTICKS 0x0010
2093 #define TBS_ENABLESELRANGE 0x0020
2094 #define TBS_FIXEDLENGTH 0x0040
2095 #define TBS_NOTHUMB 0x0080
2096 #define TBS_TOOLTIPS 0x0100
2097 #define TBS_REVERSED 0x0200
2098 #define TBS_DOWNISLEFT 0x0400
2100 #define TBTS_TOP 0
2101 #define TBTS_LEFT 1
2102 #define TBTS_BOTTOM 2
2103 #define TBTS_RIGHT 3
2105 #define TB_LINEUP 0
2106 #define TB_LINEDOWN 1
2107 #define TB_PAGEUP 2
2108 #define TB_PAGEDOWN 3
2109 #define TB_THUMBPOSITION 4
2110 #define TB_THUMBTRACK 5
2111 #define TB_TOP 6
2112 #define TB_BOTTOM 7
2113 #define TB_ENDTRACK 8
2115 #define TBCD_TICS 0x0001
2116 #define TBCD_THUMB 0x0002
2117 #define TBCD_CHANNEL 0x0003
2119 #define TBM_GETPOS (WM_USER)
2120 #define TBM_GETRANGEMIN (WM_USER+1)
2121 #define TBM_GETRANGEMAX (WM_USER+2)
2122 #define TBM_GETTIC (WM_USER+3)
2123 #define TBM_SETTIC (WM_USER+4)
2124 #define TBM_SETPOS (WM_USER+5)
2125 #define TBM_SETRANGE (WM_USER+6)
2126 #define TBM_SETRANGEMIN (WM_USER+7)
2127 #define TBM_SETRANGEMAX (WM_USER+8)
2128 #define TBM_CLEARTICS (WM_USER+9)
2129 #define TBM_SETSEL (WM_USER+10)
2130 #define TBM_SETSELSTART (WM_USER+11)
2131 #define TBM_SETSELEND (WM_USER+12)
2132 #define TBM_GETPTICS (WM_USER+14)
2133 #define TBM_GETTICPOS (WM_USER+15)
2134 #define TBM_GETNUMTICS (WM_USER+16)
2135 #define TBM_GETSELSTART (WM_USER+17)
2136 #define TBM_GETSELEND (WM_USER+18)
2137 #define TBM_CLEARSEL (WM_USER+19)
2138 #define TBM_SETTICFREQ (WM_USER+20)
2139 #define TBM_SETPAGESIZE (WM_USER+21)
2140 #define TBM_GETPAGESIZE (WM_USER+22)
2141 #define TBM_SETLINESIZE (WM_USER+23)
2142 #define TBM_GETLINESIZE (WM_USER+24)
2143 #define TBM_GETTHUMBRECT (WM_USER+25)
2144 #define TBM_GETCHANNELRECT (WM_USER+26)
2145 #define TBM_SETTHUMBLENGTH (WM_USER+27)
2146 #define TBM_GETTHUMBLENGTH (WM_USER+28)
2147 #define TBM_SETTOOLTIPS (WM_USER+29)
2148 #define TBM_GETTOOLTIPS (WM_USER+30)
2149 #define TBM_SETTIPSIDE (WM_USER+31)
2150 #define TBM_SETBUDDY (WM_USER+32)
2151 #define TBM_GETBUDDY (WM_USER+33)
2152 #define TBM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
2153 #define TBM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
2156 /* Pager control */
2158 #define WC_PAGESCROLLERA "SysPager"
2159 #if defined(__GNUC__)
2160 # define WC_PAGESCROLLERW (const WCHAR []){ 'S','y','s','P','a','g','e','r',0 }
2161 #elif defined(_MSC_VER)
2162 # define WC_PAGESCROLLERW L"SysPager"
2163 #else
2164 static const WCHAR WC_PAGESCROLLERW[] = { 'S','y','s','P','a','g','e','r',0 };
2165 #endif
2166 #define WC_PAGESCROLLER WINELIB_NAME_AW(WC_PAGESCROLLER)
2168 #define PGS_VERT 0x00000000
2169 #define PGS_HORZ 0x00000001
2170 #define PGS_AUTOSCROLL 0x00000002
2171 #define PGS_DRAGNDROP 0x00000004
2173 #define PGF_INVISIBLE 0
2174 #define PGF_NORMAL 1
2175 #define PGF_GRAYED 2
2176 #define PGF_DEPRESSED 4
2177 #define PGF_HOT 8
2179 #define PGB_TOPORLEFT 0
2180 #define PGB_BOTTOMORRIGHT 1
2182 /* only used with PGN_SCROLL */
2183 #define PGF_SCROLLUP 1
2184 #define PGF_SCROLLDOWN 2
2185 #define PGF_SCROLLLEFT 4
2186 #define PGF_SCROLLRIGHT 8
2188 #define PGK_SHIFT 1
2189 #define PGK_CONTROL 2
2190 #define PGK_MENU 4
2192 /* only used with PGN_CALCSIZE */
2193 #define PGF_CALCWIDTH 1
2194 #define PGF_CALCHEIGHT 2
2196 #define PGM_FIRST 0x1400
2197 #define PGM_SETCHILD (PGM_FIRST+1)
2198 #define PGM_RECALCSIZE (PGM_FIRST+2)
2199 #define PGM_FORWARDMOUSE (PGM_FIRST+3)
2200 #define PGM_SETBKCOLOR (PGM_FIRST+4)
2201 #define PGM_GETBKCOLOR (PGM_FIRST+5)
2202 #define PGM_SETBORDER (PGM_FIRST+6)
2203 #define PGM_GETBORDER (PGM_FIRST+7)
2204 #define PGM_SETPOS (PGM_FIRST+8)
2205 #define PGM_GETPOS (PGM_FIRST+9)
2206 #define PGM_SETBUTTONSIZE (PGM_FIRST+10)
2207 #define PGM_GETBUTTONSIZE (PGM_FIRST+11)
2208 #define PGM_GETBUTTONSTATE (PGM_FIRST+12)
2209 #define PGM_GETDROPTARGET CCM_GETDROPTARGET
2211 #define PGN_FIRST (0U-900U)
2212 #define PGN_LAST (0U-950U)
2213 #define PGN_SCROLL (PGN_FIRST-1)
2214 #define PGN_CALCSIZE (PGN_FIRST-2)
2216 #include <pshpack1.h>
2218 typedef struct
2220 NMHDR hdr;
2221 WORD fwKeys;
2222 RECT rcParent;
2223 INT iDir;
2224 INT iXpos;
2225 INT iYpos;
2226 INT iScroll;
2227 } NMPGSCROLL, *LPNMPGSCROLL;
2229 #include <poppack.h>
2231 typedef struct
2233 NMHDR hdr;
2234 DWORD dwFlag;
2235 INT iWidth;
2236 INT iHeight;
2237 } NMPGCALCSIZE, *LPNMPGCALCSIZE;
2240 /* Treeview control */
2242 #define WC_TREEVIEWA "SysTreeView32"
2243 #if defined(__GNUC__)
2244 # define WC_TREEVIEWW (const WCHAR []){ 'S','y','s', \
2245 'T','r','e','e','V','i','e','w','3','2',0 }
2246 #elif defined(_MSC_VER)
2247 # define WC_TREEVIEWW L"SysTreeView32"
2248 #else
2249 static const WCHAR WC_TREEVIEWW[] = { 'S','y','s',
2250 'T','r','e','e','V','i','e','w','3','2',0 };
2251 #endif
2252 #define WC_TREEVIEW WINELIB_NAME_AW(WC_TREEVIEW)
2254 #define TVSIL_NORMAL 0
2255 #define TVSIL_STATE 2
2257 #define TV_FIRST 0x1100
2258 #define TVM_INSERTITEMA (TV_FIRST+0)
2259 #define TVM_INSERTITEMW (TV_FIRST+50)
2260 #define TVM_INSERTITEM WINELIB_NAME_AW(TVM_INSERTITEM)
2261 #define TVM_DELETEITEM (TV_FIRST+1)
2262 #define TVM_EXPAND (TV_FIRST+2)
2263 #define TVM_GETITEMRECT (TV_FIRST+4)
2264 #define TVM_GETCOUNT (TV_FIRST+5)
2265 #define TVM_GETINDENT (TV_FIRST+6)
2266 #define TVM_SETINDENT (TV_FIRST+7)
2267 #define TVM_GETIMAGELIST (TV_FIRST+8)
2268 #define TVM_SETIMAGELIST (TV_FIRST+9)
2269 #define TVM_GETNEXTITEM (TV_FIRST+10)
2270 #define TVM_SELECTITEM (TV_FIRST+11)
2271 #define TVM_GETITEMA (TV_FIRST+12)
2272 #define TVM_GETITEMW (TV_FIRST+62)
2273 #define TVM_GETITEM WINELIB_NAME_AW(TVM_GETITEM)
2274 #define TVM_SETITEMA (TV_FIRST+13)
2275 #define TVM_SETITEMW (TV_FIRST+63)
2276 #define TVM_SETITEM WINELIB_NAME_AW(TVM_SETITEM)
2277 #define TVM_EDITLABELA (TV_FIRST+14)
2278 #define TVM_EDITLABELW (TV_FIRST+65)
2279 #define TVM_EDITLABEL WINELIB_NAME_AW(TVM_EDITLABEL)
2280 #define TVM_GETEDITCONTROL (TV_FIRST+15)
2281 #define TVM_GETVISIBLECOUNT (TV_FIRST+16)
2282 #define TVM_HITTEST (TV_FIRST+17)
2283 #define TVM_CREATEDRAGIMAGE (TV_FIRST+18)
2284 #define TVM_SORTCHILDREN (TV_FIRST+19)
2285 #define TVM_ENSUREVISIBLE (TV_FIRST+20)
2286 #define TVM_SORTCHILDRENCB (TV_FIRST+21)
2287 #define TVM_ENDEDITLABELNOW (TV_FIRST+22)
2288 #define TVM_GETISEARCHSTRINGA (TV_FIRST+23)
2289 #define TVM_GETISEARCHSTRINGW (TV_FIRST+64)
2290 #define TVM_GETISEARCHSTRING WINELIB_NAME_AW(TVM_GETISEARCHSTRING)
2291 #define TVM_SETTOOLTIPS (TV_FIRST+24)
2292 #define TVM_GETTOOLTIPS (TV_FIRST+25)
2293 #define TVM_SETINSERTMARK (TV_FIRST+26)
2294 #define TVM_SETITEMHEIGHT (TV_FIRST+27)
2295 #define TVM_GETITEMHEIGHT (TV_FIRST+28)
2296 #define TVM_SETBKCOLOR (TV_FIRST+29)
2297 #define TVM_SETTEXTCOLOR (TV_FIRST+30)
2298 #define TVM_GETBKCOLOR (TV_FIRST+31)
2299 #define TVM_GETTEXTCOLOR (TV_FIRST+32)
2300 #define TVM_SETSCROLLTIME (TV_FIRST+33)
2301 #define TVM_GETSCROLLTIME (TV_FIRST+34)
2302 #define TVM_UNKNOWN35 (TV_FIRST+35)
2303 #define TVM_UNKNOWN36 (TV_FIRST+36)
2304 #define TVM_SETINSERTMARKCOLOR (TV_FIRST+37)
2305 #define TVM_GETINSERTMARKCOLOR (TV_FIRST+38)
2306 #define TVM_GETITEMSTATE (TV_FIRST+39)
2307 #define TVM_SETLINECOLOR (TV_FIRST+40)
2308 #define TVM_GETLINECOLOR (TV_FIRST+41)
2309 #define TVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
2310 #define TVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
2311 #define TVM_MAPACCIDTOHTREEITEM (TV_FIRST + 42)
2312 #define TVM_MAPHTREEITEMTOACCID (TV_FIRST + 43)
2315 #define TVN_FIRST (0U-400U)
2316 #define TVN_LAST (0U-499U)
2318 #define TVN_SELCHANGINGA (TVN_FIRST-1)
2319 #define TVN_SELCHANGINGW (TVN_FIRST-50)
2320 #define TVN_SELCHANGING WINELIB_NAME_AW(TVN_SELCHANGING)
2322 #define TVN_SELCHANGEDA (TVN_FIRST-2)
2323 #define TVN_SELCHANGEDW (TVN_FIRST-51)
2324 #define TVN_SELCHANGED WINELIB_NAME_AW(TVN_SELCHANGED)
2326 #define TVN_GETDISPINFOA (TVN_FIRST-3)
2327 #define TVN_GETDISPINFOW (TVN_FIRST-52)
2328 #define TVN_GETDISPINFO WINELIB_NAME_AW(TVN_GETDISPINFO)
2330 #define TVN_SETDISPINFOA (TVN_FIRST-4)
2331 #define TVN_SETDISPINFOW (TVN_FIRST-53)
2332 #define TVN_SETDISPINFO WINELIB_NAME_AW(TVN_SETDISPINFO)
2334 #define TVN_ITEMEXPANDINGA (TVN_FIRST-5)
2335 #define TVN_ITEMEXPANDINGW (TVN_FIRST-54)
2336 #define TVN_ITEMEXPANDING WINELIB_NAME_AW(TVN_ITEMEXPANDING)
2338 #define TVN_ITEMEXPANDEDA (TVN_FIRST-6)
2339 #define TVN_ITEMEXPANDEDW (TVN_FIRST-55)
2340 #define TVN_ITEMEXPANDED WINELIB_NAME_AW(TVN_ITEMEXPANDED)
2342 #define TVN_BEGINDRAGA (TVN_FIRST-7)
2343 #define TVN_BEGINDRAGW (TVN_FIRST-56)
2344 #define TVN_BEGINDRAG WINELIB_NAME_AW(TVN_BEGINDRAG)
2346 #define TVN_BEGINRDRAGA (TVN_FIRST-8)
2347 #define TVN_BEGINRDRAGW (TVN_FIRST-57)
2348 #define TVN_BEGINRDRAG WINELIB_NAME_AW(TVN_BEGINRDRAG)
2350 #define TVN_DELETEITEMA (TVN_FIRST-9)
2351 #define TVN_DELETEITEMW (TVN_FIRST-58)
2352 #define TVN_DELETEITEM WINELIB_NAME_AW(TVN_DELETEITEM)
2354 #define TVN_BEGINLABELEDITA (TVN_FIRST-10)
2355 #define TVN_BEGINLABELEDITW (TVN_FIRST-59)
2356 #define TVN_BEGINLABELEDIT WINELIB_NAME_AW(TVN_BEGINLABELEDIT)
2358 #define TVN_ENDLABELEDITA (TVN_FIRST-11)
2359 #define TVN_ENDLABELEDITW (TVN_FIRST-60)
2360 #define TVN_ENDLABELEDIT WINELIB_NAME_AW(TVN_ENDLABELEDIT)
2362 #define TVN_KEYDOWN (TVN_FIRST-12)
2364 #define TVN_GETINFOTIPA (TVN_FIRST-13)
2365 #define TVN_GETINFOTIPW (TVN_FIRST-14)
2366 #define TVN_GETINFOTIP WINELIB_NAME_AW(TVN_GETINFOTIP)
2368 #define TVN_SINGLEEXPAND (TVN_FIRST-15)
2374 #define TVIF_TEXT 0x0001
2375 #define TVIF_IMAGE 0x0002
2376 #define TVIF_PARAM 0x0004
2377 #define TVIF_STATE 0x0008
2378 #define TVIF_HANDLE 0x0010
2379 #define TVIF_SELECTEDIMAGE 0x0020
2380 #define TVIF_CHILDREN 0x0040
2381 #define TVIF_INTEGRAL 0x0080
2382 #define TVIF_DI_SETITEM 0x1000
2384 #define TVI_ROOT ((HTREEITEM)-65536)
2385 #define TVI_FIRST ((HTREEITEM)-65535)
2386 #define TVI_LAST ((HTREEITEM)-65534)
2387 #define TVI_SORT ((HTREEITEM)-65533)
2389 #define TVIS_FOCUSED 0x0001
2390 #define TVIS_SELECTED 0x0002
2391 #define TVIS_CUT 0x0004
2392 #define TVIS_DROPHILITED 0x0008
2393 #define TVIS_BOLD 0x0010
2394 #define TVIS_EXPANDED 0x0020
2395 #define TVIS_EXPANDEDONCE 0x0040
2396 #define TVIS_EXPANDPARTIAL 0x0080
2397 #define TVIS_OVERLAYMASK 0x0f00
2398 #define TVIS_STATEIMAGEMASK 0xf000
2399 #define TVIS_USERMASK 0xf000
2401 #define TVHT_NOWHERE 0x0001
2402 #define TVHT_ONITEMICON 0x0002
2403 #define TVHT_ONITEMLABEL 0x0004
2404 #define TVHT_ONITEMINDENT 0x0008
2405 #define TVHT_ONITEMBUTTON 0x0010
2406 #define TVHT_ONITEMRIGHT 0x0020
2407 #define TVHT_ONITEMSTATEICON 0x0040
2408 #define TVHT_ONITEM 0x0046
2409 #define TVHT_ABOVE 0x0100
2410 #define TVHT_BELOW 0x0200
2411 #define TVHT_TORIGHT 0x0400
2412 #define TVHT_TOLEFT 0x0800
2414 #define TVS_HASBUTTONS 0x0001
2415 #define TVS_HASLINES 0x0002
2416 #define TVS_LINESATROOT 0x0004
2417 #define TVS_EDITLABELS 0x0008
2418 #define TVS_DISABLEDRAGDROP 0x0010
2419 #define TVS_SHOWSELALWAYS 0x0020
2420 #define TVS_RTLREADING 0x0040
2421 #define TVS_NOTOOLTIPS 0x0080
2422 #define TVS_CHECKBOXES 0x0100
2423 #define TVS_TRACKSELECT 0x0200
2424 #define TVS_SINGLEEXPAND 0x0400
2425 #define TVS_INFOTIP 0x0800
2426 #define TVS_FULLROWSELECT 0x1000
2427 #define TVS_NOSCROLL 0x2000
2428 #define TVS_NONEVENHEIGHT 0x4000
2429 #define TVS_NOHSCROLL 0x8000
2431 #define TVS_SHAREDIMAGELISTS 0x0000
2432 #define TVS_PRIVATEIMAGELISTS 0x0400
2435 #define TVE_COLLAPSE 0x0001
2436 #define TVE_EXPAND 0x0002
2437 #define TVE_TOGGLE 0x0003
2438 #define TVE_EXPANDPARTIAL 0x4000
2439 #define TVE_COLLAPSERESET 0x8000
2441 #define TVGN_ROOT 0
2442 #define TVGN_NEXT 1
2443 #define TVGN_PREVIOUS 2
2444 #define TVGN_PARENT 3
2445 #define TVGN_CHILD 4
2446 #define TVGN_FIRSTVISIBLE 5
2447 #define TVGN_NEXTVISIBLE 6
2448 #define TVGN_PREVIOUSVISIBLE 7
2449 #define TVGN_DROPHILITE 8
2450 #define TVGN_CARET 9
2451 #define TVGN_LASTVISIBLE 10
2452 #define TVSI_NOSINGLEEXPAND 0x8000
2454 #define TVC_UNKNOWN 0x00
2455 #define TVC_BYMOUSE 0x01
2456 #define TVC_BYKEYBOARD 0x02
2459 typedef struct _TREEITEM *HTREEITEM;
2461 typedef struct {
2462 UINT mask;
2463 HTREEITEM hItem;
2464 UINT state;
2465 UINT stateMask;
2466 LPSTR pszText;
2467 INT cchTextMax;
2468 INT iImage;
2469 INT iSelectedImage;
2470 INT cChildren;
2471 LPARAM lParam;
2472 } TVITEMA, *LPTVITEMA;
2474 typedef struct {
2475 UINT mask;
2476 HTREEITEM hItem;
2477 UINT state;
2478 UINT stateMask;
2479 LPWSTR pszText;
2480 INT cchTextMax;
2481 INT iImage;
2482 INT iSelectedImage;
2483 INT cChildren;
2484 LPARAM lParam;
2485 } TVITEMW, *LPTVITEMW;
2487 #define TV_ITEMA TVITEMA
2488 #define TV_ITEMW TVITEMW
2489 #define LPTV_ITEMA LPTVITEMA
2490 #define LPTV_ITEMW LPTVITEMW
2492 #define TVITEM WINELIB_NAME_AW(TVITEM)
2493 #define LPTVITEM WINELIB_NAME_AW(LPTVITEM)
2494 #define TV_ITEM WINELIB_NAME_AW(TV_ITEM)
2495 #define LPTV_ITEM WINELIB_NAME_AW(LPTV_ITEM)
2497 typedef struct {
2498 UINT mask;
2499 HTREEITEM hItem;
2500 UINT state;
2501 UINT stateMask;
2502 LPSTR pszText;
2503 INT cchTextMax;
2504 INT iImage;
2505 INT iSelectedImage;
2506 INT cChildren;
2507 LPARAM lParam;
2508 INT iIntegral;
2509 } TVITEMEXA, *LPTVITEMEXA;
2511 typedef struct {
2512 UINT mask;
2513 HTREEITEM hItem;
2514 UINT state;
2515 UINT stateMask;
2516 LPWSTR pszText;
2517 INT cchTextMax;
2518 INT iImage;
2519 INT iSelectedImage;
2520 INT cChildren;
2521 LPARAM lParam;
2522 INT iIntegral;
2523 } TVITEMEXW, *LPTVITEMEXW;
2525 #define TVITEMEX WINELIB_NAME_AW(TVITEMEX)
2526 #define LPTVITEMEX WINELIB_NAME_AW(LPTVITEMEX)
2528 typedef struct tagTVINSERTSTRUCTA {
2529 HTREEITEM hParent;
2530 HTREEITEM hInsertAfter;
2531 union {
2532 TVITEMEXA itemex;
2533 TVITEMA item;
2534 } DUMMYUNIONNAME;
2535 } TVINSERTSTRUCTA, *LPTVINSERTSTRUCTA;
2537 typedef struct tagTVINSERTSTRUCTW {
2538 HTREEITEM hParent;
2539 HTREEITEM hInsertAfter;
2540 union {
2541 TVITEMEXW itemex;
2542 TVITEMW item;
2543 } DUMMYUNIONNAME;
2544 } TVINSERTSTRUCTW, *LPTVINSERTSTRUCTW;
2546 #define TVINSERTSTRUCT WINELIB_NAME_AW(TVINSERTSTRUCT)
2547 #define LPTVINSERTSTRUCT WINELIB_NAME_AW(LPTVINSERTSTRUCT)
2549 #define TVINSERTSTRUCT_V1_SIZEA CCSIZEOF_STRUCT(TVINSERTSTRUCTA, item)
2550 #define TVINSERTSTRUCT_V1_SIZEW CCSIZEOF_STRUCT(TVINSERTSTRUCTW, item)
2551 #define TVINSERTSTRUCT_V1_SIZE WINELIB_NAME_AW(TVINSERTSTRUCT_V1_SIZE)
2553 #define TV_INSERTSTRUCT TVINSERTSTRUCT
2554 #define TV_INSERTSTRUCTA TVINSERTSTRUCTA
2555 #define TV_INSERTSTRUCTW TVINSERTSTRUCTW
2556 #define LPTV_INSERTSTRUCT LPTVINSERTSTRUCT
2557 #define LPTV_INSERTSTRUCTA LPTVINSERTSTRUCTA
2558 #define LPTV_INSERTSTRUCTW LPTVINSERTSTRUCTW
2562 typedef struct tagNMTREEVIEWA {
2563 NMHDR hdr;
2564 UINT action;
2565 TVITEMA itemOld;
2566 TVITEMA itemNew;
2567 POINT ptDrag;
2568 } NMTREEVIEWA, *LPNMTREEVIEWA;
2570 typedef struct tagNMTREEVIEWW {
2571 NMHDR hdr;
2572 UINT action;
2573 TVITEMW itemOld;
2574 TVITEMW itemNew;
2575 POINT ptDrag;
2576 } NMTREEVIEWW, *LPNMTREEVIEWW;
2578 #define NMTREEVIEW WINELIB_NAME_AW(NMTREEVIEW)
2579 #define NM_TREEVIEW WINELIB_NAME_AW(NMTREEVIEW)
2580 #define NM_TREEVIEWA NMTREEVIEWA
2581 #define NM_TREEVIEWW NMTREEVIEWW
2582 #define LPNMTREEVIEW WINELIB_NAME_AW(LPNMTREEVIEW)
2584 #define LPNM_TREEVIEW LPNMTREEVIEW
2585 #define LPNM_TREEVIEWA LPNMTREEVIEWA
2586 #define LPNM_TREEVIEWW LPNMTREEVIEWW
2588 typedef struct tagTVDISPINFOA {
2589 NMHDR hdr;
2590 TVITEMA item;
2591 } NMTVDISPINFOA, *LPNMTVDISPINFOA;
2593 typedef struct tagTVDISPINFOW {
2594 NMHDR hdr;
2595 TVITEMW item;
2596 } NMTVDISPINFOW, *LPNMTVDISPINFOW;
2598 #define NMTVDISPINFO WINELIB_NAME_AW(NMTVDISPINFO)
2599 #define LPNMTVDISPINFO WINELIB_NAME_AW(LPNMTVDISPINFO)
2600 #define TV_DISPINFOA NMTVDISPINFOA
2601 #define TV_DISPINFOW NMTVDISPINFOW
2602 #define TV_DISPINFO NMTVDISPINFO
2604 typedef INT (CALLBACK *PFNTVCOMPARE)(LPARAM, LPARAM, LPARAM);
2606 typedef struct tagTVSORTCB
2608 HTREEITEM hParent;
2609 PFNTVCOMPARE lpfnCompare;
2610 LPARAM lParam;
2611 } TVSORTCB, *LPTVSORTCB;
2613 #define TV_SORTCB TVSORTCB
2614 #define LPTV_SORTCB LPTVSORTCB
2616 typedef struct tagTVHITTESTINFO {
2617 POINT pt;
2618 UINT flags;
2619 HTREEITEM hItem;
2620 } TVHITTESTINFO, *LPTVHITTESTINFO;
2622 #define TV_HITTESTINFO TVHITTESTINFO
2625 /* Custom Draw Treeview */
2627 #define NMTVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMTVCUSTOMDRAW, clrTextBk)
2629 #define TVCDRF_NOIMAGES 0x00010000
2631 typedef struct tagNMTVCUSTOMDRAW
2633 NMCUSTOMDRAW nmcd;
2634 COLORREF clrText;
2635 COLORREF clrTextBk;
2636 INT iLevel; /* IE>0x0400 */
2637 } NMTVCUSTOMDRAW, *LPNMTVCUSTOMDRAW;
2639 /* Treeview tooltips */
2641 typedef struct tagNMTVGETINFOTIPA
2643 NMHDR hdr;
2644 LPSTR pszText;
2645 INT cchTextMax;
2646 HTREEITEM hItem;
2647 LPARAM lParam;
2648 } NMTVGETINFOTIPA, *LPNMTVGETINFOTIPA;
2650 typedef struct tagNMTVGETINFOTIPW
2652 NMHDR hdr;
2653 LPWSTR pszText;
2654 INT cchTextMax;
2655 HTREEITEM hItem;
2656 LPARAM lParam;
2657 } NMTVGETINFOTIPW, *LPNMTVGETINFOTIPW;
2659 #define NMTVGETINFOTIP WINELIB_NAME_AW(NMTVGETINFOTIP)
2660 #define LPNMTVGETINFOTIP WINELIB_NAME_AW(LPNMTVGETINFOTIP)
2662 #include <pshpack1.h>
2663 typedef struct tagTVKEYDOWN
2665 NMHDR hdr;
2666 WORD wVKey;
2667 UINT flags;
2668 } NMTVKEYDOWN, *LPNMTVKEYDOWN;
2669 #include <poppack.h>
2671 #define TV_KEYDOWN NMTVKEYDOWN
2673 #define TreeView_InsertItemA(hwnd, phdi) \
2674 (HTREEITEM)SNDMSGA((hwnd), TVM_INSERTITEMA, 0, \
2675 (LPARAM)(LPTVINSERTSTRUCTA)(phdi))
2676 #define TreeView_InsertItemW(hwnd,phdi) \
2677 (HTREEITEM)SNDMSGW((hwnd), TVM_INSERTITEMW, 0, \
2678 (LPARAM)(LPTVINSERTSTRUCTW)(phdi))
2679 #define TreeView_InsertItem WINELIB_NAME_AW(TreeView_InsertItem)
2681 #define TreeView_DeleteItem(hwnd, hItem) \
2682 (BOOL)SNDMSG((hwnd), TVM_DELETEITEM, 0, (LPARAM)(HTREEITEM)(hItem))
2683 #define TreeView_DeleteAllItems(hwnd) \
2684 (BOOL)SNDMSG((hwnd), TVM_DELETEITEM, 0, (LPARAM)TVI_ROOT)
2685 #define TreeView_Expand(hwnd, hitem, code) \
2686 (BOOL)SNDMSG((hwnd), TVM_EXPAND, (WPARAM)code, \
2687 (LPARAM)(HTREEITEM)(hitem))
2689 #define TreeView_GetItemRect(hwnd, hitem, prc, code) \
2690 (*(HTREEITEM *)prc = (hitem), (BOOL)SNDMSG((hwnd), \
2691 TVM_GETITEMRECT, (WPARAM)(code), (LPARAM)(RECT *)(prc)))
2693 #define TreeView_GetCount(hwnd) \
2694 (UINT)SNDMSG((hwnd), TVM_GETCOUNT, 0, 0)
2695 #define TreeView_GetIndent(hwnd) \
2696 (UINT)SNDMSG((hwnd), TVM_GETINDENT, 0, 0)
2697 #define TreeView_SetIndent(hwnd, indent) \
2698 (BOOL)SNDMSG((hwnd), TVM_SETINDENT, (WPARAM)indent, 0)
2700 #define TreeView_GetImageList(hwnd, iImage) \
2701 (HIMAGELIST)SNDMSG((hwnd), TVM_GETIMAGELIST, iImage, 0)
2703 #define TreeView_SetImageList(hwnd, himl, iImage) \
2704 (HIMAGELIST)SNDMSG((hwnd), TVM_SETIMAGELIST, iImage, \
2705 (LPARAM)(HIMAGELIST)(himl))
2707 #define TreeView_GetNextItem(hwnd, hitem, code) \
2708 (HTREEITEM)SNDMSG((hwnd), TVM_GETNEXTITEM, (WPARAM)code,\
2709 (LPARAM)(HTREEITEM) (hitem))
2711 #define TreeView_GetChild(hwnd, hitem) \
2712 TreeView_GetNextItem(hwnd, hitem , TVGN_CHILD)
2713 #define TreeView_GetNextSibling(hwnd, hitem) \
2714 TreeView_GetNextItem(hwnd, hitem , TVGN_NEXT)
2715 #define TreeView_GetPrevSibling(hwnd, hitem) \
2716 TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUS)
2717 #define TreeView_GetParent(hwnd, hitem) \
2718 TreeView_GetNextItem(hwnd, hitem , TVGN_PARENT)
2719 #define TreeView_GetFirstVisible(hwnd) \
2720 TreeView_GetNextItem(hwnd, NULL, TVGN_FIRSTVISIBLE)
2721 #define TreeView_GetLastVisible(hwnd) \
2722 TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE)
2723 #define TreeView_GetNextVisible(hwnd, hitem) \
2724 TreeView_GetNextItem(hwnd, hitem , TVGN_NEXTVISIBLE)
2725 #define TreeView_GetPrevVisible(hwnd, hitem) \
2726 TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUSVISIBLE)
2727 #define TreeView_GetSelection(hwnd) \
2728 TreeView_GetNextItem(hwnd, NULL, TVGN_CARET)
2729 #define TreeView_GetDropHilight(hwnd) \
2730 TreeView_GetNextItem(hwnd, NULL, TVGN_DROPHILITE)
2731 #define TreeView_GetRoot(hwnd) \
2732 TreeView_GetNextItem(hwnd, NULL, TVGN_ROOT)
2733 #define TreeView_GetLastVisible(hwnd) \
2734 TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE)
2737 #define TreeView_Select(hwnd, hitem, code) \
2738 (BOOL)SNDMSG((hwnd), TVM_SELECTITEM, (WPARAM)(code), \
2739 (LPARAM)(HTREEITEM)(hitem))
2742 #define TreeView_SelectItem(hwnd, hitem) \
2743 TreeView_Select(hwnd, hitem, TVGN_CARET)
2744 #define TreeView_SelectDropTarget(hwnd, hitem) \
2745 TreeView_Select(hwnd, hitem, TVGN_DROPHILITE)
2746 #define TreeView_SelectSetFirstVisible(hwnd, hitem) \
2747 TreeView_Select(hwnd, hitem, TVGN_FIRSTVISIBLE)
2750 #define TreeView_GetItemA(hwnd, pitem) \
2751 (BOOL)SNDMSGA((hwnd), TVM_GETITEMA, 0, (LPARAM) (TVITEMA *)(pitem))
2752 #define TreeView_GetItemW(hwnd, pitem) \
2753 (BOOL)SNDMSGW((hwnd), TVM_GETITEMW, 0, (LPARAM) (TVITEMW *)(pitem))
2754 #define TreeView_GetItem WINELIB_NAME_AW(TreeView_GetItem)
2756 #define TreeView_SetItemA(hwnd, pitem) \
2757 (BOOL)SNDMSGA((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem))
2758 #define TreeView_SetItemW(hwnd, pitem) \
2759 (BOOL)SNDMSGW((hwnd), TVM_SETITEMW, 0, (LPARAM)(const TVITEMW *)(pitem))
2760 #define TreeView_SetItem WINELIB_NAME_AW(TreeView_SetItem)
2762 #define TreeView_EditLabel(hwnd, hitem) \
2763 (HWND)SNDMSG((hwnd), TVM_EDITLABEL, 0, (LPARAM)(HTREEITEM)(hitem))
2765 #define TreeView_GetEditControl(hwnd) \
2766 (HWND)SNDMSG((hwnd), TVM_GETEDITCONTROL, 0, 0)
2768 #define TreeView_GetVisibleCount(hwnd) \
2769 (UINT)SNDMSG((hwnd), TVM_GETVISIBLECOUNT, 0, 0)
2771 #define TreeView_HitTest(hwnd, lpht) \
2772 (HTREEITEM)SNDMSG((hwnd), TVM_HITTEST, 0,\
2773 (LPARAM)(LPTVHITTESTINFO)(lpht))
2775 #define TreeView_CreateDragImage(hwnd, hitem) \
2776 (HIMAGELIST)SNDMSG((hwnd), TVM_CREATEDRAGIMAGE, 0,\
2777 (LPARAM)(HTREEITEM)(hitem))
2779 #define TreeView_SortChildren(hwnd, hitem, recurse) \
2780 (BOOL)SNDMSG((hwnd), TVM_SORTCHILDREN, (WPARAM)recurse,\
2781 (LPARAM)(HTREEITEM)(hitem))
2783 #define TreeView_EnsureVisible(hwnd, hitem) \
2784 (BOOL)SNDMSG((hwnd), TVM_ENSUREVISIBLE, 0, (LPARAM)(UINT)(hitem))
2786 #define TreeView_SortChildrenCB(hwnd, psort, recurse) \
2787 (BOOL)SNDMSG((hwnd), TVM_SORTCHILDRENCB, (WPARAM)recurse, \
2788 (LPARAM)(LPTV_SORTCB)(psort))
2790 #define TreeView_EndEditLabelNow(hwnd, fCancel) \
2791 (BOOL)SNDMSG((hwnd), TVM_ENDEDITLABELNOW, (WPARAM)fCancel, 0)
2793 #define TreeView_GetISearchString(hwnd, lpsz) \
2794 (BOOL)SNDMSG((hwnd), TVM_GETISEARCHSTRING, 0, \
2795 (LPARAM)(LPTSTR)lpsz)
2797 #define TreeView_SetToolTips(hwnd, hwndTT) \
2798 (HWND)SNDMSG((hwnd), TVM_SETTOOLTIPS, (WPARAM)(hwndTT), 0)
2800 #define TreeView_GetToolTips(hwnd) \
2801 (HWND)SNDMSG((hwnd), TVM_GETTOOLTIPS, 0, 0)
2803 #define TreeView_SetItemHeight(hwnd, iHeight) \
2804 (INT)SNDMSG((hwnd), TVM_SETITEMHEIGHT, (WPARAM)iHeight, 0)
2806 #define TreeView_GetItemHeight(hwnd) \
2807 (INT)SNDMSG((hwnd), TVM_GETITEMHEIGHT, 0, 0)
2809 #define TreeView_SetBkColor(hwnd, clr) \
2810 (COLORREF)SNDMSG((hwnd), TVM_SETBKCOLOR, 0, (LPARAM)clr)
2812 #define TreeView_SetTextColor(hwnd, clr) \
2813 (COLORREF)SNDMSG((hwnd), TVM_SETTEXTCOLOR, 0, (LPARAM)clr)
2815 #define TreeView_GetBkColor(hwnd) \
2816 (COLORREF)SNDMSG((hwnd), TVM_GETBKCOLOR, 0, 0)
2818 #define TreeView_GetTextColor(hwnd) \
2819 (COLORREF)SNDMSG((hwnd), TVM_GETTEXTCOLOR, 0, 0)
2821 #define TreeView_SetScrollTime(hwnd, uTime) \
2822 (UINT)SNDMSG((hwnd), TVM_SETSCROLLTIME, uTime, 0)
2824 #define TreeView_GetScrollTime(hwnd) \
2825 (UINT)SNDMSG((hwnd), TVM_GETSCROLLTIME, 0, 0)
2827 #define TreeView_SetInsertMark(hwnd, hItem, fAfter) \
2828 (BOOL)SNDMSG((hwnd), TVM_SETINSERTMARK, (WPARAM)(fAfter), \
2829 (LPARAM) (hItem))
2831 #define TreeView_SetInsertMarkColor(hwnd, clr) \
2832 (COLORREF)SNDMSG((hwnd), TVM_SETINSERTMARKCOLOR, 0, (LPARAM)clr)
2834 #define TreeView_GetInsertMarkColor(hwnd) \
2835 (COLORREF)SNDMSG((hwnd), TVM_GETINSERTMARKCOLOR, 0, 0)
2837 #define TreeView_SetItemState(hwndTV, hti, data, _mask) \
2838 { TVITEM _TVi; \
2839 _TVi.mask = TVIF_STATE; \
2840 _TVi.hItem = hti; \
2841 _TVi.stateMask = _mask; \
2842 _TVi.state = data; \
2843 SNDMSG((hwndTV), TVM_SETITEM, 0, (LPARAM)&_TVi); \
2846 #define TreeView_GetItemState(hwndTV, hti, mask) \
2847 (UINT)SNDMSG((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti), (LPARAM)(mask))
2848 #define TreeView_GetCheckState(hwndTV, hti) \
2849 ((((UINT)(SNDMSG((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti), \
2850 TVIS_STATEIMAGEMASK))) >> 12) -1)
2852 #define TreeView_SetLineColor(hwnd, clr) \
2853 (COLORREF)SNDMSG((hwnd), TVM_SETLINECOLOR, 0, (LPARAM)(clr))
2855 #define TreeView_GetLineColor(hwnd) \
2856 (COLORREF)SNDMSG((hwnd), TVM_GETLINECOLOR, 0, 0)
2858 #define TreeView_MapAccIDToHTREEITEM(hwnd, id) \
2859 (HTREEITEM)SNDMSG((hwnd), TVM_MAPACCIDTOHTREEITEM, id, 0)
2861 #define TreeView_MapHTREEITEMToAccID(hwnd, htreeitem) \
2862 (UINT)SNDMSG((hwnd), TVM_MAPHTREEITEMTOACCID, (WPARAM)htreeitem, 0)
2864 #define TreeView_SetUnicodeFormat(hwnd, fUnicode) \
2865 (BOOL)SNDMSG((hwnd), TVM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0)
2866 #define TreeView_GetUnicodeFormat(hwnd) \
2867 (BOOL)SNDMSG((hwnd), TVM_GETUNICODEFORMAT, 0, 0)
2869 /* Listview control */
2871 #define WC_LISTVIEWA "SysListView32"
2872 #if defined(__GNUC__)
2873 # define WC_LISTVIEWW (const WCHAR []){ 'S','y','s', \
2874 'L','i','s','t','V','i','e','w','3','2',0 }
2875 #elif defined(_MSC_VER)
2876 # define WC_LISTVIEWW L"SysListView32"
2877 #else
2878 static const WCHAR WC_LISTVIEWW[] = { 'S','y','s',
2879 'L','i','s','t','V','i','e','w','3','2',0 };
2880 #endif
2881 #define WC_LISTVIEW WINELIB_NAME_AW(WC_LISTVIEW)
2883 #define LVSCW_AUTOSIZE -1
2884 #define LVSCW_AUTOSIZE_USEHEADER -2
2886 #define LVS_ICON 0x0000
2887 #define LVS_REPORT 0x0001
2888 #define LVS_SMALLICON 0x0002
2889 #define LVS_LIST 0x0003
2890 #define LVS_TYPEMASK 0x0003
2891 #define LVS_SINGLESEL 0x0004
2892 #define LVS_SHOWSELALWAYS 0x0008
2893 #define LVS_SORTASCENDING 0x0010
2894 #define LVS_SORTDESCENDING 0x0020
2895 #define LVS_SHAREIMAGELISTS 0x0040
2896 #define LVS_NOLABELWRAP 0x0080
2897 #define LVS_AUTOARRANGE 0x0100
2898 #define LVS_EDITLABELS 0x0200
2899 #define LVS_OWNERDATA 0x1000
2900 #define LVS_NOSCROLL 0x2000
2901 #define LVS_TYPESTYLEMASK 0xfc00
2902 #define LVS_ALIGNTOP 0x0000
2903 #define LVS_ALIGNLEFT 0x0800
2904 #define LVS_ALIGNMASK 0x0c00
2905 #define LVS_OWNERDRAWFIXED 0x0400
2906 #define LVS_NOCOLUMNHEADER 0x4000
2907 #define LVS_NOSORTHEADER 0x8000
2909 #define LVS_EX_GRIDLINES 0x0001
2910 #define LVS_EX_SUBITEMIMAGES 0x0002
2911 #define LVS_EX_CHECKBOXES 0x0004
2912 #define LVS_EX_TRACKSELECT 0x0008
2913 #define LVS_EX_HEADERDRAGDROP 0x0010
2914 #define LVS_EX_FULLROWSELECT 0x0020
2915 #define LVS_EX_ONECLICKACTIVATE 0x0040
2916 #define LVS_EX_TWOCLICKACTIVATE 0x0080
2917 #define LVS_EX_FLATSB 0x0100
2918 #define LVS_EX_REGIONAL 0x0200
2919 #define LVS_EX_INFOTIP 0x0400
2920 #define LVS_EX_UNDERLINEHOT 0x0800
2921 #define LVS_EX_UNDERLINECOLD 0x1000
2922 #define LVS_EX_MULTIWORKAREAS 0x2000
2923 #define LVS_EX_LABELTIP 0x4000
2924 #define LVS_EX_BORDERSELECT 0x8000
2925 #define LVS_EX_DOUBLEBUFFER 0x00010000
2926 #define LVS_EX_HIDELABELS 0x00020000
2927 #define LVS_EX_SINGLEROW 0x00040000
2928 #define LVS_EX_SNAPTOGRID 0x00080000
2929 #define LVS_EX_SIMPLESELECT 0x00100000
2930 #define LVS_EX_JUSTIFYCOLUMNS 0x00200000
2931 #define LVS_EX_TRANSPARENTBKGND 0x00400000
2932 #define LVS_EX_TRANSPARENTSHADOWTEXT 0x00800000
2933 #define LVS_EX_AUTOAUTOARRANGE 0x01000000
2934 #define LVS_EX_HEADERINALLVIEWS 0x02000000
2935 #define LVS_EX_AUTOCHECKSELECT 0x08000000
2936 #define LVS_EX_AUTOSIZECOLUMNS 0x10000000
2937 #define LVS_EX_COLUMNSNAPPOINTS 0x40000000
2938 #define LVS_EX_COLUMNOVERFLOW 0x80000000
2940 #define LVCF_FMT 0x0001
2941 #define LVCF_WIDTH 0x0002
2942 #define LVCF_TEXT 0x0004
2943 #define LVCF_SUBITEM 0x0008
2944 #define LVCF_IMAGE 0x0010
2945 #define LVCF_ORDER 0x0020
2947 #define LVCFMT_LEFT 0x0000
2948 #define LVCFMT_RIGHT 0x0001
2949 #define LVCFMT_CENTER 0x0002
2950 #define LVCFMT_JUSTIFYMASK 0x0003
2951 #define LVCFMT_FIXED_WIDTH 0x0100
2952 #define LVCFMT_IMAGE 0x0800
2953 #define LVCFMT_BITMAP_ON_RIGHT 0x1000
2954 #define LVCFMT_COL_HAS_IMAGES 0x8000
2955 #define LVCFMT_NO_DPI_SCALE 0x00040000
2956 #define LVCFMT_FIXED_RATIO 0x00080000
2957 #define LVCFMT_LINE_BREAK 0x00100000
2958 #define LVCFMT_FILL 0x00200000
2959 #define LVCFMT_WRAP 0x00400000
2960 #define LVCFMT_NO_TITLE 0x00800000
2961 #define LVCFMT_SPLIT_BUTTON 0x01000000
2962 #define LVCFMT_TILE_PLACEMENTMASK (LVCFMT_LINE_BREAK | LVCFMT_FILL)
2964 #define LVSIL_NORMAL 0
2965 #define LVSIL_SMALL 1
2966 #define LVSIL_STATE 2
2968 /* following 2 flags only for LVS_OWNERDATA listviews */
2969 /* and only in report or list mode */
2970 #define LVSICF_NOINVALIDATEALL 0x0001
2971 #define LVSICF_NOSCROLL 0x0002
2974 #define LVFI_PARAM 0X0001
2975 #define LVFI_STRING 0X0002
2976 #define LVFI_PARTIAL 0X0008
2977 #define LVFI_WRAP 0X0020
2978 #define LVFI_NEARESTXY 0X0040
2980 #define LVIF_TEXT 0x0001
2981 #define LVIF_IMAGE 0x0002
2982 #define LVIF_PARAM 0x0004
2983 #define LVIF_STATE 0x0008
2984 #define LVIF_INDENT 0x0010
2985 #define LVIF_GROUPID 0x0100
2986 #define LVIF_COLUMNS 0x0200
2987 #define LVIF_NORECOMPUTE 0x0800
2988 #define LVIF_DI_SETITEM 0x1000
2989 #define LVIF_COLFMT 0x00010000
2991 #define LVIR_BOUNDS 0x0000
2992 #define LVIR_ICON 0x0001
2993 #define LVIR_LABEL 0x0002
2994 #define LVIR_SELECTBOUNDS 0x0003
2996 #define LVIS_FOCUSED 0x0001
2997 #define LVIS_SELECTED 0x0002
2998 #define LVIS_CUT 0x0004
2999 #define LVIS_DROPHILITED 0x0008
3000 #define LVIS_ACTIVATING 0x0020
3002 #define LVIS_OVERLAYMASK 0x0F00
3003 #define LVIS_STATEIMAGEMASK 0xF000
3005 #define LVNI_ALL 0x0000
3006 #define LVNI_FOCUSED 0x0001
3007 #define LVNI_SELECTED 0x0002
3008 #define LVNI_CUT 0x0004
3009 #define LVNI_DROPHILITED 0x0008
3011 #define LVNI_ABOVE 0x0100
3012 #define LVNI_BELOW 0x0200
3013 #define LVNI_TOLEFT 0x0400
3014 #define LVNI_TORIGHT 0x0800
3016 #define LVHT_NOWHERE 0x0001
3017 #define LVHT_ONITEMICON 0x0002
3018 #define LVHT_ONITEMLABEL 0x0004
3019 #define LVHT_ONITEMSTATEICON 0x0008
3020 #define LVHT_ONITEM (LVHT_ONITEMICON|LVHT_ONITEMLABEL|LVHT_ONITEMSTATEICON)
3022 #define LVHT_ABOVE 0x0008
3023 #define LVHT_BELOW 0x0010
3024 #define LVHT_TORIGHT 0x0020
3025 #define LVHT_TOLEFT 0x0040
3027 #define LV_VIEW_ICON 0x0000
3028 #define LV_VIEW_DETAILS 0x0001
3029 #define LV_VIEW_SMALLICON 0x0002
3030 #define LV_VIEW_LIST 0x0003
3031 #define LV_VIEW_TILE 0x0004
3032 #define LV_VIEW_MAX 0x0004
3034 #define LVGF_NONE 0x00000000
3035 #define LVGF_HEADER 0x00000001
3036 #define LVGF_FOOTER 0x00000002
3037 #define LVGF_STATE 0x00000004
3038 #define LVGF_ALIGN 0x00000008
3039 #define LVGF_GROUPID 0x00000010
3040 #define LVGF_SUBTITLE 0x00000100
3041 #define LVGF_TASK 0x00000200
3042 #define LVGF_DESCRIPTIONTOP 0x00000400
3043 #define LVGF_DESCRIPTIONBOTTOM 0x00000800
3044 #define LVGF_TITLEIMAGE 0x00001000
3045 #define LVGF_EXTENDEDIMAGE 0x00002000
3046 #define LVGF_ITEMS 0x00004000
3047 #define LVGF_SUBSET 0x00008000
3048 #define LVGF_SUBSETITEMS 0x00010000
3050 #define LVGS_NORMAL 0x00000000
3051 #define LVGS_COLLAPSED 0x00000001
3052 #define LVGS_HIDDEN 0x00000002
3054 #define LVGA_HEADER_LEFT 0x00000001
3055 #define LVGA_HEADER_CENTER 0x00000002
3056 #define LVGA_HEADER_RIGHT 0x00000004
3057 #define LVGA_FOOTER_LEFT 0x00000008
3058 #define LVGA_FOOTER_CENTER 0x00000010
3059 #define LVGA_FOOTER_RIGHT 0x00000020
3061 #define LVGMF_NONE 0x00000000
3062 #define LVGMF_BORDERSIZE 0x00000001
3063 #define LVGMF_BORDERCOLOR 0x00000002
3064 #define LVGMF_TEXTCOLOR 0x00000004
3066 #define LVTVIF_AUTOSIZE 0x00000000
3067 #define LVTVIF_FIXEDWIDTH 0x00000001
3068 #define LVTVIF_FIXEDHEIGHT 0x00000002
3069 #define LVTVIF_FIXEDSIZE 0x00000003
3070 #define LVTVIF_EXTENDED 0x00000004
3072 #define LVTVIM_TILESIZE 0x00000001
3073 #define LVTVIM_COLUMNS 0x00000002
3074 #define LVTVIM_LABELMARGIN 0x00000004
3076 #define LVIM_AFTER 0x00000001
3078 #define LVM_FIRST 0x1000
3079 #define LVM_GETBKCOLOR (LVM_FIRST+0)
3080 #define LVM_SETBKCOLOR (LVM_FIRST+1)
3081 #define LVM_GETIMAGELIST (LVM_FIRST+2)
3082 #define LVM_SETIMAGELIST (LVM_FIRST+3)
3083 #define LVM_GETITEMCOUNT (LVM_FIRST+4)
3084 #define LVM_GETITEMA (LVM_FIRST+5)
3085 #define LVM_GETITEMW (LVM_FIRST+75)
3086 #define LVM_GETITEM WINELIB_NAME_AW(LVM_GETITEM)
3087 #define LVM_SETITEMA (LVM_FIRST+6)
3088 #define LVM_SETITEMW (LVM_FIRST+76)
3089 #define LVM_SETITEM WINELIB_NAME_AW(LVM_SETITEM)
3090 #define LVM_INSERTITEMA (LVM_FIRST+7)
3091 #define LVM_INSERTITEMW (LVM_FIRST+77)
3092 #define LVM_INSERTITEM WINELIB_NAME_AW(LVM_INSERTITEM)
3093 #define LVM_DELETEITEM (LVM_FIRST+8)
3094 #define LVM_DELETEALLITEMS (LVM_FIRST+9)
3095 #define LVM_GETCALLBACKMASK (LVM_FIRST+10)
3096 #define LVM_SETCALLBACKMASK (LVM_FIRST+11)
3097 #define LVM_GETNEXTITEM (LVM_FIRST+12)
3098 #define LVM_FINDITEMA (LVM_FIRST+13)
3099 #define LVM_FINDITEMW (LVM_FIRST+83)
3100 #define LVM_FINDITEM WINELIB_NAME_AW(LVM_FINDITEM)
3101 #define LVM_GETITEMRECT (LVM_FIRST+14)
3102 #define LVM_SETITEMPOSITION (LVM_FIRST+15)
3103 #define LVM_GETITEMPOSITION (LVM_FIRST+16)
3104 #define LVM_GETSTRINGWIDTHA (LVM_FIRST+17)
3105 #define LVM_GETSTRINGWIDTHW (LVM_FIRST+87)
3106 #define LVM_GETSTRINGWIDTH WINELIB_NAME_AW(LVM_GETSTRINGWIDTH)
3107 #define LVM_HITTEST (LVM_FIRST+18)
3108 #define LVM_ENSUREVISIBLE (LVM_FIRST+19)
3109 #define LVM_SCROLL (LVM_FIRST+20)
3110 #define LVM_REDRAWITEMS (LVM_FIRST+21)
3111 #define LVM_ARRANGE (LVM_FIRST+22)
3112 #define LVM_EDITLABELA (LVM_FIRST+23)
3113 #define LVM_EDITLABELW (LVM_FIRST+118)
3114 #define LVM_EDITLABEL WINELIB_NAME_AW(LVM_EDITLABEL)
3115 #define LVM_GETEDITCONTROL (LVM_FIRST+24)
3116 #define LVM_GETCOLUMNA (LVM_FIRST+25)
3117 #define LVM_GETCOLUMNW (LVM_FIRST+95)
3118 #define LVM_GETCOLUMN WINELIB_NAME_AW(LVM_GETCOLUMN)
3119 #define LVM_SETCOLUMNA (LVM_FIRST+26)
3120 #define LVM_SETCOLUMNW (LVM_FIRST+96)
3121 #define LVM_SETCOLUMN WINELIB_NAME_AW(LVM_SETCOLUMN)
3122 #define LVM_INSERTCOLUMNA (LVM_FIRST+27)
3123 #define LVM_INSERTCOLUMNW (LVM_FIRST+97)
3124 #define LVM_INSERTCOLUMN WINELIB_NAME_AW(LVM_INSERTCOLUMN)
3125 #define LVM_DELETECOLUMN (LVM_FIRST+28)
3126 #define LVM_GETCOLUMNWIDTH (LVM_FIRST+29)
3127 #define LVM_SETCOLUMNWIDTH (LVM_FIRST+30)
3128 #define LVM_GETHEADER (LVM_FIRST+31)
3130 #define LVM_CREATEDRAGIMAGE (LVM_FIRST+33)
3131 #define LVM_GETVIEWRECT (LVM_FIRST+34)
3132 #define LVM_GETTEXTCOLOR (LVM_FIRST+35)
3133 #define LVM_SETTEXTCOLOR (LVM_FIRST+36)
3134 #define LVM_GETTEXTBKCOLOR (LVM_FIRST+37)
3135 #define LVM_SETTEXTBKCOLOR (LVM_FIRST+38)
3136 #define LVM_GETTOPINDEX (LVM_FIRST+39)
3137 #define LVM_GETCOUNTPERPAGE (LVM_FIRST+40)
3138 #define LVM_GETORIGIN (LVM_FIRST+41)
3139 #define LVM_UPDATE (LVM_FIRST+42)
3140 #define LVM_SETITEMSTATE (LVM_FIRST+43)
3141 #define LVM_GETITEMSTATE (LVM_FIRST+44)
3142 #define LVM_GETITEMTEXTA (LVM_FIRST+45)
3143 #define LVM_GETITEMTEXTW (LVM_FIRST+115)
3144 #define LVM_GETITEMTEXT WINELIB_NAME_AW(LVM_GETITEMTEXT)
3145 #define LVM_SETITEMTEXTA (LVM_FIRST+46)
3146 #define LVM_SETITEMTEXTW (LVM_FIRST+116)
3147 #define LVM_SETITEMTEXT WINELIB_NAME_AW(LVM_SETITEMTEXT)
3148 #define LVM_SETITEMCOUNT (LVM_FIRST+47)
3149 #define LVM_SORTITEMS (LVM_FIRST+48)
3150 #define LVM_SORTITEMSEX (LVM_FIRST+81)
3151 #define LVM_SETITEMPOSITION32 (LVM_FIRST+49)
3152 #define LVM_GETSELECTEDCOUNT (LVM_FIRST+50)
3153 #define LVM_GETITEMSPACING (LVM_FIRST+51)
3154 #define LVM_GETISEARCHSTRINGA (LVM_FIRST+52)
3155 #define LVM_GETISEARCHSTRINGW (LVM_FIRST+117)
3156 #define LVM_GETISEARCHSTRING WINELIB_NAME_AW(LVM_GETISEARCHSTRING)
3157 #define LVM_SETICONSPACING (LVM_FIRST+53)
3158 #define LVM_SETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+54)
3159 #define LVM_GETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+55)
3160 #define LVM_GETSUBITEMRECT (LVM_FIRST+56)
3161 #define LVM_SUBITEMHITTEST (LVM_FIRST+57)
3162 #define LVM_SETCOLUMNORDERARRAY (LVM_FIRST+58)
3163 #define LVM_GETCOLUMNORDERARRAY (LVM_FIRST+59)
3164 #define LVM_SETHOTITEM (LVM_FIRST+60)
3165 #define LVM_GETHOTITEM (LVM_FIRST+61)
3166 #define LVM_SETHOTCURSOR (LVM_FIRST+62)
3167 #define LVM_GETHOTCURSOR (LVM_FIRST+63)
3168 #define LVM_APPROXIMATEVIEWRECT (LVM_FIRST+64)
3169 #define LVM_SETWORKAREAS (LVM_FIRST+65)
3170 #define LVM_GETSELECTIONMARK (LVM_FIRST+66)
3171 #define LVM_SETSELECTIONMARK (LVM_FIRST+67)
3172 #define LVM_SETBKIMAGEA (LVM_FIRST+68)
3173 #define LVM_SETBKIMAGEW (LVM_FIRST+138)
3174 #define LVM_SETBKIMAGE WINELIB_NAME_AW(LVM_SETBKIMAGE)
3175 #define LVM_GETBKIMAGEA (LVM_FIRST+69)
3176 #define LVM_GETBKIMAGEW (LVM_FIRST+139)
3177 #define LVM_GETBKIMAGE WINELIB_NAME_AW(LVM_GETBKIMAGE)
3178 #define LVM_GETWORKAREAS (LVM_FIRST+70)
3179 #define LVM_SETHOVERTIME (LVM_FIRST+71)
3180 #define LVM_GETHOVERTIME (LVM_FIRST+72)
3181 #define LVM_GETNUMBEROFWORKAREAS (LVM_FIRST+73)
3182 #define LVM_SETTOOLTIPS (LVM_FIRST+74)
3183 #define LVM_GETTOOLTIPS (LVM_FIRST+78)
3184 #define LVM_GETUNICODEFORMAT (CCM_GETUNICODEFORMAT)
3185 #define LVM_SETUNICODEFORMAT (CCM_SETUNICODEFORMAT)
3186 #define LVM_SETSELECTEDCOLUMN (LVM_FIRST + 140)
3187 #define LVM_SETTILEWIDTH (LVM_FIRST + 141)
3188 #define LVM_SETVIEW (LVM_FIRST + 142)
3189 #define LVM_GETVIEW (LVM_FIRST + 143)
3190 #define LVM_INSERTGROUP (LVM_FIRST + 145)
3191 #define LVM_SETGROUPINFO (LVM_FIRST + 147)
3192 #define LVM_GETGROUPINFO (LVM_FIRST + 149)
3193 #define LVM_REMOVEGROUP (LVM_FIRST + 150)
3194 #define LVM_MOVEGROUP (LVM_FIRST + 151)
3195 #define LVM_MOVEITEMTOGROUP (LVM_FIRST + 154)
3196 #define LVM_SETGROUPMETRICS (LVM_FIRST + 155)
3197 #define LVM_GETGROUPMETRICS (LVM_FIRST + 156)
3198 #define LVM_ENABLEGROUPVIEW (LVM_FIRST + 157)
3199 #define LVM_SORTGROUPS (LVM_FIRST + 158)
3200 #define LVM_INSERTGROUPSORTED (LVM_FIRST + 159)
3201 #define LVM_REMOVEALLGROUPS (LVM_FIRST + 160)
3202 #define LVM_HASGROUP (LVM_FIRST + 161)
3203 #define LVM_SETTILEVIEWINFO (LVM_FIRST + 162)
3204 #define LVM_GETTILEVIEWINFO (LVM_FIRST + 163)
3205 #define LVM_SETTILEINFO (LVM_FIRST + 164)
3206 #define LVM_GETTILEINFO (LVM_FIRST + 165)
3207 #define LVM_SETINSERTMARK (LVM_FIRST + 166)
3208 #define LVM_GETINSERTMARK (LVM_FIRST + 167)
3209 #define LVM_INSERTMARKHITTEST (LVM_FIRST + 168)
3210 #define LVM_GETINSERTMARKRECT (LVM_FIRST + 169)
3211 #define LVM_SETINSERTMARKCOLOR (LVM_FIRST + 170)
3212 #define LVM_GETINSERTMARKCOLOR (LVM_FIRST + 171)
3213 #define LVM_SETINFOTIP (LVM_FIRST + 173)
3214 #define LVM_GETSELECTEDCOLUMN (LVM_FIRST + 174)
3215 #define LVM_ISGROUPVIEWENABLED (LVM_FIRST + 175)
3216 #define LVM_GETOUTLINECOLOR (LVM_FIRST + 176)
3217 #define LVM_SETOUTLINECOLOR (LVM_FIRST + 177)
3218 #define LVM_CANCELEDITLABEL (LVM_FIRST + 179)
3219 #define LVM_MAPINDEXTOID (LVM_FIRST + 180)
3220 #define LVM_MAPIDTOINDEX (LVM_FIRST + 181)
3222 #define LVN_FIRST (0U-100U)
3223 #define LVN_LAST (0U-199U)
3224 #define LVN_ITEMCHANGING (LVN_FIRST-0)
3225 #define LVN_ITEMCHANGED (LVN_FIRST-1)
3226 #define LVN_INSERTITEM (LVN_FIRST-2)
3227 #define LVN_DELETEITEM (LVN_FIRST-3)
3228 #define LVN_DELETEALLITEMS (LVN_FIRST-4)
3229 #define LVN_BEGINLABELEDITA (LVN_FIRST-5)
3230 #define LVN_BEGINLABELEDITW (LVN_FIRST-75)
3231 #define LVN_BEGINLABELEDIT WINELIB_NAME_AW(LVN_BEGINLABELEDIT)
3232 #define LVN_ENDLABELEDITA (LVN_FIRST-6)
3233 #define LVN_ENDLABELEDITW (LVN_FIRST-76)
3234 #define LVN_ENDLABELEDIT WINELIB_NAME_AW(LVN_ENDLABELEDIT)
3235 #define LVN_COLUMNCLICK (LVN_FIRST-8)
3236 #define LVN_BEGINDRAG (LVN_FIRST-9)
3237 #define LVN_BEGINRDRAG (LVN_FIRST-11)
3238 #define LVN_ODCACHEHINT (LVN_FIRST-13)
3239 #define LVN_ITEMACTIVATE (LVN_FIRST-14)
3240 #define LVN_ODSTATECHANGED (LVN_FIRST-15)
3241 #define LVN_HOTTRACK (LVN_FIRST-21)
3242 #define LVN_ODFINDITEMA (LVN_FIRST-52)
3243 #define LVN_ODFINDITEMW (LVN_FIRST-79)
3244 #define LVN_ODFINDITEM WINELIB_NAME_AW(LVN_ODFINDITEM)
3245 #define LVN_GETDISPINFOA (LVN_FIRST-50)
3246 #define LVN_GETDISPINFOW (LVN_FIRST-77)
3247 #define LVN_GETDISPINFO WINELIB_NAME_AW(LVN_GETDISPINFO)
3248 #define LVN_SETDISPINFOA (LVN_FIRST-51)
3249 #define LVN_SETDISPINFOW (LVN_FIRST-78)
3250 #define LVN_SETDISPINFO WINELIB_NAME_AW(LVN_SETDISPINFO)
3251 #define LVN_KEYDOWN (LVN_FIRST-55)
3252 #define LVN_MARQUEEBEGIN (LVN_FIRST-56)
3253 #define LVN_GETINFOTIPA (LVN_FIRST-57)
3254 #define LVN_GETINFOTIPW (LVN_FIRST-58)
3255 #define LVN_GETINFOTIP WINELIB_NAME_AW(LVN_GETINFOTIP)
3256 #define LVN_INCREMENTALSEARCHA (LVN_FIRST-62)
3257 #define LVN_INCREMENTALSEARCHW (LVN_FIRST-63)
3258 #define LVN_INCREMENTALSEARCH WINELIB_NAME_AW(LVN_INCREMENTALSEARCH)
3259 #define LVN_BEGINSCROLL (LVN_FIRST-80)
3260 #define LVN_ENDSCROLL (LVN_FIRST-81)
3261 #define LVN_LINKCLICK (LVN_FIRST-84)
3262 #define LVN_ASYNCDRAWN (LVN_FIRST-86)
3263 #define LVN_GETEMPTYMARKUP (LVN_FIRST-87)
3265 /* LVN_INCREMENTALSEARCH return codes */
3266 #define LVNSCH_DEFAULT -1
3267 #define LVNSCH_ERROR -2
3268 #define LVNSCH_IGNORE -3
3270 #define LVA_DEFAULT 0x0000
3271 #define LVA_ALIGNLEFT 0x0001
3272 #define LVA_ALIGNTOP 0x0002
3273 #define LVA_SNAPTOGRID 0x0005
3275 typedef struct tagLVITEMA
3277 UINT mask;
3278 INT iItem;
3279 INT iSubItem;
3280 UINT state;
3281 UINT stateMask;
3282 LPSTR pszText;
3283 INT cchTextMax;
3284 INT iImage;
3285 LPARAM lParam;
3286 INT iIndent; /* (_WIN32_IE >= 0x0300) */
3287 int iGroupId; /* (_WIN32_IE >= 0x560) */
3288 UINT cColumns; /* (_WIN32_IE >= 0x560) */
3289 PUINT puColumns; /* (_WIN32_IE >= 0x560) */
3290 } LVITEMA, *LPLVITEMA;
3292 typedef struct tagLVITEMW
3294 UINT mask;
3295 INT iItem;
3296 INT iSubItem;
3297 UINT state;
3298 UINT stateMask;
3299 LPWSTR pszText;
3300 INT cchTextMax;
3301 INT iImage;
3302 LPARAM lParam;
3303 INT iIndent; /* (_WIN32_IE >= 0x0300) */
3304 int iGroupId; /* (_WIN32_IE >= 0x560) */
3305 UINT cColumns; /* (_WIN32_IE >= 0x560) */
3306 PUINT puColumns; /* (_WIN32_IE >= 0x560) */
3307 } LVITEMW, *LPLVITEMW;
3309 #define LVITEM WINELIB_NAME_AW(LVITEM)
3310 #define LPLVITEM WINELIB_NAME_AW(LPLVITEM)
3312 #define LVITEM_V1_SIZEA CCSIZEOF_STRUCT(LVITEMA, lParam)
3313 #define LVITEM_V1_SIZEW CCSIZEOF_STRUCT(LVITEMW, lParam)
3314 #define LVITEM_V1_SIZE WINELIB_NAME_AW(LVITEM_V1_SIZE)
3316 #define LV_ITEM LVITEM
3317 #define LV_ITEMA LVITEMA
3318 #define LV_ITEMW LVITEMW
3320 typedef struct LVSETINFOTIP
3322 UINT cbSize;
3323 DWORD dwFlags;
3324 LPWSTR pszText;
3325 int iItem;
3326 int iSubItem;
3327 } LVSETINFOTIP, *PLVSETINFOTIP;
3329 /* ListView background image structs and constants
3330 For _WIN32_IE version 0x400 and later. */
3332 typedef struct tagLVBKIMAGEA
3334 ULONG ulFlags;
3335 HBITMAP hbm;
3336 LPSTR pszImage;
3337 UINT cchImageMax;
3338 int xOffsetPercent;
3339 int yOffsetPercent;
3340 } LVBKIMAGEA, *LPLVBKIMAGEA;
3342 typedef struct tagLVBKIMAGEW
3344 ULONG ulFlags;
3345 HBITMAP hbm;
3346 LPWSTR pszImage;
3347 UINT cchImageMax;
3348 int xOffsetPercent;
3349 int yOffsetPercent;
3350 } LVBKIMAGEW, *LPLVBKIMAGEW;
3352 #define LVBKIMAGE WINELIB_NAME_AW(LVBKIMAGE)
3353 #define LPLVBKIMAGE WINELIB_NAME_AW(LPLVBKIMAGE)
3355 #define LVBKIF_SOURCE_NONE 0x00000000
3356 #define LVBKIF_SOURCE_HBITMAP 0x00000001
3357 #define LVBKIF_SOURCE_URL 0x00000002
3358 #define LVBKIF_SOURCE_MASK 0x00000003
3359 #define LVBKIF_STYLE_NORMAL 0x00000000
3360 #define LVBKIF_STYLE_TILE 0x00000010
3361 #define LVBKIF_STYLE_MASK 0x00000010
3362 #define LVBKIF_FLAG_TILEOFFSET 0x00000100
3363 #define LVBKIF_TYPE_WATERMARK 0x10000000
3365 #define ListView_SetBkImage(hwnd, plvbki) \
3366 (BOOL)SNDMSG((hwnd), LVM_SETBKIMAGE, 0, (LPARAM)plvbki)
3368 #define ListView_GetBkImage(hwnd, plvbki) \
3369 (BOOL)SNDMSG((hwnd), LVM_GETBKIMAGE, 0, (LPARAM)plvbki)
3371 typedef struct tagLVCOLUMNA
3373 UINT mask;
3374 INT fmt;
3375 INT cx;
3376 LPSTR pszText;
3377 INT cchTextMax;
3378 INT iSubItem;
3379 INT iImage; /* (_WIN32_IE >= 0x0300) */
3380 INT iOrder; /* (_WIN32_IE >= 0x0300) */
3381 } LVCOLUMNA, *LPLVCOLUMNA;
3383 typedef struct tagLVCOLUMNW
3385 UINT mask;
3386 INT fmt;
3387 INT cx;
3388 LPWSTR pszText;
3389 INT cchTextMax;
3390 INT iSubItem;
3391 INT iImage; /* (_WIN32_IE >= 0x0300) */
3392 INT iOrder; /* (_WIN32_IE >= 0x0300) */
3393 } LVCOLUMNW, *LPLVCOLUMNW;
3395 #define LVCOLUMN WINELIB_NAME_AW(LVCOLUMN)
3396 #define LPLVCOLUMN WINELIB_NAME_AW(LPLVCOLUMN)
3398 #define LVCOLUMN_V1_SIZEA CCSIZEOF_STRUCT(LVCOLUMNA, iSubItem)
3399 #define LVCOLUMN_V1_SIZEW CCSIZEOF_STRUCT(LVCOLUMNW, iSubItem)
3400 #define LVCOLUMN_V1_SIZE WINELIB_NAME_AW(LVCOLUMN_V1_SIZE)
3402 #define LV_COLUMN LVCOLUMN
3405 typedef struct tagNMLISTVIEW
3407 NMHDR hdr;
3408 INT iItem;
3409 INT iSubItem;
3410 UINT uNewState;
3411 UINT uOldState;
3412 UINT uChanged;
3413 POINT ptAction;
3414 LPARAM lParam;
3415 } NMLISTVIEW, *LPNMLISTVIEW;
3417 #define NM_LISTVIEW NMLISTVIEW
3418 #define LPNM_LISTVIEW LPNMLISTVIEW
3420 typedef struct tagNMITEMACTIVATE
3422 NMHDR hdr;
3423 int iItem;
3424 int iSubItem;
3425 UINT uNewState;
3426 UINT uOldState;
3427 UINT uChanged;
3428 POINT ptAction;
3429 LPARAM lParam;
3430 UINT uKeyFlags;
3431 } NMITEMACTIVATE, *LPNMITEMACTIVATE;
3433 #define LVKF_ALT 0x0001
3434 #define LVKF_CONTROL 0x0002
3435 #define LVKF_SHIFT 0x0004
3437 typedef struct tagLVDISPINFO
3439 NMHDR hdr;
3440 LVITEMA item;
3441 } NMLVDISPINFOA, *LPNMLVDISPINFOA;
3443 typedef struct tagLVDISPINFOW
3445 NMHDR hdr;
3446 LVITEMW item;
3447 } NMLVDISPINFOW, *LPNMLVDISPINFOW;
3449 #define NMLVDISPINFO WINELIB_NAME_AW(NMLVDISPINFO)
3450 #define LPNMLVDISPINFO WINELIB_NAME_AW(LPNMLVDISPINFO)
3452 #define LV_DISPINFO NMLVDISPINFO
3453 #define LV_DISPINFOA NMLVDISPINFOA
3454 #define LV_DISPINFOW NMLVDISPINFOW
3456 #include <pshpack1.h>
3457 typedef struct tagLVKEYDOWN
3459 NMHDR hdr;
3460 WORD wVKey;
3461 UINT flags;
3462 } NMLVKEYDOWN, *LPNMLVKEYDOWN;
3463 #include <poppack.h>
3465 #define LV_KEYDOWN NMLVKEYDOWN
3467 typedef struct tagNMLVGETINFOTIPA
3469 NMHDR hdr;
3470 DWORD dwFlags;
3471 LPSTR pszText;
3472 int cchTextMax;
3473 int iItem;
3474 int iSubItem;
3475 LPARAM lParam;
3476 } NMLVGETINFOTIPA, *LPNMLVGETINFOTIPA;
3478 typedef struct tagNMLVGETINFOTIPW
3480 NMHDR hdr;
3481 DWORD dwFlags;
3482 LPWSTR pszText;
3483 int cchTextMax;
3484 int iItem;
3485 int iSubItem;
3486 LPARAM lParam;
3487 } NMLVGETINFOTIPW, *LPNMLVGETINFOTIPW;
3489 #define NMLVGETINFOTIP WINELIB_NAME_AW(NMLVGETINFOTIP)
3490 #define LPNMLVGETINFOTIP WINELIB_NAME_AW(LPNMLVGETINFOTIP)
3492 typedef struct tagLVHITTESTINFO
3494 POINT pt;
3495 UINT flags;
3496 INT iItem;
3497 INT iSubItem;
3498 } LVHITTESTINFO, *LPLVHITTESTINFO;
3500 #define LV_HITTESTINFO LVHITTESTINFO
3501 #define _LV_HITTESTINFO tagLVHITTESTINFO
3502 #define LVHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(LVHITTESTINFO,iItem)
3504 typedef struct tagLVFINDINFOA
3506 UINT flags;
3507 LPCSTR psz;
3508 LPARAM lParam;
3509 POINT pt;
3510 UINT vkDirection;
3511 } LVFINDINFOA, *LPLVFINDINFOA;
3513 typedef struct tagLVFINDINFOW
3515 UINT flags;
3516 LPCWSTR psz;
3517 LPARAM lParam;
3518 POINT pt;
3519 UINT vkDirection;
3520 } LVFINDINFOW, *LPLVFINDINFOW;
3522 #define LVFINDINFO WINELIB_NAME_AW(LVFINDINFO)
3523 #define LPLVFINDINFO WINELIB_NAME_AW(LPLVFINDINFO)
3525 #define LV_FINDINFO LVFINDINFO
3526 #define LV_FINDINFOA LVFINDINFOA
3527 #define LV_FINDINFOW LVFINDINFOW
3529 /* Groups relates structures */
3531 typedef struct LVGROUP
3533 UINT cbSize;
3534 UINT mask;
3535 LPWSTR pszHeader;
3536 int cchHeader;
3537 LPWSTR pszFooter;
3538 int cchFooter;
3539 int iGroupId;
3540 UINT stateMask;
3541 UINT state;
3542 UINT uAlign;
3543 } LVGROUP, *PLVGROUP;
3545 typedef struct LVGROUPMETRICS
3547 UINT cbSize;
3548 UINT mask;
3549 UINT Left;
3550 UINT Top;
3551 UINT Right;
3552 UINT Bottom;
3553 COLORREF crLeft;
3554 COLORREF crTop;
3555 COLORREF crRight;
3556 COLORREF crBottom;
3557 COLORREF crRightHeader;
3558 COLORREF crFooter;
3559 } LVGROUPMETRICS, *PLVGROUPMETRICS;
3561 typedef INT (*PFNLVGROUPCOMPARE)(INT, INT, VOID*);
3563 typedef struct LVINSERTGROUPSORTED
3565 PFNLVGROUPCOMPARE pfnGroupCompare;
3566 LPVOID *pvData;
3567 LVGROUP lvGroup;
3568 } LVINSERTGROUPSORTED, *PLVINSERTGROUPSORTED;
3570 /* Tile related structures */
3572 typedef struct LVTILEINFO
3574 UINT cbSize;
3575 int iItem;
3576 UINT cColumns;
3577 PUINT puColumns;
3578 } LVTILEINFO, *PLVTILEINFO;
3580 typedef struct LVTILEVIEWINFO
3582 UINT cbSize;
3583 DWORD dwMask;
3584 DWORD dwFlags;
3585 SIZE sizeTile;
3586 int cLines;
3587 RECT rcLabelMargin;
3588 } LVTILEVIEWINFO, *PLVTILEVIEWINFO;
3590 typedef struct LVINSERTMARK
3592 UINT cbSize;
3593 DWORD dwFlags;
3594 int iItem;
3595 DWORD dwReserved;
3596 } LVINSERTMARK, *PLVINSERTMARK;
3598 typedef struct tagTCHITTESTINFO
3600 POINT pt;
3601 UINT flags;
3602 } TCHITTESTINFO, *LPTCHITTESTINFO;
3604 #define TC_HITTESTINFO TCHITTESTINFO
3606 typedef INT (CALLBACK *PFNLVCOMPARE)(LPARAM, LPARAM, LPARAM);
3608 #define NMLVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMLCUSTOMDRW, clrTextBk)
3610 typedef struct tagNMLVCUSTOMDRAW
3612 NMCUSTOMDRAW nmcd;
3613 COLORREF clrText;
3614 COLORREF clrTextBk;
3615 int iSubItem; /* (_WIN32_IE >= 0x0400) */
3616 DWORD dwItemType; /* (_WIN32_IE >= 0x560) */
3617 COLORREF clrFace; /* (_WIN32_IE >= 0x560) */
3618 int iIconEffect; /* (_WIN32_IE >= 0x560) */
3619 int iIconPhase; /* (_WIN32_IE >= 0x560) */
3620 int iPartId; /* (_WIN32_IE >= 0x560) */
3621 int iStateId; /* (_WIN32_IE >= 0x560) */
3622 RECT rcText; /* (_WIN32_IE >= 0x560) */
3623 UINT uAlign; /* (_WIN32_IE >= 0x560) */
3624 } NMLVCUSTOMDRAW, *LPNMLVCUSTOMDRAW;
3626 typedef struct tagNMLVCACHEHINT
3628 NMHDR hdr;
3629 INT iFrom;
3630 INT iTo;
3631 } NMLVCACHEHINT, *LPNMLVCACHEHINT;
3633 #define LPNM_CACHEHINT LPNMLVCACHEHINT
3634 #define PNM_CACHEHINT LPNMLVCACHEHINT
3635 #define NM_CACHEHINT NMLVCACHEHINT
3637 typedef struct tagNMLVFINDITEMA
3639 NMHDR hdr;
3640 int iStart;
3641 LVFINDINFOA lvfi;
3642 } NMLVFINDITEMA, *LPNMLVFINDITEMA;
3644 typedef struct tagNMLVFINDITEMW
3646 NMHDR hdr;
3647 int iStart;
3648 LVFINDINFOW lvfi;
3649 } NMLVFINDITEMW, *LPNMLVFINDITEMW;
3651 #define NMLVFINDITEM WINELIB_NAME_AW(NMLVFINDITEM)
3652 #define LPNMLVFINDITEM WINELIB_NAME_AW(LPNMLVFINDITEM)
3653 #define NM_FINDITEM NMLVFINDITEM
3654 #define LPNM_FINDITEM LPNMLVFINDITEM
3655 #define PNM_FINDITEM LPNMLVFINDITEM
3657 typedef struct tagNMLVODSTATECHANGE
3659 NMHDR hdr;
3660 int iFrom;
3661 int iTo;
3662 UINT uNewState;
3663 UINT uOldState;
3664 } NMLVODSTATECHANGE, *LPNMLVODSTATECHANGE;
3666 #define PNM_ODSTATECHANGE LPNMLVODSTATECHANGE
3667 #define LPNM_ODSTATECHANGE LPNMLVODSTATECHANGE
3668 #define NM_ODSTATECHANGE NMLVODSTATECHANGE
3670 typedef struct NMLVSCROLL
3672 NMHDR hdr;
3673 int dx;
3674 int dy;
3675 } NMLVSCROLL, *LPNMLVSCROLL;
3677 #define ListView_SetItemCount(hwnd,count) \
3678 (BOOL)SNDMSG((hwnd),LVM_SETITEMCOUNT,(WPARAM)(INT)(count),0)
3679 #define ListView_SetTextBkColor(hwnd,clrBk) \
3680 (BOOL)SNDMSG((hwnd),LVM_SETTEXTBKCOLOR,0,(LPARAM)(COLORREF)(clrBk))
3681 #define ListView_SetTextColor(hwnd,clrBk) \
3682 (BOOL)SNDMSG((hwnd),LVM_SETTEXTCOLOR,0,(LPARAM)(COLORREF)(clrBk))
3683 #define ListView_DeleteColumn(hwnd,col)\
3684 (LRESULT)SNDMSG((hwnd),LVM_DELETECOLUMN,0,(LPARAM)(INT)(col))
3685 #define ListView_GetColumnA(hwnd,x,col)\
3686 (LRESULT)SNDMSGA((hwnd),LVM_GETCOLUMNA,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNA)(col))
3687 #define ListView_GetColumnW(hwnd,x,col)\
3688 (LRESULT)SNDMSGW((hwnd),LVM_GETCOLUMNW,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNW)(col))
3689 #define ListView_GetColumn WINELIB_NAME_AW(ListView_GetColumn)
3690 #define ListView_SetColumnA(hwnd,x,col)\
3691 (LRESULT)SNDMSGA((hwnd),LVM_SETCOLUMNA,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNA)(col))
3692 #define ListView_SetColumnW(hwnd,x,col)\
3693 (LRESULT)SNDMSGW((hwnd),LVM_SETCOLUMNW,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNW)(col))
3694 #define ListView_SetColumn WINELIB_NAME_AW(ListView_SetColumn)
3695 #define ListView_GetColumnWidth(hwnd,x)\
3696 (INT)SNDMSG((hwnd),LVM_GETCOLUMNWIDTH,(WPARAM)(INT)(x),0L)
3697 #define ListView_SetColumnWidth(hwnd,x,width)\
3698 (BOOL)SNDMSG((hwnd),LVM_SETCOLUMNWIDTH,(WPARAM)(INT)(x),(LPARAM)(MAKELPARAM(width,0)))
3701 #define ListView_GetNextItem(hwnd,nItem,flags) \
3702 (INT)SNDMSG((hwnd),LVM_GETNEXTITEM,(WPARAM)(INT)(nItem),(LPARAM)(MAKELPARAM(flags,0)))
3703 #define ListView_FindItemA(hwnd,nItem,plvfi) \
3704 (INT)SNDMSGA((hwnd),LVM_FINDITEMA,(WPARAM)(INT)(nItem),(LPARAM)(LVFINDINFOA*)(plvfi))
3705 #define ListView_FindItemW(hwnd,nItem,plvfi) \
3706 (INT)SNDMSGW((hwnd),LVM_FINDITEMW,(WPARAM)(INT)(nItem),(LPARAM)(LVFINDINFOW*)(plvfi))
3707 #define ListView_FindItem WINELIB_NAME_AW(ListView_FindItem)
3709 #define ListView_Arrange(hwnd,code) \
3710 (INT)SNDMSG((hwnd),LVM_ARRANGE,(WPARAM)(INT)(code),0L)
3711 #define ListView_GetItemPosition(hwnd,i,ppt) \
3712 (INT)SNDMSG((hwnd),LVM_GETITEMPOSITION,(WPARAM)(INT)(i),(LPARAM)(LPPOINT)(ppt))
3713 #define ListView_GetItemRect(hwnd,i,prc,code) \
3714 (BOOL)SNDMSG((hwnd), LVM_GETITEMRECT, (WPARAM)(int)(i), \
3715 ((prc) ? (((RECT*)(prc))->left = (code),(LPARAM)(RECT \
3716 *)(prc)) : (LPARAM)(RECT*)NULL))
3717 #define ListView_SetItemA(hwnd,pitem) \
3718 (INT)SNDMSGA((hwnd),LVM_SETITEMA,0,(LPARAM)(const LVITEMA *)(pitem))
3719 #define ListView_SetItemW(hwnd,pitem) \
3720 (INT)SNDMSGW((hwnd),LVM_SETITEMW,0,(LPARAM)(const LVITEMW *)(pitem))
3721 #define ListView_SetItem WINELIB_NAME_AW(ListView_SetItem)
3722 #define ListView_SetItemState(hwnd,i,data,dataMask) \
3723 { LVITEM _LVi; _LVi.state = data; _LVi.stateMask = dataMask;\
3724 SNDMSG(hwnd, LVM_SETITEMSTATE, (WPARAM)(UINT)i, (LPARAM) (LPLVITEM)&_LVi);}
3725 #define ListView_GetItemState(hwnd,i,mask) \
3726 (UINT)SNDMSG((hwnd),LVM_GETITEMSTATE,(WPARAM)(UINT)(i),(LPARAM)(UINT)(mask))
3727 #define ListView_SetCheckState(hwndLV, i, bCheck) \
3728 { LVITEM _LVi; _LVi.state = INDEXTOSTATEIMAGEMASK((bCheck)?2:1); _LVi.stateMask = LVIS_STATEIMAGEMASK; \
3729 SNDMSG(hwndLV, LVM_SETITEMSTATE, (WPARAM)(UINT)(i), (LPARAM)(LPLVITEM)&_LVi);}
3730 #define ListView_GetCheckState(hwndLV, i) \
3731 (((UINT)SNDMSG((hwndLV), LVM_GETITEMSTATE, (i), LVIS_STATEIMAGEMASK) >> 12) - 1)
3732 #define ListView_GetCountPerPage(hwnd) \
3733 (BOOL)SNDMSG((hwnd),LVM_GETCOUNTPERPAGE,0,0L)
3734 #define ListView_GetImageList(hwnd,iImageList) \
3735 (HIMAGELIST)SNDMSG((hwnd),LVM_GETIMAGELIST,(WPARAM)(INT)(iImageList),0L)
3736 #define ListView_GetStringWidthA(hwnd,pstr) \
3737 (INT)SNDMSGA((hwnd),LVM_GETSTRINGWIDTHA,0,(LPARAM)(LPCSTR)(pstr))
3738 #define ListView_GetStringWidthW(hwnd,pstr) \
3739 (INT)SNDMSGW((hwnd),LVM_GETSTRINGWIDTHW,0,(LPARAM)(LPCWSTR)(pstr))
3740 #define ListView_GetStringWidth WINELIB_NAME_AW(ListView_GetStringWidth)
3741 #define ListView_GetTopIndex(hwnd) \
3742 (BOOL)SNDMSG((hwnd),LVM_GETTOPINDEX,0,0L)
3743 #define ListView_Scroll(hwnd,dx,dy) \
3744 (BOOL)SNDMSG((hwnd),LVM_SCROLL,(WPARAM)(INT)(dx),(LPARAM)(INT)(dy))
3745 #define ListView_EnsureVisible(hwnd,i,fPartialOk) \
3746 (BOOL)SNDMSG((hwnd),LVM_ENSUREVISIBLE,(WPARAM)(INT)i,(LPARAM)(BOOL)fPartialOk)
3747 #define ListView_SetBkColor(hwnd,clrBk) \
3748 (BOOL)SNDMSG((hwnd),LVM_SETBKCOLOR,0,(LPARAM)(COLORREF)(clrBk))
3749 #define ListView_SetImageList(hwnd,himl,iImageList) \
3750 (HIMAGELIST)SNDMSG((hwnd),LVM_SETIMAGELIST,(WPARAM)(iImageList),(LPARAM)(HIMAGELIST)(himl))
3751 #define ListView_GetItemCount(hwnd) \
3752 (INT)SNDMSG((hwnd),LVM_GETITEMCOUNT,0,0L)
3753 #define ListView_RedrawItems(hwnd,first,last) \
3754 (BOOL)SNDMSG((hwnd),LVM_REDRAWITEMS,(WPARAM)(INT)(first),(LPARAM)(INT)(last))
3755 #define ListView_GetEditControl(hwnd) \
3756 (HWND)SNDMSG((hwnd), LVM_GETEDITCONTROL, 0, 0)
3757 #define ListView_GetTextColor(hwnd) \
3758 (COLORREF)SNDMSG((hwnd), LVM_GETTEXTCOLOR, 0, 0)
3759 #define ListView_GetTextBkColor(hwnd) \
3760 (COLORREF)SNDMSG((hwnd), LVM_GETTEXTBKCOLOR, 0, 0)
3761 #define ListView_GetBkColor(hwnd) \
3762 (COLORREF)SNDMSG((hwnd), LVM_GETBKCOLOR, 0, 0)
3763 #define ListView_GetItemA(hwnd,pitem) \
3764 (BOOL)SNDMSGA((hwnd),LVM_GETITEMA,0,(LPARAM)(LVITEMA *)(pitem))
3765 #define ListView_GetItemW(hwnd,pitem) \
3766 (BOOL)SNDMSGW((hwnd),LVM_GETITEMW,0,(LPARAM)(LVITEMW *)(pitem))
3767 #define ListView_GetItem WINELIB_NAME_AW(ListView_GetItem)
3768 #define ListView_GetOrigin(hwnd,ppt) \
3769 (BOOL)SNDMSG((hwnd),LVM_GETORIGIN,0,(LPARAM)(POINT *)(ppt))
3771 #define ListView_HitTest(hwnd,pinfo) \
3772 (INT)SNDMSG((hwnd),LVM_HITTEST,0,(LPARAM)(LPLVHITTESTINFO)(pinfo))
3774 #define ListView_InsertItemA(hwnd,pitem) \
3775 (INT)SNDMSGA((hwnd),LVM_INSERTITEMA,0,(LPARAM)(const LVITEMA *)(pitem))
3776 #define ListView_InsertItemW(hwnd,pitem) \
3777 (INT)SNDMSGW((hwnd),LVM_INSERTITEMW,0,(LPARAM)(const LVITEMW *)(pitem))
3778 #define ListView_InsertItem WINELIB_NAME_AW(ListView_InsertItem)
3780 #define ListView_DeleteAllItems(hwnd) \
3781 (BOOL)SNDMSG((hwnd),LVM_DELETEALLITEMS,0,0L)
3783 #define ListView_InsertColumnA(hwnd,iCol,pcol) \
3784 (INT)SNDMSGA((hwnd),LVM_INSERTCOLUMNA,(WPARAM)(INT)(iCol),(LPARAM)(const LVCOLUMNA *)(pcol))
3785 #define ListView_InsertColumnW(hwnd,iCol,pcol) \
3786 (INT)SNDMSGW((hwnd),LVM_INSERTCOLUMNW,(WPARAM)(INT)(iCol),(LPARAM)(const LVCOLUMNW *)(pcol))
3787 #define ListView_InsertColumn WINELIB_NAME_AW(ListView_InsertColumn)
3789 #define ListView_SortItems(hwndLV,_pfnCompare,_lPrm) \
3790 (BOOL)SNDMSG((hwndLV),LVM_SORTITEMS,(WPARAM)(LPARAM)_lPrm,(LPARAM)(PFNLVCOMPARE)_pfnCompare)
3791 #define ListView_SortItemsEx(hwndLV, _pfnCompare, _lPrm) \
3792 (BOOL)SNDMSG((hwndLV), LVM_SORTITEMSEX, (WPARAM)(LPARAM)(_lPrm), (LPARAM)(PFNLVCOMPARE)(_pfnCompare))
3794 #define ListView_SetItemPosition(hwndLV, i, x, y) \
3795 (BOOL)SNDMSG((hwndLV),LVM_SETITEMPOSITION,(WPARAM)(INT)(i),MAKELPARAM((x),(y)))
3796 #define ListView_GetSelectedCount(hwndLV) \
3797 (UINT)SNDMSG((hwndLV),LVM_GETSELECTEDCOUNT,0,0L)
3799 #define ListView_EditLabelA(hwndLV, i) \
3800 (HWND)SNDMSG((hwndLV),LVM_EDITLABELA,(WPARAM)(int)(i), 0L)
3801 #define ListView_EditLabelW(hwndLV, i) \
3802 (HWND)SNDMSG((hwndLV),LVM_EDITLABELW,(WPARAM)(int)(i), 0L)
3803 #define ListView_EditLabel WINELIB_NAME_AW(ListView_EditLabel)
3805 #define ListView_GetItemTextA(hwndLV, i, _iSubItem, _pszText, _cchTextMax) \
3807 LVITEMA _LVi;\
3808 _LVi.iSubItem = _iSubItem;\
3809 _LVi.cchTextMax = _cchTextMax;\
3810 _LVi.pszText = _pszText;\
3811 SNDMSGA(hwndLV, LVM_GETITEMTEXTA, (WPARAM)(i), (LPARAM)&_LVi);\
3813 #define ListView_GetItemTextW(hwndLV, i, _iSubItem, _pszText, _cchTextMax) \
3815 LVITEMW _LVi;\
3816 _LVi.iSubItem = _iSubItem;\
3817 _LVi.cchTextMax = _cchTextMax;\
3818 _LVi.pszText = _pszText;\
3819 SNDMSGW(hwndLV, LVM_GETITEMTEXTW, (WPARAM)(i), (LPARAM)&_LVi);\
3821 #define ListView_GetItemText WINELIB_NAME_AW(ListView_GetItemText)
3822 #define ListView_SetItemPosition32(hwnd,n,x1,y1) \
3823 { POINT ptNewPos; ptNewPos.x = (x1); ptNewPos.y = (y1); SNDMSG((hwnd), LVM_SETITEMPOSITION32, (WPARAM)(int)(n), (LPARAM)&ptNewPos); }
3824 #define ListView_SetItemTextA(hwndLV, i, _iSubItem, _pszText) \
3825 { LVITEMA _LVi; _LVi.iSubItem = _iSubItem; _LVi.pszText = _pszText;\
3826 SNDMSGA(hwndLV, LVM_SETITEMTEXTA, (WPARAM)i, (LPARAM) (LVITEMA*)&_LVi);}
3827 #define ListView_SetItemTextW(hwndLV, i, _iSubItem, _pszText) \
3828 { LVITEMW _LVi; _LVi.iSubItem = _iSubItem; _LVi.pszText = _pszText;\
3829 SNDMSGW(hwndLV, LVM_SETITEMTEXTW, (WPARAM)i, (LPARAM) (LVITEMW*)& _LVi);}
3830 #define ListView_SetItemText WINELIB_NAME_AW(ListView_SetItemText)
3832 #define ListView_DeleteItem(hwndLV, i) \
3833 (BOOL)SNDMSG(hwndLV, LVM_DELETEITEM, (WPARAM)(int)(i), 0L)
3834 #define ListView_Update(hwndLV, i) \
3835 (BOOL)SNDMSG((hwndLV), LVM_UPDATE, (WPARAM)(i), 0L)
3836 #define ListView_GetColumnOrderArray(hwndLV, iCount, pi) \
3837 (BOOL)SNDMSG((hwndLV), LVM_GETCOLUMNORDERARRAY, (WPARAM)iCount, (LPARAM)(LPINT)pi)
3838 #define ListView_GetExtendedListViewStyle(hwndLV) \
3839 (DWORD)SNDMSG((hwndLV), LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0L)
3840 #define ListView_GetHotCursor(hwndLV) \
3841 (HCURSOR)SNDMSG((hwndLV), LVM_GETHOTCURSOR, 0, 0L)
3842 #define ListView_GetHotItem(hwndLV) \
3843 (int)SNDMSG((hwndLV), LVM_GETHOTITEM, 0, 0L)
3844 #define ListView_GetItemSpacing(hwndLV, fSmall) \
3845 (DWORD)SNDMSG((hwndLV), LVM_GETITEMSPACING, (WPARAM)fSmall, 0L)
3846 #define ListView_GetSubItemRect(hwndLV, iItem, iSubItem, code, prc) \
3847 (BOOL)SNDMSG((hwndLV), LVM_GETSUBITEMRECT, (WPARAM)(int)(iItem), \
3848 ((prc) ? ((((LPRECT)(prc))->top = iSubItem), (((LPRECT)(prc))->left = code), (LPARAM)(prc)) : 0))
3849 #define ListView_GetToolTips(hwndLV) \
3850 (HWND)SNDMSG((hwndLV), LVM_GETTOOLTIPS, 0, 0L)
3851 #define ListView_SetColumnOrderArray(hwndLV, iCount, pi) \
3852 (BOOL)SNDMSG((hwndLV), LVM_SETCOLUMNORDERARRAY, (WPARAM)iCount, (LPARAM)(LPINT)pi)
3853 #define ListView_SetExtendedListViewStyle(hwndLV, dw) \
3854 (DWORD)SNDMSG((hwndLV), LVM_SETEXTENDEDLISTVIEWSTYLE, 0, (LPARAM)dw)
3855 #define ListView_SetExtendedListViewStyleEx(hwndLV, dwMask, dw) \
3856 (DWORD)SNDMSG((hwndLV), LVM_SETEXTENDEDLISTVIEWSTYLE, (WPARAM)dwMask, (LPARAM)dw)
3857 #define ListView_SetHotCursor(hwndLV, hcur) \
3858 (HCURSOR)SNDMSG((hwndLV), LVM_SETHOTCURSOR, 0, (LPARAM)hcur)
3859 #define ListView_SetHotItem(hwndLV, i) \
3860 (int)SNDMSG((hwndLV), LVM_SETHOTITEM, (WPARAM)i, 0L)
3861 #define ListView_SetIconSpacing(hwndLV, cx, cy) \
3862 (DWORD)SNDMSG((hwndLV), LVM_SETICONSPACING, 0, MAKELONG(cx,cy))
3863 #define ListView_SetToolTips(hwndLV, hwndNewHwnd) \
3864 (HWND)SNDMSG((hwndLV), LVM_SETTOOLTIPS, (WPARAM)hwndNewHwnd, 0L)
3865 #define ListView_SubItemHitTest(hwndLV, plvhti) \
3866 (int)SNDMSG((hwndLV), LVM_SUBITEMHITTEST, 0, (LPARAM)(LPLVHITTESTINFO)(plvhti))
3867 #define ListView_GetSelectionMark(hwndLV) \
3868 (int)SNDMSG((hwndLV), LVM_GETSELECTIONMARK, 0, 0)
3869 #define ListView_SetSelectionMark(hwndLV, iItem) \
3870 (int)SNDMSG((hwndLV), LVM_SETSELECTIONMARK, 0, (LPARAM)(iItem))
3871 #define ListView_GetViewRect(hwndLV, prc) \
3872 (BOOL)SNDMSG((hwndLV),LVM_GETVIEWRECT,0,(LPARAM)(LPRECT)(prc))
3873 #define ListView_GetHeader(hwndLV) \
3874 (HWND)SNDMSG((hwndLV),LVM_GETHEADER,0,0L)
3875 #define ListView_SetSelectedColumn(hwnd, iCol) \
3876 SNDMSG((hwnd), LVM_SETSELECTEDCOLUMN, (WPARAM)iCol, 0)
3877 #define ListView_SetTileWidth(hwnd, cpWidth) \
3878 SNDMSG((hwnd), LVM_SETTILEWIDTH, (WPARAM)cpWidth, 0)
3879 #define ListView_SetView(hwnd, iView) \
3880 (DWORD)SNDMSG((hwnd), LVM_SETVIEW, (WPARAM)(DWORD)iView, 0)
3881 #define ListView_GetView(hwnd) \
3882 (DWORD)SNDMSG((hwnd), LVM_GETVIEW, 0, 0)
3883 #define ListView_InsertGroup(hwnd, index, pgrp) \
3884 SNDMSG((hwnd), LVM_INSERTGROUP, (WPARAM)index, (LPARAM)pgrp)
3885 #define ListView_SetGroupHeaderImageList(hwnd, himl) \
3886 SNDMSG((hwnd), LVM_SETIMAGELIST, (WPARAM)LVSIL_GROUPHEADER, (LPARAM)himl)
3887 #define ListView_GetGroupHeaderImageList(hwnd) \
3888 SNDMSG((hwnd), LVM_GETIMAGELIST, (WPARAM)LVSIL_GROUPHEADER, 0)
3889 #define ListView_SetGroupInfo(hwnd, iGroupId, pgrp) \
3890 SNDMSG((hwnd), LVM_SETGROUPINFO, (WPARAM)iGroupId, (LPARAM)pgrp)
3891 #define ListView_GetGroupInfo(hwnd, iGroupId, pgrp) \
3892 SNDMSG((hwnd), LVM_GETGROUPINFO, (WPARAM)iGroupId, (LPARAM)pgrp)
3893 #define ListView_RemoveGroup(hwnd, iGroupId) \
3894 SNDMSG((hwnd), LVM_REMOVEGROUP, (WPARAM)iGroupId, 0)
3895 #define ListView_MoveGroup(hwnd, iGroupId, toIndex) \
3896 SNDMSG((hwnd), LVM_MOVEGROUP, (WPARAM)iGroupId, (LPARAM)toIndex)
3897 #define ListView_MoveItemToGroup(hwnd, idItemFrom, idGroupTo) \
3898 SNDMSG((hwnd), LVM_MOVEITEMTOGROUP, (WPARAM)idItemFrom, (LPARAM)idGroupTo)
3899 #define ListView_SetGroupMetrics(hwnd, pGroupMetrics) \
3900 SNDMSG((hwnd), LVM_SETGROUPMETRICS, 0, (LPARAM)pGroupMetrics)
3901 #define ListView_GetGroupMetrics(hwnd, pGroupMetrics) \
3902 SNDMSG((hwnd), LVM_GETGROUPMETRICS, 0, (LPARAM)pGroupMetrics)
3903 #define ListView_EnableGroupView(hwnd, fEnable) \
3904 SNDMSG((hwnd), LVM_ENABLEGROUPVIEW, (WPARAM)fEnable, 0)
3905 #define ListView_SortGroups(hwnd, _pfnGroupCompate, _plv) \
3906 SNDMSG((hwnd), LVM_SORTGROUPS, (WPARAM)_pfnGroupCompate, (LPARAM)_plv)
3907 #define ListView_InsertGroupSorted(hwnd, structInsert) \
3908 SNDMSG((hwnd), LVM_INSERTGROUPSORTED, (WPARAM)structInsert, 0)
3909 #define ListView_RemoveAllGroups(hwnd) \
3910 SNDMSG((hwnd), LVM_REMOVEALLGROUPS, 0, 0)
3911 #define ListView_HasGroup(hwnd, dwGroupId) \
3912 SNDMSG((hwnd), LVM_HASGROUP, dwGroupId, 0)
3913 #define ListView_SetTileViewInfo(hwnd, ptvi) \
3914 SNDMSG((hwnd), LVM_SETTILEVIEWINFO, 0, (LPARAM)ptvi)
3915 #define ListView_GetTileViewInfo(hwnd, ptvi) \
3916 SNDMSG((hwnd), LVM_GETTILEVIEWINFO, 0, (LPARAM)ptvi)
3917 #define ListView_SetTileInfo(hwnd, pti) \
3918 SNDMSG((hwnd), LVM_SETTILEINFO, 0, (LPARAM)pti)
3919 #define ListView_GetTileInfo(hwnd, pti) \
3920 SNDMSG((hwnd), LVM_GETTILEINFO, 0, (LPARAM)pti)
3921 #define ListView_SetInsertMark(hwnd, lvim) \
3922 (BOOL)SNDMSG((hwnd), LVM_SETINSERTMARK, (WPARAM) 0, (LPARAM) (lvim))
3923 #define ListView_GetInsertMark(hwnd, lvim) \
3924 (BOOL)SNDMSG((hwnd), LVM_GETINSERTMARK, (WPARAM) 0, (LPARAM) (lvim))
3925 #define ListView_InsertMarkHitTest(hwnd, point, lvim) \
3926 (int)SNDMSG((hwnd), LVM_INSERTMARKHITTEST, (WPARAM)(LPPOINT)(point), (LPARAM)(LPLVINSERTMARK)(lvim))
3927 #define ListView_GetInsertMarkRect(hwnd, rc) \
3928 (int)SNDMSG((hwnd), LVM_GETINSERTMARKRECT, (WPARAM)0, (LPARAM)(LPRECT)(rc))
3929 #define ListView_SetInsertMarkColor(hwnd, color) \
3930 (COLORREF)SNDMSG((hwnd), LVM_SETINSERTMARKCOLOR, (WPARAM)0, (LPARAM)(COLORREF)(color))
3931 #define ListView_GetInsertMarkColor(hwnd) \
3932 (COLORREF)SNDMSG((hwnd), LVM_GETINSERTMARKCOLOR, (WPARAM)0, (LPARAM)0)
3933 #define ListView_SetInfoTip(hwndLV, plvInfoTip)\
3934 (BOOL)SNDMSG((hwndLV), LVM_SETINFOTIP, (WPARAM)0, (LPARAM)plvInfoTip)
3935 #define ListView_GetSelectedColumn(hwnd) \
3936 (UINT)SNDMSG((hwnd), LVM_GETSELECTEDCOLUMN, 0, 0)
3937 #define ListView_IsGroupViewEnabled(hwnd) \
3938 (BOOL)SNDMSG((hwnd), LVM_ISGROUPVIEWENABLED, 0, 0)
3939 #define ListView_GetOutlineColor(hwnd) \
3940 (COLORREF)SNDMSG((hwnd), LVM_GETOUTLINECOLOR, 0, 0)
3941 #define ListView_SetOutlineColor(hwnd, color) \
3942 (COLORREF)SNDMSG((hwnd), LVM_SETOUTLINECOLOR, (WPARAM)0, (LPARAM)(COLORREF)(color))
3943 #define ListView_CancelEditLabel(hwnd) \
3944 (VOID)SNDMSG((hwnd), LVM_CANCELEDITLABEL, (WPARAM)0, (LPARAM)0)
3945 #define ListView_MapIndexToID(hwnd, index) \
3946 (UINT)SNDMSG((hwnd), LVM_MAPINDEXTOID, (WPARAM)index, (LPARAM)0)
3947 #define ListView_MapIDToIndex(hwnd, id) \
3948 (UINT)SNDMSG((hwnd), LVM_MAPIDTOINDEX, (WPARAM)id, (LPARAM)0)
3949 #define ListView_SetUnicodeFormat(hwnd, fUnicode) \
3950 (BOOL)SNDMSG((hwnd), LVM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0)
3951 #define ListView_GetUnicodeFormat(hwnd) \
3952 (BOOL)SNDMSG((hwnd), LVM_GETUNICODEFORMAT, 0, 0)
3954 /* Tab Control */
3956 #define WC_TABCONTROLA "SysTabControl32"
3957 #if defined(__GNUC__)
3958 # define WC_TABCONTROLW (const WCHAR []){ 'S','y','s', \
3959 'T','a','b','C','o','n','t','r','o','l','3','2',0 }
3960 #elif defined(_MSC_VER)
3961 # define WC_TABCONTROLW L"SysTabControl32"
3962 #else
3963 static const WCHAR WC_TABCONTROLW[] = { 'S','y','s',
3964 'T','a','b','C','o','n','t','r','o','l','3','2',0 };
3965 #endif
3966 #define WC_TABCONTROL WINELIB_NAME_AW(WC_TABCONTROL)
3968 /* tab control styles */
3969 #define TCS_SCROLLOPPOSITE 0x0001 /* assumes multiline tab */
3970 #define TCS_BOTTOM 0x0002
3971 #define TCS_RIGHT 0x0002
3972 #define TCS_MULTISELECT 0x0004 /* allow multi-select in button mode */
3973 #define TCS_FLATBUTTONS 0x0008
3974 #define TCS_FORCEICONLEFT 0x0010
3975 #define TCS_FORCELABELLEFT 0x0020
3976 #define TCS_HOTTRACK 0x0040
3977 #define TCS_VERTICAL 0x0080
3978 #define TCS_TABS 0x0000
3979 #define TCS_BUTTONS 0x0100
3980 #define TCS_SINGLELINE 0x0000
3981 #define TCS_MULTILINE 0x0200
3982 #define TCS_RIGHTJUSTIFY 0x0000
3983 #define TCS_FIXEDWIDTH 0x0400
3984 #define TCS_RAGGEDRIGHT 0x0800
3985 #define TCS_FOCUSONBUTTONDOWN 0x1000
3986 #define TCS_OWNERDRAWFIXED 0x2000
3987 #define TCS_TOOLTIPS 0x4000
3988 #define TCS_FOCUSNEVER 0x8000
3989 #define TCS_EX_FLATSEPARATORS 0x00000001 /* to be used with */
3990 #define TCS_EX_REGISTERDROP 0x00000002 /* TCM_SETEXTENDEDSTYLE */
3993 #define TCM_FIRST 0x1300
3995 #define TCM_GETIMAGELIST (TCM_FIRST + 2)
3996 #define TCM_SETIMAGELIST (TCM_FIRST + 3)
3997 #define TCM_GETITEMCOUNT (TCM_FIRST + 4)
3998 #define TCM_GETITEM WINELIB_NAME_AW(TCM_GETITEM)
3999 #define TCM_GETITEMA (TCM_FIRST + 5)
4000 #define TCM_GETITEMW (TCM_FIRST + 60)
4001 #define TCM_SETITEMA (TCM_FIRST + 6)
4002 #define TCM_SETITEMW (TCM_FIRST + 61)
4003 #define TCM_SETITEM WINELIB_NAME_AW(TCM_SETITEM)
4004 #define TCM_INSERTITEMA (TCM_FIRST + 7)
4005 #define TCM_INSERTITEMW (TCM_FIRST + 62)
4006 #define TCM_INSERTITEM WINELIB_NAME_AW(TCM_INSERTITEM)
4007 #define TCM_DELETEITEM (TCM_FIRST + 8)
4008 #define TCM_DELETEALLITEMS (TCM_FIRST + 9)
4009 #define TCM_GETITEMRECT (TCM_FIRST + 10)
4010 #define TCM_GETCURSEL (TCM_FIRST + 11)
4011 #define TCM_SETCURSEL (TCM_FIRST + 12)
4012 #define TCM_HITTEST (TCM_FIRST + 13)
4013 #define TCM_SETITEMEXTRA (TCM_FIRST + 14)
4014 #define TCM_ADJUSTRECT (TCM_FIRST + 40)
4015 #define TCM_SETITEMSIZE (TCM_FIRST + 41)
4016 #define TCM_REMOVEIMAGE (TCM_FIRST + 42)
4017 #define TCM_SETPADDING (TCM_FIRST + 43)
4018 #define TCM_GETROWCOUNT (TCM_FIRST + 44)
4019 #define TCM_GETTOOLTIPS (TCM_FIRST + 45)
4020 #define TCM_SETTOOLTIPS (TCM_FIRST + 46)
4021 #define TCM_GETCURFOCUS (TCM_FIRST + 47)
4022 #define TCM_SETCURFOCUS (TCM_FIRST + 48)
4023 #define TCM_SETMINTABWIDTH (TCM_FIRST + 49)
4024 #define TCM_DESELECTALL (TCM_FIRST + 50)
4025 #define TCM_HIGHLIGHTITEM (TCM_FIRST + 51)
4026 #define TCM_SETEXTENDEDSTYLE (TCM_FIRST + 52)
4027 #define TCM_GETEXTENDEDSTYLE (TCM_FIRST + 53)
4028 #define TCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
4029 #define TCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
4032 #define TCIF_TEXT 0x0001
4033 #define TCIF_IMAGE 0x0002
4034 #define TCIF_RTLREADING 0x0004
4035 #define TCIF_PARAM 0x0008
4036 #define TCIF_STATE 0x0010
4038 #define TCIS_BUTTONPRESSED 0x0001
4039 #define TCIS_HIGHLIGHTED 0x0002
4041 /* TabCtrl Macros */
4042 #define TabCtrl_GetImageList(hwnd) \
4043 (HIMAGELIST)SNDMSG((hwnd), TCM_GETIMAGELIST, 0, 0L)
4044 #define TabCtrl_SetImageList(hwnd, himl) \
4045 (HIMAGELIST)SNDMSG((hwnd), TCM_SETIMAGELIST, 0, (LPARAM)(UINT)(HIMAGELIST)(himl))
4046 #define TabCtrl_GetItemCount(hwnd) \
4047 (int)SNDMSG((hwnd), TCM_GETITEMCOUNT, 0, 0L)
4048 #define TabCtrl_GetItemA(hwnd, iItem, pitem) \
4049 (BOOL)SNDMSGA((hwnd), TCM_GETITEMA, (WPARAM)(int)iItem, (LPARAM)(TCITEMA *)(pitem))
4050 #define TabCtrl_GetItemW(hwnd, iItem, pitem) \
4051 (BOOL)SNDMSGW((hwnd), TCM_GETITEMW, (WPARAM)(int)iItem, (LPARAM)(TCITEMW *)(pitem))
4052 #define TabCtrl_GetItem WINELIB_NAME_AW(TabCtrl_GetItem)
4053 #define TabCtrl_SetItemA(hwnd, iItem, pitem) \
4054 (BOOL)SNDMSGA((hwnd), TCM_SETITEMA, (WPARAM)(int)iItem, (LPARAM)(TCITEMA *)(pitem))
4055 #define TabCtrl_SetItemW(hwnd, iItem, pitem) \
4056 (BOOL)SNDMSGW((hwnd), TCM_SETITEMW, (WPARAM)(int)iItem, (LPARAM)(TCITEMW *)(pitem))
4057 #define TabCtrl_SetItem WINELIB_NAME_AW(TabCtrl_SetItem)
4058 #define TabCtrl_InsertItemA(hwnd, iItem, pitem) \
4059 (int)SNDMSGA((hwnd), TCM_INSERTITEMA, (WPARAM)(int)iItem, (LPARAM)(const TCITEMA *)(pitem))
4060 #define TabCtrl_InsertItemW(hwnd, iItem, pitem) \
4061 (int)SNDMSGW((hwnd), TCM_INSERTITEMW, (WPARAM)(int)iItem, (LPARAM)(const TCITEMW *)(pitem))
4062 #define TabCtrl_InsertItem WINELIB_NAME_AW(TabCtrl_InsertItem)
4063 #define TabCtrl_DeleteItem(hwnd, i) \
4064 (BOOL)SNDMSG((hwnd), TCM_DELETEITEM, (WPARAM)(int)(i), 0L)
4065 #define TabCtrl_DeleteAllItems(hwnd) \
4066 (BOOL)SNDMSG((hwnd), TCM_DELETEALLITEMS, 0, 0L)
4067 #define TabCtrl_GetItemRect(hwnd, i, prc) \
4068 (BOOL)SNDMSG((hwnd), TCM_GETITEMRECT, (WPARAM)(int)(i), (LPARAM)(RECT *)(prc))
4069 #define TabCtrl_GetCurSel(hwnd) \
4070 (int)SNDMSG((hwnd), TCM_GETCURSEL, 0, 0)
4071 #define TabCtrl_SetCurSel(hwnd, i) \
4072 (int)SNDMSG((hwnd), TCM_SETCURSEL, (WPARAM)i, 0)
4073 #define TabCtrl_HitTest(hwndTC, pinfo) \
4074 (int)SNDMSG((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO *)(pinfo))
4075 #define TabCtrl_SetItemExtra(hwndTC, cb) \
4076 (BOOL)SNDMSG((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0L)
4077 #define TabCtrl_AdjustRect(hwnd, bLarger, prc) \
4078 (int)SNDMSG(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)bLarger, (LPARAM)(RECT *)prc)
4079 #define TabCtrl_SetItemSize(hwnd, x, y) \
4080 (DWORD)SNDMSG((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y))
4081 #define TabCtrl_RemoveImage(hwnd, i) \
4082 (void)SNDMSG((hwnd), TCM_REMOVEIMAGE, i, 0L)
4083 #define TabCtrl_SetPadding(hwnd, cx, cy) \
4084 (void)SNDMSG((hwnd), TCM_SETPADDING, 0, MAKELPARAM(cx, cy))
4085 #define TabCtrl_GetRowCount(hwnd) \
4086 (int)SNDMSG((hwnd), TCM_GETROWCOUNT, 0, 0L)
4087 #define TabCtrl_GetToolTips(hwnd) \
4088 (HWND)SNDMSG((hwnd), TCM_GETTOOLTIPS, 0, 0L)
4089 #define TabCtrl_SetToolTips(hwnd, hwndTT) \
4090 (void)SNDMSG((hwnd), TCM_SETTOOLTIPS, (WPARAM)hwndTT, 0L)
4091 #define TabCtrl_GetCurFocus(hwnd) \
4092 (int)SNDMSG((hwnd), TCM_GETCURFOCUS, 0, 0)
4093 #define TabCtrl_SetCurFocus(hwnd, i) \
4094 SNDMSG((hwnd),TCM_SETCURFOCUS, i, 0)
4095 #define TabCtrl_SetMinTabWidth(hwnd, x) \
4096 (int)SNDMSG((hwnd), TCM_SETMINTABWIDTH, 0, x)
4097 #define TabCtrl_DeselectAll(hwnd, fExcludeFocus)\
4098 (void)SNDMSG((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)
4099 #define TabCtrl_GetUnicodeFormat(hwnd) \
4100 (BOOL)SNDMSG((hwnd), TCM_GETUNICODEFORMAT, 0, 0)
4101 #define TabCtrl_SetUnicodeFormat(hwnd, fUnicode) \
4102 (BOOL)SNDMSG((hwnd), TCM_SETUNICODEFORMAT, (WPARAM)fUnicode, 0)
4103 #define TabCtrl_GetExtendedStyle(hwnd) \
4104 (BOOL)SNDMSG((hwnd), TCM_GETEXTENDEDSTYLE, 0, 0)
4105 #define TabCtrl_SetExtendedStyle(hwnd, dwExStyle) \
4106 (BOOL)SNDMSG((hwnd), TCM_GETEXTENDEDSTYLE, 0, (LPARAM)dwExStyle)
4107 #define TabCtrl_HighlightItem(hwnd, i, fHighlight) \
4108 (BOOL)SNDMSG((hwnd), TCM_HIGHLIGHTITEM, (WPARAM)i, (LPARAM)MAKELONG(fHighlight, 0))
4110 /* constants for TCHITTESTINFO */
4112 #define TCHT_NOWHERE 0x01
4113 #define TCHT_ONITEMICON 0x02
4114 #define TCHT_ONITEMLABEL 0x04
4115 #define TCHT_ONITEM (TCHT_ONITEMICON | TCHT_ONITEMLABEL)
4117 typedef struct tagTCITEMHEADERA
4119 UINT mask;
4120 UINT lpReserved1;
4121 UINT lpReserved2;
4122 LPSTR pszText;
4123 int cchTextMax;
4124 int iImage;
4125 } TCITEMHEADERA, *LPTCITEMHEADERA;
4127 typedef struct tagTCITEMHEADERW
4129 UINT mask;
4130 UINT lpReserved1;
4131 UINT lpReserved2;
4132 LPWSTR pszText;
4133 int cchTextMax;
4134 int iImage;
4135 } TCITEMHEADERW, *LPTCITEMHEADERW;
4137 #define TCITEMHEADER WINELIB_NAME_AW(TCITEMHEADER)
4138 #define LPTCITEMHEADER WINELIB_NAME_AW(LPTCITEMHEADER)
4139 #define TC_ITEMHEADER WINELIB_NAME_AW(TCITEMHEADER)
4140 #define LPTC_ITEMHEADER WINELIB_NAME_AW(LPTCITEMHEADER)
4142 typedef struct tagTCITEMA
4144 UINT mask;
4145 UINT dwState;
4146 UINT dwStateMask;
4147 LPSTR pszText;
4148 INT cchTextMax;
4149 INT iImage;
4150 LPARAM lParam;
4151 } TCITEMA, *LPTCITEMA;
4153 typedef struct tagTCITEMW
4155 UINT mask;
4156 DWORD dwState;
4157 DWORD dwStateMask;
4158 LPWSTR pszText;
4159 INT cchTextMax;
4160 INT iImage;
4161 LPARAM lParam;
4162 } TCITEMW, *LPTCITEMW;
4164 #define TCITEM WINELIB_NAME_AW(TCITEM)
4165 #define LPTCITEM WINELIB_NAME_AW(LPTCITEM)
4166 #define TC_ITEM WINELIB_NAME_AW(TCITEM)
4167 #define LPTC_ITEM WINELIB_NAME_AW(LPTCITEM)
4169 #define TCN_FIRST (0U-550U)
4170 #define TCN_LAST (0U-580U)
4171 #define TCN_KEYDOWN (TCN_FIRST - 0)
4172 #define TCN_SELCHANGE (TCN_FIRST - 1)
4173 #define TCN_SELCHANGING (TCN_FIRST - 2)
4174 #define TCN_GETOBJECT (TCN_FIRST - 3)
4176 #include <pshpack1.h>
4177 typedef struct tagTCKEYDOWN
4179 NMHDR hdr;
4180 WORD wVKey;
4181 UINT flags;
4182 } NMTCKEYDOWN;
4183 #include <poppack.h>
4185 #define TC_KEYDOWN NMTCKEYDOWN
4187 /* ComboBoxEx control */
4189 #define WC_COMBOBOXEXA "ComboBoxEx32"
4190 #if defined(__GNUC__)
4191 # define WC_COMBOBOXEXW (const WCHAR []){ 'C','o','m','b','o', \
4192 'B','o','x','E','x','3','2',0 }
4193 #elif defined(_MSC_VER)
4194 # define WC_COMBOBOXEXW L"ComboBoxEx32"
4195 #else
4196 static const WCHAR WC_COMBOBOXEXW[] = { 'C','o','m','b','o',
4197 'B','o','x','E','x','3','2',0 };
4198 #endif
4199 #define WC_COMBOBOXEX WINELIB_NAME_AW(WC_COMBOBOXEX)
4201 #define CBEIF_TEXT 0x00000001
4202 #define CBEIF_IMAGE 0x00000002
4203 #define CBEIF_SELECTEDIMAGE 0x00000004
4204 #define CBEIF_OVERLAY 0x00000008
4205 #define CBEIF_INDENT 0x00000010
4206 #define CBEIF_LPARAM 0x00000020
4207 #define CBEIF_DI_SETITEM 0x10000000
4209 #define CBEM_INSERTITEMA (WM_USER+1)
4210 #define CBEM_INSERTITEMW (WM_USER+11)
4211 #define CBEM_INSERTITEM WINELIB_NAME_AW(CBEM_INSERTITEM)
4212 #define CBEM_SETIMAGELIST (WM_USER+2)
4213 #define CBEM_GETIMAGELIST (WM_USER+3)
4214 #define CBEM_GETITEMA (WM_USER+4)
4215 #define CBEM_GETITEMW (WM_USER+13)
4216 #define CBEM_GETITEM WINELIB_NAME_AW(CBEM_GETITEM)
4217 #define CBEM_SETITEMA (WM_USER+5)
4218 #define CBEM_SETITEMW (WM_USER+12)
4219 #define CBEM_SETITEM WINELIB_NAME_AW(CBEM_SETITEM)
4220 #define CBEM_DELETEITEM CB_DELETESTRING
4221 #define CBEM_GETCOMBOCONTROL (WM_USER+6)
4222 #define CBEM_GETEDITCONTROL (WM_USER+7)
4223 #define CBEM_SETEXSTYLE (WM_USER+8)
4224 #define CBEM_GETEXSTYLE (WM_USER+9)
4225 #define CBEM_GETEXTENDEDSTYLE (WM_USER+9)
4226 #define CBEM_SETEXTENDEDSTYLE (WM_USER+14)
4227 #define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
4228 #define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
4229 #define CBEM_HASEDITCHANGED (WM_USER+10)
4230 #define CBEM_SETWINDOWTHEME CCM_SETWINDOWTHEME
4232 #define CBEIF_TEXT 0x00000001
4233 #define CBEIF_IMAGE 0x00000002
4234 #define CBEIF_SELECTEDIMAGE 0x00000004
4235 #define CBEIF_OVERLAY 0x00000008
4236 #define CBEIF_INDENT 0x00000010
4237 #define CBEIF_LPARAM 0x00000020
4238 #define CBEIF_DI_SETITEM 0x10000000
4240 #define CBEN_FIRST (0U-800U)
4241 #define CBEN_LAST (0U-830U)
4243 #define CBEN_GETDISPINFOA (CBEN_FIRST - 0)
4244 #define CBEN_GETDISPINFOW (CBEN_FIRST - 7)
4245 #define CBEN_GETDISPINFO WINELIB_NAME_AW(CBEN_GETDISPINFO)
4246 #define CBEN_INSERTITEM (CBEN_FIRST - 1)
4247 #define CBEN_DELETEITEM (CBEN_FIRST - 2)
4248 #define CBEN_BEGINEDIT (CBEN_FIRST - 4)
4249 #define CBEN_ENDEDITA (CBEN_FIRST - 5)
4250 #define CBEN_ENDEDITW (CBEN_FIRST - 6)
4251 #define CBEN_ENDEDIT WINELIB_NAME_AW(CBEN_ENDEDIT)
4252 #define CBEN_DRAGBEGINA (CBEN_FIRST - 8)
4253 #define CBEN_DRAGBEGINW (CBEN_FIRST - 9)
4254 #define CBEN_DRAGBEGIN WINELIB_NAME_AW(CBEN_DRAGBEGIN)
4256 #define CBES_EX_NOEDITIMAGE 0x00000001
4257 #define CBES_EX_NOEDITIMAGEINDENT 0x00000002
4258 #define CBES_EX_PATHWORDBREAKPROC 0x00000004
4259 #define CBES_EX_NOSIZELIMIT 0x00000008
4260 #define CBES_EX_CASESENSITIVE 0x00000010
4263 typedef struct tagCOMBOBOXEXITEMA
4265 UINT mask;
4266 INT_PTR iItem;
4267 LPSTR pszText;
4268 int cchTextMax;
4269 int iImage;
4270 int iSelectedImage;
4271 int iOverlay;
4272 int iIndent;
4273 LPARAM lParam;
4274 } COMBOBOXEXITEMA, *PCOMBOBOXEXITEMA;
4275 typedef COMBOBOXEXITEMA const *PCCOMBOEXITEMA; /* Yes, there's a BOX missing */
4277 typedef struct tagCOMBOBOXEXITEMW
4279 UINT mask;
4280 INT_PTR iItem;
4281 LPWSTR pszText;
4282 int cchTextMax;
4283 int iImage;
4284 int iSelectedImage;
4285 int iOverlay;
4286 int iIndent;
4287 LPARAM lParam;
4288 } COMBOBOXEXITEMW, *PCOMBOBOXEXITEMW;
4289 typedef COMBOBOXEXITEMW const *PCCOMBOEXITEMW; /* Yes, there's a BOX missing */
4291 #define COMBOBOXEXITEM WINELIB_NAME_AW(COMBOBOXEXITEM)
4292 #define PCOMBOBOXEXITEM WINELIB_NAME_AW(PCOMBOBOXEXITEM)
4293 #define PCCOMBOBOXEXITEM WINELIB_NAME_AW(PCCOMBOEXITEM) /* Yes, there's a BOX missing */
4295 #define CBENF_KILLFOCUS 1
4296 #define CBENF_RETURN 2
4297 #define CBENF_ESCAPE 3
4298 #define CBENF_DROPDOWN 4
4300 #define CBEMAXSTRLEN 260
4302 typedef struct tagNMCBEENDEDITW
4304 NMHDR hdr;
4305 BOOL fChanged;
4306 int iNewSelection;
4307 WCHAR szText[CBEMAXSTRLEN];
4308 int iWhy;
4309 } NMCBEENDEDITW, *LPNMCBEENDEDITW, *PNMCBEENDEDITW;
4311 typedef struct tagNMCBEENDEDITA
4313 NMHDR hdr;
4314 BOOL fChanged;
4315 int iNewSelection;
4316 char szText[CBEMAXSTRLEN];
4317 int iWhy;
4318 } NMCBEENDEDITA, *LPNMCBEENDEDITA, *PNMCBEENDEDITA;
4320 #define NMCBEENDEDIT WINELIB_NAME_AW(NMCBEENDEDIT)
4321 #define LPNMCBEENDEDIT WINELIB_NAME_AW(LPNMCBEENDEDIT)
4322 #define PNMCBEENDEDIT WINELIB_NAME_AW(PNMCBEENDEDIT)
4324 typedef struct
4326 NMHDR hdr;
4327 COMBOBOXEXITEMA ceItem;
4328 } NMCOMBOBOXEXA, *PNMCOMBOBOXEXA;
4330 typedef struct
4332 NMHDR hdr;
4333 COMBOBOXEXITEMW ceItem;
4334 } NMCOMBOBOXEXW, *PNMCOMBOBOXEXW;
4336 #define NMCOMBOBOXEX WINELIB_NAME_AW(NMCOMBOBOXEX)
4337 #define PNMCOMBOBOXEX WINELIB_NAME_AW(PNMCOMBOBOXEX)
4339 typedef struct
4341 NMHDR hdr;
4342 int iItemid;
4343 char szText[CBEMAXSTRLEN];
4344 } NMCBEDRAGBEGINA, *PNMCBEDRAGBEGINA, *LPNMCBEDRAGBEGINA;
4346 typedef struct
4348 NMHDR hdr;
4349 int iItemid;
4350 WCHAR szText[CBEMAXSTRLEN];
4351 } NMCBEDRAGBEGINW, *PNMCBEDRAGBEGINW, *LPNMCBEDRAGBEGINW;
4353 #define NMCBEDRAGBEGIN WINELIB_NAME_AW(NMCBEDRAGBEGIN)
4354 #define PNMCBEDRAGBEGIN WINELIB_NAME_AW(PNMCBEDRAGBEGIN)
4355 #define LPNMCBEDRAGBEGIN WINELIB_NAME_AW(LPNMCBEDRAGBEGIN)
4358 /* Hotkey control */
4360 #define HOTKEY_CLASSA "msctls_hotkey32"
4361 #if defined(__GNUC__)
4362 # define HOTKEY_CLASSW (const WCHAR []){ 'm','s','c','t','l','s','_', \
4363 'h','o','t','k','e','y','3','2',0 }
4364 #elif defined(_MSC_VER)
4365 # define HOTKEY_CLASSW L"msctls_hotkey32"
4366 #else
4367 static const WCHAR HOTKEY_CLASSW[] = { 'm','s','c','t','l','s','_',
4368 'h','o','t','k','e','y','3','2',0 };
4369 #endif
4370 #define HOTKEY_CLASS WINELIB_NAME_AW(HOTKEY_CLASS)
4372 #define HOTKEYF_SHIFT 0x01
4373 #define HOTKEYF_CONTROL 0x02
4374 #define HOTKEYF_ALT 0x04
4375 #define HOTKEYF_EXT 0x08
4377 #define HKCOMB_NONE 0x0001
4378 #define HKCOMB_S 0x0002
4379 #define HKCOMB_C 0x0004
4380 #define HKCOMB_A 0x0008
4381 #define HKCOMB_SC 0x0010
4382 #define HKCOMB_SA 0x0020
4383 #define HKCOMB_CA 0x0040
4384 #define HKCOMB_SCA 0x0080
4386 #define HKM_SETHOTKEY (WM_USER+1)
4387 #define HKM_GETHOTKEY (WM_USER+2)
4388 #define HKM_SETRULES (WM_USER+3)
4391 /* animate control */
4393 #define ANIMATE_CLASSA "SysAnimate32"
4394 #if defined(__GNUC__)
4395 # define ANIMATE_CLASSW (const WCHAR []){ 'S','y','s', \
4396 'A','n','i','m','a','t','e','3','2',0 }
4397 #elif defined(_MSC_VER)
4398 # define ANIMATE_CLASSW L"SysAnimate32"
4399 #else
4400 static const WCHAR ANIMATE_CLASSW[] = { 'S','y','s',
4401 'A','n','i','m','a','t','e','3','2',0 };
4402 #endif
4403 #define ANIMATE_CLASS WINELIB_NAME_AW(ANIMATE_CLASS)
4405 #define ACS_CENTER 0x0001
4406 #define ACS_TRANSPARENT 0x0002
4407 #define ACS_AUTOPLAY 0x0004
4408 #define ACS_TIMER 0x0008 /* no threads, just timers */
4410 #define ACM_OPENA (WM_USER+100)
4411 #define ACM_OPENW (WM_USER+103)
4412 #define ACM_OPEN WINELIB_NAME_AW(ACM_OPEN)
4413 #define ACM_PLAY (WM_USER+101)
4414 #define ACM_STOP (WM_USER+102)
4416 #define ACN_START 1
4417 #define ACN_STOP 2
4419 #define Animate_CreateA(hwndP,id,dwStyle,hInstance) \
4420 CreateWindowA(ANIMATE_CLASSA,NULL,dwStyle,0,0,0,0,hwndP,(HMENU)(id),hInstance,NULL)
4421 #define Animate_CreateW(hwndP,id,dwStyle,hInstance) \
4422 CreateWindowW(ANIMATE_CLASSW,NULL,dwStyle,0,0,0,0,hwndP,(HMENU)(id),hInstance,NULL)
4423 #define Animate_Create WINELIB_NAME_AW(Animate_Create)
4424 #define Animate_OpenA(hwnd,szName) \
4425 (BOOL)SNDMSGA(hwnd,ACM_OPENA,0,(LPARAM)(LPSTR)(szName))
4426 #define Animate_OpenW(hwnd,szName) \
4427 (BOOL)SNDMSGW(hwnd,ACM_OPENW,0,(LPARAM)(LPWSTR)(szName))
4428 #define Animate_Open WINELIB_NAME_AW(Animate_Open)
4429 #define Animate_OpenExA(hwnd,hInst,szName) \
4430 (BOOL)SNDMSGA(hwnd,ACM_OPENA,(WPARAM)hInst,(LPARAM)(LPSTR)(szName))
4431 #define Animate_OpenExW(hwnd,hInst,szName) \
4432 (BOOL)SNDMSGW(hwnd,ACM_OPENW,(WPARAM)hInst,(LPARAM)(LPWSTR)(szName))
4433 #define Animate_OpenEx WINELIB_NAME_AW(Animate_OpenEx)
4434 #define Animate_Play(hwnd,from,to,rep) \
4435 (BOOL)SNDMSG(hwnd,ACM_PLAY,(WPARAM)(UINT)(rep),(LPARAM)MAKELONG(from,to))
4436 #define Animate_Stop(hwnd) \
4437 (BOOL)SNDMSG(hwnd,ACM_STOP,0,0)
4438 #define Animate_Close(hwnd) \
4439 (BOOL)SNDMSG(hwnd,ACM_OPENA,0,0)
4440 #define Animate_Seek(hwnd,frame) \
4441 (BOOL)SNDMSG(hwnd,ACM_PLAY,1,(LPARAM)MAKELONG(frame,frame))
4444 /**************************************************************************
4445 * IP Address control
4448 #define WC_IPADDRESSA "SysIPAddress32"
4449 #if defined(__GNUC__)
4450 # define WC_IPADDRESSW (const WCHAR []){ 'S','y','s', \
4451 'I','P','A','d','d','r','e','s','s','3','2',0 }
4452 #elif defined(_MSC_VER)
4453 # define WC_IPADDRESSW L"SysIPAddress32"
4454 #else
4455 static const WCHAR WC_IPADDRESSW[] = { 'S','y','s',
4456 'I','P','A','d','d','r','e','s','s','3','2',0 };
4457 #endif
4458 #define WC_IPADDRESS WINELIB_NAME_AW(WC_IPADDRESS)
4460 #define IPM_CLEARADDRESS (WM_USER+100)
4461 #define IPM_SETADDRESS (WM_USER+101)
4462 #define IPM_GETADDRESS (WM_USER+102)
4463 #define IPM_SETRANGE (WM_USER+103)
4464 #define IPM_SETFOCUS (WM_USER+104)
4465 #define IPM_ISBLANK (WM_USER+105)
4467 #define IPN_FIRST (0U-860U)
4468 #define IPN_LAST (0U-879U)
4469 #define IPN_FIELDCHANGED (IPN_FIRST-0)
4471 typedef struct tagNMIPADDRESS
4473 NMHDR hdr;
4474 INT iField;
4475 INT iValue;
4476 } NMIPADDRESS, *LPNMIPADDRESS;
4478 #define MAKEIPRANGE(low,high) \
4479 ((LPARAM)(WORD)(((BYTE)(high)<<8)+(BYTE)(low)))
4480 #define MAKEIPADDRESS(b1,b2,b3,b4) \
4481 ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<<16)+((DWORD)(b3)<<8)+((DWORD)(b4))))
4483 #define FIRST_IPADDRESS(x) (((x)>>24)&0xff)
4484 #define SECOND_IPADDRESS(x) (((x)>>16)&0xff)
4485 #define THIRD_IPADDRESS(x) (((x)>>8)&0xff)
4486 #define FOURTH_IPADDRESS(x) ((x)&0xff)
4489 /**************************************************************************
4490 * Native Font control
4493 #define WC_NATIVEFONTCTLA "NativeFontCtl"
4494 #if defined(__GNUC__)
4495 # define WC_NATIVEFONTCTLW (const WCHAR []){ 'N','a','t','i','v','e', \
4496 'F','o','n','t','C','t','l',0 }
4497 #elif defined(_MSC_VER)
4498 # define WC_NATIVEFONTCTLW L"NativeFontCtl"
4499 #else
4500 static const WCHAR WC_NATIVEFONTCTLW[] = { 'N','a','t','i','v','e',
4501 'F','o','n','t','C','t','l',0 };
4502 #endif
4503 #define WC_NATIVEFONTCTL WINELIB_NAME_AW(WC_NATIVEFONTCTL)
4505 #define NFS_EDIT 0x0001
4506 #define NFS_STATIC 0x0002
4507 #define NFS_LISTCOMBO 0x0004
4508 #define NFS_BUTTON 0x0008
4509 #define NFS_ALL 0x0010
4512 /**************************************************************************
4513 * Month calendar control
4517 #define MONTHCAL_CLASSA "SysMonthCal32"
4518 #if defined(__GNUC__)
4519 # define MONTHCAL_CLASSW (const WCHAR []){ 'S','y','s', \
4520 'M','o','n','t','h','C','a','l','3','2',0 }
4521 #elif defined(_MSC_VER)
4522 # define MONTHCAL_CLASSW L"SysMonthCal32"
4523 #else
4524 static const WCHAR MONTHCAL_CLASSW[] = { 'S','y','s',
4525 'M','o','n','t','h','C','a','l','3','2',0 };
4526 #endif
4527 #define MONTHCAL_CLASS WINELIB_NAME_AW(MONTHCAL_CLASS)
4529 #define MCM_FIRST 0x1000
4530 #define MCN_FIRST (0U-750U)
4531 #define MCN_LAST (0U-759U)
4534 #define MCM_GETCURSEL (MCM_FIRST + 1)
4535 #define MCM_SETCURSEL (MCM_FIRST + 2)
4536 #define MCM_GETMAXSELCOUNT (MCM_FIRST + 3)
4537 #define MCM_SETMAXSELCOUNT (MCM_FIRST + 4)
4538 #define MCM_GETSELRANGE (MCM_FIRST + 5)
4539 #define MCM_SETSELRANGE (MCM_FIRST + 6)
4540 #define MCM_GETMONTHRANGE (MCM_FIRST + 7)
4541 #define MCM_SETDAYSTATE (MCM_FIRST + 8)
4542 #define MCM_GETMINREQRECT (MCM_FIRST + 9)
4543 #define MCM_SETCOLOR (MCM_FIRST + 10)
4544 #define MCM_GETCOLOR (MCM_FIRST + 11)
4545 #define MCM_SETTODAY (MCM_FIRST + 12)
4546 #define MCM_GETTODAY (MCM_FIRST + 13)
4547 #define MCM_HITTEST (MCM_FIRST + 14)
4548 #define MCM_SETFIRSTDAYOFWEEK (MCM_FIRST + 15)
4549 #define MCM_GETFIRSTDAYOFWEEK (MCM_FIRST + 16)
4550 #define MCM_GETRANGE (MCM_FIRST + 17)
4551 #define MCM_SETRANGE (MCM_FIRST + 18)
4552 #define MCM_GETMONTHDELTA (MCM_FIRST + 19)
4553 #define MCM_SETMONTHDELTA (MCM_FIRST + 20)
4554 #define MCM_GETMAXTODAYWIDTH (MCM_FIRST + 21)
4555 #define MCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
4556 #define MCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
4559 /* Notifications */
4561 #define MCN_SELCHANGE (MCN_FIRST + 1)
4562 #define MCN_GETDAYSTATE (MCN_FIRST + 3)
4563 #define MCN_SELECT (MCN_FIRST + 4)
4565 #define MCSC_BACKGROUND 0
4566 #define MCSC_TEXT 1
4567 #define MCSC_TITLEBK 2
4568 #define MCSC_TITLETEXT 3
4569 #define MCSC_MONTHBK 4
4570 #define MCSC_TRAILINGTEXT 5
4572 #define MCS_DAYSTATE 0x0001
4573 #define MCS_MULTISELECT 0x0002
4574 #define MCS_WEEKNUMBERS 0x0004
4575 #define MCS_NOTODAY 0x0010
4576 #define MCS_NOTODAYCIRCLE 0x0008
4578 #define MCHT_TITLE 0x00010000
4579 #define MCHT_CALENDAR 0x00020000
4580 #define MCHT_TODAYLINK 0x00030000
4582 #define MCHT_NEXT 0x01000000
4583 #define MCHT_PREV 0x02000000
4584 #define MCHT_NOWHERE 0x00000000
4585 #define MCHT_TITLEBK (MCHT_TITLE)
4586 #define MCHT_TITLEMONTH (MCHT_TITLE | 0x0001)
4587 #define MCHT_TITLEYEAR (MCHT_TITLE | 0x0002)
4588 #define MCHT_TITLEBTNNEXT (MCHT_TITLE | MCHT_NEXT | 0x0003)
4589 #define MCHT_TITLEBTNPREV (MCHT_TITLE | MCHT_PREV | 0x0003)
4591 #define MCHT_CALENDARBK (MCHT_CALENDAR)
4592 #define MCHT_CALENDARDATE (MCHT_CALENDAR | 0x0001)
4593 #define MCHT_CALENDARDATENEXT (MCHT_CALENDARDATE | MCHT_NEXT)
4594 #define MCHT_CALENDARDATEPREV (MCHT_CALENDARDATE | MCHT_PREV)
4595 #define MCHT_CALENDARDAY (MCHT_CALENDAR | 0x0002)
4596 #define MCHT_CALENDARWEEKNUM (MCHT_CALENDAR | 0x0003)
4600 #define GMR_VISIBLE 0
4601 #define GMR_DAYSTATE 1
4604 /* Month calendar's structures */
4607 typedef struct {
4608 UINT cbSize;
4609 POINT pt;
4610 UINT uHit;
4611 SYSTEMTIME st;
4612 } MCHITTESTINFO, *PMCHITTESTINFO;
4614 typedef struct tagNMSELCHANGE
4616 NMHDR nmhdr;
4617 SYSTEMTIME stSelStart;
4618 SYSTEMTIME stSelEnd;
4619 } NMSELCHANGE, *LPNMSELCHANGE;
4621 typedef NMSELCHANGE NMSELECT, *LPNMSELECT;
4622 typedef DWORD MONTHDAYSTATE, *LPMONTHDAYSTATE;
4624 typedef struct tagNMDAYSTATE
4626 NMHDR nmhdr;
4627 SYSTEMTIME stStart;
4628 int cDayState;
4629 LPMONTHDAYSTATE prgDayState;
4630 } NMDAYSTATE, *LPNMDAYSTATE;
4633 /* macros */
4635 #define MonthCal_GetCurSel(hmc, pst) \
4636 (BOOL)SNDMSGA(hmc, MCM_GETCURSEL, 0, (LPARAM)(pst))
4637 #define MonthCal_SetCurSel(hmc, pst) \
4638 (BOOL)SNDMSGA(hmc, MCM_SETCURSEL, 0, (LPARAM)(pst))
4639 #define MonthCal_GetMaxSelCount(hmc) \
4640 (DWORD)SNDMSGA(hmc, MCM_GETMAXSELCOUNT, 0, 0L)
4641 #define MonthCal_SetMaxSelCount(hmc, n) \
4642 (BOOL)SNDMSGA(hmc, MCM_SETMAXSELCOUNT, (WPARAM)(n), 0L)
4643 #define MonthCal_GetSelRange(hmc, rgst) \
4644 SNDMSGA(hmc, MCM_GETSELRANGE, 0, (LPARAM) (rgst))
4645 #define MonthCal_SetSelRange(hmc, rgst) \
4646 SNDMSGA(hmc, MCM_SETSELRANGE, 0, (LPARAM) (rgst))
4647 #define MonthCal_GetMonthRange(hmc, gmr, rgst) \
4648 (DWORD)SNDMSGA(hmc, MCM_GETMONTHRANGE, (WPARAM)(gmr), (LPARAM)(rgst))
4649 #define MonthCal_SetDayState(hmc, cbds, rgds) \
4650 SNDMSGA(hmc, MCM_SETDAYSTATE, (WPARAM)(cbds), (LPARAM)(rgds))
4651 #define MonthCal_GetMinReqRect(hmc, prc) \
4652 SNDMSGA(hmc, MCM_GETMINREQRECT, 0, (LPARAM)(prc))
4653 #define MonthCal_SetColor(hmc, iColor, clr)\
4654 SNDMSGA(hmc, MCM_SETCOLOR, iColor, clr)
4655 #define MonthCal_GetColor(hmc, iColor) \
4656 SNDMSGA(hmc, MCM_SETCOLOR, iColor, 0)
4657 #define MonthCal_GetToday(hmc, pst)\
4658 (BOOL)SNDMSGA(hmc, MCM_GETTODAY, 0, (LPARAM)pst)
4659 #define MonthCal_SetToday(hmc, pst)\
4660 SNDMSGA(hmc, MCM_SETTODAY, 0, (LPARAM)pst)
4661 #define MonthCal_HitTest(hmc, pinfo) \
4662 SNDMSGA(hmc, MCM_HITTEST, 0, (LPARAM)(PMCHITTESTINFO)pinfo)
4663 #define MonthCal_SetFirstDayOfWeek(hmc, iDay) \
4664 SNDMSGA(hmc, MCM_SETFIRSTDAYOFWEEK, 0, iDay)
4665 #define MonthCal_GetFirstDayOfWeek(hmc) \
4666 (DWORD)SNDMSGA(hmc, MCM_GETFIRSTDAYOFWEEK, 0, 0)
4667 #define MonthCal_GetRange(hmc, rgst) \
4668 (DWORD)SNDMSGA(hmc, MCM_GETRANGE, 0, (LPARAM)(rgst))
4669 #define MonthCal_SetRange(hmc, gd, rgst) \
4670 (BOOL)SNDMSGA(hmc, MCM_SETRANGE, (WPARAM)(gd), (LPARAM)(rgst))
4671 #define MonthCal_GetMonthDelta(hmc) \
4672 (int)SNDMSGA(hmc, MCM_GETMONTHDELTA, 0, 0)
4673 #define MonthCal_SetMonthDelta(hmc, n) \
4674 (int)SNDMSGA(hmc, MCM_SETMONTHDELTA, n, 0)
4675 #define MonthCal_GetMaxTodayWidth(hmc) \
4676 (DWORD)SNDMSGA(hmc, MCM_GETMAXTODAYWIDTH, 0, 0)
4677 #define MonthCal_SetUnicodeFormat(hwnd, fUnicode) \
4678 (BOOL)SNDMSGA((hwnd), MCM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0)
4679 #define MonthCal_GetUnicodeFormat(hwnd) \
4680 (BOOL)SNDMSGA((hwnd), MCM_GETUNICODEFORMAT, 0, 0)
4683 /**************************************************************************
4684 * Date and time picker control
4687 #define DATETIMEPICK_CLASSA "SysDateTimePick32"
4688 #if defined(__GNUC__)
4689 # define DATETIMEPICK_CLASSW (const WCHAR []){ 'S','y','s', \
4690 'D','a','t','e','T','i','m','e','P','i','c','k','3','2',0 }
4691 #elif defined(_MSC_VER)
4692 # define DATETIMEPICK_CLASSW L"SysDateTimePick32"
4693 #else
4694 static const WCHAR DATETIMEPICK_CLASSW[] = { 'S','y','s',
4695 'D','a','t','e','T','i','m','e','P','i','c','k','3','2',0 };
4696 #endif
4697 #define DATETIMEPICK_CLASS WINELIB_NAME_AW(DATETIMEPICK_CLASS)
4699 #define DTM_FIRST 0x1000
4700 #define DTN_FIRST (0U-760U)
4701 #define DTN_LAST (0U-799U)
4704 #define DTM_GETSYSTEMTIME (DTM_FIRST+1)
4705 #define DTM_SETSYSTEMTIME (DTM_FIRST+2)
4706 #define DTM_GETRANGE (DTM_FIRST+3)
4707 #define DTM_SETRANGE (DTM_FIRST+4)
4708 #define DTM_SETFORMATA (DTM_FIRST+5)
4709 #define DTM_SETFORMATW (DTM_FIRST + 50)
4710 #define DTM_SETFORMAT WINELIB_NAME_AW(DTM_SETFORMAT)
4711 #define DTM_SETMCCOLOR (DTM_FIRST+6)
4712 #define DTM_GETMCCOLOR (DTM_FIRST+7)
4713 #define DTM_GETMONTHCAL (DTM_FIRST+8)
4714 #define DTM_SETMCFONT (DTM_FIRST+9)
4715 #define DTM_GETMCFONT (DTM_FIRST+10)
4718 /* Datetime Notifications */
4720 #define DTN_DATETIMECHANGE (DTN_FIRST + 1)
4721 #define DTN_USERSTRINGA (DTN_FIRST + 2)
4722 #define DTN_WMKEYDOWNA (DTN_FIRST + 3)
4723 #define DTN_FORMATA (DTN_FIRST + 4)
4724 #define DTN_FORMATQUERYA (DTN_FIRST + 5)
4725 #define DTN_DROPDOWN (DTN_FIRST + 6)
4726 #define DTN_CLOSEUP (DTN_FIRST + 7)
4727 #define DTN_USERSTRINGW (DTN_FIRST + 15)
4728 #define DTN_WMKEYDOWNW (DTN_FIRST + 16)
4729 #define DTN_FORMATW (DTN_FIRST + 17)
4730 #define DTN_FORMATQUERYW (DTN_FIRST + 18)
4732 #define DTN_USERSTRING WINELIB_NAME_AW(DTN_USERSTRING)
4733 #define DTN_WMKEYDOWN WINELIB_NAME_AW(DTN_WMKEYDOWN)
4734 #define DTN_FORMAT WINELIB_NAME_AW(DTN_FORMAT)
4735 #define DTN_FORMATQUERY WINELIB_NAME_AW(DTN_FORMATQUERY)
4737 #define DTS_SHORTDATEFORMAT 0x0000
4738 #define DTS_UPDOWN 0x0001
4739 #define DTS_SHOWNONE 0x0002
4740 #define DTS_LONGDATEFORMAT 0x0004
4741 #define DTS_TIMEFORMAT 0x0009
4742 #define DTS_APPCANPARSE 0x0010
4743 #define DTS_RIGHTALIGN 0x0020
4745 typedef struct tagNMDATETIMECHANGE
4747 NMHDR nmhdr;
4748 DWORD dwFlags;
4749 SYSTEMTIME st;
4750 } NMDATETIMECHANGE, *LPNMDATETIMECHANGE;
4752 typedef struct tagNMDATETIMESTRINGA
4754 NMHDR nmhdr;
4755 LPCSTR pszUserString;
4756 SYSTEMTIME st;
4757 DWORD dwFlags;
4758 } NMDATETIMESTRINGA, *LPNMDATETIMESTRINGA;
4760 typedef struct tagNMDATETIMESTRINGW
4762 NMHDR nmhdr;
4763 LPCWSTR pszUserString;
4764 SYSTEMTIME st;
4765 DWORD dwFlags;
4766 } NMDATETIMESTRINGW, *LPNMDATETIMESTRINGW;
4768 DECL_WINELIB_TYPE_AW(NMDATETIMESTRING)
4769 DECL_WINELIB_TYPE_AW(LPNMDATETIMESTRING)
4771 typedef struct tagNMDATETIMEWMKEYDOWNA
4773 NMHDR nmhdr;
4774 int nVirtKey;
4775 LPCSTR pszFormat;
4776 SYSTEMTIME st;
4777 } NMDATETIMEWMKEYDOWNA, *LPNMDATETIMEWMKEYDOWNA;
4779 typedef struct tagNMDATETIMEWMKEYDOWNW
4781 NMHDR nmhdr;
4782 int nVirtKey;
4783 LPCWSTR pszFormat;
4784 SYSTEMTIME st;
4785 } NMDATETIMEWMKEYDOWNW, *LPNMDATETIMEWMKEYDOWNW;
4787 DECL_WINELIB_TYPE_AW(NMDATETIMEWMKEYDOWN)
4788 DECL_WINELIB_TYPE_AW(LPNMDATETIMEWMKEYDOWN)
4790 typedef struct tagNMDATETIMEFORMATA
4792 NMHDR nmhdr;
4793 LPCSTR pszFormat;
4794 SYSTEMTIME st;
4795 LPCSTR pszDisplay;
4796 CHAR szDisplay[64];
4797 } NMDATETIMEFORMATA, *LPNMDATETIMEFORMATA;
4800 typedef struct tagNMDATETIMEFORMATW
4802 NMHDR nmhdr;
4803 LPCWSTR pszFormat;
4804 SYSTEMTIME st;
4805 LPCWSTR pszDisplay;
4806 WCHAR szDisplay[64];
4807 } NMDATETIMEFORMATW, *LPNMDATETIMEFORMATW;
4809 DECL_WINELIB_TYPE_AW(NMDATETIMEFORMAT)
4810 DECL_WINELIB_TYPE_AW(LPNMDATETIMEFORMAT)
4812 typedef struct tagNMDATETIMEFORMATQUERYA
4814 NMHDR nmhdr;
4815 LPCSTR pszFormat;
4816 SIZE szMax;
4817 } NMDATETIMEFORMATQUERYA, *LPNMDATETIMEFORMATQUERYA;
4819 typedef struct tagNMDATETIMEFORMATQUERYW
4821 NMHDR nmhdr;
4822 LPCWSTR pszFormat;
4823 SIZE szMax;
4824 } NMDATETIMEFORMATQUERYW, *LPNMDATETIMEFORMATQUERYW;
4826 DECL_WINELIB_TYPE_AW(NMDATETIMEFORMATQUERY)
4827 DECL_WINELIB_TYPE_AW(LPNMDATETIMEFORMATQUERY)
4831 #define GDT_ERROR -1
4832 #define GDT_VALID 0
4833 #define GDT_NONE 1
4835 #define GDTR_MIN 0x0001
4836 #define GDTR_MAX 0x0002
4839 #define DateTime_GetSystemtime(hdp, pst) \
4840 (DWORD)SNDMSGA (hdp, DTM_GETSYSTEMTIME , 0, (LPARAM)(pst))
4841 #define DateTime_SetSystemtime(hdp, gd, pst) \
4842 (BOOL)SNDMSGA (hdp, DTM_SETSYSTEMTIME, (LPARAM)(gd), (LPARAM)(pst))
4843 #define DateTime_GetRange(hdp, rgst) \
4844 (DWORD)SNDMSGA (hdp, DTM_GETRANGE, 0, (LPARAM)(rgst))
4845 #define DateTime_SetRange(hdp, gd, rgst) \
4846 (BOOL)SNDMSGA (hdp, DTM_SETRANGE, (WPARAM)(gd), (LPARAM)(rgst))
4847 #define DateTime_SetFormatA(hdp, sz) \
4848 (BOOL)SNDMSGA (hdp, DTM_SETFORMATA, 0, (LPARAM)(sz))
4849 #define DateTime_SetFormatW(hdp, sz) \
4850 (BOOL)SNDMSGW (hdp, DTM_SETFORMATW, 0, (LPARAM)(sz))
4851 #define DateTime_SetFormat WINELIB_NAME_AW(DateTime_SetFormat)
4852 #define DateTime_GetMonthCalColor(hdp, iColor) \
4853 SNDMSGA (hdp, DTM_GETMCCOLOR, iColor, 0)
4854 #define DateTime_SetMonthCalColor(hdp, iColor, clr) \
4855 SNDMSGA (hdp, DTM_SETMCCOLOR, iColor, clr)
4856 #define DateTime_GetMonthCal(hdp) \
4857 (HWND) SNDMSGA (hdp, DTM_GETMONTHCAL, 0, 0)
4858 #define DateTime_SetMonthCalFont(hdp, hfont, fRedraw) \
4859 SNDMSGA (hdp, DTM_SETMCFONT, (WPARAM)hfont, (LPARAM)fRedraw)
4860 #define DateTime_GetMonthCalFont(hdp) \
4861 SNDMSGA (hdp, DTM_GETMCFONT, 0, 0)
4863 #define DA_LAST (0x7fffffff)
4864 #define DPA_APPEND (0x7fffffff)
4865 #define DPA_ERR (-1)
4867 #define DSA_APPEND (0x7fffffff)
4868 #define DSA_ERR (-1)
4870 struct _DSA;
4871 typedef struct _DSA *HDSA;
4873 typedef INT (CALLBACK *PFNDSAENUMCALLBACK)(LPVOID, LPVOID);
4875 HDSA WINAPI DSA_Create(INT, INT);
4876 BOOL WINAPI DSA_Destroy(HDSA);
4877 void WINAPI DSA_DestroyCallback(HDSA, PFNDSAENUMCALLBACK, LPVOID);
4878 LPVOID WINAPI DSA_GetItemPtr(HDSA, INT);
4879 INT WINAPI DSA_InsertItem(HDSA, INT, LPVOID);
4881 #define DPAS_SORTED 0x0001
4882 #define DPAS_INSERTBEFORE 0x0002
4883 #define DPAS_INSERTAFTER 0x0004
4886 struct _DPA;
4887 typedef struct _DPA *HDPA;
4889 typedef INT (CALLBACK *PFNDPAENUMCALLBACK)(LPVOID, LPVOID);
4890 typedef INT (CALLBACK *PFNDPACOMPARE)(LPVOID, LPVOID, LPARAM);
4892 HDPA WINAPI DPA_Create(INT);
4893 BOOL WINAPI DPA_Destroy(HDPA);
4894 LPVOID WINAPI DPA_DeletePtr(HDPA, INT);
4895 BOOL WINAPI DPA_DeleteAllPtrs(HDPA);
4896 BOOL WINAPI DPA_SetPtr(HDPA, INT, LPVOID);
4897 LPVOID WINAPI DPA_GetPtr(HDPA, INT);
4898 INT WINAPI DPA_InsertPtr(HDPA, INT, LPVOID);
4899 BOOL WINAPI DPA_Sort(HDPA, PFNDPACOMPARE, LPARAM);
4900 void WINAPI DPA_EnumCallback(HDPA, PFNDPAENUMCALLBACK, LPVOID);
4901 void WINAPI DPA_DestroyCallback(HDPA, PFNDPAENUMCALLBACK, LPVOID);
4902 INT WINAPI DPA_Search(HDPA, LPVOID, INT, PFNDPACOMPARE, LPARAM, UINT);
4904 BOOL WINAPI Str_SetPtrW (LPWSTR *, LPCWSTR);
4906 /**************************************************************************
4907 * SysLink control
4910 #if defined(__GNUC__)
4911 # define WC_LINK (const WCHAR []){ 'S','y','s','L','i','n','k',0 }
4912 #elif defined(_MSC_VER)
4913 # define WC_LINK L"SysLink"
4914 #else
4915 static const WCHAR WC_LINK[] = { 'S','y','s','L','i','n','k',0 };
4916 #endif
4918 /* SysLink messages */
4919 #define LM_HITTEST (WM_USER + 768)
4920 #define LM_GETIDEALHEIGHT (WM_USER + 769)
4921 #define LM_GETIDEALSIZE (LM_GETIDEALHEIGHT)
4922 #define LM_SETITEM (WM_USER + 770)
4923 #define LM_GETITEM (WM_USER + 771)
4925 /* SysLink links flags */
4927 #define LIF_ITEMINDEX 1
4928 #define LIF_STATE 2
4929 #define LIF_ITEMID 4
4930 #define LIF_URL 8
4932 /* SysLink links states */
4934 #define LIS_FOCUSED 1
4935 #define LIS_ENABLED 2
4936 #define LIS_VISITED 4
4938 /* SysLink misc. */
4940 #define INVALID_LINK_INDEX (-1)
4941 #define MAX_LINKID_TEXT 48
4942 #define L_MAX_URL_LENGTH 2084
4944 /* SysLink structures */
4946 typedef struct tagLITEM
4948 UINT mask;
4949 int iLink;
4950 UINT state;
4951 UINT stateMask;
4952 WCHAR szID[MAX_LINKID_TEXT];
4953 WCHAR szUrl[L_MAX_URL_LENGTH];
4954 } LITEM, *PLITEM;
4956 typedef struct tagLHITTESTINFO
4958 POINT pt;
4959 LITEM item;
4960 } LHITTESTINFO, *PLHITTESTINFO;
4962 typedef struct tagNMLINK
4964 NMHDR hdr;
4965 LITEM item;
4966 } NMLINK, *PNMLINK;
4968 typedef struct tagNMLVLINK
4970 NMHDR hdr;
4971 LITEM link;
4972 int iItem;
4973 int iSubItem;
4974 } NMLVLINK, *PNMLVLINK;
4976 /**************************************************************************
4977 * Static control
4980 #define WC_STATICA "Static"
4981 #if defined(__GNUC__)
4982 # define WC_STATICW (const WCHAR []){ 'S','t','a','t','i','c',0 }
4983 #elif defined(_MSC_VER)
4984 # define WC_STATICW L"Static"
4985 #else
4986 static const WCHAR WC_STATICW[] = { 'S','t','a','t','i','c',0 };
4987 #endif
4988 #define WC_STATIC WINELIB_NAME_AW(WC_STATIC)
4990 /**************************************************************************
4991 * Combobox control
4994 #define WC_COMBOBOXA "ComboBox"
4995 #if defined(__GNUC__)
4996 # define WC_COMBOBOXW (const WCHAR []){ 'C','o','m','b','o','B','o','x',0 }
4997 #elif defined(_MSC_VER)
4998 # define WC_COMBOBOXW L"ComboBox"
4999 #else
5000 static const WCHAR WC_COMBOBOXW[] = { 'C','o','m','b','o','B','o','x',0 };
5001 #endif
5002 #define WC_COMBOBOX WINELIB_NAME_AW(WC_COMBOBOX)
5004 /**************************************************************************
5005 * Edit control
5008 #define WC_EDITA "Edit"
5009 #if defined(__GNUC__)
5010 # define WC_EDITW (const WCHAR []){ 'E','d','i','t',0 }
5011 #elif defined(_MSC_VER)
5012 # define WC_EDITW L"Edit"
5013 #else
5014 static const WCHAR WC_EDITW[] = { 'E','d','i','t',0 };
5015 #endif
5016 #define WC_EDIT WINELIB_NAME_AW(WC_EDIT)
5018 /**************************************************************************
5019 * List box control
5022 #define WC_LISTBOXA "ListBox"
5023 #if defined(__GNUC__)
5024 # define WC_LISTBOXW (const WCHAR []){ 'L','i','s','t','B','o','x',0 }
5025 #elif defined(_MSC_VER)
5026 # define WC_LISTBOXW L"ListBox"
5027 #else
5028 static const WCHAR WC_LISTBOXW[] = { 'L','i','s','t','B','o','x',0 };
5029 #endif
5030 #define WC_LISTBOX WINELIB_NAME_AW(WC_LISTBOX)
5032 /**************************************************************************
5033 * Scroll bar control
5036 #define WC_SCROLLBARA "ScrollBar"
5037 #if defined(__GNUC__)
5038 # define WC_SCROLLBARW (const WCHAR []){ 'S','c','r','o','l','l','B','a','r',0 }
5039 #elif defined(_MSC_VER)
5040 # define WC_SCROLLBARW L"ScrollBar"
5041 #else
5042 static const WCHAR WC_SCROLLBARW[] = { 'S','c','r','o','l','l','B','a','r',0 };
5043 #endif
5044 #define WC_SCROLLBAR WINELIB_NAME_AW(WC_SCROLLBAR)
5046 #ifdef __cplusplus
5048 #endif
5050 #endif /* __WINE_COMMCTRL_H */