2 * Common controls definitions
4 * Copyright (C) the Wine project
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_COMMCTRL_H
22 #define __WINE_COMMCTRL_H
30 BOOL WINAPI
ShowHideMenuCtl (HWND
, UINT
, LPINT
);
31 VOID WINAPI
GetEffectiveClientRect (HWND
, LPRECT
, LPINT
);
32 VOID WINAPI
InitCommonControls (VOID
);
34 typedef struct tagINITCOMMONCONTROLSEX
{
37 } INITCOMMONCONTROLSEX
, *LPINITCOMMONCONTROLSEX
;
39 BOOL WINAPI
InitCommonControlsEx (LPINITCOMMONCONTROLSEX
);
41 LANGID WINAPI
GetMUILanguage (VOID
);
42 VOID WINAPI
InitMUILanguage (LANGID uiLang
);
45 #define COMCTL32_VERSION 5 /* dll version */
48 #define _WIN32_IE 0x0400
51 #define ICC_LISTVIEW_CLASSES 0x00000001 /* listview, header */
52 #define ICC_TREEVIEW_CLASSES 0x00000002 /* treeview, tooltips */
53 #define ICC_BAR_CLASSES 0x00000004 /* toolbar, statusbar, trackbar, tooltips */
54 #define ICC_TAB_CLASSES 0x00000008 /* tab, tooltips */
55 #define ICC_UPDOWN_CLASS 0x00000010 /* updown */
56 #define ICC_PROGRESS_CLASS 0x00000020 /* progress */
57 #define ICC_HOTKEY_CLASS 0x00000040 /* hotkey */
58 #define ICC_ANIMATE_CLASS 0x00000080 /* animate */
59 #define ICC_WIN95_CLASSES 0x000000FF
60 #define ICC_DATE_CLASSES 0x00000100 /* month picker, date picker, time picker, updown */
61 #define ICC_USEREX_CLASSES 0x00000200 /* comboex */
62 #define ICC_COOL_CLASSES 0x00000400 /* rebar (coolbar) */
63 #define ICC_INTERNET_CLASSES 0x00000800 /* IP address, ... */
64 #define ICC_PAGESCROLLER_CLASS 0x00001000 /* page scroller */
65 #define ICC_NATIVEFNTCTL_CLASS 0x00002000 /* native font control ???*/
66 #define ICC_STANDARD_CLASSES 0x00004000
67 #define ICC_LINK_CLASS 0x00008000
70 /* common control styles */
71 #define CCS_TOP 0x00000001L
72 #define CCS_NOMOVEY 0x00000002L
73 #define CCS_BOTTOM 0x00000003L
74 #define CCS_NORESIZE 0x00000004L
75 #define CCS_NOPARENTALIGN 0x00000008L
76 #define CCS_ADJUSTABLE 0x00000020L
77 #define CCS_NODIVIDER 0x00000040L
78 #define CCS_VERT 0x00000080L
79 #define CCS_LEFT (CCS_VERT|CCS_TOP)
80 #define CCS_RIGHT (CCS_VERT|CCS_BOTTOM)
81 #define CCS_NOMOVEX (CCS_VERT|CCS_NOMOVEY)
84 /* common control shared messages */
85 #define CCM_FIRST 0x2000
87 #define CCM_SETBKCOLOR (CCM_FIRST+1) /* lParam = bkColor */
88 #define CCM_SETCOLORSCHEME (CCM_FIRST+2) /* lParam = COLORSCHEME struct ptr */
89 #define CCM_GETCOLORSCHEME (CCM_FIRST+3) /* lParam = COLORSCHEME struct ptr */
90 #define CCM_GETDROPTARGET (CCM_FIRST+4)
91 #define CCM_SETUNICODEFORMAT (CCM_FIRST+5)
92 #define CCM_GETUNICODEFORMAT (CCM_FIRST+6)
93 #define CCM_SETVERSION (CCM_FIRST+7)
94 #define CCM_GETVERSION (CCM_FIRST+8)
95 #define CCM_SETNOTIFYWINDOW (CCM_FIRST+9) /* wParam = hwndParent */
98 /* common notification codes (WM_NOTIFY)*/
99 #define NM_FIRST (0U- 0U)
100 #define NM_LAST (0U- 99U)
101 #define NM_OUTOFMEMORY (NM_FIRST-1)
102 #define NM_CLICK (NM_FIRST-2)
103 #define NM_DBLCLK (NM_FIRST-3)
104 #define NM_RETURN (NM_FIRST-4)
105 #define NM_RCLICK (NM_FIRST-5)
106 #define NM_RDBLCLK (NM_FIRST-6)
107 #define NM_SETFOCUS (NM_FIRST-7)
108 #define NM_KILLFOCUS (NM_FIRST-8)
109 #define NM_CUSTOMDRAW (NM_FIRST-12)
110 #define NM_HOVER (NM_FIRST-13)
111 #define NM_NCHITTEST (NM_FIRST-14)
112 #define NM_KEYDOWN (NM_FIRST-15)
113 #define NM_RELEASEDCAPTURE (NM_FIRST-16)
114 #define NM_SETCURSOR (NM_FIRST-17)
115 #define NM_CHAR (NM_FIRST-18)
116 #define NM_TOOLTIPSCREATED (NM_FIRST-19)
118 #define HANDLE_WM_NOTIFY(hwnd, wParam, lParam, fn) \
119 (fn)((hwnd), (int)(wParam), (NMHDR*)(lParam))
120 #define FORWARD_WM_NOTIFY(hwnd, idFrom, pnmhdr, fn) \
121 (LRESULT)(fn)((hwnd), WM_NOTIFY, (WPARAM)(int)(idFrom), (LPARAM)(NMHDR*)(pnmhdr))
124 /* callback constants */
125 #define LPSTR_TEXTCALLBACKA ((LPSTR)-1L)
126 #define LPSTR_TEXTCALLBACKW ((LPWSTR)-1L)
127 #define LPSTR_TEXTCALLBACK WINELIB_NAME_AW(LPSTR_TEXTCALLBACK)
129 #define I_IMAGECALLBACK (-1)
130 #define I_IMAGENONE (-2)
131 #define I_INDENTCALLBACK (-1)
132 #define I_CHILDRENCALLBACK (-1)
134 /* owner drawn types */
135 #define ODT_HEADER 100
137 #define ODT_LISTVIEW 102
139 /* common notification structures */
140 typedef struct tagNMTOOLTIPSCREATED
144 } NMTOOLTIPSCREATED
, *LPNMTOOLTIPSCREATED
;
146 typedef struct tagNMMOUSE
152 DWORD dwHitInfo
; /* info where on item or control the mouse is */
153 } NMMOUSE
, *LPNMMOUSE
;
155 typedef struct tagNMOBJECTNOTIFY
159 #ifdef __IID_DEFINED__
167 } NMOBJECTNOTIFY
, *LPNMOBJECTNOTIFY
;
169 typedef struct tagNMKEY
176 typedef struct tagNMCHAR
180 DWORD dwItemPrev
; /* Item previously selected */
181 DWORD dwItemNext
; /* Item to be selected */
184 #ifndef CCSIZEOF_STRUCT
185 #define CCSIZEOF_STRUCT(name, member) \
186 (((INT)((LPBYTE)(&((name*)0)->member)-((LPBYTE)((name*)0))))+ \
187 sizeof(((name*)0)->member))
191 /* This is only for Winelib applications. DON't use it wine itself!!! */
194 #define SNDMSG ::SendMessage
195 #else /* __cplusplus */
196 #define SNDMSG SendMessage
197 #endif /* __cplusplus */
202 #define SNDMSGA ::SendMessageA
203 #define SNDMSGW ::SendMessageW
205 #define SNDMSGA SendMessageA
206 #define SNDMSGW SendMessageW
209 /* Custom Draw messages */
211 #define CDRF_DODEFAULT 0x0
212 #define CDRF_NEWFONT 0x00000002
213 #define CDRF_SKIPDEFAULT 0x00000004
214 #define CDRF_NOTIFYPOSTPAINT 0x00000010
215 #define CDRF_NOTIFYITEMDRAW 0x00000020
216 #define CDRF_NOTIFYSUBITEMDRAW 0x00000020
217 #define CDRF_NOTIFYPOSTERASE 0x00000040
218 #define CDRF_NOTIFYITEMERASE 0x00000080 /* obsolete ??? */
221 /* drawstage flags */
223 #define CDDS_PREPAINT 1
224 #define CDDS_POSTPAINT 2
225 #define CDDS_PREERASE 3
226 #define CDDS_POSTERASE 4
228 #define CDDS_ITEM 0x00010000
229 #define CDDS_ITEMPREPAINT (CDDS_ITEM | CDDS_PREPAINT)
230 #define CDDS_ITEMPOSTPAINT (CDDS_ITEM | CDDS_POSTPAINT)
231 #define CDDS_ITEMPREERASE (CDDS_ITEM | CDDS_PREERASE)
232 #define CDDS_ITEMPOSTERASE (CDDS_ITEM | CDDS_POSTERASE)
233 #define CDDS_SUBITEM 0x00020000
235 /* itemState flags */
237 #define CDIS_SELECTED 0x0001
238 #define CDIS_GRAYED 0x0002
239 #define CDIS_DISABLED 0x0004
240 #define CDIS_CHECKED 0x0008
241 #define CDIS_FOCUS 0x0010
242 #define CDIS_DEFAULT 0x0020
243 #define CDIS_HOT 0x0040
244 #define CDIS_MARKED 0x0080
245 #define CDIS_INDETERMINATE 0x0100
248 typedef struct tagNMCUSTOMDRAWINFO
257 } NMCUSTOMDRAW
, *LPNMCUSTOMDRAW
;
259 typedef struct tagNMTTCUSTOMDRAW
263 } NMTTCUSTOMDRAW
, *LPNMTTCUSTOMDRAW
;
270 #define STATUSCLASSNAMEA "msctls_statusbar32"
271 #if defined(__GNUC__)
272 # define STATUSCLASSNAMEW (const WCHAR []){ 'm','s','c','t','l','s','_', \
273 's','t','a','t','u','s','b','a','r','3','2',0 }
274 #elif defined(_MSC_VER)
275 # define STATUSCLASSNAMEW L"msctls_statusbar32"
277 static const WCHAR STATUSCLASSNAMEW
[] = { 'm','s','c','t','l','s','_',
278 's','t','a','t','u','s','b','a','r','3','2',0 };
280 #define STATUSCLASSNAME WINELIB_NAME_AW(STATUSCLASSNAME)
282 #define SBT_NOBORDERS 0x0100
283 #define SBT_POPOUT 0x0200
284 #define SBT_RTLREADING 0x0400 /* not supported */
285 #define SBT_TOOLTIPS 0x0800
286 #define SBT_OWNERDRAW 0x1000
288 #define SBARS_SIZEGRIP 0x0100
290 #define SB_SETTEXTA (WM_USER+1)
291 #define SB_SETTEXTW (WM_USER+11)
292 #define SB_SETTEXT WINELIB_NAME_AW(SB_SETTEXT)
293 #define SB_GETTEXTA (WM_USER+2)
294 #define SB_GETTEXTW (WM_USER+13)
295 #define SB_GETTEXT WINELIB_NAME_AW(SB_GETTEXT)
296 #define SB_GETTEXTLENGTHA (WM_USER+3)
297 #define SB_GETTEXTLENGTHW (WM_USER+12)
298 #define SB_GETTEXTLENGTH WINELIB_NAME_AW(SB_GETTEXTLENGTH)
299 #define SB_SETPARTS (WM_USER+4)
300 #define SB_SETBORDERS (WM_USER+5)
301 #define SB_GETPARTS (WM_USER+6)
302 #define SB_GETBORDERS (WM_USER+7)
303 #define SB_SETMINHEIGHT (WM_USER+8)
304 #define SB_SIMPLE (WM_USER+9)
305 #define SB_GETRECT (WM_USER+10)
306 #define SB_ISSIMPLE (WM_USER+14)
307 #define SB_SETICON (WM_USER+15)
308 #define SB_SETTIPTEXTA (WM_USER+16)
309 #define SB_SETTIPTEXTW (WM_USER+17)
310 #define SB_SETTIPTEXT WINELIB_NAME_AW(SB_SETTIPTEXT)
311 #define SB_GETTIPTEXTA (WM_USER+18)
312 #define SB_GETTIPTEXTW (WM_USER+19)
313 #define SB_GETTIPTEXT WINELIB_NAME_AW(SB_GETTIPTEXT)
314 #define SB_GETICON (WM_USER+20)
315 #define SB_SETBKCOLOR CCM_SETBKCOLOR /* lParam = bkColor */
316 #define SB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
317 #define SB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
319 #define SBN_FIRST (0U-880U)
320 #define SBN_LAST (0U-899U)
321 #define SBN_SIMPLEMODECHANGE (SBN_FIRST-0)
323 HWND WINAPI
CreateStatusWindowA (LONG
, LPCSTR
, HWND
, UINT
);
324 HWND WINAPI
CreateStatusWindowW (LONG
, LPCWSTR
, HWND
, UINT
);
325 #define CreateStatusWindow WINELIB_NAME_AW(CreateStatusWindow)
326 VOID WINAPI
DrawStatusTextA (HDC
, LPRECT
, LPCSTR
, UINT
);
327 VOID WINAPI
DrawStatusTextW (HDC
, LPRECT
, LPCWSTR
, UINT
);
328 #define DrawStatusText WINELIB_NAME_AW(DrawStatusText)
329 VOID WINAPI
MenuHelp (UINT
, WPARAM
, LPARAM
, HMENU
,
330 HINSTANCE
, HWND
, UINT
*);
332 typedef struct tagCOLORSCHEME
335 COLORREF clrBtnHighlight
; /* highlight color */
336 COLORREF clrBtnShadow
; /* shadow color */
337 } COLORSCHEME
, *LPCOLORSCHEME
;
339 /**************************************************************************
343 typedef struct tagDRAGLISTINFO
348 } DRAGLISTINFO
, *LPDRAGLISTINFO
;
350 #define DL_BEGINDRAG (WM_USER+133)
351 #define DL_DRAGGING (WM_USER+134)
352 #define DL_DROPPED (WM_USER+135)
353 #define DL_CANCELDRAG (WM_USER+136)
355 #define DL_CURSORSET 0
356 #define DL_STOPCURSOR 1
357 #define DL_COPYCURSOR 2
358 #define DL_MOVECURSOR 3
360 #define DRAGLISTMSGSTRING TEXT("commctrl_DragListMsg")
362 BOOL WINAPI
MakeDragList (HWND
);
363 VOID WINAPI
DrawInsert (HWND
, HWND
, INT
);
364 INT WINAPI
LBItemFromPt (HWND
, POINT
, BOOL
);
369 #define UPDOWN_CLASSA "msctls_updown32"
370 #if defined(__GNUC__)
371 # define UPDOWN_CLASSW (const WCHAR []){ 'm','s','c','t','l','s','_', \
372 'u','p','d','o','w','n','3','2',0 }
373 #elif defined(_MSC_VER)
374 # define UPDOWN_CLASSW L"msctls_updown32"
376 static const WCHAR UPDOWN_CLASSW
[] = { 'm','s','c','t','l','s','_',
377 'u','p','d','o','w','n','3','2',0 };
379 #define UPDOWN_CLASS WINELIB_NAME_AW(UPDOWN_CLASS)
381 typedef struct _UDACCEL
385 } UDACCEL
, *LPUDACCEL
;
387 #define UD_MAXVAL 0x7fff
388 #define UD_MINVAL 0x8001
390 #define UDS_WRAP 0x0001
391 #define UDS_SETBUDDYINT 0x0002
392 #define UDS_ALIGNRIGHT 0x0004
393 #define UDS_ALIGNLEFT 0x0008
394 #define UDS_AUTOBUDDY 0x0010
395 #define UDS_ARROWKEYS 0x0020
396 #define UDS_HORZ 0x0040
397 #define UDS_NOTHOUSANDS 0x0080
398 #define UDS_HOTTRACK 0x0100
400 #define UDN_FIRST (0U-721)
401 #define UDN_LAST (0U-740)
402 #define UDN_DELTAPOS (UDN_FIRST-1)
404 #define UDM_SETRANGE (WM_USER+101)
405 #define UDM_GETRANGE (WM_USER+102)
406 #define UDM_SETPOS (WM_USER+103)
407 #define UDM_GETPOS (WM_USER+104)
408 #define UDM_SETBUDDY (WM_USER+105)
409 #define UDM_GETBUDDY (WM_USER+106)
410 #define UDM_SETACCEL (WM_USER+107)
411 #define UDM_GETACCEL (WM_USER+108)
412 #define UDM_SETBASE (WM_USER+109)
413 #define UDM_GETBASE (WM_USER+110)
414 #define UDM_SETRANGE32 (WM_USER+111)
415 #define UDM_GETRANGE32 (WM_USER+112)
416 #define UDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
417 #define UDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
418 #define UDM_SETPOS32 (WM_USER+113)
419 #define UDM_GETPOS32 (WM_USER+114)
422 #define NMUPDOWN NM_UPDOWN
423 #define LPNMUPDOWN LPNM_UPDOWN
425 typedef struct tagNM_UPDOWN
430 } NM_UPDOWN
, *LPNM_UPDOWN
;
432 HWND WINAPI
CreateUpDownControl (DWORD
, INT
, INT
, INT
, INT
,
433 HWND
, INT
, HINSTANCE
, HWND
,
438 #define PROGRESS_CLASSA "msctls_progress32"
439 #if defined(__GNUC__)
440 # define PROGRESS_CLASSW (const WCHAR []){ 'm','s','c','t','l','s','_', \
441 'p','r','o','g','r','e','s','s','3','2',0 }
442 #elif defined(_MSC_VER)
443 # define PROGRESS_CLASSW L"msctls_progress32"
445 static const WCHAR PROGRESS_CLASSW
[] = { 'm','s','c','t','l','s','_',
446 'p','r','o','g','r','e','s','s','3','2',0 };
448 #define PROGRESS_CLASS WINELIB_NAME_AW(PROGRESS_CLASS)
450 #define PBM_SETRANGE (WM_USER+1)
451 #define PBM_SETPOS (WM_USER+2)
452 #define PBM_DELTAPOS (WM_USER+3)
453 #define PBM_SETSTEP (WM_USER+4)
454 #define PBM_STEPIT (WM_USER+5)
455 #define PBM_SETRANGE32 (WM_USER+6)
456 #define PBM_GETRANGE (WM_USER+7)
457 #define PBM_GETPOS (WM_USER+8)
458 #define PBM_SETBARCOLOR (WM_USER+9)
459 #define PBM_SETBKCOLOR CCM_SETBKCOLOR
461 #define PBS_SMOOTH 0x01
462 #define PBS_VERTICAL 0x04
468 } PBRANGE
, *PPBRANGE
;
474 typedef struct _IMAGELIST
*HIMAGELIST
;
476 #define CLR_NONE 0xFFFFFFFF
477 #define CLR_DEFAULT 0xFF000000
478 #define CLR_HILIGHT CLR_DEFAULT
480 #define ILC_MASK 0x0001
481 #define ILC_COLOR 0x0000
482 #define ILC_COLORDDB 0x00FE
483 #define ILC_COLOR4 0x0004
484 #define ILC_COLOR8 0x0008
485 #define ILC_COLOR16 0x0010
486 #define ILC_COLOR24 0x0018
487 #define ILC_COLOR32 0x0020
488 #define ILC_PALETTE 0x0800 /* no longer supported by M$ */
490 #define ILD_NORMAL 0x0000
491 #define ILD_TRANSPARENT 0x0001
492 #define ILD_BLEND25 0x0002
493 #define ILD_BLEND50 0x0004
494 #define ILD_MASK 0x0010
495 #define ILD_IMAGE 0x0020
496 #define ILD_ROP 0x0040
497 #define ILD_OVERLAYMASK 0x0F00
498 #define ILD_PRESERVEALPHA 0x1000
499 #define ILD_SCALE 0x2000
500 #define ILD_DPISCALE 0x4000
502 #define ILD_SELECTED ILD_BLEND50
503 #define ILD_FOCUS ILD_BLEND25
504 #define ILD_BLEND ILD_BLEND50
506 #define INDEXTOOVERLAYMASK(i) ((i)<<8)
507 #define INDEXTOSTATEIMAGEMASK(i) ((i)<<12)
509 #define ILCF_MOVE (0x00000000)
510 #define ILCF_SWAP (0x00000001)
512 #define ILS_NORMAL 0x0000
513 #define ILS_GLOW 0x0001
514 #define ILS_SHADOW 0x0002
515 #define ILS_SATURATE 0x0004
516 #define ILS_ALPHA 0x0008
518 typedef struct _IMAGEINFO
525 } IMAGEINFO
, *LPIMAGEINFO
;
528 typedef struct _IMAGELISTDRAWPARAMS
538 INT xBitmap
; /* x offest from the upperleft of bitmap */
539 INT yBitmap
; /* y offset from the upperleft of bitmap */
547 } IMAGELISTDRAWPARAMS
, *LPIMAGELISTDRAWPARAMS
;
550 INT WINAPI
ImageList_Add(HIMAGELIST
,HBITMAP
,HBITMAP
);
551 INT WINAPI
ImageList_AddMasked(HIMAGELIST
,HBITMAP
,COLORREF
);
552 BOOL WINAPI
ImageList_BeginDrag(HIMAGELIST
,INT
,INT
,INT
);
553 BOOL WINAPI
ImageList_Copy(HIMAGELIST
,INT
,HIMAGELIST
,INT
,UINT
);
554 HIMAGELIST WINAPI
ImageList_Create(INT
,INT
,UINT
,INT
,INT
);
555 BOOL WINAPI
ImageList_Destroy(HIMAGELIST
);
556 BOOL WINAPI
ImageList_DragEnter(HWND
,INT
,INT
);
557 BOOL WINAPI
ImageList_DragLeave(HWND
);
558 BOOL WINAPI
ImageList_DragMove(INT
,INT
);
559 BOOL WINAPI
ImageList_DragShowNolock (BOOL
);
560 BOOL WINAPI
ImageList_Draw(HIMAGELIST
,INT
,HDC
,INT
,INT
,UINT
);
561 BOOL WINAPI
ImageList_DrawEx(HIMAGELIST
,INT
,HDC
,INT
,INT
,INT
,
562 INT
,COLORREF
,COLORREF
,UINT
);
563 BOOL WINAPI
ImageList_DrawIndirect(IMAGELISTDRAWPARAMS
*);
564 HIMAGELIST WINAPI
ImageList_Duplicate(HIMAGELIST
);
565 VOID WINAPI
ImageList_EndDrag(VOID
);
566 COLORREF WINAPI
ImageList_GetBkColor(HIMAGELIST
);
567 HIMAGELIST WINAPI
ImageList_GetDragImage(POINT
*,POINT
*);
568 HICON WINAPI
ImageList_GetIcon(HIMAGELIST
,INT
,UINT
);
569 BOOL WINAPI
ImageList_GetIconSize(HIMAGELIST
,INT
*,INT
*);
570 INT WINAPI
ImageList_GetImageCount(HIMAGELIST
);
571 BOOL WINAPI
ImageList_GetImageInfo(HIMAGELIST
,INT
,IMAGEINFO
*);
572 BOOL WINAPI
ImageList_GetImageRect(HIMAGELIST
,INT
,LPRECT
);
573 HIMAGELIST WINAPI
ImageList_LoadImageA(HINSTANCE
,LPCSTR
,INT
,INT
,
575 HIMAGELIST WINAPI
ImageList_LoadImageW(HINSTANCE
,LPCWSTR
,INT
,INT
,
577 #define ImageList_LoadImage WINELIB_NAME_AW(ImageList_LoadImage)
578 HIMAGELIST WINAPI
ImageList_Merge(HIMAGELIST
,INT
,HIMAGELIST
,INT
,INT
,INT
);
579 #ifdef IStream_METHODS
580 HIMAGELIST WINAPI
ImageList_Read(LPSTREAM
);
582 BOOL WINAPI
ImageList_Remove(HIMAGELIST
,INT
);
583 BOOL WINAPI
ImageList_Replace(HIMAGELIST
,INT
,HBITMAP
,HBITMAP
);
584 INT WINAPI
ImageList_ReplaceIcon(HIMAGELIST
,INT
,HICON
);
585 COLORREF WINAPI
ImageList_SetBkColor(HIMAGELIST
,COLORREF
);
586 BOOL WINAPI
ImageList_SetDragCursorImage(HIMAGELIST
,INT
,INT
,INT
);
588 BOOL WINAPI
ImageList_SetIconSize(HIMAGELIST
,INT
,INT
);
589 BOOL WINAPI
ImageList_SetImageCount(HIMAGELIST
,UINT
);
590 BOOL WINAPI
ImageList_SetOverlayImage(HIMAGELIST
,INT
,INT
);
591 #ifdef IStream_METHODS
592 BOOL WINAPI
ImageList_Write(HIMAGELIST
, LPSTREAM
);
595 #define ImageList_AddIcon(himl,hicon) ImageList_ReplaceIcon(himl,-1,hicon)
596 #define ImageList_ExtractIcon(hi,himl,i) ImageList_GetIcon(himl,i,0)
597 #define ImageList_LoadBitmap(hi,lpbmp,cx,cGrow,crMask) \
598 ImageList_LoadImage(hi,lpbmp,cx,cGrow,crMask,IMAGE_BITMAP,0)
599 #define ImageList_RemoveAll(himl) ImageList_Remove(himl,-1)
602 #ifndef WM_MOUSEHOVER
603 #define WM_MOUSEHOVER 0x02A1
604 #define WM_MOUSELEAVE 0x02A3
609 #define TME_HOVER 0x00000001
610 #define TME_LEAVE 0x00000002
611 #define TME_NONCLIENT 0x00000010
612 #define TME_QUERY 0x40000000
613 #define TME_CANCEL 0x80000000
616 #define HOVER_DEFAULT 0xFFFFFFFF
618 typedef struct tagTRACKMOUSEEVENT
{
623 } TRACKMOUSEEVENT
, *LPTRACKMOUSEEVENT
;
630 LPTRACKMOUSEEVENT lpEventTrack
);
632 /* Flat Scrollbar control */
634 #define FLATSB_CLASSA "flatsb_class32"
635 #if defined(__GNUC__)
636 # define FLATSB_CLASSW (const WCHAR []){ 'f','l','a','t','s','b','_', \
637 'c','l','a','s','s','3','2',0 }
638 #elif defined(_MSC_VER)
639 # define FLATSB_CLASSW L"flatsb_class32"
641 static const WCHAR FLATSB_CLASSW
[] = { 'f','l','a','t','s','b','_',
642 'c','l','a','s','s','3','2',0 };
644 #define FLATSB_CLASS WINELIB_NAME_AW(FLATSB_CLASS)
646 #define WSB_PROP_CYVSCROLL 0x00000001L
647 #define WSB_PROP_CXHSCROLL 0x00000002L
648 #define WSB_PROP_CYHSCROLL 0x00000004L
649 #define WSB_PROP_CXVSCROLL 0x00000008L
650 #define WSB_PROP_CXHTHUMB 0x00000010L
651 #define WSB_PROP_CYVTHUMB 0x00000020L
652 #define WSB_PROP_VBKGCOLOR 0x00000040L
653 #define WSB_PROP_HBKGCOLOR 0x00000080L
654 #define WSB_PROP_VSTYLE 0x00000100L
655 #define WSB_PROP_HSTYLE 0x00000200L
656 #define WSB_PROP_WINSTYLE 0x00000400L
657 #define WSB_PROP_PALETTE 0x00000800L
658 #define WSB_PROP_MASK 0x00000FFFL
660 #define FSB_REGULAR_MODE 0
661 #define FSB_ENCARTA_MODE 1
662 #define FSB_FLAT_MODE 2
665 BOOL WINAPI
FlatSB_EnableScrollBar(HWND
, INT
, UINT
);
666 BOOL WINAPI
FlatSB_ShowScrollBar(HWND
, INT
, BOOL
);
667 BOOL WINAPI
FlatSB_GetScrollRange(HWND
, INT
, LPINT
, LPINT
);
668 BOOL WINAPI
FlatSB_GetScrollInfo(HWND
, INT
, LPSCROLLINFO
);
669 INT WINAPI
FlatSB_GetScrollPos(HWND
, INT
);
670 BOOL WINAPI
FlatSB_GetScrollProp(HWND
, INT
, LPINT
);
671 INT WINAPI
FlatSB_SetScrollPos(HWND
, INT
, INT
, BOOL
);
672 INT WINAPI
FlatSB_SetScrollInfo(HWND
, INT
, LPSCROLLINFO
, BOOL
);
673 INT WINAPI
FlatSB_SetScrollRange(HWND
, INT
, INT
, INT
, BOOL
);
674 BOOL WINAPI
FlatSB_SetScrollProp(HWND
, UINT
, INT
, BOOL
);
675 BOOL WINAPI
InitializeFlatSB(HWND
);
676 HRESULT WINAPI
UninitializeFlatSB(HWND
);
678 /* Subclassing stuff */
679 typedef LRESULT (CALLBACK
*SUBCLASSPROC
)(HWND
, UINT
, WPARAM
, LPARAM
, UINT_PTR
, DWORD_PTR
);
680 BOOL WINAPI
SetWindowSubclass(HWND
, SUBCLASSPROC
, UINT_PTR
, DWORD_PTR
);
681 BOOL WINAPI
GetWindowSubclass(HWND
, SUBCLASSPROC
, UINT_PTR
, DWORD_PTR
*);
682 BOOL WINAPI
RemoveWindowSubclass(HWND
, SUBCLASSPROC
, UINT_PTR
);
683 LRESULT WINAPI
DefSubclassProc(HWND
, UINT
, WPARAM
, LPARAM
);
687 #define WC_HEADERA "SysHeader32"
688 #if defined(__GNUC__)
689 # define WC_HEADERW (const WCHAR []){ 'S','y','s','H','e','a','d','e','r','3','2',0 }
690 #elif defined(_MSC_VER)
691 # define WC_HEADERW L"SysHeader32"
693 static const WCHAR WC_HEADERW
[] = { 'S','y','s','H','e','a','d','e','r','3','2',0 };
695 #define WC_HEADER WINELIB_NAME_AW(WC_HEADER)
697 #define HDS_HORZ 0x0000
698 #define HDS_BUTTONS 0x0002
699 #define HDS_HOTTRACK 0x0004
700 #define HDS_HIDDEN 0x0008
701 #define HDS_DRAGDROP 0x0040
702 #define HDS_FULLDRAG 0x0080
704 #define HDI_WIDTH 0x0001
705 #define HDI_HEIGHT HDI_WIDTH
706 #define HDI_TEXT 0x0002
707 #define HDI_FORMAT 0x0004
708 #define HDI_LPARAM 0x0008
709 #define HDI_BITMAP 0x0010
710 #define HDI_IMAGE 0x0020
711 #define HDI_DI_SETITEM 0x0040
712 #define HDI_ORDER 0x0080
714 #define HDF_LEFT 0x0000
715 #define HDF_RIGHT 0x0001
716 #define HDF_CENTER 0x0002
717 #define HDF_JUSTIFYMASK 0x0003
718 #define HDF_RTLREADING 0x0004
720 #define HDF_IMAGE 0x0800
721 #define HDF_BITMAP_ON_RIGHT 0x1000
722 #define HDF_BITMAP 0x2000
723 #define HDF_STRING 0x4000
724 #define HDF_OWNERDRAW 0x8000
726 #define HHT_NOWHERE 0x0001
727 #define HHT_ONHEADER 0x0002
728 #define HHT_ONDIVIDER 0x0004
729 #define HHT_ONDIVOPEN 0x0008
730 #define HHT_ABOVE 0x0100
731 #define HHT_BELOW 0x0200
732 #define HHT_TORIGHT 0x0400
733 #define HHT_TOLEFT 0x0800
735 #define HDM_FIRST 0x1200
736 #define HDM_GETITEMCOUNT (HDM_FIRST+0)
737 #define HDM_INSERTITEMA (HDM_FIRST+1)
738 #define HDM_INSERTITEMW (HDM_FIRST+10)
739 #define HDM_INSERTITEM WINELIB_NAME_AW(HDM_INSERTITEM)
740 #define HDM_DELETEITEM (HDM_FIRST+2)
741 #define HDM_GETITEMA (HDM_FIRST+3)
742 #define HDM_GETITEMW (HDM_FIRST+11)
743 #define HDM_GETITEM WINELIB_NAME_AW(HDM_GETITEM)
744 #define HDM_SETITEMA (HDM_FIRST+4)
745 #define HDM_SETITEMW (HDM_FIRST+12)
746 #define HDM_SETITEM WINELIB_NAME_AW(HDM_SETITEM)
747 #define HDM_LAYOUT (HDM_FIRST+5)
748 #define HDM_HITTEST (HDM_FIRST+6)
749 #define HDM_GETITEMRECT (HDM_FIRST+7)
750 #define HDM_SETIMAGELIST (HDM_FIRST+8)
751 #define HDM_GETIMAGELIST (HDM_FIRST+9)
753 #define HDM_ORDERTOINDEX (HDM_FIRST+15)
754 #define HDM_CREATEDRAGIMAGE (HDM_FIRST+16)
755 #define HDM_GETORDERARRAY (HDM_FIRST+17)
756 #define HDM_SETORDERARRAY (HDM_FIRST+18)
757 #define HDM_SETHOTDIVIDER (HDM_FIRST+19)
758 #define HDM_SETBITMAPMARGIN (HDM_FIRST+20)
759 #define HDM_GETBITMAPMARGIN (HDM_FIRST+21)
760 #define HDM_SETFILTERCHANGETIMEOUT (HDM_FIRST+22)
761 #define HDM_EDITFILTER (HDM_FIRST+23)
762 #define HDM_CLEARFILTER (HDM_FIRST+24)
763 #define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
764 #define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
766 #define HDN_FIRST (0U-300U)
767 #define HDN_LAST (0U-399U)
768 #define HDN_ITEMCHANGINGA (HDN_FIRST-0)
769 #define HDN_ITEMCHANGINGW (HDN_FIRST-20)
770 #define HDN_ITEMCHANGING WINELIB_NAME_AW(HDN_ITEMCHANGING)
771 #define HDN_ITEMCHANGEDA (HDN_FIRST-1)
772 #define HDN_ITEMCHANGEDW (HDN_FIRST-21)
773 #define HDN_ITEMCHANGED WINELIB_NAME_AW(HDN_ITEMCHANGED)
774 #define HDN_ITEMCLICKA (HDN_FIRST-2)
775 #define HDN_ITEMCLICKW (HDN_FIRST-22)
776 #define HDN_ITEMCLICK WINELIB_NAME_AW(HDN_ITEMCLICK)
777 #define HDN_ITEMDBLCLICKA (HDN_FIRST-3)
778 #define HDN_ITEMDBLCLICKW (HDN_FIRST-23)
779 #define HDN_ITEMDBLCLICK WINELIB_NAME_AW(HDN_ITEMDBLCLICK)
780 #define HDN_DIVIDERDBLCLICKA (HDN_FIRST-5)
781 #define HDN_DIVIDERDBLCLICKW (HDN_FIRST-25)
782 #define HDN_DIVIDERDBLCLICK WINELIB_NAME_AW(HDN_DIVIDERDBLCLICK)
783 #define HDN_BEGINTRACKA (HDN_FIRST-6)
784 #define HDN_BEGINTRACKW (HDN_FIRST-26)
785 #define HDN_BEGINTRACK WINELIB_NAME_AW(HDN_BEGINTRACK)
786 #define HDN_ENDTRACKA (HDN_FIRST-7)
787 #define HDN_ENDTRACKW (HDN_FIRST-27)
788 #define HDN_ENDTRACK WINELIB_NAME_AW(HDN_ENDTRACK)
789 #define HDN_TRACKA (HDN_FIRST-8)
790 #define HDN_TRACKW (HDN_FIRST-28)
791 #define HDN_TRACK WINELIB_NAME_AW(HDN_TRACK)
792 #define HDN_GETDISPINFOA (HDN_FIRST-9)
793 #define HDN_GETDISPINFOW (HDN_FIRST-29)
794 #define HDN_GETDISPINFO WINELIB_NAME_AW(HDN_GETDISPINFO)
795 #define HDN_BEGINDRAG (HDN_FIRST-10)
796 #define HDN_ENDDRAG (HDN_FIRST-11)
798 typedef struct _HD_LAYOUT
802 } HDLAYOUT
, *LPHDLAYOUT
;
804 #define HD_LAYOUT HDLAYOUT
806 typedef struct _HD_ITEMA
819 } HDITEMA
, *LPHDITEMA
;
821 typedef struct _HD_ITEMW
834 } HDITEMW
, *LPHDITEMW
;
836 #define HDITEM WINELIB_NAME_AW(HDITEM)
837 #define LPHDITEM WINELIB_NAME_AW(LPHDITEM)
838 #define HD_ITEM HDITEM
840 #define HDITEM_V1_SIZEA CCSIZEOF_STRUCT(HDITEMA, lParam)
841 #define HDITEM_V1_SIZEW CCSIZEOF_STRUCT(HDITEMW, lParam)
842 #define HDITEM_V1_SIZE WINELIB_NAME_AW(HDITEM_V1_SIZE)
844 typedef struct _HD_HITTESTINFO
849 } HDHITTESTINFO
, *LPHDHITTESTINFO
;
851 #define HD_HITTESTINFO HDHITTESTINFO
853 typedef struct tagNMHEADERA
859 } NMHEADERA
, *LPNMHEADERA
;
861 typedef struct tagNMHEADERW
867 } NMHEADERW
, *LPNMHEADERW
;
869 #define NMHEADER WINELIB_NAME_AW(NMHEADER)
870 #define LPNMHEADER WINELIB_NAME_AW(LPNMHEADER)
871 #define HD_NOTIFY NMHEADER
873 typedef struct tagNMHDDISPINFOA
882 } NMHDDISPINFOA
, *LPNMHDDISPINFOA
;
884 typedef struct tagNMHDDISPINFOW
893 } NMHDDISPINFOW
, *LPNMHDDISPINFOW
;
895 #define NMHDDISPINFO WINELIB_NAME_AW(NMHDDISPINFO)
896 #define LPNMHDDISPINFO WINELIB_NAME_AW(LPNMHDDISPINFO)
898 #define Header_GetItemCount(hwndHD) \
899 (INT)SNDMSGA((hwndHD),HDM_GETITEMCOUNT,0,0L)
900 #define Header_InsertItemA(hwndHD,i,phdi) \
901 (INT)SNDMSGA((hwndHD),HDM_INSERTITEMA,(WPARAM)(INT)(i),(LPARAM)(const HDITEMA*)(phdi))
902 #define Header_InsertItemW(hwndHD,i,phdi) \
903 (INT)SNDMSGW((hwndHD),HDM_INSERTITEMW,(WPARAM)(INT)(i),(LPARAM)(const HDITEMW*)(phdi))
904 #define Header_InsertItem WINELIB_NAME_AW(Header_InsertItem)
905 #define Header_DeleteItem(hwndHD,i) \
906 (BOOL)SNDMSGA((hwndHD),HDM_DELETEITEM,(WPARAM)(INT)(i),0L)
907 #define Header_GetItemA(hwndHD,i,phdi) \
908 (BOOL)SNDMSGA((hwndHD),HDM_GETITEMA,(WPARAM)(INT)(i),(LPARAM)(HDITEMA*)(phdi))
909 #define Header_GetItemW(hwndHD,i,phdi) \
910 (BOOL)SNDMSGW((hwndHD),HDM_GETITEMW,(WPARAM)(INT)(i),(LPARAM)(HDITEMW*)(phdi))
911 #define Header_GetItem WINELIB_NAME_AW(Header_GetItem)
912 #define Header_SetItemA(hwndHD,i,phdi) \
913 (BOOL)SNDMSGA((hwndHD),HDM_SETITEMA,(WPARAM)(INT)(i),(LPARAM)(const HDITEMA*)(phdi))
914 #define Header_SetItemW(hwndHD,i,phdi) \
915 (BOOL)SNDMSGW((hwndHD),HDM_SETITEMW,(WPARAM)(INT)(i),(LPARAM)(const HDITEMW*)(phdi))
916 #define Header_SetItem WINELIB_NAME_AW(Header_SetItem)
917 #define Header_Layout(hwndHD,playout) \
918 (BOOL)SNDMSGA((hwndHD),HDM_LAYOUT,0,(LPARAM)(LPHDLAYOUT)(playout))
919 #define Header_GetItemRect(hwnd,iItem,lprc) \
920 (BOOL)SNDMSGA((hwnd),HDM_GETITEMRECT,(WPARAM)iItem,(LPARAM)lprc)
921 #define Header_SetImageList(hwnd,himl) \
922 (HIMAGELIST)SNDMSGA((hwnd),HDM_SETIMAGELIST,0,(LPARAM)himl)
923 #define Header_GetImageList(hwnd) \
924 (HIMAGELIST)SNDMSGA((hwnd),HDM_GETIMAGELIST,0,0)
925 #define Header_OrderToIndex(hwnd,i) \
926 (INT)SNDMSGA((hwnd),HDM_ORDERTOINDEX,(WPARAM)i,0)
927 #define Header_CreateDragImage(hwnd,i) \
928 (HIMAGELIST)SNDMSGA((hwnd),HDM_CREATEDRAGIMAGE,(WPARAM)i,0)
929 #define Header_GetOrderArray(hwnd,iCount,lpi) \
930 (BOOL)SNDMSGA((hwnd),HDM_GETORDERARRAY,(WPARAM)iCount,(LPARAM)lpi)
931 #define Header_SetOrderArray(hwnd,iCount,lpi) \
932 (BOOL)SNDMSGA((hwnd),HDM_SETORDERARRAY,(WPARAM)iCount,(LPARAM)lpi)
933 #define Header_SetHotDivider(hwnd,fPos,dw) \
934 (INT)SNDMSGA((hwnd),HDM_SETHOTDIVIDER,(WPARAM)fPos,(LPARAM)dw)
935 #define Header_SetUnicodeFormat(hwnd,fUnicode) \
936 (BOOL)SNDMSGA((hwnd),HDM_SETUNICODEFORMAT,(WPARAM)(fUnicode),0)
937 #define Header_GetUnicodeFormat(hwnd) \
938 (BOOL)SNDMSGA((hwnd),HDM_GETUNICODEFORMAT,0,0)
940 /* Win32 5.1 Button Theme */
941 #define BCN_FIRST (0U-1250U)
942 #define BCN_LAST (0U-1350U)
944 #define BCN_HOTITEMCHANGE (BCN_FIRST + 0x0001)
949 #define TOOLBARCLASSNAMEA "ToolbarWindow32"
950 #if defined(__GNUC__)
951 # define TOOLBARCLASSNAMEW (const WCHAR []){ 'T','o','o','l','b','a','r', \
952 'W','i','n','d','o','w','3','2',0 }
953 #elif defined(_MSC_VER)
954 # define TOOLBARCLASSNAMEW L"ToolbarWindow32"
956 static const WCHAR TOOLBARCLASSNAMEW
[] = { 'T','o','o','l','b','a','r',
957 'W','i','n','d','o','w','3','2',0 };
959 #define TOOLBARCLASSNAME WINELIB_NAME_AW(TOOLBARCLASSNAME)
961 #define CMB_MASKED 0x02
963 #define TBSTATE_CHECKED 0x01
964 #define TBSTATE_PRESSED 0x02
965 #define TBSTATE_ENABLED 0x04
966 #define TBSTATE_HIDDEN 0x08
967 #define TBSTATE_INDETERMINATE 0x10
968 #define TBSTATE_WRAP 0x20
969 #define TBSTATE_ELLIPSES 0x40
970 #define TBSTATE_MARKED 0x80
973 /* as of _WIN32_IE >= 0x0500 the following symbols are obsolete,
974 * "everyone" should use the BTNS_... stuff below
976 #define TBSTYLE_BUTTON 0x00
977 #define TBSTYLE_SEP 0x01
978 #define TBSTYLE_CHECK 0x02
979 #define TBSTYLE_GROUP 0x04
980 #define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK)
981 #define TBSTYLE_DROPDOWN 0x08
982 #define TBSTYLE_AUTOSIZE 0x10
983 #define TBSTYLE_NOPREFIX 0x20
984 #define BTNS_BUTTON TBSTYLE_BUTTON
985 #define BTNS_SEP TBSTYLE_SEP
986 #define BTNS_CHECK TBSTYLE_CHECK
987 #define BTNS_GROUP TBSTYLE_GROUP
988 #define BTNS_CHECKGROUP TBSTYLE_CHECKGROUP
989 #define BTNS_DROPDOWN TBSTYLE_DROPDOWN
990 #define BTNS_AUTOSIZE TBSTYLE_AUTOSIZE
991 #define BTNS_NOPREFIX TBSTYLE_NOPREFIX
992 #define BTNS_SHOWTEXT 0x40 /* ignored unless TBSTYLE_EX_MIXEDB set */
993 #define BTNS_WHOLEDROPDOWN 0x80 /* draw dropdown arrow, but without split arrow section */
995 #define TBSTYLE_TOOLTIPS 0x0100
996 #define TBSTYLE_WRAPABLE 0x0200
997 #define TBSTYLE_ALTDRAG 0x0400
998 #define TBSTYLE_FLAT 0x0800
999 #define TBSTYLE_LIST 0x1000
1000 #define TBSTYLE_CUSTOMERASE 0x2000
1001 #define TBSTYLE_REGISTERDROP 0x4000
1002 #define TBSTYLE_TRANSPARENT 0x8000
1003 #define TBSTYLE_EX_DRAWDDARROWS 0x00000001
1004 #define TBSTYLE_EX_UNDOC1 0x00000004 /* similar to TBSTYLE_WRAPABLE */
1005 #define TBSTYLE_EX_MIXEDBUTTONS 0x00000008
1006 #define TBSTYLE_EX_HIDECLIPPEDBUTTONS 0x00000010 /* don't show partially obscured buttons */
1007 #define TBSTYLE_EX_DOUBLEBUFFER 0x00000080 /* Double Buffer the toolbar ??? */
1009 #define TBIF_IMAGE 0x00000001
1010 #define TBIF_TEXT 0x00000002
1011 #define TBIF_STATE 0x00000004
1012 #define TBIF_STYLE 0x00000008
1013 #define TBIF_LPARAM 0x00000010
1014 #define TBIF_COMMAND 0x00000020
1015 #define TBIF_SIZE 0x00000040
1016 #define TBIF_BYINDEX 0x80000000
1018 #define TBBF_LARGE 0x0001
1020 #define TB_ENABLEBUTTON (WM_USER+1)
1021 #define TB_CHECKBUTTON (WM_USER+2)
1022 #define TB_PRESSBUTTON (WM_USER+3)
1023 #define TB_HIDEBUTTON (WM_USER+4)
1024 #define TB_INDETERMINATE (WM_USER+5)
1025 #define TB_MARKBUTTON (WM_USER+6)
1026 #define TB_ISBUTTONENABLED (WM_USER+9)
1027 #define TB_ISBUTTONCHECKED (WM_USER+10)
1028 #define TB_ISBUTTONPRESSED (WM_USER+11)
1029 #define TB_ISBUTTONHIDDEN (WM_USER+12)
1030 #define TB_ISBUTTONINDETERMINATE (WM_USER+13)
1031 #define TB_ISBUTTONHIGHLIGHTED (WM_USER+14)
1032 #define TB_SETSTATE (WM_USER+17)
1033 #define TB_GETSTATE (WM_USER+18)
1034 #define TB_ADDBITMAP (WM_USER+19)
1035 #define TB_ADDBUTTONSA (WM_USER+20)
1036 #define TB_ADDBUTTONSW (WM_USER+68)
1037 #define TB_ADDBUTTONS WINELIB_NAME_AW(TB_ADDBUTTONS)
1038 #define TB_HITTEST (WM_USER+69)
1039 #define TB_INSERTBUTTONA (WM_USER+21)
1040 #define TB_INSERTBUTTONW (WM_USER+67)
1041 #define TB_INSERTBUTTON WINELIB_NAME_AW(TB_INSERTBUTTON)
1042 #define TB_DELETEBUTTON (WM_USER+22)
1043 #define TB_GETBUTTON (WM_USER+23)
1044 #define TB_BUTTONCOUNT (WM_USER+24)
1045 #define TB_COMMANDTOINDEX (WM_USER+25)
1046 #define TB_SAVERESTOREA (WM_USER+26)
1047 #define TB_SAVERESTOREW (WM_USER+76)
1048 #define TB_SAVERESTORE WINELIB_NAME_AW(TB_SAVERESTORE)
1049 #define TB_CUSTOMIZE (WM_USER+27)
1050 #define TB_ADDSTRINGA (WM_USER+28)
1051 #define TB_ADDSTRINGW (WM_USER+77)
1052 #define TB_ADDSTRING WINELIB_NAME_AW(TB_ADDSTRING)
1053 #define TB_GETITEMRECT (WM_USER+29)
1054 #define TB_BUTTONSTRUCTSIZE (WM_USER+30)
1055 #define TB_SETBUTTONSIZE (WM_USER+31)
1056 #define TB_SETBITMAPSIZE (WM_USER+32)
1057 #define TB_AUTOSIZE (WM_USER+33)
1058 #define TB_GETTOOLTIPS (WM_USER+35)
1059 #define TB_SETTOOLTIPS (WM_USER+36)
1060 #define TB_SETPARENT (WM_USER+37)
1061 #define TB_SETROWS (WM_USER+39)
1062 #define TB_GETROWS (WM_USER+40)
1063 #define TB_GETBITMAPFLAGS (WM_USER+41)
1064 #define TB_SETCMDID (WM_USER+42)
1065 #define TB_CHANGEBITMAP (WM_USER+43)
1066 #define TB_GETBITMAP (WM_USER+44)
1067 #define TB_GETBUTTONTEXTA (WM_USER+45)
1068 #define TB_GETBUTTONTEXTW (WM_USER+75)
1069 #define TB_GETBUTTONTEXT WINELIB_NAME_AW(TB_GETBUTTONTEXT)
1070 #define TB_REPLACEBITMAP (WM_USER+46)
1071 #define TB_SETINDENT (WM_USER+47)
1072 #define TB_SETIMAGELIST (WM_USER+48)
1073 #define TB_GETIMAGELIST (WM_USER+49)
1074 #define TB_LOADIMAGES (WM_USER+50)
1075 #define TB_GETRECT (WM_USER+51) /* wParam is the Cmd instead of index */
1076 #define TB_SETHOTIMAGELIST (WM_USER+52)
1077 #define TB_GETHOTIMAGELIST (WM_USER+53)
1078 #define TB_SETDISABLEDIMAGELIST (WM_USER+54)
1079 #define TB_GETDISABLEDIMAGELIST (WM_USER+55)
1080 #define TB_SETSTYLE (WM_USER+56)
1081 #define TB_GETSTYLE (WM_USER+57)
1082 #define TB_GETBUTTONSIZE (WM_USER+58)
1083 #define TB_SETBUTTONWIDTH (WM_USER+59)
1084 #define TB_SETMAXTEXTROWS (WM_USER+60)
1085 #define TB_GETTEXTROWS (WM_USER+61)
1086 #define TB_GETOBJECT (WM_USER+62)
1087 #define TB_GETBUTTONINFOW (WM_USER+63)
1088 #define TB_GETBUTTONINFOA (WM_USER+65)
1089 #define TB_GETBUTTONINFO WINELIB_NAME_AW(TB_GETBUTTONINFO)
1090 #define TB_SETBUTTONINFOW (WM_USER+64)
1091 #define TB_SETBUTTONINFOA (WM_USER+66)
1092 #define TB_SETBUTTONINFO WINELIB_NAME_AW(TB_SETBUTTONINFO)
1093 #define TB_SETDRAWTEXTFLAGS (WM_USER+70)
1094 #define TB_GETHOTITEM (WM_USER+71)
1095 #define TB_SETHOTITEM (WM_USER+72)
1096 #define TB_SETANCHORHIGHLIGHT (WM_USER+73)
1097 #define TB_GETANCHORHIGHLIGHT (WM_USER+74)
1098 #define TB_MAPACCELERATORA (WM_USER+78)
1099 #define TB_MAPACCELERATORW (WM_USER+90)
1100 #define TB_MAPACCELERATOR WINELIB_NAME_AW(TB_MAPACCELERATOR)
1101 #define TB_GETINSERTMARK (WM_USER+79)
1102 #define TB_SETINSERTMARK (WM_USER+80)
1103 #define TB_INSERTMARKHITTEST (WM_USER+81)
1104 #define TB_MOVEBUTTON (WM_USER+82)
1105 #define TB_GETMAXSIZE (WM_USER+83)
1106 #define TB_SETEXTENDEDSTYLE (WM_USER+84)
1107 #define TB_GETEXTENDEDSTYLE (WM_USER+85)
1108 #define TB_GETPADDING (WM_USER+86)
1109 #define TB_SETPADDING (WM_USER+87)
1110 #define TB_SETINSERTMARKCOLOR (WM_USER+88)
1111 #define TB_GETINSERTMARKCOLOR (WM_USER+89)
1112 #define TB_SETCOLORSCHEME CCM_SETCOLORSCHEME
1113 #define TB_GETCOLORSCHEME CCM_GETCOLORSCHEME
1114 #define TB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1115 #define TB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1116 #define TB_GETSTRINGW (WM_USER+91)
1117 #define TB_GETSTRINGA (WM_USER+92)
1118 #define TB_GETSTRING WINELIB_NAME_AW(TB_GETSTRING)
1120 /* undocumented messages in Toolbar */
1121 #define TB_UNKWN45D (WM_USER+93)
1122 #define TB_UNKWN45E (WM_USER+94)
1123 #define TB_UNKWN460 (WM_USER+96)
1124 #define TB_UNKWN462 (WM_USER+98)
1125 #define TB_UNKWN463 (WM_USER+99)
1126 #define TB_UNKWN464 (WM_USER+100)
1129 #define TBN_FIRST (0U-700U)
1130 #define TBN_LAST (0U-720U)
1131 #define TBN_GETBUTTONINFOA (TBN_FIRST-0)
1132 #define TBN_GETBUTTONINFOW (TBN_FIRST-20)
1133 #define TBN_GETBUTTONINFO WINELIB_NAME_AW(TBN_GETBUTTONINFO)
1134 #define TBN_BEGINDRAG (TBN_FIRST-1)
1135 #define TBN_ENDDRAG (TBN_FIRST-2)
1136 #define TBN_BEGINADJUST (TBN_FIRST-3)
1137 #define TBN_ENDADJUST (TBN_FIRST-4)
1138 #define TBN_RESET (TBN_FIRST-5)
1139 #define TBN_QUERYINSERT (TBN_FIRST-6)
1140 #define TBN_QUERYDELETE (TBN_FIRST-7)
1141 #define TBN_TOOLBARCHANGE (TBN_FIRST-8)
1142 #define TBN_CUSTHELP (TBN_FIRST-9)
1143 #define TBN_DROPDOWN (TBN_FIRST-10)
1144 #define TBN_GETOBJECT (TBN_FIRST-12)
1145 #define TBN_HOTITEMCHANGE (TBN_FIRST-13)
1146 #define TBN_DRAGOUT (TBN_FIRST-14)
1147 #define TBN_DELETINGBUTTON (TBN_FIRST-15)
1148 #define TBN_GETDISPINFOA (TBN_FIRST-16)
1149 #define TBN_GETDISPINFOW (TBN_FIRST-17)
1150 #define TBN_GETDISPINFO WINELIB_NAME_AW(TBN_GETDISPINFO)
1151 #define TBN_GETINFOTIPA (TBN_FIRST-18)
1152 #define TBN_GETINFOTIPW (TBN_FIRST-19)
1153 #define TBN_GETINFOTIP WINELIB_NAME_AW(TBN_GETINFOTIP)
1154 #define TBN_INITCUSTOMIZE (TBN_FIRST-23)
1155 #define TBNRF_HIDEHELP 0x00000001
1158 /* Return values from TBN_DROPDOWN */
1159 #define TBDDRET_DEFAULT 0
1160 #define TBDDRET_NODEFAULT 1
1161 #define TBDDRET_TREATPRESSED 2
1163 typedef struct _NMTBCUSTOMDRAW
1166 HBRUSH hbrMonoDither
;
1171 COLORREF clrTextHighlight
;
1172 COLORREF clrBtnFace
;
1173 COLORREF clrBtnHighlight
;
1174 COLORREF clrHighlightHotTrack
;
1177 int nHLStringBkMode
;
1178 } NMTBCUSTOMDRAW
, *LPNMTBCUSTOMDRAW
;
1180 /* return flags for Toolbar NM_CUSTOMDRAW notifications */
1181 #define TBCDRF_NOEDGES 0x00010000 /* Don't draw button edges */
1182 #define TBCDRF_HILITEHOTTRACK 0x00020000 /* Use color of the button bkgnd */
1183 /* when hottracked */
1184 #define TBCDRF_NOOFFSET 0x00040000 /* No offset button if pressed */
1185 #define TBCDRF_NOMARK 0x00080000 /* Don't draw default highlight */
1186 /* for TBSTATE_MARKED */
1187 #define TBCDRF_NOETCHEDEFFECT 0x00100000 /* No etched effect for */
1188 /* disabled items */
1189 #define TBCDRF_BLENDICON 0x00200000 /* ILD_BLEND50 on the icon image */
1190 #define TBCDRF_NOBACKGROUND 0x00400000 /* ILD_BLEND50 on the icon image */
1193 /* This is just for old CreateToolbar. */
1194 /* Don't use it in new programs. */
1195 typedef struct _OLDTBBUTTON
{
1202 } OLDTBBUTTON
, *POLDTBBUTTON
, *LPOLDTBBUTTON
;
1203 typedef const OLDTBBUTTON
*LPCOLDTBBUTTON
;
1206 typedef struct _TBBUTTON
{
1214 } TBBUTTON
, *PTBBUTTON
, *LPTBBUTTON
;
1215 typedef const TBBUTTON
*LPCTBBUTTON
;
1218 typedef struct _COLORMAP
{
1221 } COLORMAP
, *LPCOLORMAP
;
1224 typedef struct tagTBADDBITMAP
{
1227 } TBADDBITMAP
, *LPTBADDBITMAP
;
1229 #define HINST_COMMCTRL ((HINSTANCE)-1)
1230 #define IDB_STD_SMALL_COLOR 0
1231 #define IDB_STD_LARGE_COLOR 1
1232 #define IDB_VIEW_SMALL_COLOR 4
1233 #define IDB_VIEW_LARGE_COLOR 5
1234 #define IDB_HIST_SMALL_COLOR 8
1235 #define IDB_HIST_LARGE_COLOR 9
1242 #define STD_DELETE 5
1243 #define STD_FILENEW 6
1244 #define STD_FILEOPEN 7
1245 #define STD_FILESAVE 8
1246 #define STD_PRINTPRE 9
1247 #define STD_PROPERTIES 10
1250 #define STD_REPLACE 13
1251 #define STD_PRINT 14
1253 #define VIEW_LARGEICONS 0
1254 #define VIEW_SMALLICONS 1
1256 #define VIEW_DETAILS 3
1257 #define VIEW_SORTNAME 4
1258 #define VIEW_SORTSIZE 5
1259 #define VIEW_SORTDATE 6
1260 #define VIEW_SORTTYPE 7
1261 #define VIEW_PARENTFOLDER 8
1262 #define VIEW_NETCONNECT 9
1263 #define VIEW_NETDISCONNECT 10
1264 #define VIEW_NEWFOLDER 11
1265 #define VIEW_VIEWMENU 12
1268 #define HIST_FORWARD 1
1269 #define HIST_FAVORITES 2
1270 #define HIST_ADDTOFAVORITES 3
1271 #define HIST_VIEWTREE 4
1273 typedef struct tagTBSAVEPARAMSA
{
1276 LPCSTR pszValueName
;
1277 } TBSAVEPARAMSA
, *LPTBSAVEPARAMSA
;
1279 typedef struct tagTBSAVEPARAMSW
{
1282 LPCWSTR pszValueName
;
1283 } TBSAVEPARAMSW
, *LPTBSAVEPARAMSW
;
1285 #define TBSAVEPARAMS WINELIB_NAME_AW(TBSAVEPARAMS)
1286 #define LPTBSAVEPARAMS WINELIB_NAME_AW(LPTBSAVEPARAMS)
1300 } TBBUTTONINFOA
, *LPTBBUTTONINFOA
;
1314 } TBBUTTONINFOW
, *LPTBBUTTONINFOW
;
1316 #define TBBUTTONINFO WINELIB_NAME_AW(TBBUTTONINFO)
1317 #define LPTBBUTTONINFO WINELIB_NAME_AW(LPTBBUTTONINFO)
1319 typedef struct tagNMTBHOTITEM
1325 } NMTBHOTITEM
, *LPNMTBHOTITEM
;
1327 typedef struct tagNMTBGETINFOTIPA
1334 } NMTBGETINFOTIPA
, *LPNMTBGETINFOTIPA
;
1336 typedef struct tagNMTBGETINFOTIPW
1343 } NMTBGETINFOTIPW
, *LPNMTBGETINFOTIPW
;
1345 #define NMTBGETINFOTIP WINELIB_NAME_AW(NMTBGETINFOFTIP)
1346 #define LPNMTBGETINFOTIP WINELIB_NAME_AW(LPNMTBGETINFOTIP)
1357 } NMTBDISPINFOA
, *LPNMTBDISPINFOA
;
1368 } NMTBDISPINFOW
, *LPNMTBDISPINFOW
;
1370 #define NMTBDISPINFO WINELIB_NAME_AW(NMTBDISPINFO)
1371 #define LPNMTBDISPINFO WINELIB_NAME_AW(LPNMTBDISPINFO)
1373 /* contents of dwMask in the NMTBDISPINFO structure */
1374 #define TBNF_IMAGE 0x00000001
1375 #define TBNF_TEXT 0x00000002
1376 #define TBNF_DI_SETITEM 0x10000000
1379 typedef struct tagNMTOOLBARA
1386 RECT rcButton
; /* Version 5.80 */
1387 } NMTOOLBARA
, *LPNMTOOLBARA
, TBNOTIFYA
, *LPTBNOTIFYA
;
1389 typedef struct tagNMTOOLBARW
1396 RECT rcButton
; /* Version 5.80 */
1397 } NMTOOLBARW
, *LPNMTOOLBARW
, TBNOTIFYW
, *LPTBNOTIFYW
;
1399 #define NMTOOLBAR WINELIB_NAME_AW(NMTOOLBAR)
1400 #define LPNMTOOLBAR WINELIB_NAME_AW(LPNMTOOLBAR)
1401 #define TBNOTIFY WINELIB_NAME_AW(TBNOTIFY)
1402 #define LPTBNOTIFY WINELIB_NAME_AW(LPTBNOTIFY)
1411 } TBREPLACEBITMAP
, *LPTBREPLACEBITMAP
;
1413 #define HICF_OTHER 0x00000000
1414 #define HICF_MOUSE 0x00000001 /* Triggered by mouse */
1415 #define HICF_ARROWKEYS 0x00000002 /* Triggered by arrow keys */
1416 #define HICF_ACCELERATOR 0x00000004 /* Triggered by accelerator */
1417 #define HICF_DUPACCEL 0x00000008 /* This accelerator is not unique */
1418 #define HICF_ENTERING 0x00000010 /* idOld is invalid */
1419 #define HICF_LEAVING 0x00000020 /* idNew is invalid */
1420 #define HICF_RESELECT 0x00000040 /* hot item reselected */
1421 #define HICF_LMOUSE 0x00000080 /* left mouse button selected */
1422 #define HICF_TOGGLEDROPDOWN 0x00000100 /* Toggle button's dropdown state */
1428 } TBINSERTMARK
, *LPTBINSERTMARK
;
1429 #define TBIMHT_AFTER 0x00000001 /* TRUE = insert After iButton, otherwise before */
1430 #define TBIMHT_BACKGROUND 0x00000002 /* TRUE if and only if missed buttons completely */
1433 CreateToolbar(HWND
, DWORD
, UINT
, INT
, HINSTANCE
,
1434 UINT
, LPCTBBUTTON
, INT
);
1437 CreateToolbarEx(HWND
, DWORD
, UINT
, INT
,
1438 HINSTANCE
, UINT
, LPCTBBUTTON
,
1439 INT
, INT
, INT
, INT
, INT
, UINT
);
1442 CreateMappedBitmap (HINSTANCE
, INT
, UINT
, LPCOLORMAP
, INT
);
1447 #define TOOLTIPS_CLASSA "tooltips_class32"
1448 #if defined(__GNUC__)
1449 # define TOOLTIPS_CLASSW (const WCHAR []){ 't','o','o','l','t','i','p','s','_', \
1450 'c','l','a','s','s','3','2',0 }
1451 #elif defined(_MSC_VER)
1452 # define TOOLTIPS_CLASSW L"tooltips_class32"
1454 static const WCHAR TOOLTIPS_CLASSW
[] = { 't','o','o','l','t','i','p','s','_',
1455 'c','l','a','s','s','3','2',0 };
1457 #define TOOLTIPS_CLASS WINELIB_NAME_AW(TOOLTIPS_CLASS)
1459 #define INFOTIPSIZE 1024
1461 #define TTS_ALWAYSTIP 0x01
1462 #define TTS_NOPREFIX 0x02
1463 #define TTS_NOANIMATE 0x10
1464 #define TTS_NOFADE 0x20
1465 #define TTS_BALLOON 0x40
1466 #define TTS_CLOSE 0x80
1468 #define TTF_IDISHWND 0x0001
1469 #define TTF_CENTERTIP 0x0002
1470 #define TTF_RTLREADING 0x0004
1471 #define TTF_SUBCLASS 0x0010
1472 #define TTF_TRACK 0x0020
1473 #define TTF_ABSOLUTE 0x0080
1474 #define TTF_TRANSPARENT 0x0100
1475 #define TTF_DI_SETITEM 0x8000 /* valid only on the TTN_NEEDTEXT callback */
1478 #define TTDT_AUTOMATIC 0
1479 #define TTDT_RESHOW 1
1480 #define TTDT_AUTOPOP 2
1481 #define TTDT_INITIAL 3
1484 #define TTM_ACTIVATE (WM_USER+1)
1485 #define TTM_SETDELAYTIME (WM_USER+3)
1486 #define TTM_ADDTOOLA (WM_USER+4)
1487 #define TTM_ADDTOOLW (WM_USER+50)
1488 #define TTM_ADDTOOL WINELIB_NAME_AW(TTM_ADDTOOL)
1489 #define TTM_DELTOOLA (WM_USER+5)
1490 #define TTM_DELTOOLW (WM_USER+51)
1491 #define TTM_DELTOOL WINELIB_NAME_AW(TTM_DELTOOL)
1492 #define TTM_NEWTOOLRECTA (WM_USER+6)
1493 #define TTM_NEWTOOLRECTW (WM_USER+52)
1494 #define TTM_NEWTOOLRECT WINELIB_NAME_AW(TTM_NEWTOOLRECT)
1495 #define TTM_RELAYEVENT (WM_USER+7)
1496 #define TTM_GETTOOLINFOA (WM_USER+8)
1497 #define TTM_GETTOOLINFOW (WM_USER+53)
1498 #define TTM_GETTOOLINFO WINELIB_NAME_AW(TTM_GETTOOLINFO)
1499 #define TTM_SETTOOLINFOA (WM_USER+9)
1500 #define TTM_SETTOOLINFOW (WM_USER+54)
1501 #define TTM_SETTOOLINFO WINELIB_NAME_AW(TTM_SETTOOLINFO)
1502 #define TTM_HITTESTA (WM_USER+10)
1503 #define TTM_HITTESTW (WM_USER+55)
1504 #define TTM_HITTEST WINELIB_NAME_AW(TTM_HITTEST)
1505 #define TTM_GETTEXTA (WM_USER+11)
1506 #define TTM_GETTEXTW (WM_USER+56)
1507 #define TTM_GETTEXT WINELIB_NAME_AW(TTM_GETTEXT)
1508 #define TTM_UPDATETIPTEXTA (WM_USER+12)
1509 #define TTM_UPDATETIPTEXTW (WM_USER+57)
1510 #define TTM_UPDATETIPTEXT WINELIB_NAME_AW(TTM_UPDATETIPTEXT)
1511 #define TTM_GETTOOLCOUNT (WM_USER+13)
1512 #define TTM_ENUMTOOLSA (WM_USER+14)
1513 #define TTM_ENUMTOOLSW (WM_USER+58)
1514 #define TTM_ENUMTOOLS WINELIB_NAME_AW(TTM_ENUMTOOLS)
1515 #define TTM_GETCURRENTTOOLA (WM_USER+15)
1516 #define TTM_GETCURRENTTOOLW (WM_USER+59)
1517 #define TTM_GETCURRENTTOOL WINELIB_NAME_AW(TTM_GETCURRENTTOOL)
1518 #define TTM_WINDOWFROMPOINT (WM_USER+16)
1519 #define TTM_TRACKACTIVATE (WM_USER+17)
1520 #define TTM_TRACKPOSITION (WM_USER+18)
1521 #define TTM_SETTIPBKCOLOR (WM_USER+19)
1522 #define TTM_SETTIPTEXTCOLOR (WM_USER+20)
1523 #define TTM_GETDELAYTIME (WM_USER+21)
1524 #define TTM_GETTIPBKCOLOR (WM_USER+22)
1525 #define TTM_GETTIPTEXTCOLOR (WM_USER+23)
1526 #define TTM_SETMAXTIPWIDTH (WM_USER+24)
1527 #define TTM_GETMAXTIPWIDTH (WM_USER+25)
1528 #define TTM_SETMARGIN (WM_USER+26)
1529 #define TTM_GETMARGIN (WM_USER+27)
1530 #define TTM_POP (WM_USER+28)
1531 #define TTM_UPDATE (WM_USER+29)
1532 #define TTM_GETBUBBLESIZE (WM_USER+30)
1535 #define TTN_FIRST (0U-520U)
1536 #define TTN_LAST (0U-549U)
1537 #define TTN_GETDISPINFOA (TTN_FIRST-0)
1538 #define TTN_GETDISPINFOW (TTN_FIRST-10)
1539 #define TTN_GETDISPINFO WINELIB_NAME_AW(TTN_GETDISPINFO)
1540 #define TTN_SHOW (TTN_FIRST-1)
1541 #define TTN_POP (TTN_FIRST-2)
1543 #define TTN_NEEDTEXT TTN_GETDISPINFO
1544 #define TTN_NEEDTEXTA TTN_GETDISPINFOA
1545 #define TTN_NEEDTEXTW TTN_GETDISPINFOW
1547 typedef struct tagTOOLINFOA
{
1556 } TTTOOLINFOA
, *LPTOOLINFOA
, *PTOOLINFOA
, *LPTTTOOLINFOA
;
1558 typedef struct tagTOOLINFOW
{
1567 } TTTOOLINFOW
, *LPTOOLINFOW
, *PTOOLINFOW
, *LPTTTOOLINFOW
;
1569 #define TTTOOLINFO WINELIB_NAME_AW(TTTOOLINFO)
1570 #define TOOLINFO WINELIB_NAME_AW(TTTOOLINFO)
1571 #define PTOOLINFO WINELIB_NAME_AW(PTOOLINFO)
1572 #define LPTTTOOLINFO WINELIB_NAME_AW(LPTTTOOLINFO)
1573 #define LPTOOLINFO WINELIB_NAME_AW(LPTOOLINFO)
1575 #define TTTOOLINFOA_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOA, lpszText)
1576 #define TTTOOLINFOW_V1_SIZE CCSIZEOF_STRUCT(TTTOOLINFOW, lpszText)
1577 #define TTTOOLINFO_V1_SIZE CCSIZEOF_STRUCT(WINELIB_NAME_AW(TTTOOLINFO), lpszText)
1579 typedef struct _TT_HITTESTINFOA
1584 } TTHITTESTINFOA
, *LPTTHITTESTINFOA
;
1585 #define LPHITTESTINFOA LPTTHITTESTINFOA
1587 typedef struct _TT_HITTESTINFOW
1592 } TTHITTESTINFOW
, *LPTTHITTESTINFOW
;
1593 #define LPHITTESTINFOW LPTTHITTESTINFOW
1595 #define TTHITTESTINFO WINELIB_NAME_AW(TTHITTESTINFO)
1596 #define LPTTHITTESTINFO WINELIB_NAME_AW(LPTTHITTESTINFO)
1597 #define LPHITTESTINFO WINELIB_NAME_AW(LPHITTESTINFO)
1599 typedef struct tagNMTTDISPINFOA
1607 } NMTTDISPINFOA
, *LPNMTTDISPINFOA
;
1609 typedef struct tagNMTTDISPINFOW
1617 } NMTTDISPINFOW
, *LPNMTTDISPINFOW
;
1619 #define NMTTDISPINFO WINELIB_NAME_AW(NMTTDISPINFO)
1620 #define LPNMTTDISPINFO WINELIB_NAME_AW(LPNMTTDISPINFO)
1622 #define NMTTDISPINFO_V1_SIZEA CCSIZEOF_STRUCT(NMTTDISPINFOA, uFlags)
1623 #define NMTTDISPINFO_V1_SIZEW CCSIZEOF_STRUCT(NMTTDISPINFOW, uFlags)
1624 #define NMTTDISPINFO_V1_SIZE WINELIB_NAME_AW(NMTTDISPINFO_V1_SIZE)
1626 #define TOOLTIPTEXTW NMTTDISPINFOW
1627 #define TOOLTIPTEXTA NMTTDISPINFOA
1628 #define TOOLTIPTEXT NMTTDISPINFO
1629 #define LPTOOLTIPTEXTW LPNMTTDISPINFOW
1630 #define LPTOOLTIPTEXTA LPNMTTDISPINFOA
1631 #define LPTOOLTIPTEXT LPNMTTDISPINFO
1636 #define REBARCLASSNAMEA "ReBarWindow32"
1637 #if defined(__GNUC__)
1638 # define REBARCLASSNAMEW (const WCHAR []){ 'R','e','B','a','r', \
1639 'W','i','n','d','o','w','3','2',0 }
1640 #elif defined(_MSC_VER)
1641 # define REBARCLASSNAMEW L"ReBarWindow32"
1643 static const WCHAR REBARCLASSNAMEW
[] = { 'R','e','B','a','r',
1644 'W','i','n','d','o','w','3','2',0 };
1646 #define REBARCLASSNAME WINELIB_NAME_AW(REBARCLASSNAME)
1648 #define RBS_TOOLTIPS 0x0100
1649 #define RBS_VARHEIGHT 0x0200
1650 #define RBS_BANDBORDERS 0x0400
1651 #define RBS_FIXEDORDER 0x0800
1652 #define RBS_REGISTERDROP 0x1000
1653 #define RBS_AUTOSIZE 0x2000
1654 #define RBS_VERTICALGRIPPER 0x4000
1655 #define RBS_DBLCLKTOGGLE 0x8000
1657 #define RBIM_IMAGELIST 0x00000001
1659 #define RBBIM_STYLE 0x00000001
1660 #define RBBIM_COLORS 0x00000002
1661 #define RBBIM_TEXT 0x00000004
1662 #define RBBIM_IMAGE 0x00000008
1663 #define RBBIM_CHILD 0x00000010
1664 #define RBBIM_CHILDSIZE 0x00000020
1665 #define RBBIM_SIZE 0x00000040
1666 #define RBBIM_BACKGROUND 0x00000080
1667 #define RBBIM_ID 0x00000100
1668 #define RBBIM_IDEALSIZE 0x00000200
1669 #define RBBIM_LPARAM 0x00000400
1670 #define RBBIM_HEADERSIZE 0x00000800
1672 #define RBBS_BREAK 0x00000001
1673 #define RBBS_FIXEDSIZE 0x00000002
1674 #define RBBS_CHILDEDGE 0x00000004
1675 #define RBBS_HIDDEN 0x00000008
1676 #define RBBS_NOVERT 0x00000010
1677 #define RBBS_FIXEDBMP 0x00000020
1678 #define RBBS_VARIABLEHEIGHT 0x00000040
1679 #define RBBS_GRIPPERALWAYS 0x00000080
1680 #define RBBS_NOGRIPPER 0x00000100
1681 #define RBBS_USECHEVRON 0x00000200
1682 #define RBBS_HIDETITLE 0x00000400
1683 #define RBBS_TOPALIGN 0x00000800
1685 #define RBNM_ID 0x00000001
1686 #define RBNM_STYLE 0x00000002
1687 #define RBNM_LPARAM 0x00000004
1689 #define RBHT_NOWHERE 0x0001
1690 #define RBHT_CAPTION 0x0002
1691 #define RBHT_CLIENT 0x0003
1692 #define RBHT_GRABBER 0x0004
1693 #define RBHT_CHEVRON 0x0008
1695 #define RB_INSERTBANDA (WM_USER+1)
1696 #define RB_INSERTBANDW (WM_USER+10)
1697 #define RB_INSERTBAND WINELIB_NAME_AW(RB_INSERTBAND)
1698 #define RB_DELETEBAND (WM_USER+2)
1699 #define RB_GETBARINFO (WM_USER+3)
1700 #define RB_SETBARINFO (WM_USER+4)
1701 #define RB_SETBANDINFOA (WM_USER+6)
1702 #define RB_SETBANDINFOW (WM_USER+11)
1703 #define RB_SETBANDINFO WINELIB_NAME_AW(RB_SETBANDINFO)
1704 #define RB_SETPARENT (WM_USER+7)
1705 #define RB_HITTEST (WM_USER+8)
1706 #define RB_GETRECT (WM_USER+9)
1707 #define RB_GETBANDCOUNT (WM_USER+12)
1708 #define RB_GETROWCOUNT (WM_USER+13)
1709 #define RB_GETROWHEIGHT (WM_USER+14)
1710 #define RB_IDTOINDEX (WM_USER+16)
1711 #define RB_GETTOOLTIPS (WM_USER+17)
1712 #define RB_SETTOOLTIPS (WM_USER+18)
1713 #define RB_SETBKCOLOR (WM_USER+19)
1714 #define RB_GETBKCOLOR (WM_USER+20)
1715 #define RB_SETTEXTCOLOR (WM_USER+21)
1716 #define RB_GETTEXTCOLOR (WM_USER+22)
1717 #define RB_SIZETORECT (WM_USER+23)
1718 #define RB_BEGINDRAG (WM_USER+24)
1719 #define RB_ENDDRAG (WM_USER+25)
1720 #define RB_DRAGMOVE (WM_USER+26)
1721 #define RB_GETBARHEIGHT (WM_USER+27)
1722 #define RB_GETBANDINFOW (WM_USER+28)
1723 #define RB_GETBANDINFOA (WM_USER+29)
1724 #define RB_GETBANDINFO WINELIB_NAME_AW(RB_GETBANDINFO)
1725 #define RB_MINIMIZEBAND (WM_USER+30)
1726 #define RB_MAXIMIZEBAND (WM_USER+31)
1727 #define RB_GETBANDBORDERS (WM_USER+34)
1728 #define RB_SHOWBAND (WM_USER+35)
1729 #define RB_SETPALETTE (WM_USER+37)
1730 #define RB_GETPALETTE (WM_USER+38)
1731 #define RB_MOVEBAND (WM_USER+39)
1732 #define RB_GETBANDMARGINS (WM_USER+40)
1733 #define RB_PUSHCHEVRON (WM_USER+43)
1734 #define RB_GETDROPTARGET CCM_GETDROPTARGET
1735 #define RB_SETCOLORSCHEME CCM_SETCOLORSCHEME
1736 #define RB_GETCOLORSCHEME CCM_GETCOLORSCHEME
1737 #define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1738 #define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1740 #define RBN_FIRST (0U-831U)
1741 #define RBN_LAST (0U-859U)
1742 #define RBN_HEIGHTCHANGE (RBN_FIRST-0)
1743 #define RBN_GETOBJECT (RBN_FIRST-1)
1744 #define RBN_LAYOUTCHANGED (RBN_FIRST-2)
1745 #define RBN_AUTOSIZE (RBN_FIRST-3)
1746 #define RBN_BEGINDRAG (RBN_FIRST-4)
1747 #define RBN_ENDDRAG (RBN_FIRST-5)
1748 #define RBN_DELETINGBAND (RBN_FIRST-6)
1749 #define RBN_DELETEDBAND (RBN_FIRST-7)
1750 #define RBN_CHILDSIZE (RBN_FIRST-8)
1751 #define RBN_CHEVRONPUSHED (RBN_FIRST-10)
1752 #define RBN_MINMAX (RBN_FIRST-21)
1753 #define RBN_AUTOBREAK (RBN_FIRST-22)
1755 typedef struct tagREBARINFO
1760 } REBARINFO
, *LPREBARINFO
;
1762 typedef struct tagREBARBANDINFOA
1784 } REBARBANDINFOA
, *LPREBARBANDINFOA
;
1786 typedef REBARBANDINFOA
const *LPCREBARBANDINFOA
;
1788 typedef struct tagREBARBANDINFOW
1810 } REBARBANDINFOW
, *LPREBARBANDINFOW
;
1812 typedef REBARBANDINFOW
const *LPCREBARBANDINFOW
;
1814 #define REBARBANDINFO WINELIB_NAME_AW(REBARBANDINFO)
1815 #define LPREBARBANDINFO WINELIB_NAME_AW(LPREBARBANDINFO)
1816 #define LPCREBARBANDINFO WINELIB_NAME_AW(LPCREBARBANDINFO)
1818 #define REBARBANDINFOA_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOA, wID)
1819 #define REBARBANDINFOW_V3_SIZE CCSIZEOF_STRUCT(REBARBANDINFOW, wID)
1820 #define REBARBANDINFO_V3_SIZE CCSIZEOF_STRUCT(WINELIB_NAME_AW(REBARBANDINFO), wID)
1822 typedef struct tagNMREBARCHILDSIZE
1829 } NMREBARCHILDSIZE
, *LPNMREBARCHILDSIZE
;
1831 typedef struct tagNMREBAR
1839 } NMREBAR
, *LPNMREBAR
;
1841 typedef struct tagNMRBAUTOSIZE
1847 } NMRBAUTOSIZE
, *LPNMRBAUTOSIZE
;
1849 typedef struct tagNMREBARCHEVRON
1857 } NMREBARCHEVRON
, *LPNMREBARCHEVRON
;
1859 typedef struct _RB_HITTESTINFO
1864 } RBHITTESTINFO
, *LPRBHITTESTINFO
;
1867 /* Trackbar control */
1869 #define TRACKBAR_CLASSA "msctls_trackbar32"
1870 #if defined(__GNUC__)
1871 # define TRACKBAR_CLASSW (const WCHAR []){ 'm','s','c','t','l','s','_', \
1872 't','r','a','c','k','b','a','r','3','2',0 }
1873 #elif defined(_MSC_VER)
1874 # define TRACKBAR_CLASSW L"msctls_trackbar32"
1876 static const WCHAR TRACKBAR_CLASSW
[] = { 'm','s','c','t','l','s','_',
1877 't','r','a','c','k','b','a','r','3','2',0 };
1879 #define TRACKBAR_CLASS WINELIB_NAME_AW(TRACKBAR_CLASS)
1881 #define TBS_AUTOTICKS 0x0001
1882 #define TBS_VERT 0x0002
1883 #define TBS_HORZ 0x0000
1884 #define TBS_TOP 0x0004
1885 #define TBS_BOTTOM 0x0000
1886 #define TBS_LEFT 0x0004
1887 #define TBS_RIGHT 0x0000
1888 #define TBS_BOTH 0x0008
1889 #define TBS_NOTICKS 0x0010
1890 #define TBS_ENABLESELRANGE 0x0020
1891 #define TBS_FIXEDLENGTH 0x0040
1892 #define TBS_NOTHUMB 0x0080
1893 #define TBS_TOOLTIPS 0x0100
1894 #define TBS_REVERSED 0x0200
1895 #define TBS_DOWNISLEFT 0x0400
1899 #define TBTS_BOTTOM 2
1900 #define TBTS_RIGHT 3
1903 #define TB_LINEDOWN 1
1905 #define TB_PAGEDOWN 3
1906 #define TB_THUMBPOSITION 4
1907 #define TB_THUMBTRACK 5
1910 #define TB_ENDTRACK 8
1912 #define TBCD_TICS 0x0001
1913 #define TBCD_THUMB 0x0002
1914 #define TBCD_CHANNEL 0x0003
1916 #define TBM_GETPOS (WM_USER)
1917 #define TBM_GETRANGEMIN (WM_USER+1)
1918 #define TBM_GETRANGEMAX (WM_USER+2)
1919 #define TBM_GETTIC (WM_USER+3)
1920 #define TBM_SETTIC (WM_USER+4)
1921 #define TBM_SETPOS (WM_USER+5)
1922 #define TBM_SETRANGE (WM_USER+6)
1923 #define TBM_SETRANGEMIN (WM_USER+7)
1924 #define TBM_SETRANGEMAX (WM_USER+8)
1925 #define TBM_CLEARTICS (WM_USER+9)
1926 #define TBM_SETSEL (WM_USER+10)
1927 #define TBM_SETSELSTART (WM_USER+11)
1928 #define TBM_SETSELEND (WM_USER+12)
1929 #define TBM_GETPTICS (WM_USER+14)
1930 #define TBM_GETTICPOS (WM_USER+15)
1931 #define TBM_GETNUMTICS (WM_USER+16)
1932 #define TBM_GETSELSTART (WM_USER+17)
1933 #define TBM_GETSELEND (WM_USER+18)
1934 #define TBM_CLEARSEL (WM_USER+19)
1935 #define TBM_SETTICFREQ (WM_USER+20)
1936 #define TBM_SETPAGESIZE (WM_USER+21)
1937 #define TBM_GETPAGESIZE (WM_USER+22)
1938 #define TBM_SETLINESIZE (WM_USER+23)
1939 #define TBM_GETLINESIZE (WM_USER+24)
1940 #define TBM_GETTHUMBRECT (WM_USER+25)
1941 #define TBM_GETCHANNELRECT (WM_USER+26)
1942 #define TBM_SETTHUMBLENGTH (WM_USER+27)
1943 #define TBM_GETTHUMBLENGTH (WM_USER+28)
1944 #define TBM_SETTOOLTIPS (WM_USER+29)
1945 #define TBM_GETTOOLTIPS (WM_USER+30)
1946 #define TBM_SETTIPSIDE (WM_USER+31)
1947 #define TBM_SETBUDDY (WM_USER+32)
1948 #define TBM_GETBUDDY (WM_USER+33)
1949 #define TBM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
1950 #define TBM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
1955 #define WC_PAGESCROLLERA "SysPager"
1956 #if defined(__GNUC__)
1957 # define WC_PAGESCROLLERW (const WCHAR []){ 'S','y','s','P','a','g','e','r',0 }
1958 #elif defined(_MSC_VER)
1959 # define WC_PAGESCROLLERW L"SysPager"
1961 static const WCHAR WC_PAGESCROLLERW
[] = { 'S','y','s','P','a','g','e','r',0 };
1963 #define WC_PAGESCROLLER WINELIB_NAME_AW(WC_PAGESCROLLER)
1965 #define PGS_VERT 0x00000000
1966 #define PGS_HORZ 0x00000001
1967 #define PGS_AUTOSCROLL 0x00000002
1968 #define PGS_DRAGNDROP 0x00000004
1970 #define PGF_INVISIBLE 0
1971 #define PGF_NORMAL 1
1972 #define PGF_GRAYED 2
1973 #define PGF_DEPRESSED 4
1976 #define PGB_TOPORLEFT 0
1977 #define PGB_BOTTOMORRIGHT 1
1979 /* only used with PGN_SCROLL */
1980 #define PGF_SCROLLUP 1
1981 #define PGF_SCROLLDOWN 2
1982 #define PGF_SCROLLLEFT 4
1983 #define PGF_SCROLLRIGHT 8
1986 #define PGK_CONTROL 2
1989 /* only used with PGN_CALCSIZE */
1990 #define PGF_CALCWIDTH 1
1991 #define PGF_CALCHEIGHT 2
1993 #define PGM_FIRST 0x1400
1994 #define PGM_SETCHILD (PGM_FIRST+1)
1995 #define PGM_RECALCSIZE (PGM_FIRST+2)
1996 #define PGM_FORWARDMOUSE (PGM_FIRST+3)
1997 #define PGM_SETBKCOLOR (PGM_FIRST+4)
1998 #define PGM_GETBKCOLOR (PGM_FIRST+5)
1999 #define PGM_SETBORDER (PGM_FIRST+6)
2000 #define PGM_GETBORDER (PGM_FIRST+7)
2001 #define PGM_SETPOS (PGM_FIRST+8)
2002 #define PGM_GETPOS (PGM_FIRST+9)
2003 #define PGM_SETBUTTONSIZE (PGM_FIRST+10)
2004 #define PGM_GETBUTTONSIZE (PGM_FIRST+11)
2005 #define PGM_GETBUTTONSTATE (PGM_FIRST+12)
2006 #define PGM_GETDROPTARGET CCM_GETDROPTARGET
2008 #define PGN_FIRST (0U-900U)
2009 #define PGN_LAST (0U-950U)
2010 #define PGN_SCROLL (PGN_FIRST-1)
2011 #define PGN_CALCSIZE (PGN_FIRST-2)
2013 #include <pshpack1.h>
2024 } NMPGSCROLL
, *LPNMPGSCROLL
;
2026 #include <poppack.h>
2034 } NMPGCALCSIZE
, *LPNMPGCALCSIZE
;
2037 /* Treeview control */
2039 #define WC_TREEVIEWA "SysTreeView32"
2040 #if defined(__GNUC__)
2041 # define WC_TREEVIEWW (const WCHAR []){ 'S','y','s', \
2042 'T','r','e','e','V','i','e','w','3','2',0 }
2043 #elif defined(_MSC_VER)
2044 # define WC_TREEVIEWW L"SysTreeView32"
2046 static const WCHAR WC_TREEVIEWW
[] = { 'S','y','s',
2047 'T','r','e','e','V','i','e','w','3','2',0 };
2049 #define WC_TREEVIEW WINELIB_NAME_AW(WC_TREEVIEW)
2051 #define TVSIL_NORMAL 0
2052 #define TVSIL_STATE 2
2054 #define TV_FIRST 0x1100
2055 #define TVM_INSERTITEMA (TV_FIRST+0)
2056 #define TVM_INSERTITEMW (TV_FIRST+50)
2057 #define TVM_INSERTITEM WINELIB_NAME_AW(TVM_INSERTITEM)
2058 #define TVM_DELETEITEM (TV_FIRST+1)
2059 #define TVM_EXPAND (TV_FIRST+2)
2060 #define TVM_GETITEMRECT (TV_FIRST+4)
2061 #define TVM_GETCOUNT (TV_FIRST+5)
2062 #define TVM_GETINDENT (TV_FIRST+6)
2063 #define TVM_SETINDENT (TV_FIRST+7)
2064 #define TVM_GETIMAGELIST (TV_FIRST+8)
2065 #define TVM_SETIMAGELIST (TV_FIRST+9)
2066 #define TVM_GETNEXTITEM (TV_FIRST+10)
2067 #define TVM_SELECTITEM (TV_FIRST+11)
2068 #define TVM_GETITEMA (TV_FIRST+12)
2069 #define TVM_GETITEMW (TV_FIRST+62)
2070 #define TVM_GETITEM WINELIB_NAME_AW(TVM_GETITEM)
2071 #define TVM_SETITEMA (TV_FIRST+13)
2072 #define TVM_SETITEMW (TV_FIRST+63)
2073 #define TVM_SETITEM WINELIB_NAME_AW(TVM_SETITEM)
2074 #define TVM_EDITLABELA (TV_FIRST+14)
2075 #define TVM_EDITLABELW (TV_FIRST+65)
2076 #define TVM_EDITLABEL WINELIB_NAME_AW(TVM_EDITLABEL)
2077 #define TVM_GETEDITCONTROL (TV_FIRST+15)
2078 #define TVM_GETVISIBLECOUNT (TV_FIRST+16)
2079 #define TVM_HITTEST (TV_FIRST+17)
2080 #define TVM_CREATEDRAGIMAGE (TV_FIRST+18)
2081 #define TVM_SORTCHILDREN (TV_FIRST+19)
2082 #define TVM_ENSUREVISIBLE (TV_FIRST+20)
2083 #define TVM_SORTCHILDRENCB (TV_FIRST+21)
2084 #define TVM_ENDEDITLABELNOW (TV_FIRST+22)
2085 #define TVM_GETISEARCHSTRINGA (TV_FIRST+23)
2086 #define TVM_GETISEARCHSTRINGW (TV_FIRST+64)
2087 #define TVM_GETISEARCHSTRING WINELIB_NAME_AW(TVM_GETISEARCHSTRING)
2088 #define TVM_SETTOOLTIPS (TV_FIRST+24)
2089 #define TVM_GETTOOLTIPS (TV_FIRST+25)
2090 #define TVM_SETINSERTMARK (TV_FIRST+26)
2091 #define TVM_SETITEMHEIGHT (TV_FIRST+27)
2092 #define TVM_GETITEMHEIGHT (TV_FIRST+28)
2093 #define TVM_SETBKCOLOR (TV_FIRST+29)
2094 #define TVM_SETTEXTCOLOR (TV_FIRST+30)
2095 #define TVM_GETBKCOLOR (TV_FIRST+31)
2096 #define TVM_GETTEXTCOLOR (TV_FIRST+32)
2097 #define TVM_SETSCROLLTIME (TV_FIRST+33)
2098 #define TVM_GETSCROLLTIME (TV_FIRST+34)
2099 #define TVM_UNKNOWN35 (TV_FIRST+35)
2100 #define TVM_UNKNOWN36 (TV_FIRST+36)
2101 #define TVM_SETINSERTMARKCOLOR (TV_FIRST+37)
2102 #define TVM_GETINSERTMARKCOLOR (TV_FIRST+38)
2103 #define TVM_GETITEMSTATE (TV_FIRST+39)
2104 #define TVM_SETLINECOLOR (TV_FIRST+40)
2105 #define TVM_GETLINECOLOR (TV_FIRST+41)
2106 #define TVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
2107 #define TVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
2111 #define TVN_FIRST (0U-400U)
2112 #define TVN_LAST (0U-499U)
2114 #define TVN_SELCHANGINGA (TVN_FIRST-1)
2115 #define TVN_SELCHANGINGW (TVN_FIRST-50)
2116 #define TVN_SELCHANGING WINELIB_NAME_AW(TVN_SELCHANGING)
2118 #define TVN_SELCHANGEDA (TVN_FIRST-2)
2119 #define TVN_SELCHANGEDW (TVN_FIRST-51)
2120 #define TVN_SELCHANGED WINELIB_NAME_AW(TVN_SELCHANGED)
2122 #define TVN_GETDISPINFOA (TVN_FIRST-3)
2123 #define TVN_GETDISPINFOW (TVN_FIRST-52)
2124 #define TVN_GETDISPINFO WINELIB_NAME_AW(TVN_GETDISPINFO)
2126 #define TVN_SETDISPINFOA (TVN_FIRST-4)
2127 #define TVN_SETDISPINFOW (TVN_FIRST-53)
2128 #define TVN_SETDISPINFO WINELIB_NAME_AW(TVN_SETDISPINFO)
2130 #define TVN_ITEMEXPANDINGA (TVN_FIRST-5)
2131 #define TVN_ITEMEXPANDINGW (TVN_FIRST-54)
2132 #define TVN_ITEMEXPANDING WINELIB_NAME_AW(TVN_ITEMEXPANDING)
2134 #define TVN_ITEMEXPANDEDA (TVN_FIRST-6)
2135 #define TVN_ITEMEXPANDEDW (TVN_FIRST-55)
2136 #define TVN_ITEMEXPANDED WINELIB_NAME_AW(TVN_ITEMEXPANDED)
2138 #define TVN_BEGINDRAGA (TVN_FIRST-7)
2139 #define TVN_BEGINDRAGW (TVN_FIRST-56)
2140 #define TVN_BEGINDRAG WINELIB_NAME_AW(TVN_BEGINDRAG)
2142 #define TVN_BEGINRDRAGA (TVN_FIRST-8)
2143 #define TVN_BEGINRDRAGW (TVN_FIRST-57)
2144 #define TVN_BEGINRDRAG WINELIB_NAME_AW(TVN_BEGINRDRAG)
2146 #define TVN_DELETEITEMA (TVN_FIRST-9)
2147 #define TVN_DELETEITEMW (TVN_FIRST-58)
2148 #define TVN_DELETEITEM WINELIB_NAME_AW(TVN_DELETEITEM)
2150 #define TVN_BEGINLABELEDITA (TVN_FIRST-10)
2151 #define TVN_BEGINLABELEDITW (TVN_FIRST-59)
2152 #define TVN_BEGINLABELEDIT WINELIB_NAME_AW(TVN_BEGINLABELEDIT)
2154 #define TVN_ENDLABELEDITA (TVN_FIRST-11)
2155 #define TVN_ENDLABELEDITW (TVN_FIRST-60)
2156 #define TVN_ENDLABELEDIT WINELIB_NAME_AW(TVN_ENDLABELEDIT)
2158 #define TVN_KEYDOWN (TVN_FIRST-12)
2160 #define TVN_GETINFOTIPA (TVN_FIRST-13)
2161 #define TVN_GETINFOTIPW (TVN_FIRST-14)
2162 #define TVN_GETINFOTIP WINELIB_NAME_AW(TVN_GETINFOTIP)
2164 #define TVN_SINGLEEXPAND (TVN_FIRST-15)
2170 #define TVIF_TEXT 0x0001
2171 #define TVIF_IMAGE 0x0002
2172 #define TVIF_PARAM 0x0004
2173 #define TVIF_STATE 0x0008
2174 #define TVIF_HANDLE 0x0010
2175 #define TVIF_SELECTEDIMAGE 0x0020
2176 #define TVIF_CHILDREN 0x0040
2177 #define TVIF_INTEGRAL 0x0080
2178 #define TVIF_DI_SETITEM 0x1000
2180 #define TVI_ROOT ((HTREEITEM)0xffff0000) /* -65536 */
2181 #define TVI_FIRST ((HTREEITEM)0xffff0001) /* -65535 */
2182 #define TVI_LAST ((HTREEITEM)0xffff0002) /* -65534 */
2183 #define TVI_SORT ((HTREEITEM)0xffff0003) /* -65533 */
2185 #define TVIS_FOCUSED 0x0001
2186 #define TVIS_SELECTED 0x0002
2187 #define TVIS_CUT 0x0004
2188 #define TVIS_DROPHILITED 0x0008
2189 #define TVIS_BOLD 0x0010
2190 #define TVIS_EXPANDED 0x0020
2191 #define TVIS_EXPANDEDONCE 0x0040
2192 #define TVIS_EXPANDPARTIAL 0x0080
2193 #define TVIS_OVERLAYMASK 0x0f00
2194 #define TVIS_STATEIMAGEMASK 0xf000
2195 #define TVIS_USERMASK 0xf000
2197 #define TVHT_NOWHERE 0x0001
2198 #define TVHT_ONITEMICON 0x0002
2199 #define TVHT_ONITEMLABEL 0x0004
2200 #define TVHT_ONITEMINDENT 0x0008
2201 #define TVHT_ONITEMBUTTON 0x0010
2202 #define TVHT_ONITEMRIGHT 0x0020
2203 #define TVHT_ONITEMSTATEICON 0x0040
2204 #define TVHT_ONITEM 0x0046
2205 #define TVHT_ABOVE 0x0100
2206 #define TVHT_BELOW 0x0200
2207 #define TVHT_TORIGHT 0x0400
2208 #define TVHT_TOLEFT 0x0800
2210 #define TVS_HASBUTTONS 0x0001
2211 #define TVS_HASLINES 0x0002
2212 #define TVS_LINESATROOT 0x0004
2213 #define TVS_EDITLABELS 0x0008
2214 #define TVS_DISABLEDRAGDROP 0x0010
2215 #define TVS_SHOWSELALWAYS 0x0020
2216 #define TVS_RTLREADING 0x0040
2217 #define TVS_NOTOOLTIPS 0x0080
2218 #define TVS_CHECKBOXES 0x0100
2219 #define TVS_TRACKSELECT 0x0200
2220 #define TVS_SINGLEEXPAND 0x0400
2221 #define TVS_INFOTIP 0x0800
2222 #define TVS_FULLROWSELECT 0x1000
2223 #define TVS_NOSCROLL 0x2000
2224 #define TVS_NONEVENHEIGHT 0x4000
2225 #define TVS_NOHSCROLL 0x8000
2227 #define TVS_SHAREDIMAGELISTS 0x0000
2228 #define TVS_PRIVATEIMAGELISTS 0x0400
2231 #define TVE_COLLAPSE 0x0001
2232 #define TVE_EXPAND 0x0002
2233 #define TVE_TOGGLE 0x0003
2234 #define TVE_EXPANDPARTIAL 0x4000
2235 #define TVE_COLLAPSERESET 0x8000
2239 #define TVGN_PREVIOUS 2
2240 #define TVGN_PARENT 3
2241 #define TVGN_CHILD 4
2242 #define TVGN_FIRSTVISIBLE 5
2243 #define TVGN_NEXTVISIBLE 6
2244 #define TVGN_PREVIOUSVISIBLE 7
2245 #define TVGN_DROPHILITE 8
2246 #define TVGN_CARET 9
2247 #define TVGN_LASTVISIBLE 10
2249 #define TVC_UNKNOWN 0x00
2250 #define TVC_BYMOUSE 0x01
2251 #define TVC_BYKEYBOARD 0x02
2254 typedef struct _TREEITEM
*HTREEITEM
;
2267 } TVITEMA
, *LPTVITEMA
;
2280 } TVITEMW
, *LPTVITEMW
;
2282 #define TV_ITEMA TVITEMA
2283 #define TV_ITEMW TVITEMW
2284 #define LPTV_ITEMA LPTVITEMA
2285 #define LPTV_ITEMW LPTVITEMW
2287 #define TVITEM WINELIB_NAME_AW(TVITEM)
2288 #define LPTVITEM WINELIB_NAME_AW(LPTVITEM)
2289 #define TV_ITEM WINELIB_NAME_AW(TV_ITEM)
2290 #define LPTV_ITEM WINELIB_NAME_AW(LPTV_ITEM)
2304 } TVITEMEXA
, *LPTVITEMEXA
;
2318 } TVITEMEXW
, *LPTVITEMEXW
;
2320 #define TVITEMEX WINELIB_NAME_AW(TVITEMEX)
2321 #define LPTVITEMEX WINELIB_NAME_AW(LPTVITEMEX)
2323 typedef struct tagTVINSERTSTRUCTA
{
2325 HTREEITEM hInsertAfter
;
2330 } TVINSERTSTRUCTA
, *LPTVINSERTSTRUCTA
;
2332 typedef struct tagTVINSERTSTRUCTW
{
2334 HTREEITEM hInsertAfter
;
2339 } TVINSERTSTRUCTW
, *LPTVINSERTSTRUCTW
;
2341 #define TVINSERTSTRUCT WINELIB_NAME_AW(TVINSERTSTRUCT)
2342 #define LPTVINSERTSTRUCT WINELIB_NAME_AW(LPTVINSERTSTRUCT)
2344 #define TVINSERTSTRUCT_V1_SIZEA CCSIZEOF_STRUCT(TVINSERTSTRUCTA, item)
2345 #define TVINSERTSTRUCT_V1_SIZEW CCSIZEOF_STRUCT(TVINSERTSTRUCTW, item)
2346 #define TVINSERTSTRUCT_V1_SIZE WINELIB_NAME_AW(TVINSERTSTRUCT_V1_SIZE)
2348 #define TV_INSERTSTRUCT TVINSERTSTRUCT
2349 #define TV_INSERTSTRUCTA TVINSERTSTRUCTA
2350 #define TV_INSERTSTRUCTW TVINSERTSTRUCTW
2351 #define LPTV_INSERTSTRUCT LPTVINSERTSTRUCT
2352 #define LPTV_INSERTSTRUCTA LPTVINSERTSTRUCTA
2353 #define LPTV_INSERTSTRUCTW LPTVINSERTSTRUCTW
2357 typedef struct tagNMTREEVIEWA
{
2363 } NMTREEVIEWA
, *LPNMTREEVIEWA
;
2365 typedef struct tagNMTREEVIEWW
{
2371 } NMTREEVIEWW
, *LPNMTREEVIEWW
;
2373 #define NMTREEVIEW WINELIB_NAME_AW(NMTREEVIEW)
2374 #define NM_TREEVIEW WINELIB_NAME_AW(NMTREEVIEW)
2375 #define NM_TREEVIEWA NMTREEVIEWA
2376 #define NM_TREEVIEWW NMTREEVIEWW
2377 #define LPNMTREEVIEW WINELIB_NAME_AW(LPNMTREEVIEW)
2379 #define LPNM_TREEVIEW LPNMTREEVIEW
2380 #define LPNM_TREEVIEWA LPNMTREEVIEWA
2381 #define LPNM_TREEVIEWW LPNMTREEVIEWW
2383 typedef struct tagTVDISPINFOA
{
2386 } NMTVDISPINFOA
, *LPNMTVDISPINFOA
;
2388 typedef struct tagTVDISPINFOW
{
2391 } NMTVDISPINFOW
, *LPNMTVDISPINFOW
;
2393 #define NMTVDISPINFO WINELIB_NAME_AW(NMTVDISPINFO)
2394 #define LPNMTVDISPINFO WINELIB_NAME_AW(LPNMTVDISPINFO)
2395 #define TV_DISPINFO NMTVDISPINFO
2397 typedef INT (CALLBACK
*PFNTVCOMPARE
)(LPARAM
, LPARAM
, LPARAM
);
2399 typedef struct tagTVSORTCB
2402 PFNTVCOMPARE lpfnCompare
;
2404 } TVSORTCB
, *LPTVSORTCB
;
2406 #define TV_SORTCB TVSORTCB
2407 #define LPTV_SORTCB LPTVSORTCB
2409 typedef struct tagTVHITTESTINFO
{
2413 } TVHITTESTINFO
, *LPTVHITTESTINFO
;
2415 #define TV_HITTESTINFO TVHITTESTINFO
2418 /* Custom Draw Treeview */
2420 #define NMTVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMTVCUSTOMDRAW, clrTextBk)
2422 #define TVCDRF_NOIMAGES 0x00010000
2424 typedef struct tagNMTVCUSTOMDRAW
2429 INT iLevel
; /* IE>0x0400 */
2430 } NMTVCUSTOMDRAW
, *LPNMTVCUSTOMDRAW
;
2432 /* Treeview tooltips */
2434 typedef struct tagNMTVGETINFOTIPA
2441 } NMTVGETINFOTIPA
, *LPNMTVGETINFOTIPA
;
2443 typedef struct tagNMTVGETINFOTIPW
2450 } NMTVGETINFOTIPW
, *LPNMTVGETINFOTIPW
;
2452 #define NMTVGETINFOTIP WINELIB_NAME_AW(NMTVGETINFOTIP)
2453 #define LPNMTVGETINFOTIP WINELIB_NAME_AW(LPNMTVGETINFOTIP)
2455 #include <pshpack1.h>
2456 typedef struct tagTVKEYDOWN
2461 } NMTVKEYDOWN
, *LPNMTVKEYDOWN
;
2462 #include <poppack.h>
2464 #define TV_KEYDOWN NMTVKEYDOWN
2466 #define TreeView_InsertItemA(hwnd, phdi) \
2467 (HTREEITEM)SNDMSGA((hwnd), TVM_INSERTITEMA, 0, \
2468 (LPARAM)(LPTVINSERTSTRUCTA)(phdi))
2469 #define TreeView_InsertItemW(hwnd,phdi) \
2470 (HTREEITEM)SNDMSGW((hwnd), TVM_INSERTITEMW, 0, \
2471 (LPARAM)(LPTVINSERTSTRUCTW)(phdi))
2472 #define TreeView_InsertItem WINELIB_NAME_AW(TreeView_InsertItem)
2474 #define TreeView_DeleteItem(hwnd, hItem) \
2475 (BOOL)SNDMSGA((hwnd), TVM_DELETEITEM, 0, (LPARAM)(HTREEITEM)(hItem))
2476 #define TreeView_DeleteAllItems(hwnd) \
2477 (BOOL)SNDMSGA((hwnd), TVM_DELETEITEM, 0, (LPARAM)TVI_ROOT)
2478 #define TreeView_Expand(hwnd, hitem, code) \
2479 (BOOL)SNDMSGA((hwnd), TVM_EXPAND, (WPARAM)code, \
2480 (LPARAM)(HTREEITEM)(hitem))
2482 #define TreeView_GetItemRect(hwnd, hitem, prc, code) \
2483 (*(HTREEITEM *)prc = (hitem), (BOOL)SNDMSGA((hwnd), \
2484 TVM_GETITEMRECT, (WPARAM)(code), (LPARAM)(RECT *)(prc)))
2486 #define TreeView_GetCount(hwnd) \
2487 (UINT)SNDMSGA((hwnd), TVM_GETCOUNT, 0, 0)
2488 #define TreeView_GetIndent(hwnd) \
2489 (UINT)SNDMSGA((hwnd), TVM_GETINDENT, 0, 0)
2490 #define TreeView_SetIndent(hwnd, indent) \
2491 (BOOL)SNDMSGA((hwnd), TVM_SETINDENT, (WPARAM)indent, 0)
2493 #define TreeView_GetImageList(hwnd, iImage) \
2494 (HIMAGELIST)SNDMSGA((hwnd), TVM_GETIMAGELIST, iImage, 0)
2496 #define TreeView_SetImageList(hwnd, himl, iImage) \
2497 (HIMAGELIST)SNDMSGA((hwnd), TVM_SETIMAGELIST, iImage, \
2498 (LPARAM)(UINT)(HIMAGELIST)(himl))
2500 #define TreeView_GetNextItem(hwnd, hitem, code) \
2501 (HTREEITEM)SNDMSGA((hwnd), TVM_GETNEXTITEM, (WPARAM)code,\
2502 (LPARAM)(HTREEITEM) (hitem))
2504 #define TreeView_GetChild(hwnd, hitem) \
2505 TreeView_GetNextItem(hwnd, hitem , TVGN_CHILD)
2506 #define TreeView_GetNextSibling(hwnd, hitem) \
2507 TreeView_GetNextItem(hwnd, hitem , TVGN_NEXT)
2508 #define TreeView_GetPrevSibling(hwnd, hitem) \
2509 TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUS)
2510 #define TreeView_GetParent(hwnd, hitem) \
2511 TreeView_GetNextItem(hwnd, hitem , TVGN_PARENT)
2512 #define TreeView_GetFirstVisible(hwnd) \
2513 TreeView_GetNextItem(hwnd, NULL, TVGN_FIRSTVISIBLE)
2514 #define TreeView_GetLastVisible(hwnd) \
2515 TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE)
2516 #define TreeView_GetNextVisible(hwnd, hitem) \
2517 TreeView_GetNextItem(hwnd, hitem , TVGN_NEXTVISIBLE)
2518 #define TreeView_GetPrevVisible(hwnd, hitem) \
2519 TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUSVISIBLE)
2520 #define TreeView_GetSelection(hwnd) \
2521 TreeView_GetNextItem(hwnd, NULL, TVGN_CARET)
2522 #define TreeView_GetDropHilight(hwnd) \
2523 TreeView_GetNextItem(hwnd, NULL, TVGN_DROPHILITE)
2524 #define TreeView_GetRoot(hwnd) \
2525 TreeView_GetNextItem(hwnd, NULL, TVGN_ROOT)
2526 #define TreeView_GetLastVisible(hwnd) \
2527 TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE)
2530 #define TreeView_Select(hwnd, hitem, code) \
2531 (UINT)SNDMSGA((hwnd), TVM_SELECTITEM, (WPARAM)code, \
2532 (LPARAM)(UINT)(hitem))
2535 #define TreeView_SelectItem(hwnd, hitem) \
2536 TreeView_Select(hwnd, hitem, TVGN_CARET)
2537 #define TreeView_SelectDropTarget(hwnd, hitem) \
2538 TreeView_Select(hwnd, hitem, TVGN_DROPHILITE)
2539 #define TreeView_SelectSetFirstVisible(hwnd, hitem) \
2540 TreeView_Select(hwnd, hitem, TVGN_FIRSTVISIBLE)
2543 #define TreeView_GetItemA(hwnd, pitem) \
2544 (BOOL)SNDMSGA((hwnd), TVM_GETITEMA, 0, (LPARAM) (TVITEMA *)(pitem))
2545 #define TreeView_GetItemW(hwnd, pitem) \
2546 (BOOL)SNDMSGW((hwnd), TVM_GETITEMA, 0, (LPARAM) (TVITEMA *)(pitem))
2547 #define TreeView_GetItem WINELIB_NAME_AW(TreeView_GetItem)
2549 #define TreeView_SetItemA(hwnd, pitem) \
2550 (BOOL)SNDMSGA((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem))
2551 #define TreeView_SetItemW(hwnd, pitem) \
2552 (BOOL)SNDMSGW((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem))
2553 #define TreeView_SetItem WINELIB_NAME_AW(TreeView_SetItem)
2555 #define TreeView_EditLabel(hwnd, hitem) \
2556 (HWND)SNDMSGA((hwnd), TVM_EDITLABEL, 0, (LPARAM)(HTREEITEM)(hitem))
2558 #define TreeView_GetEditControl(hwnd) \
2559 (HWND)SNDMSGA((hwnd), TVM_GETEDITCONTROL, 0, 0)
2561 #define TreeView_GetVisibleCount(hwnd) \
2562 (UINT)SNDMSGA((hwnd), TVM_GETVISIBLECOUNT, 0, 0)
2564 #define TreeView_HitTest(hwnd, lpht) \
2565 (HTREEITEM)SNDMSGA((hwnd), TVM_HITTEST, 0,\
2566 (LPARAM)(LPTVHITTESTINFO)(lpht))
2568 #define TreeView_CreateDragImage(hwnd, hitem) \
2569 (HIMAGELIST)SNDMSGA((hwnd), TVM_CREATEDRAGIMAGE, 0,\
2570 (LPARAM)(HTREEITEM)(hitem))
2572 #define TreeView_SortChildren(hwnd, hitem, recurse) \
2573 (BOOL)SNDMSGA((hwnd), TVM_SORTCHILDREN, (WPARAM)recurse,\
2574 (LPARAM)(HTREEITEM)(hitem))
2576 #define TreeView_EnsureVisible(hwnd, hitem) \
2577 (BOOL)SNDMSGA((hwnd), TVM_ENSUREVISIBLE, 0, (LPARAM)(UINT)(hitem))
2579 #define TreeView_SortChildrenCB(hwnd, psort, recurse) \
2580 (BOOL)SNDMSGA((hwnd), TVM_SORTCHILDRENCB, (WPARAM)recurse, \
2581 (LPARAM)(LPTV_SORTCB)(psort))
2583 #define TreeView_EndEditLabelNow(hwnd, fCancel) \
2584 (BOOL)SNDMSGA((hwnd), TVM_ENDEDITLABELNOW, (WPARAM)fCancel, 0)
2586 #define TreeView_GetISearchString(hwnd, lpsz) \
2587 (BOOL)SNDMSGA((hwnd), TVM_GETISEARCHSTRING, 0, \
2588 (LPARAM)(LPTSTR)lpsz)
2590 #define TreeView_SetToolTips(hwnd, hwndTT) \
2591 (HWND)SNDMSGA((hwnd), TVM_SETTOOLTIPS, (WPARAM)(hwndTT), 0)
2593 #define TreeView_GetToolTips(hwnd) \
2594 (HWND)SNDMSGA((hwnd), TVM_GETTOOLTIPS, 0, 0)
2596 #define TreeView_SetItemHeight(hwnd, iHeight) \
2597 (INT)SNDMSGA((hwnd), TVM_SETITEMHEIGHT, (WPARAM)iHeight, 0)
2599 #define TreeView_GetItemHeight(hwnd) \
2600 (INT)SNDMSGA((hwnd), TVM_GETITEMHEIGHT, 0, 0)
2602 #define TreeView_SetBkColor(hwnd, clr) \
2603 (COLORREF)SNDMSGA((hwnd), TVM_SETBKCOLOR, 0, (LPARAM)clr)
2605 #define TreeView_SetTextColor(hwnd, clr) \
2606 (COLORREF)SNDMSGA((hwnd), TVM_SETTEXTCOLOR, 0, (LPARAM)clr)
2608 #define TreeView_GetBkColor(hwnd) \
2609 (COLORREF)SNDMSGA((hwnd), TVM_GETBKCOLOR, 0, 0)
2611 #define TreeView_GetTextColor(hwnd) \
2612 (COLORREF)SNDMSGA((hwnd), TVM_GETTEXTCOLOR, 0, 0)
2614 #define TreeView_SetScrollTime(hwnd, uTime) \
2615 (UINT)SNDMSGA((hwnd), TVM_SETSCROLLTIME, uTime, 0)
2617 #define TreeView_GetScrollTime(hwnd) \
2618 (UINT)SNDMSGA((hwnd), TVM_GETSCROLLTIME, 0, 0)
2620 #define TreeView_SetInsertMark(hwnd, hItem, fAfter) \
2621 (BOOL)SNDMSGA((hwnd), TVM_SETINSERTMARK, (WPARAM)(fAfter), \
2624 #define TreeView_SetInsertMarkColor(hwnd, clr) \
2625 (COLORREF)SNDMSGA((hwnd), TVM_SETINSERTMARKCOLOR, 0, (LPARAM)clr)
2627 #define TreeView_GetInsertMarkColor(hwnd) \
2628 (COLORREF)SNDMSGA((hwnd), TVM_GETINSERTMARKCOLOR, 0, 0)
2630 #define TreeView_GetItemState(hwndTV, hti, mask) \
2631 (UINT)SNDMSGA((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti), (LPARAM)(mask))
2632 #define TreeView_GetCheckState(hwndTV, hti) \
2633 ((((UINT)(SNDMSGA((hwndTV), TVM_GETITEMSTATE, (WPARAM)(hti), \
2634 TVIS_STATEIMAGEMASK))) >> 12) -1)
2636 #define TreeView_SetLineColor(hwnd, clr) \
2637 (COLORREF)SNDMSGA((hwnd), TVM_SETLINECOLOR, 0, (LPARAM)(clr))
2639 #define TreeView_GetLineColor(hwnd) \
2640 (COLORREF)SNDMSGA((hwnd), TVM_GETLINECOLOR, 0, 0)
2642 #define TreeView_SetItemState(hwndTV, hti, data, _mask) \
2644 _TVi.mask = TVIF_STATE; \
2646 _TVi.stateMask = _mask; \
2647 _TVi.state = data; \
2648 SNDMSGA((hwndTV), TVM_SETITEM, 0, (LPARAM)(TV_ITEM *)&_TVi); \
2652 /* Listview control */
2654 #define WC_LISTVIEWA "SysListView32"
2655 #if defined(__GNUC__)
2656 # define WC_LISTVIEWW (const WCHAR []){ 'S','y','s', \
2657 'L','i','s','t','V','i','e','w','3','2',0 }
2658 #elif defined(_MSC_VER)
2659 # define WC_LISTVIEWW L"SysListView32"
2661 static const WCHAR WC_LISTVIEWW
[] = { 'S','y','s',
2662 'L','i','s','t','V','i','e','w','3','2',0 };
2664 #define WC_LISTVIEW WINELIB_NAME_AW(WC_LISTVIEW)
2666 #define LVSCW_AUTOSIZE -1
2667 #define LVSCW_AUTOSIZE_USEHEADER -2
2669 #define LVS_ICON 0x0000
2670 #define LVS_REPORT 0x0001
2671 #define LVS_SMALLICON 0x0002
2672 #define LVS_LIST 0x0003
2673 #define LVS_TYPEMASK 0x0003
2674 #define LVS_SINGLESEL 0x0004
2675 #define LVS_SHOWSELALWAYS 0x0008
2676 #define LVS_SORTASCENDING 0x0010
2677 #define LVS_SORTDESCENDING 0x0020
2678 #define LVS_SHAREIMAGELISTS 0x0040
2679 #define LVS_NOLABELWRAP 0x0080
2680 #define LVS_AUTOARRANGE 0x0100
2681 #define LVS_EDITLABELS 0x0200
2682 #define LVS_OWNERDATA 0x1000
2683 #define LVS_NOSCROLL 0x2000
2684 #define LVS_TYPESTYLEMASK 0xfc00
2685 #define LVS_ALIGNTOP 0x0000
2686 #define LVS_ALIGNLEFT 0x0800
2687 #define LVS_ALIGNMASK 0x0c00
2688 #define LVS_OWNERDRAWFIXED 0x0400
2689 #define LVS_NOCOLUMNHEADER 0x4000
2690 #define LVS_NOSORTHEADER 0x8000
2692 #define LVS_EX_GRIDLINES 0x0001
2693 #define LVS_EX_SUBITEMIMAGES 0x0002
2694 #define LVS_EX_CHECKBOXES 0x0004
2695 #define LVS_EX_TRACKSELECT 0x0008
2696 #define LVS_EX_HEADERDRAGDROP 0x0010
2697 #define LVS_EX_FULLROWSELECT 0x0020
2698 #define LVS_EX_ONECLICKACTIVATE 0x0040
2699 #define LVS_EX_TWOCLICKACTIVATE 0x0080
2700 #define LVS_EX_FLATSB 0x0100
2701 #define LVS_EX_REGIONAL 0x0200
2702 #define LVS_EX_INFOTIP 0x0400
2703 #define LVS_EX_UNDERLINEHOT 0x0800
2704 #define LVS_EX_UNDERLINECOLD 0x1000
2705 #define LVS_EX_MULTIWORKAREAS 0x2000
2707 #define LVCF_FMT 0x0001
2708 #define LVCF_WIDTH 0x0002
2709 #define LVCF_TEXT 0x0004
2710 #define LVCF_SUBITEM 0x0008
2711 #define LVCF_IMAGE 0x0010
2712 #define LVCF_ORDER 0x0020
2714 #define LVCFMT_LEFT 0x0000
2715 #define LVCFMT_RIGHT 0x0001
2716 #define LVCFMT_CENTER 0x0002
2717 #define LVCFMT_JUSTIFYMASK 0x0003
2718 #define LVCFMT_IMAGE 0x0800
2719 #define LVCFMT_BITMAP_ON_RIGHT 0x1000
2720 #define LVCFMT_COL_HAS_IMAGES 0x8000
2722 #define LVSIL_NORMAL 0
2723 #define LVSIL_SMALL 1
2724 #define LVSIL_STATE 2
2726 /* following 2 flags only for LVS_OWNERDATA listviews */
2727 /* and only in report or list mode */
2728 #define LVSICF_NOINVALIDATEALL 0x0001
2729 #define LVSICF_NOSCROLL 0x0002
2732 #define LVFI_PARAM 0X0001
2733 #define LVFI_STRING 0X0002
2734 #define LVFI_PARTIAL 0X0008
2735 #define LVFI_WRAP 0X0020
2736 #define LVFI_NEARESTXY 0X0040
2738 #define LVIF_TEXT 0x0001
2739 #define LVIF_IMAGE 0x0002
2740 #define LVIF_PARAM 0x0004
2741 #define LVIF_STATE 0x0008
2742 #define LVIF_INDENT 0x0010
2743 #define LVIF_GROUPID 0x0100
2744 #define LVIF_COLUMNS 0x0200
2745 #define LVIF_NORECOMPUTE 0x0800
2746 #define LVIF_DI_SETITEM 0x1000
2748 #define LVIR_BOUNDS 0x0000
2749 #define LVIR_LABEL 0x0002
2750 #define LVIR_ICON 0x0001
2751 #define LVIR_SELECTBOUNDS 0x0003
2753 #define LVIS_FOCUSED 0x0001
2754 #define LVIS_SELECTED 0x0002
2755 #define LVIS_CUT 0x0004
2756 #define LVIS_DROPHILITED 0x0008
2757 #define LVIS_ACTIVATING 0x0020
2759 #define LVIS_OVERLAYMASK 0x0F00
2760 #define LVIS_STATEIMAGEMASK 0xF000
2762 #define LVNI_ALL 0x0000
2763 #define LVNI_FOCUSED 0x0001
2764 #define LVNI_SELECTED 0x0002
2765 #define LVNI_CUT 0x0004
2766 #define LVNI_DROPHILITED 0x0008
2768 #define LVNI_ABOVE 0x0100
2769 #define LVNI_BELOW 0x0200
2770 #define LVNI_TOLEFT 0x0400
2771 #define LVNI_TORIGHT 0x0800
2773 #define LVHT_NOWHERE 0x0001
2774 #define LVHT_ONITEMICON 0x0002
2775 #define LVHT_ONITEMLABEL 0x0004
2776 #define LVHT_ONITEMSTATEICON 0x0008
2777 #define LVHT_ONITEM (LVHT_ONITEMICON|LVHT_ONITEMLABEL|LVHT_ONITEMSTATEICON)
2779 #define LVHT_ABOVE 0x0008
2780 #define LVHT_BELOW 0x0010
2781 #define LVHT_TORIGHT 0x0020
2782 #define LVHT_TOLEFT 0x0040
2784 #define LVM_FIRST 0x1000
2785 #define LVM_GETBKCOLOR (LVM_FIRST+0)
2786 #define LVM_SETBKCOLOR (LVM_FIRST+1)
2787 #define LVM_GETIMAGELIST (LVM_FIRST+2)
2788 #define LVM_SETIMAGELIST (LVM_FIRST+3)
2789 #define LVM_GETITEMCOUNT (LVM_FIRST+4)
2790 #define LVM_GETITEMA (LVM_FIRST+5)
2791 #define LVM_GETITEMW (LVM_FIRST+75)
2792 #define LVM_GETITEM WINELIB_NAME_AW(LVM_GETITEM)
2793 #define LVM_SETITEMA (LVM_FIRST+6)
2794 #define LVM_SETITEMW (LVM_FIRST+76)
2795 #define LVM_SETITEM WINELIB_NAME_AW(LVM_SETITEM)
2796 #define LVM_INSERTITEMA (LVM_FIRST+7)
2797 #define LVM_INSERTITEMW (LVM_FIRST+77)
2798 #define LVM_INSERTITEM WINELIB_NAME_AW(LVM_INSERTITEM)
2799 #define LVM_DELETEITEM (LVM_FIRST+8)
2800 #define LVM_DELETEALLITEMS (LVM_FIRST+9)
2801 #define LVM_GETCALLBACKMASK (LVM_FIRST+10)
2802 #define LVM_SETCALLBACKMASK (LVM_FIRST+11)
2803 #define LVM_GETNEXTITEM (LVM_FIRST+12)
2804 #define LVM_FINDITEMA (LVM_FIRST+13)
2805 #define LVM_FINDITEMW (LVM_FIRST+83)
2806 #define LVM_FINDITEM WINELIB_NAME_AW(LVM_FINDITEM)
2807 #define LVM_GETITEMRECT (LVM_FIRST+14)
2808 #define LVM_SETITEMPOSITION (LVM_FIRST+15)
2809 #define LVM_GETITEMPOSITION (LVM_FIRST+16)
2810 #define LVM_GETSTRINGWIDTHA (LVM_FIRST+17)
2811 #define LVM_GETSTRINGWIDTHW (LVM_FIRST+87)
2812 #define LVM_GETSTRINGWIDTH WINELIB_NAME_AW(LVM_GETSTRINGWIDTH)
2813 #define LVM_HITTEST (LVM_FIRST+18)
2814 #define LVM_ENSUREVISIBLE (LVM_FIRST+19)
2815 #define LVM_SCROLL (LVM_FIRST+20)
2816 #define LVM_REDRAWITEMS (LVM_FIRST+21)
2817 #define LVM_ARRANGE (LVM_FIRST+22)
2818 #define LVM_EDITLABELA (LVM_FIRST+23)
2819 #define LVM_EDITLABELW (LVM_FIRST+118)
2820 #define LVM_EDITLABEL WINELIB_NAME_AW(LVM_EDITLABEL)
2821 #define LVM_GETEDITCONTROL (LVM_FIRST+24)
2822 #define LVM_GETCOLUMNA (LVM_FIRST+25)
2823 #define LVM_GETCOLUMNW (LVM_FIRST+95)
2824 #define LVM_GETCOLUMN WINELIB_NAME_AW(LVM_GETCOLUMN)
2825 #define LVM_SETCOLUMNA (LVM_FIRST+26)
2826 #define LVM_SETCOLUMNW (LVM_FIRST+96)
2827 #define LVM_SETCOLUMN WINELIB_NAME_AW(LVM_SETCOLUMN)
2828 #define LVM_INSERTCOLUMNA (LVM_FIRST+27)
2829 #define LVM_INSERTCOLUMNW (LVM_FIRST+97)
2830 #define LVM_INSERTCOLUMN WINELIB_NAME_AW(LVM_INSERTCOLUMN)
2831 #define LVM_DELETECOLUMN (LVM_FIRST+28)
2832 #define LVM_GETCOLUMNWIDTH (LVM_FIRST+29)
2833 #define LVM_SETCOLUMNWIDTH (LVM_FIRST+30)
2834 #define LVM_GETHEADER (LVM_FIRST+31)
2836 #define LVM_CREATEDRAGIMAGE (LVM_FIRST+33)
2837 #define LVM_GETVIEWRECT (LVM_FIRST+34)
2838 #define LVM_GETTEXTCOLOR (LVM_FIRST+35)
2839 #define LVM_SETTEXTCOLOR (LVM_FIRST+36)
2840 #define LVM_GETTEXTBKCOLOR (LVM_FIRST+37)
2841 #define LVM_SETTEXTBKCOLOR (LVM_FIRST+38)
2842 #define LVM_GETTOPINDEX (LVM_FIRST+39)
2843 #define LVM_GETCOUNTPERPAGE (LVM_FIRST+40)
2844 #define LVM_GETORIGIN (LVM_FIRST+41)
2845 #define LVM_UPDATE (LVM_FIRST+42)
2846 #define LVM_SETITEMSTATE (LVM_FIRST+43)
2847 #define LVM_GETITEMSTATE (LVM_FIRST+44)
2848 #define LVM_GETITEMTEXTA (LVM_FIRST+45)
2849 #define LVM_GETITEMTEXTW (LVM_FIRST+115)
2850 #define LVM_GETITEMTEXT WINELIB_NAME_AW(LVM_GETITEMTEXT)
2851 #define LVM_SETITEMTEXTA (LVM_FIRST+46)
2852 #define LVM_SETITEMTEXTW (LVM_FIRST+116)
2853 #define LVM_SETITEMTEXT WINELIB_NAME_AW(LVM_SETITEMTEXT)
2854 #define LVM_SETITEMCOUNT (LVM_FIRST+47)
2855 #define LVM_SORTITEMS (LVM_FIRST+48)
2856 #define LVM_SETITEMPOSITION32 (LVM_FIRST+49)
2857 #define LVM_GETSELECTEDCOUNT (LVM_FIRST+50)
2858 #define LVM_GETITEMSPACING (LVM_FIRST+51)
2859 #define LVM_GETISEARCHSTRINGA (LVM_FIRST+52)
2860 #define LVM_GETISEARCHSTRINGW (LVM_FIRST+117)
2861 #define LVM_GETISEARCHSTRING WINELIB_NAME_AW(LVM_GETISEARCHSTRING)
2862 #define LVM_SETICONSPACING (LVM_FIRST+53)
2863 #define LVM_SETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+54)
2864 #define LVM_GETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+55)
2865 #define LVM_GETSUBITEMRECT (LVM_FIRST+56)
2866 #define LVM_SUBITEMHITTEST (LVM_FIRST+57)
2867 #define LVM_SETCOLUMNORDERARRAY (LVM_FIRST+58)
2868 #define LVM_GETCOLUMNORDERARRAY (LVM_FIRST+59)
2869 #define LVM_SETHOTITEM (LVM_FIRST+60)
2870 #define LVM_GETHOTITEM (LVM_FIRST+61)
2871 #define LVM_SETHOTCURSOR (LVM_FIRST+62)
2872 #define LVM_GETHOTCURSOR (LVM_FIRST+63)
2873 #define LVM_APPROXIMATEVIEWRECT (LVM_FIRST+64)
2874 #define LVM_SETWORKAREAS (LVM_FIRST+65)
2875 #define LVM_GETSELECTIONMARK (LVM_FIRST+66)
2876 #define LVM_SETSELECTIONMARK (LVM_FIRST+67)
2877 #define LVM_SETBKIMAGEA (LVM_FIRST+68)
2878 #define LVM_SETBKIMAGEW (LVM_FIRST+138)
2879 #define LVM_SETBKIMAGE WINELIB_NAME_AW(LVM_SETBKIMAGE)
2880 #define LVM_GETBKIMAGEA (LVM_FIRST+69)
2881 #define LVM_GETBKIMAGEW (LVM_FIRST+139)
2882 #define LVM_GETBKIMAGE WINELIB_NAME_AW(LVM_GETBKIMAGE)
2883 #define LVM_GETWORKAREAS (LVM_FIRST+70)
2884 #define LVM_SETHOVERTIME (LVM_FIRST+71)
2885 #define LVM_GETHOVERTIME (LVM_FIRST+72)
2886 #define LVM_GETNUMBEROFWORKAREAS (LVM_FIRST+73)
2887 #define LVM_SETTOOLTIPS (LVM_FIRST+74)
2888 #define LVM_GETTOOLTIPS (LVM_FIRST+78)
2889 #define LVM_GETUNICODEFORMAT (CCM_GETUNICODEFORMAT)
2890 #define LVM_SETUNICODEFORMAT (CCM_SETUNICODEFORMAT)
2892 #define LVN_FIRST (0U-100U)
2893 #define LVN_LAST (0U-199U)
2894 #define LVN_ITEMCHANGING (LVN_FIRST-0)
2895 #define LVN_ITEMCHANGED (LVN_FIRST-1)
2896 #define LVN_INSERTITEM (LVN_FIRST-2)
2897 #define LVN_DELETEITEM (LVN_FIRST-3)
2898 #define LVN_DELETEALLITEMS (LVN_FIRST-4)
2899 #define LVN_BEGINLABELEDITA (LVN_FIRST-5)
2900 #define LVN_BEGINLABELEDITW (LVN_FIRST-75)
2901 #define LVN_BEGINLABELEDIT WINELIB_NAME_AW(LVN_BEGINLABELEDIT)
2902 #define LVN_ENDLABELEDITA (LVN_FIRST-6)
2903 #define LVN_ENDLABELEDITW (LVN_FIRST-76)
2904 #define LVN_ENDLABELEDIT WINELIB_NAME_AW(LVN_ENDLABELEDIT)
2905 #define LVN_COLUMNCLICK (LVN_FIRST-8)
2906 #define LVN_BEGINDRAG (LVN_FIRST-9)
2907 #define LVN_BEGINRDRAG (LVN_FIRST-11)
2908 #define LVN_ODCACHEHINT (LVN_FIRST-13)
2909 #define LVN_ITEMACTIVATE (LVN_FIRST-14)
2910 #define LVN_ODSTATECHANGED (LVN_FIRST-15)
2911 #define LVN_HOTTRACK (LVN_FIRST-21)
2912 #define LVN_ODFINDITEMA (LVN_FIRST-52)
2913 #define LVN_ODFINDITEMW (LVN_FIRST-79)
2914 #define LVN_ODFINDITEM WINELIB_NAME_AW(LVN_ODFINDITEM)
2915 #define LVN_GETDISPINFOA (LVN_FIRST-50)
2916 #define LVN_GETDISPINFOW (LVN_FIRST-77)
2917 #define LVN_GETDISPINFO WINELIB_NAME_AW(LVN_GETDISPINFO)
2918 #define LVN_SETDISPINFOA (LVN_FIRST-51)
2919 #define LVN_SETDISPINFOW (LVN_FIRST-78)
2920 #define LVN_SETDISPINFO WINELIB_NAME_AW(LVN_SETDISPINFO)
2921 #define LVN_KEYDOWN (LVN_FIRST-55)
2922 #define LVN_MARQUEEBEGIN (LVN_FIRST-56)
2923 #define LVN_GETINFOTIPA (LVN_FIRST-57)
2924 #define LVN_GETINFOTIPW (LVN_FIRST-58)
2925 #define LVN_GETINFOTIP WINELIB_NAME_AW(LVN_GETINFOTIP)
2927 #define LVA_ALIGNLEFT 0x0000
2928 #define LVA_DEFAULT 0x0001
2929 #define LVA_ALIGNTOP 0x0002
2930 #define LVA_SNAPTOGRID 0x0005
2932 typedef struct tagLVITEMA
2943 INT iIndent
; /* (_WIN32_IE >= 0x0300) */
2944 int iGroupId
; /* (_WIN32_IE >= 0x560) */
2945 UINT cColumns
; /* (_WIN32_IE >= 0x560) */
2946 PUINT puColumns
; /* (_WIN32_IE >= 0x560) */
2947 } LVITEMA
, *LPLVITEMA
;
2949 typedef struct tagLVITEMW
2960 INT iIndent
; /* (_WIN32_IE >= 0x0300) */
2961 int iGroupId
; /* (_WIN32_IE >= 0x560) */
2962 UINT cColumns
; /* (_WIN32_IE >= 0x560) */
2963 PUINT puColumns
; /* (_WIN32_IE >= 0x560) */
2964 } LVITEMW
, *LPLVITEMW
;
2966 #define LVITEM WINELIB_NAME_AW(LVITEM)
2967 #define LPLVITEM WINELIB_NAME_AW(LPLVITEM)
2969 #define LVITEM_V1_SIZEA CCSIZEOF_STRUCT(LVITEMA, lParam)
2970 #define LVITEM_V1_SIZEW CCSIZEOF_STRUCT(LVITEMW, lParam)
2971 #define LVITEM_V1_SIZE WINELIB_NAME_AW(LVITEM_V1_SIZE)
2973 #define LV_ITEM LVITEM
2974 #define LV_ITEMA LVITEMA
2975 #define LV_ITEMW LVITEMW
2977 typedef struct LVSETINFOTIPA
2984 } LVSETINFOTIPA
, *PLVSETINFOTIPA
;
2986 typedef struct LVSETINFOTIPW
2993 } LVSETINFOTIPW
, *PLVSETINFOTIPW
;
2995 #define LVSETINFOTIP WINELIB_NAME_AW(LVSETINFOTIP)
2996 #define PLVSETINFOTIP WINELIB_NAME_AW(PLVSETINFOTIP)
2998 /* ListView background image structs and constants
2999 For _WIN32_IE version 0x400 and later. */
3001 typedef struct tagLVBKIMAGEA
3009 } LVBKIMAGEA
, *LPLVBKIMAGEA
;
3011 typedef struct tagLVBKIMAGEW
3019 } LVBKIMAGEW
, *LPLVBKIMAGEW
;
3021 #define LVBKIMAGE WINELIB_NAME_AW(LVBKIMAGE)
3022 #define LPLVBKIMAGE WINELIB_NAME_AW(LPLVBKIMAGE)
3024 #define LVBKIF_SOURCE_NONE 0x00000000
3025 #define LVBKIF_SOURCE_HBITMAP 0x00000001
3026 #define LVBKIF_SOURCE_URL 0x00000002
3027 #define LVBKIF_SOURCE_MASK 0x00000003
3028 #define LVBKIF_STYLE_NORMAL 0x00000000
3029 #define LVBKIF_STYLE_TILE 0x00000010
3030 #define LVBKIF_STYLE_MASK 0x00000010
3032 #define ListView_SetBkImage(hwnd, plvbki) \
3033 (BOOL)SNDMSG((hwnd), LVM_SETBKIMAGE, 0, (LPARAM)plvbki)
3035 #define ListView_GetBkImage(hwnd, plvbki) \
3036 (BOOL)SNDMSG((hwnd), LVM_GETBKIMAGE, 0, (LPARAM)plvbki)
3038 typedef struct tagLVCOLUMNA
3046 INT iImage
; /* (_WIN32_IE >= 0x0300) */
3047 INT iOrder
; /* (_WIN32_IE >= 0x0300) */
3048 } LVCOLUMNA
, *LPLVCOLUMNA
;
3050 typedef struct tagLVCOLUMNW
3058 INT iImage
; /* (_WIN32_IE >= 0x0300) */
3059 INT iOrder
; /* (_WIN32_IE >= 0x0300) */
3060 } LVCOLUMNW
, *LPLVCOLUMNW
;
3062 #define LVCOLUMN WINELIB_NAME_AW(LVCOLUMN)
3063 #define LPLVCOLUMN WINELIB_NAME_AW(LPLVCOLUMN)
3065 #define LVCOLUMN_V1_SIZEA CCSIZEOF_STRUCT(LVCOLUMNA, iSubItem)
3066 #define LVCOLUMN_V1_SIZEW CCSIZEOF_STRUCT(LVCOLUMNW, iSubItem)
3067 #define LVCOLUMN_V1_SIZE WINELIB_NAME_AW(LVCOLUMN_V1_SIZE)
3069 #define LV_COLUMN LVCOLUMN
3072 typedef struct tagNMLISTVIEW
3082 } NMLISTVIEW
, *LPNMLISTVIEW
;
3084 #define NM_LISTVIEW NMLISTVIEW
3085 #define LPNM_LISTVIEW LPNMLISTVIEW
3087 typedef struct tagNMITEMACTIVATE
3098 } NMITEMACTIVATE
, *LPNMITEMACTIVATE
;
3100 #define LVKF_ALT 0x0001
3101 #define LVKF_CONTROL 0x0002
3102 #define LVKF_SHIFT 0x0004
3104 typedef struct tagLVDISPINFO
3108 } NMLVDISPINFOA
, *LPNMLVDISPINFOA
;
3110 typedef struct tagLVDISPINFOW
3114 } NMLVDISPINFOW
, *LPNMLVDISPINFOW
;
3116 #define NMLVDISPINFO WINELIB_NAME_AW(NMLVDISPINFO)
3117 #define LPNMLVDISPINFO WINELIB_NAME_AW(LPNMLVDISPINFO)
3119 #define LV_DISPINFO NMLVDISPINFO
3120 #define LV_DISPINFOA NMLVDISPINFOA
3121 #define LV_DISPINFOW NMLVDISPINFOW
3123 #include <pshpack1.h>
3124 typedef struct tagLVKEYDOWN
3129 } NMLVKEYDOWN
, *LPNMLVKEYDOWN
;
3130 #include <poppack.h>
3132 #define LV_KEYDOWN NMLVKEYDOWN
3134 typedef struct tagNMLVGETINFOTIPA
3143 } NMLVGETINFOTIPA
, *LPNMLVGETINFOTIPA
;
3145 typedef struct tagNMLVGETINFOTIPW
3154 } NMLVGETINFOTIPW
, *LPNMLVGETINFOTIPW
;
3156 #define NMLVGETINFOTIP WINELIB_NAME_AW(NMLVGETINFOTIP)
3157 #define LPNMLVGETINFOTIP WINELIB_NAME_AW(LPNMLVGETINFOTIP)
3159 typedef struct tagLVHITTESTINFO
3165 } LVHITTESTINFO
, *LPLVHITTESTINFO
;
3167 #define LV_HITTESTINFO LVHITTESTINFO
3168 #define _LV_HITTESTINFO tagLVHITTESTINFO
3169 #define LVHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(LVHITTESTINFO,iItem)
3171 typedef struct tagLVFINDINFOA
3178 } LVFINDINFOA
, *LPLVFINDINFOA
;
3180 typedef struct tagLVFINDINFOW
3187 } LVFINDINFOW
, *LPLVFINDINFOW
;
3189 #define LVFINDINFO WINELIB_NAME_AW(LVFINDINFO)
3190 #define LPLVFINDINFO WINELIB_NAME_AW(LPLVFINDINFO)
3192 #define LV_FINDINFO LVFINDINFO
3193 #define LV_FINDINFOA LVFINDINFOA
3194 #define LV_FINDINFOW LVFINDINFOW
3196 /* Groups relates structures */
3198 typedef struct LVGROUPA
3208 } LVGROUPA
, *PLVGROUPA
;
3210 typedef struct LVGROUPW
3220 } LVGROUPW
, *PLVGROUPW
;
3222 #define LVGROUP WINELIB_NAME_AW(LVGROUP)
3223 #define PLVGROUP WINELIB_NAME_AW(PLVGROUP)
3225 typedef struct LVGROUPMETRICS
3237 COLORREF crRightHeader
;
3239 } LVGROUPMETRICS
, *PLVGROUPMETRICS
;
3241 typedef INT (*PFNLVGROUPCOMPARE
)(INT
, INT
, VOID
*);
3243 typedef struct LVINSERTGROUPSORTEDA
3245 PFNLVGROUPCOMPARE pfnGroupCompare
;
3248 } LVINSERTGROUPSORTEDA
, *PLVINSERTGROUPSORTEDA
;
3250 typedef struct LVINSERTGROUPSORTEDW
3252 PFNLVGROUPCOMPARE pfnGroupCompare
;
3255 } LVINSERTGROUPSORTEDW
, *PLVINSERTGROUPSORTEDW
;
3257 #define LVINSERTGROUPSORTED WINELIB_NAME_AW(LVINSERTGROUPSORTED)
3258 #define PLVINSERTGROUPSORTED WINELIB_NAME_AW(PLVINSERTGROUPSORTED)
3260 /* Tile related structures */
3262 typedef struct LVTILEINFO
3268 } LVTILEINFO
, *PLVTILEINFO
;
3270 typedef struct LVTILEVIEWINFO
3278 } LVTILEVIEWINFO
, *PLVTILEVIEWINFO
;
3280 typedef struct LVINSERTMARK
3286 } LVINSERTMARK
, *PLVINSERTMARK
;
3288 typedef struct tagTCHITTESTINFO
3292 } TCHITTESTINFO
, *LPTCHITTESTINFO
;
3294 #define TC_HITTESTINFO TCHITTESTINFO
3296 typedef INT (CALLBACK
*PFNLVCOMPARE
)(LPARAM
, LPARAM
, LPARAM
);
3298 #define NMLVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMLCUSTOMDRW, clrTextBk)
3300 typedef struct tagNMLVCUSTOMDRAW
3305 int iSubItem
; /* (_WIN32_IE >= 0x0400) */
3306 DWORD dwItemType
; /* (_WIN32_IE >= 0x560) */
3307 COLORREF clrFace
; /* (_WIN32_IE >= 0x560) */
3308 int iIconEffect
; /* (_WIN32_IE >= 0x560) */
3309 int iIconPhase
; /* (_WIN32_IE >= 0x560) */
3310 int iPartId
; /* (_WIN32_IE >= 0x560) */
3311 int iStateId
; /* (_WIN32_IE >= 0x560) */
3312 RECT rcText
; /* (_WIN32_IE >= 0x560) */
3313 UINT uAlign
; /* (_WIN32_IE >= 0x560) */
3314 } NMLVCUSTOMDRAW
, *LPNMLVCUSTOMDRAW
;
3316 typedef struct tagNMLVCACHEHINT
3321 } NMLVCACHEHINT
, *LPNMLVCACHEHINT
;
3323 #define LPNM_CACHEHINT LPNMLVCACHEHINT
3324 #define PNM_CACHEHINT LPNMLVCACHEHINT
3325 #define NM_CACHEHINT NMLVCACHEHINT
3327 typedef struct tagNMLVFINDITEMA
3332 } NMLVFINDITEMA
, *LPNMLVFINDITEMA
;
3334 typedef struct tagNMLVFINDITEMW
3339 } NMLVFINDITEMW
, *LPNMLVFINDITEMW
;
3341 #define NMLVFINDITEM WINELIB_NAME_AW(NMLVFINDITEM)
3342 #define LPNMLVFINDITEM WINELIB_NAME_AW(LPNMLVFINDITEM)
3343 #define NM_FINDITEM NMLVFINDITEM
3344 #define LPNM_FINDITEM LPNMLVFINDITEM
3345 #define PNM_FINDITEM LPNMLVFINDITEM
3347 typedef struct tagNMLVODSTATECHANGE
3354 } NMLVODSTATECHANGE
, *LPNMLVODSTATECHANGE
;
3356 #define PNM_ODSTATECHANGE LPNMLVODSTATECHANGE
3357 #define LPNM_ODSTATECHANGE LPNMLVODSTATECHANGE
3358 #define NM_ODSTATECHANGE NMLVODSTATECHANGE
3360 typedef struct NMLVSCROLL
3365 } NMLVSCROLL
, *LPNMLVSCROLL
;
3367 #define ListView_SetItemCount(hwnd,count) \
3368 (BOOL)SNDMSGA((hwnd),LVM_SETITEMCOUNT,(WPARAM)(INT)(count),0)
3369 #define ListView_SetTextBkColor(hwnd,clrBk) \
3370 (BOOL)SNDMSGA((hwnd),LVM_SETTEXTBKCOLOR,0,(LPARAM)(COLORREF)(clrBk))
3371 #define ListView_SetTextColor(hwnd,clrBk) \
3372 (BOOL)SNDMSGA((hwnd),LVM_SETTEXTCOLOR,0,(LPARAM)(COLORREF)(clrBk))
3373 #define ListView_DeleteColumn(hwnd,col)\
3374 (LRESULT)SNDMSGA((hwnd),LVM_DELETECOLUMN,0,(LPARAM)(INT)(col))
3375 #define ListView_GetColumnA(hwnd,x,col)\
3376 (LRESULT)SNDMSGA((hwnd),LVM_GETCOLUMNA,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNA)(col))
3377 #define ListView_GetColumnW(hwnd,x,col)\
3378 (LRESULT)SNDMSGW((hwnd),LVM_GETCOLUMNW,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNW)(col))
3379 #define ListView_GetColumn WINELIB_NAME_AW(ListView_GetColumn)
3380 #define ListView_SetColumnA(hwnd,x,col)\
3381 (LRESULT)SNDMSGA((hwnd),LVM_SETCOLUMNA,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNA)(col))
3382 #define ListView_SetColumnW(hwnd,x,col)\
3383 (LRESULT)SNDMSGW((hwnd),LVM_SETCOLUMNW,(WPARAM)(INT)(x),(LPARAM)(LPLVCOLUMNW)(col))
3384 #define ListView_SetColumn WINELIB_NAME_AW(ListView_SetColumn)
3385 #define ListView_GetColumnWidth(hwnd,x)\
3386 (INT)SNDMSGW((hwnd),LVM_GETCOLUMNWIDTH,(WPARAM)(INT)(x),0L)
3387 #define ListView_SetColumnWidth(hwnd,x,width)\
3388 (BOOL)SNDMSGW((hwnd),LVM_SETCOLUMNWIDTH,(WPARAM)(INT)(x),(LPARAM)(MAKELPARAM(width,0)))
3391 #define ListView_GetNextItem(hwnd,nItem,flags) \
3392 (INT)SNDMSGA((hwnd),LVM_GETNEXTITEM,(WPARAM)(INT)(nItem),(LPARAM)(MAKELPARAM(flags,0)))
3393 #define ListView_FindItemA(hwnd,nItem,plvfi) \
3394 (INT)SNDMSGA((hwnd),LVM_FINDITEMA,(WPARAM)(INT)(nItem),(LPARAM)(LVFINDINFOA*)(plvfi))
3395 #define ListView_FindItemW(hwnd,nItem,plvfi) \
3396 (INT)SNDMSGW((hwnd),LVM_FINDITEMW,(WPARAM)(INT)(nItem),(LPARAM)(LVFINDINFOW*)(plvfi))
3397 #define ListView_FindItem WINELIB_NAME_AW(ListView_FindItem)
3399 #define ListView_Arrange(hwnd,code) \
3400 (INT)SNDMSGA((hwnd),LVM_ARRANGE,(WPARAM)(INT)(code),0L)
3401 #define ListView_GetItemPosition(hwnd,i,ppt) \
3402 (INT)SNDMSGA((hwnd),LVM_GETITEMPOSITION,(WPARAM)(INT)(i),(LPARAM)(LPPOINT)(ppt))
3403 #define ListView_GetItemRect(hwnd,i,prc,code) \
3404 (BOOL)SNDMSGA((hwnd), LVM_GETITEMRECT, (WPARAM)(int)(i), \
3405 ((prc) ? (((RECT*)(prc))->left = (code),(LPARAM)(RECT \
3406 *)(prc)) : (LPARAM)(RECT*)NULL))
3407 #define ListView_SetItemA(hwnd,pitem) \
3408 (INT)SNDMSGA((hwnd),LVM_SETITEMA,0,(LPARAM)(const LVITEMA *)(pitem))
3409 #define ListView_SetItemW(hwnd,pitem) \
3410 (INT)SNDMSGW((hwnd),LVM_SETITEMW,0,(LPARAM)(const LVITEMW *)(pitem))
3411 #define ListView_SetItem WINELIB_NAME_AW(ListView_SetItem)
3412 #define ListView_SetItemState(hwnd,i,data,dataMask) \
3413 { LVITEMA _LVi; _LVi.state = data; _LVi.stateMask = dataMask;\
3414 SNDMSGA(hwnd, LVM_SETITEMSTATE, (WPARAM)(UINT)i, (LPARAM) (LPLVITEMA)&_LVi);}
3415 #define ListView_GetItemState(hwnd,i,mask) \
3416 (BOOL)SNDMSGA((hwnd),LVM_GETITEMSTATE,(WPARAM)(UINT)(i),(LPARAM)(UINT)(mask))
3417 #define ListView_GetCountPerPage(hwnd) \
3418 (BOOL)SNDMSGW((hwnd),LVM_GETCOUNTPERPAGE,0,0L)
3419 #define ListView_GetImageList(hwnd,iImageList) \
3420 (HIMAGELIST)SNDMSGA((hwnd),LVM_GETIMAGELIST,(WPARAM)(INT)(iImageList),0L)
3421 #define ListView_GetStringWidthA(hwnd,pstr) \
3422 (INT)SNDMSGA((hwnd),LVM_GETSTRINGWIDTHA,0,(LPARAM)(LPCSTR)(pstr))
3423 #define ListView_GetStringWidthW(hwnd,pstr) \
3424 (INT)SNDMSGW((hwnd),LVM_GETSTRINGWIDTHW,0,(LPARAM)(LPCWSTR)(pstr))
3425 #define ListView_GetStringWidth WINELIB_NAME_AW(ListView_GetStringWidth)
3426 #define ListView_GetTopIndex(hwnd) \
3427 (BOOL)SNDMSGA((hwnd),LVM_GETTOPINDEX,0,0L)
3428 #define ListView_Scroll(hwnd,dx,dy) \
3429 (BOOL)SNDMSGA((hwnd),LVM_SCROLL,(WPARAM)(INT)(dx),(LPARAM)(INT)(dy))
3430 #define ListView_EnsureVisible(hwnd,i,fPartialOk) \
3431 (BOOL)SNDMSGA((hwnd),LVM_ENSUREVISIBLE,(WPARAM)(INT)i,(LPARAM)(BOOL)fPartialOk)
3432 #define ListView_SetBkColor(hwnd,clrBk) \
3433 (BOOL)SNDMSGA((hwnd),LVM_SETBKCOLOR,0,(LPARAM)(COLORREF)(clrBk))
3434 #define ListView_SetImageList(hwnd,himl,iImageList) \
3435 (HIMAGELIST)(UINT)SNDMSGA((hwnd),LVM_SETIMAGELIST,(WPARAM)(iImageList),(LPARAM)(UINT)(HIMAGELIST)(himl))
3436 #define ListView_GetItemCount(hwnd) \
3437 (INT)SNDMSGA((hwnd),LVM_GETITEMCOUNT,0,0L)
3438 #define ListView_RedrawItems(hwnd,first,last) \
3439 (BOOL)SNDMSGA((hwnd),LVM_REDRAWITEMS,(WPARAM)(INT)(first),(LPARAM)(INT)(last))
3440 #define ListView_GetEditControl(hwnd) \
3441 (HWND)SNDMSGA((hwnd), LVM_GETEDITCONTROL, 0, 0)
3442 #define ListView_GetTextColor(hwnd) \
3443 (COLORREF)SNDMSGA((hwnd), LVM_GETTEXTCOLOR, 0, 0)
3444 #define ListView_GetBkColor(hwnd) \
3445 (COLORREF)SNDMSGA((hwnd), LVM_GETBKCOLOR, 0, 0)
3446 #define ListView_GetItemA(hwnd,pitem) \
3447 (BOOL)SNDMSGA((hwnd),LVM_GETITEMA,0,(LPARAM)(LVITEMA *)(pitem))
3448 #define ListView_GetItemW(hwnd,pitem) \
3449 (BOOL)SNDMSGW((hwnd),LVM_GETITEMW,0,(LPARAM)(LVITEMW *)(pitem))
3450 #define ListView_GetItem WINELIB_NAME_AW(ListView_GetItem)
3452 #define ListView_HitTest(hwnd,pinfo) \
3453 (INT)SNDMSGA((hwnd),LVM_HITTEST,0,(LPARAM)(LPLVHITTESTINFO)(pinfo))
3455 #define ListView_InsertItemA(hwnd,pitem) \
3456 (INT)SNDMSGA((hwnd),LVM_INSERTITEMA,0,(LPARAM)(const LVITEMA *)(pitem))
3457 #define ListView_InsertItemW(hwnd,pitem) \
3458 (INT)SNDMSGW((hwnd),LVM_INSERTITEMW,0,(LPARAM)(const LVITEMW *)(pitem))
3459 #define ListView_InsertItem WINELIB_NAME_AW(ListView_InsertItem)
3461 #define ListView_DeleteAllItems(hwnd) \
3462 (BOOL)SNDMSGA((hwnd),LVM_DELETEALLITEMS,0,0L)
3464 #define ListView_InsertColumnA(hwnd,iCol,pcol) \
3465 (INT)SNDMSGA((hwnd),LVM_INSERTCOLUMNA,(WPARAM)(INT)(iCol),(LPARAM)(const LVCOLUMNA *)(pcol))
3466 #define ListView_InsertColumnW(hwnd,iCol,pcol) \
3467 (INT)SNDMSGW((hwnd),LVM_INSERTCOLUMNW,(WPARAM)(INT)(iCol),(LPARAM)(const LVCOLUMNW *)(pcol))
3468 #define ListView_InsertColumn WINELIB_NAME_AW(ListView_InsertColumn)
3470 #define ListView_SortItems(hwndLV,_pfnCompare,_lPrm) \
3471 (BOOL)SNDMSGA((hwndLV),LVM_SORTITEMS,(WPARAM)(LPARAM)_lPrm,(LPARAM)(PFNLVCOMPARE)_pfnCompare)
3472 #define ListView_SetItemPosition(hwndLV, i, x, y) \
3473 (BOOL)SNDMSGA((hwndLV),LVM_SETITEMPOSITION,(WPARAM)(INT)(i),MAKELPARAM((x),(y)))
3474 #define ListView_GetSelectedCount(hwndLV) \
3475 (UINT)SNDMSGA((hwndLV),LVM_GETSELECTEDCOUNT,0,0L)
3477 #define ListView_EditLabelA(hwndLV, i) \
3478 (HWND)SNDMSGA((hwndLV),LVM_EDITLABELA,(WPARAM)(int)(i), 0L)
3479 #define ListView_EditLabelW(hwndLV, i) \
3480 (HWND)SNDMSGW((hwndLV),LVM_EDITLABELW,(WPARAM)(int)(i), 0L)
3481 #define ListView_EditLabel WINELIB_NAME_AW(ListView_EditLabel)
3483 #define ListView_GetItemTextA(hwndLV, i, _iSubItem, _pszText, _cchTextMax) \
3486 _LVi.iSubItem = _iSubItem;\
3487 _LVi.cchTextMax = _cchTextMax;\
3488 _LVi.pszText = _pszText;\
3489 SNDMSGA(hwndLV, LVM_GETITEMTEXTA, (WPARAM)(i), (LPARAM)&_LVi);\
3491 #define ListView_GetItemTextW(hwndLV, i, _iSubItem, _pszText, _cchTextMax) \
3494 _LVi.iSubItem = _iSubItem;\
3495 _LVi.cchTextMax = _cchTextMax;\
3496 _LVi.pszText = _pszText;\
3497 SNDMSGW(hwndLV, LVM_GETITEMTEXTW, (WPARAM)(i), (LPARAM)&_LVi);\
3499 #define ListView_GetItemText WINELIB_NAME_AW(ListView_GetItemText)
3500 #define ListView_SetItemPosition32(hwnd,n,x1,y1) \
3501 { POINT ptNewPos; ptNewPos.x = (x1); ptNewPos.y = (y1); SNDMSGA((hwnd), LVM_SETITEMPOSITION32, (WPARAM)(int)(n), (LPARAM)&ptNewPos); }
3502 #define ListView_SetItemTextA(hwndLV, i, _iSubItem, _pszText) \
3503 { LVITEMA _LVi; _LVi.iSubItem = _iSubItem; _LVi.pszText = _pszText;\
3504 SNDMSGA(hwndLV, LVM_SETITEMTEXTA, (WPARAM)i, (LPARAM) (LVITEMA*)&_LVi);}
3505 #define ListView_SetItemTextW(hwndLV, i, _iSubItem, _pszText) \
3506 { LVITEMW _LVi; _LVi.iSubItem = _iSubItem; _LVi.pszText = _pszText;\
3507 SNDMSGW(hwndLV, LVM_SETITEMTEXTW, (WPARAM)i, (LPARAM) (LVITEMW*)& _LVi);}
3508 #define ListView_SetItemText WINELIB_NAME_AW(ListView_SetItemText)
3510 #define ListView_DeleteItem(hwndLV, i) \
3511 (BOOL)SNDMSGA(hwndLV, LVM_DELETEITEM, (WPARAM)(int)(i), 0L)
3512 #define ListView_Update(hwndLV, i) \
3513 (BOOL)SNDMSGA((hwndLV), LVM_UPDATE, (WPARAM)(i), 0L)
3514 #define ListView_GetColumnOrderArray(hwndLV, iCount, pi) \
3515 (BOOL)SNDMSGA((hwndLV), LVM_GETCOLUMNORDERARRAY, (WPARAM)iCount, (LPARAM)(LPINT)pi)
3516 #define ListView_GetExtendedListViewStyle(hwndLV) \
3517 (DWORD)SNDMSGA((hwndLV), LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0L)
3518 #define ListView_GetHotCursor(hwndLV) \
3519 (HCURSOR)SNDMSGA((hwndLV), LVM_GETHOTCURSOR, 0, 0L)
3520 #define ListView_GetHotItem(hwndLV) \
3521 (int)SNDMSGA((hwndLV), LVM_GETHOTITEM, 0, 0L)
3522 #define ListView_GetItemSpacing(hwndLV, fSmall) \
3523 (DWORD)SNDMSGA((hwndLV), LVM_GETITEMSPACING, (WPARAM)fSmall, 0L)
3524 #define ListView_GetSubItemRect(hwndLV, iItem, iSubItem, code, prc) \
3525 (BOOL)SNDMSGA((hwndLV), LVM_GETSUBITEMRECT, (WPARAM)(int)(iItem), \
3526 ((prc) ? (((LPRECT)(prc))->top = iSubItem), (((LPRECT)(prc))->left = code):0), (LPARAM)prc)
3527 #define ListView_GetToolTips(hwndLV) \
3528 (HWND)SNDMSGA((hwndLV), LVM_GETTOOLTIPS, 0, 0L)
3529 #define ListView_SetColumnOrderArray(hwndLV, iCount, pi) \
3530 (BOOL)SNDMSGA((hwndLV), LVM_SETCOLUMNORDERARRAY, (WPARAM)iCount, (LPARAM)(LPINT)pi)
3531 #define ListView_SetExtendedListViewStyle(hwndLV, dw) \
3532 (DWORD)SNDMSGA((hwndLV), LVM_SETEXTENDEDLISTVIEWSTYLE, 0, (LPARAM)dw)
3533 #define ListView_SetExtendedListViewStyleEx(hwndLV, dwMask, dw) \
3534 (DWORD)SNDMSGA((hwndLV), LVM_SETEXTENDEDLISTVIEWSTYLE, (WPARAM)dwMask, (LPARAM)dw)
3535 #define ListView_SetHotCursor(hwndLV, hcur) \
3536 (HCURSOR)SNDMSGA((hwndLV), LVM_SETHOTCURSOR, 0, (LPARAM)hcur)
3537 #define ListView_SetHotItem(hwndLV, i) \
3538 (int)SNDMSGA((hwndLV), LVM_SETHOTITEM, (WPARAM)i, 0L)
3539 #define ListView_SetIconSpacing(hwndLV, cx, cy) \
3540 (DWORD)SNDMSGA((hwndLV), LVM_SETICONSPACING, 0, MAKELONG(cx,cy))
3541 #define ListView_SetToolTips(hwndLV, hwndNewHwnd) \
3542 (HWND)SNDMSGA((hwndLV), LVM_SETTOOLTIPS, (WPARAM)hwndNewHwnd, 0L)
3543 #define ListView_SubItemHitTest(hwndLV, plvhti) \
3544 (int)SNDMSGA((hwndLV), LVM_SUBITEMHITTEST, 0, (LPARAM)(LPLVHITTESTINFO)(plvhti))
3546 #define ListView_GetSelectionMark(hwndLV) \
3547 (int)SNDMSG((hwndLV), LVM_GETSELECTIONMARK, 0, 0)
3548 #define ListView_SetSelectionMark(hwndLV, iItem) \
3549 (int)SNDMSG((hwndLV), LVM_SETSELECTIONMARK, 0, (LPARAM)(iItem))
3551 #define ListView_GetViewRect(hwndLV, prc) \
3552 (BOOL)SNDMSG((hwndLV),LVM_GETVIEWRECT,0,(LPARAM)(LPRECT)(prc))
3554 #define ListView_GetHeader(hwndLV) \
3555 (HWND)SNDMSG((hwndLV),LVM_GETHEADER,0,0L)
3559 #define WC_TABCONTROLA "SysTabControl32"
3560 #if defined(__GNUC__)
3561 # define WC_TABCONTROLW (const WCHAR []){ 'S','y','s', \
3562 'T','a','b','C','o','n','t','r','o','l','3','2',0 }
3563 #elif defined(_MSC_VER)
3564 # define WC_TABCONTROLW L"SysTabControl32"
3566 static const WCHAR WC_TABCONTROLW
[] = { 'S','y','s',
3567 'T','a','b','C','o','n','t','r','o','l','3','2',0 };
3569 #define WC_TABCONTROL WINELIB_NAME_AW(WC_TABCONTROL)
3571 /* tab control styles */
3572 #define TCS_SCROLLOPPOSITE 0x0001 /* assumes multiline tab */
3573 #define TCS_BOTTOM 0x0002
3574 #define TCS_RIGHT 0x0002
3575 #define TCS_MULTISELECT 0x0004 /* allow multi-select in button mode */
3576 #define TCS_FLATBUTTONS 0x0008
3577 #define TCS_FORCEICONLEFT 0x0010
3578 #define TCS_FORCELABELLEFT 0x0020
3579 #define TCS_HOTTRACK 0x0040
3580 #define TCS_VERTICAL 0x0080
3581 #define TCS_TABS 0x0000
3582 #define TCS_BUTTONS 0x0100
3583 #define TCS_SINGLELINE 0x0000
3584 #define TCS_MULTILINE 0x0200
3585 #define TCS_RIGHTJUSTIFY 0x0000
3586 #define TCS_FIXEDWIDTH 0x0400
3587 #define TCS_RAGGEDRIGHT 0x0800
3588 #define TCS_FOCUSONBUTTONDOWN 0x1000
3589 #define TCS_OWNERDRAWFIXED 0x2000
3590 #define TCS_TOOLTIPS 0x4000
3591 #define TCS_FOCUSNEVER 0x8000
3592 #define TCS_EX_FLATSEPARATORS 0x00000001 /* to be used with */
3593 #define TCS_EX_REGISTERDROP 0x00000002 /* TCM_SETEXTENDEDSTYLE */
3596 #define TCM_FIRST 0x1300
3598 #define TCM_GETIMAGELIST (TCM_FIRST + 2)
3599 #define TCM_SETIMAGELIST (TCM_FIRST + 3)
3600 #define TCM_GETITEMCOUNT (TCM_FIRST + 4)
3601 #define TCM_GETITEM WINELIB_NAME_AW(TCM_GETITEM)
3602 #define TCM_GETITEMA (TCM_FIRST + 5)
3603 #define TCM_GETITEMW (TCM_FIRST + 60)
3604 #define TCM_SETITEMA (TCM_FIRST + 6)
3605 #define TCM_SETITEMW (TCM_FIRST + 61)
3606 #define TCM_SETITEM WINELIB_NAME_AW(TCM_SETITEM)
3607 #define TCM_INSERTITEMA (TCM_FIRST + 7)
3608 #define TCM_INSERTITEMW (TCM_FIRST + 62)
3609 #define TCM_INSERTITEM WINELIB_NAME_AW(TCM_INSERTITEM)
3610 #define TCM_DELETEITEM (TCM_FIRST + 8)
3611 #define TCM_DELETEALLITEMS (TCM_FIRST + 9)
3612 #define TCM_GETITEMRECT (TCM_FIRST + 10)
3613 #define TCM_GETCURSEL (TCM_FIRST + 11)
3614 #define TCM_SETCURSEL (TCM_FIRST + 12)
3615 #define TCM_HITTEST (TCM_FIRST + 13)
3616 #define TCM_SETITEMEXTRA (TCM_FIRST + 14)
3617 #define TCM_ADJUSTRECT (TCM_FIRST + 40)
3618 #define TCM_SETITEMSIZE (TCM_FIRST + 41)
3619 #define TCM_REMOVEIMAGE (TCM_FIRST + 42)
3620 #define TCM_SETPADDING (TCM_FIRST + 43)
3621 #define TCM_GETROWCOUNT (TCM_FIRST + 44)
3622 #define TCM_GETTOOLTIPS (TCM_FIRST + 45)
3623 #define TCM_SETTOOLTIPS (TCM_FIRST + 46)
3624 #define TCM_GETCURFOCUS (TCM_FIRST + 47)
3625 #define TCM_SETCURFOCUS (TCM_FIRST + 48)
3626 #define TCM_SETMINTABWIDTH (TCM_FIRST + 49)
3627 #define TCM_DESELECTALL (TCM_FIRST + 50)
3628 #define TCM_HIGHLIGHTITEM (TCM_FIRST + 51)
3629 #define TCM_SETEXTENDEDSTYLE (TCM_FIRST + 52)
3630 #define TCM_GETEXTENDEDSTYLE (TCM_FIRST + 53)
3631 #define TCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
3632 #define TCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
3635 #define TCIF_TEXT 0x0001
3636 #define TCIF_IMAGE 0x0002
3637 #define TCIF_RTLREADING 0x0004
3638 #define TCIF_PARAM 0x0008
3639 #define TCIF_STATE 0x0010
3641 #define TCIS_BUTTONPRESSED 0x0001
3642 #define TCIS_HIGHLIGHTED 0x0002
3644 /* TabCtrl Macros */
3645 #define TabCtrl_GetImageList(hwnd) \
3646 (HIMAGELIST)SNDMSGA((hwnd), TCM_GETIMAGELIST, 0, 0L)
3647 #define TabCtrl_SetImageList(hwnd, himl) \
3648 (HIMAGELIST)SNDMSGA((hwnd), TCM_SETIMAGELIST, 0, (LPARAM)(UINT)(HIMAGELIST)(himl))
3649 #define TabCtrl_GetItemCount(hwnd) \
3650 (int)SNDMSGA((hwnd), TCM_GETITEMCOUNT, 0, 0L)
3651 #define TabCtrl_GetItemA(hwnd, iItem, pitem) \
3652 (BOOL)SNDMSGA((hwnd), TCM_GETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM *)(pitem))
3653 #define TabCtrl_GetItemW(hwnd, iItem, pitem) \
3654 (BOOL)SNDMSGW((hwnd), TCM_GETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM *)(pitem))
3655 #define TabCtrl_GetItem WINELIB_NAME_AW(TabCtrl_GetItem)
3656 #define TabCtrl_SetItemA(hwnd, iItem, pitem) \
3657 (BOOL)SNDMSGA((hwnd), TCM_SETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM *)(pitem))
3658 #define TabCtrl_SetItemW(hwnd, iItem, pitem) \
3659 (BOOL)SNDMSGW((hwnd), TCM_SETITEM, (WPARAM)(int)iItem, (LPARAM)(TC_ITEM *)(pitem))
3660 #define TabCtrl_SetItem WINELIB_NAME_AW(TabCtrl_SetItem)
3661 #define TabCtrl_InsertItemA(hwnd, iItem, pitem) \
3662 (int)SNDMSGA((hwnd), TCM_INSERTITEM, (WPARAM)(int)iItem, (LPARAM)(const TC_ITEM *)(pitem))
3663 #define TabCtrl_InsertItemW(hwnd, iItem, pitem) \
3664 (int)SNDMSGW((hwnd), TCM_INSERTITEM, (WPARAM)(int)iItem, (LPARAM)(const TC_ITEM *)(pitem))
3665 #define TabCtrl_InsertItem WINELIB_NAME_AW(TabCtrl_InsertItem)
3666 #define TabCtrl_DeleteItem(hwnd, i) \
3667 (BOOL)SNDMSGA((hwnd), TCM_DELETEITEM, (WPARAM)(int)(i), 0L)
3668 #define TabCtrl_DeleteAllItems(hwnd) \
3669 (BOOL)SNDMSGA((hwnd), TCM_DELETEALLITEMS, 0, 0L)
3670 #define TabCtrl_GetItemRect(hwnd, i, prc) \
3671 (BOOL)SNDMSGA((hwnd), TCM_GETITEMRECT, (WPARAM)(int)(i), (LPARAM)(RECT *)(prc))
3672 #define TabCtrl_GetCurSel(hwnd) \
3673 (int)SNDMSGA((hwnd), TCM_GETCURSEL, 0, 0)
3674 #define TabCtrl_SetCurSel(hwnd, i) \
3675 (int)SNDMSGA((hwnd), TCM_SETCURSEL, (WPARAM)i, 0)
3676 #define TabCtrl_HitTest(hwndTC, pinfo) \
3677 (int)SNDMSGA((hwndTC), TCM_HITTEST, 0, (LPARAM)(TC_HITTESTINFO *)(pinfo))
3678 #define TabCtrl_SetItemExtra(hwndTC, cb) \
3679 (BOOL)SNDMSGA((hwndTC), TCM_SETITEMEXTRA, (WPARAM)(cb), 0L)
3680 #define TabCtrl_AdjustRect(hwnd, bLarger, prc) \
3681 (int)SNDMSGA(hwnd, TCM_ADJUSTRECT, (WPARAM)(BOOL)bLarger, (LPARAM)(RECT *)prc)
3682 #define TabCtrl_SetItemSize(hwnd, x, y) \
3683 (DWORD)SNDMSGA((hwnd), TCM_SETITEMSIZE, 0, MAKELPARAM(x,y))
3684 #define TabCtrl_RemoveImage(hwnd, i) \
3685 (void)SNDMSGA((hwnd), TCM_REMOVEIMAGE, i, 0L)
3686 #define TabCtrl_SetPadding(hwnd, cx, cy) \
3687 (void)SNDMSGA((hwnd), TCM_SETPADDING, 0, MAKELPARAM(cx, cy))
3688 #define TabCtrl_GetRowCount(hwnd) \
3689 (int)SNDMSGA((hwnd), TCM_GETROWCOUNT, 0, 0L)
3690 #define TabCtrl_GetToolTips(hwnd) \
3691 (HWND)SNDMSGA((hwnd), TCM_GETTOOLTIPS, 0, 0L)
3692 #define TabCtrl_SetToolTips(hwnd, hwndTT) \
3693 (void)SNDMSGA((hwnd), TCM_SETTOOLTIPS, (WPARAM)hwndTT, 0L)
3694 #define TabCtrl_GetCurFocus(hwnd) \
3695 (int)SNDMSGA((hwnd), TCM_GETCURFOCUS, 0, 0)
3696 #define TabCtrl_SetCurFocus(hwnd, i) \
3697 SNDMSGA((hwnd),TCM_SETCURFOCUS, i, 0)
3698 #define TabCtrl_SetMinTabWidth(hwnd, x) \
3699 (int)SNDMSGA((hwnd), TCM_SETMINTABWIDTH, 0, x)
3700 #define TabCtrl_DeselectAll(hwnd, fExcludeFocus)\
3701 (void)SNDMSGA((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)
3702 #define TabCtrl_GetUnicodeFormat(hwnd) \
3703 (BOOL)SNDMSGA((hwnd), TCM_GETUNICODEFORMAT, 0, 0)
3704 #define TabCtrl_SetUnicodeFormat(hwnd, fUnicode) \
3705 (BOOL)SNDMSGA((hwnd), TCM_SETUNICODEFORMAT, (WPARAM)fUnicode, 0)
3706 #define TabCtrl_GetExtendedStyle(hwnd) \
3707 (BOOL)SNDMSGA((hwnd), TCM_GETEXTENDEDSTYLE, 0, 0)
3708 #define TabCtrl_SetExtendedStyle(hwnd, dwExStyle) \
3709 (BOOL)SNDMSGA((hwnd), TCM_GETEXTENDEDSTYLE, 0, (LPARAM)dwExStyle)
3710 #define TabCtrl_HighlightItem(hwnd, i, fHighlight) \
3711 (BOOL)SNDMSG((hwnd), TCM_HIGHLIGHTITEM, (WPARAM)i, (LPARAM)MAKELONG(fHighlight, 0))
3713 /* constants for TCHITTESTINFO */
3715 #define TCHT_NOWHERE 0x01
3716 #define TCHT_ONITEMICON 0x02
3717 #define TCHT_ONITEMLABEL 0x04
3718 #define TCHT_ONITEM (TCHT_ONITEMICON | TCHT_ONITEMLABEL)
3720 typedef struct tagTCITEMHEADERA
3728 } TCITEMHEADERA
, *LPTCITEMHEADERA
;
3730 typedef struct tagTCITEMHEADERW
3738 } TCITEMHEADERW
, *LPTCITEMHEADERW
;
3740 #define TCITEMHEADER WINELIB_NAME_AW(TCITEMHEADER)
3741 #define LPTCITEMHEADER WINELIB_NAME_AW(LPTCITEMHEADER)
3742 #define TC_ITEMHEADER WINELIB_NAME_AW(TCITEMHEADER)
3743 #define LPTC_ITEMHEADER WINELIB_NAME_AW(LPTCITEMHEADER)
3745 typedef struct tagTCITEMA
3754 } TCITEMA
, *LPTCITEMA
;
3756 typedef struct tagTCITEMW
3765 } TCITEMW
, *LPTCITEMW
;
3767 #define TCITEM WINELIB_NAME_AW(TCITEM)
3768 #define LPTCITEM WINELIB_NAME_AW(LPTCITEM)
3769 #define TC_ITEM WINELIB_NAME_AW(TCITEM)
3770 #define LPTC_ITEM WINELIB_NAME_AW(LPTCITEM)
3772 #define TCN_FIRST (0U-550U)
3773 #define TCN_LAST (0U-580U)
3774 #define TCN_KEYDOWN (TCN_FIRST - 0)
3775 #define TCN_SELCHANGE (TCN_FIRST - 1)
3776 #define TCN_SELCHANGING (TCN_FIRST - 2)
3777 #define TCN_GETOBJECT (TCN_FIRST - 3)
3779 #include <pshpack1.h>
3780 typedef struct tagTCKEYDOWN
3786 #include <poppack.h>
3788 #define TC_KEYDOWN NMTCKEYDOWN
3790 /* ComboBoxEx control */
3792 #define WC_COMBOBOXEXA "ComboBoxEx32"
3793 #if defined(__GNUC__)
3794 # define WC_COMBOBOXEXW (const WCHAR []){ 'C','o','m','b','o', \
3795 'B','o','x','E','x','3','2',0 }
3796 #elif defined(_MSC_VER)
3797 # define WC_COMBOBOXEXW L"ComboBoxEx32"
3799 static const WCHAR WC_COMBOBOXEXW
[] = { 'C','o','m','b','o',
3800 'B','o','x','E','x','3','2',0 };
3802 #define WC_COMBOBOXEX WINELIB_NAME_AW(WC_COMBOBOXEX)
3804 #define CBEIF_TEXT 0x00000001
3805 #define CBEIF_IMAGE 0x00000002
3806 #define CBEIF_SELECTEDIMAGE 0x00000004
3807 #define CBEIF_OVERLAY 0x00000008
3808 #define CBEIF_INDENT 0x00000010
3809 #define CBEIF_LPARAM 0x00000020
3810 #define CBEIF_DI_SETITEM 0x10000000
3812 #define CBEM_INSERTITEMA (WM_USER+1)
3813 #define CBEM_INSERTITEMW (WM_USER+11)
3814 #define CBEM_INSERTITEM WINELIB_NAME_AW(CBEM_INSERTITEM)
3815 #define CBEM_SETIMAGELIST (WM_USER+2)
3816 #define CBEM_GETIMAGELIST (WM_USER+3)
3817 #define CBEM_GETITEMA (WM_USER+4)
3818 #define CBEM_GETITEMW (WM_USER+13)
3819 #define CBEM_GETITEM WINELIB_NAME_AW(CBEM_GETITEM)
3820 #define CBEM_SETITEMA (WM_USER+5)
3821 #define CBEM_SETITEMW (WM_USER+12)
3822 #define CBEM_SETITEM WINELIB_NAME_AW(CBEM_SETITEM)
3823 #define CBEM_DELETEITEM CB_DELETESTRING
3824 #define CBEM_GETCOMBOCONTROL (WM_USER+6)
3825 #define CBEM_GETEDITCONTROL (WM_USER+7)
3826 #define CBEM_SETEXSTYLE (WM_USER+8)
3827 #define CBEM_GETEXSTYLE (WM_USER+9)
3828 #define CBEM_GETEXTENDEDSTYLE (WM_USER+9)
3829 #define CBEM_SETEXTENDEDSTYLE (WM_USER+14)
3830 #define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
3831 #define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
3832 #define CBEM_HASEDITCHANGED (WM_USER+10)
3834 #define CBEIF_TEXT 0x00000001
3835 #define CBEIF_IMAGE 0x00000002
3836 #define CBEIF_SELECTEDIMAGE 0x00000004
3837 #define CBEIF_OVERLAY 0x00000008
3838 #define CBEIF_INDENT 0x00000010
3839 #define CBEIF_LPARAM 0x00000020
3840 #define CBEIF_DI_SETITEM 0x10000000
3842 #define CBEN_FIRST (0U-800U)
3843 #define CBEN_LAST (0U-830U)
3845 #define CBEN_GETDISPINFOA (CBEN_FIRST - 0)
3846 #define CBEN_GETDISPINFOW (CBEN_FIRST - 7)
3847 #define CBEN_GETDISPINFO WINELIB_NAME_AW(CBEN_GETDISPINFO)
3848 #define CBEN_INSERTITEM (CBEN_FIRST - 1)
3849 #define CBEN_DELETEITEM (CBEN_FIRST - 2)
3850 #define CBEN_BEGINEDIT (CBEN_FIRST - 4)
3851 #define CBEN_ENDEDITA (CBEN_FIRST - 5)
3852 #define CBEN_ENDEDITW (CBEN_FIRST - 6)
3853 #define CBEN_ENDEDIT WINELIB_NAME_AW(CBEN_ENDEDIT)
3854 #define CBEN_DRAGBEGINA (CBEN_FIRST - 8)
3855 #define CBEN_DRAGBEGINW (CBEN_FIRST - 9)
3856 #define CBEN_DRAGBEGIN WINELIB_NAME_AW(CBEN_DRAGBEGIN)
3858 #define CBES_EX_NOEDITIMAGE 0x00000001
3859 #define CBES_EX_NOEDITIMAGEINDENT 0x00000002
3860 #define CBES_EX_PATHWORDBREAKPROC 0x00000004
3861 #define CBES_EX_NOSIZELIMIT 0x00000008
3862 #define CBES_EX_CASESENSITIVE 0x00000010
3865 typedef struct tagCOMBOBOXEXITEMA
3876 } COMBOBOXEXITEMA
, *PCOMBOBOXEXITEMA
;
3877 typedef COMBOBOXEXITEMA
const *PCCOMBOEXITEMA
; /* Yes, there's a BOX missing */
3879 typedef struct tagCOMBOBOXEXITEMW
3890 } COMBOBOXEXITEMW
, *PCOMBOBOXEXITEMW
;
3891 typedef COMBOBOXEXITEMW
const *PCCOMBOEXITEMW
; /* Yes, there's a BOX missing */
3893 #define COMBOBOXEXITEM WINELIB_NAME_AW(COMBOBOXEXITEM)
3894 #define PCOMBOBOXEXITEM WINELIB_NAME_AW(PCOMBOBOXEXITEM)
3895 #define PCCOMBOBOXEXITEM WINELIB_NAME_AW(PCCOMBOEXITEM) /* Yes, there's a BOX missing */
3897 #define CBENF_KILLFOCUS 1
3898 #define CBENF_RETURN 2
3899 #define CBENF_ESCAPE 3
3900 #define CBENF_DROPDOWN 4
3902 #define CBEMAXSTRLEN 260
3904 typedef struct tagNMCBEENDEDITW
3909 WCHAR szText
[CBEMAXSTRLEN
];
3911 } NMCBEENDEDITW
, *LPNMCBEENDEDITW
, *PNMCBEENDEDITW
;
3913 typedef struct tagNMCBEENDEDITA
3918 char szText
[CBEMAXSTRLEN
];
3920 } NMCBEENDEDITA
, *LPNMCBEENDEDITA
, *PNMCBEENDEDITA
;
3922 #define NMCBEENDEDIT WINELIB_NAME_AW(NMCBEENDEDIT)
3923 #define LPNMCBEENDEDIT WINELIB_NAME_AW(LPNMCBEENDEDIT)
3924 #define PNMCBEENDEDIT WINELIB_NAME_AW(PNMCBEENDEDIT)
3929 COMBOBOXEXITEMA ceItem
;
3930 } NMCOMBOBOXEXA
, *PNMCOMBOBOXEXA
;
3935 COMBOBOXEXITEMW ceItem
;
3936 } NMCOMBOBOXEXW
, *PNMCOMBOBOXEXW
;
3938 #define NMCOMBOBOXEX WINELIB_NAME_AW(NMCOMBOBOXEX)
3939 #define PNMCOMBOBOXEX WINELIB_NAME_AW(PNMCOMBOBOXEX)
3945 char szText
[CBEMAXSTRLEN
];
3946 } NMCBEDRAGBEGINA
, *PNMCBEDRAGBEGINA
, *LPNMCBEDRAGBEGINA
;
3952 WCHAR szText
[CBEMAXSTRLEN
];
3953 } NMCBEDRAGBEGINW
, *PNMCBEDRAGBEGINW
, *LPNMCBEDRAGBEGINW
;
3955 #define NMCBEDRAGBEGIN WINELIB_NAME_AW(NMCBEDRAGBEGIN)
3956 #define PNMCBEDRAGBEGIN WINELIB_NAME_AW(PNMCBEDRAGBEGIN)
3957 #define LPNMCBEDRAGBEGIN WINELIB_NAME_AW(LPNMCBEDRAGBEGIN)
3960 /* Hotkey control */
3962 #define HOTKEY_CLASSA "msctls_hotkey32"
3963 #if defined(__GNUC__)
3964 # define HOTKEY_CLASSW (const WCHAR []){ 'm','s','c','t','l','s','_', \
3965 'h','o','t','k','e','y','3','2',0 }
3966 #elif defined(_MSC_VER)
3967 # define HOTKEY_CLASSW L"msctls_hotkey32"
3969 static const WCHAR HOTKEY_CLASSW
[] = { 'm','s','c','t','l','s','_',
3970 'h','o','t','k','e','y','3','2',0 };
3972 #define HOTKEY_CLASS WINELIB_NAME_AW(HOTKEY_CLASS)
3974 #define HOTKEYF_SHIFT 0x01
3975 #define HOTKEYF_CONTROL 0x02
3976 #define HOTKEYF_ALT 0x04
3977 #define HOTKEYF_EXT 0x08
3979 #define HKCOMB_NONE 0x0001
3980 #define HKCOMB_S 0x0002
3981 #define HKCOMB_C 0x0004
3982 #define HKCOMB_A 0x0008
3983 #define HKCOMB_SC 0x0010
3984 #define HKCOMB_SA 0x0020
3985 #define HKCOMB_CA 0x0040
3986 #define HKCOMB_SCA 0x0080
3988 #define HKM_SETHOTKEY (WM_USER+1)
3989 #define HKM_GETHOTKEY (WM_USER+2)
3990 #define HKM_SETRULES (WM_USER+3)
3993 /* animate control */
3995 #define ANIMATE_CLASSA "SysAnimate32"
3996 #if defined(__GNUC__)
3997 # define ANIMATE_CLASSW (const WCHAR []){ 'S','y','s', \
3998 'A','n','i','m','a','t','e','3','2',0 }
3999 #elif defined(_MSC_VER)
4000 # define ANIMATE_CLASSW L"SysAnimate32"
4002 static const WCHAR ANIMATE_CLASSW
[] = { 'S','y','s',
4003 'A','n','i','m','a','t','e','3','2',0 };
4005 #define ANIMATE_CLASS WINELIB_NAME_AW(ANIMATE_CLASS)
4007 #define ACS_CENTER 0x0001
4008 #define ACS_TRANSPARENT 0x0002
4009 #define ACS_AUTOPLAY 0x0004
4010 #define ACS_TIMER 0x0008 /* no threads, just timers */
4012 #define ACM_OPENA (WM_USER+100)
4013 #define ACM_OPENW (WM_USER+103)
4014 #define ACM_OPEN WINELIB_NAME_AW(ACM_OPEN)
4015 #define ACM_PLAY (WM_USER+101)
4016 #define ACM_STOP (WM_USER+102)
4021 #define Animate_CreateA(hwndP,id,dwStyle,hInstance) \
4022 CreateWindowA(ANIMATE_CLASSA,NULL,dwStyle,0,0,0,0,hwndP,(HMENU)(id),hInstance,NULL)
4023 #define Animate_CreateW(hwndP,id,dwStyle,hInstance) \
4024 CreateWindowW(ANIMATE_CLASSW,NULL,dwStyle,0,0,0,0,hwndP,(HMENU)(id),hInstance,NULL)
4025 #define Animate_Create WINELIB_NAME_AW(Animate_Create)
4026 #define Animate_OpenA(hwnd,szName) \
4027 (BOOL)SNDMSGA(hwnd,ACM_OPENA,0,(LPARAM)(LPSTR)(szName))
4028 #define Animate_OpenW(hwnd,szName) \
4029 (BOOL)SNDMSGW(hwnd,ACM_OPENW,0,(LPARAM)(LPWSTR)(szName))
4030 #define Animate_Open WINELIB_NAME_AW(Animate_Open)
4031 #define Animate_OpenExA(hwnd,hInst,szName) \
4032 (BOOL)SNDMSGA(hwnd,ACM_OPENA,(WPARAM)hInst,(LPARAM)(LPSTR)(szName))
4033 #define Animate_OpenExW(hwnd,hInst,szName) \
4034 (BOOL)SNDMSGW(hwnd,ACM_OPENW,(WPARAM)hInst,(LPARAM)(LPWSTR)(szName))
4035 #define Animate_OpenEx WINELIB_NAME_AW(Animate_OpenEx)
4036 #define Animate_Play(hwnd,from,to,rep) \
4037 (BOOL)SNDMSGA(hwnd,ACM_PLAY,(WPARAM)(UINT)(rep),(LPARAM)MAKELONG(from,to))
4038 #define Animate_Stop(hwnd) \
4039 (BOOL)SNDMSGA(hwnd,ACM_STOP,0,0)
4040 #define Animate_Close(hwnd) \
4041 (BOOL)SNDMSGA(hwnd,ACM_OPENA,0,0)
4042 #define Animate_Seek(hwnd,frame) \
4043 (BOOL)SNDMSGA(hwnd,ACM_PLAY,1,(LPARAM)MAKELONG(frame,frame))
4046 /**************************************************************************
4047 * IP Address control
4050 #define WC_IPADDRESSA "SysIPAddress32"
4051 #if defined(__GNUC__)
4052 # define WC_IPADDRESSW (const WCHAR []){ 'S','y','s', \
4053 'I','P','A','d','d','r','e','s','s','3','2',0 }
4054 #elif defined(_MSC_VER)
4055 # define WC_IPADDRESSW L"SysIPAddress32"
4057 static const WCHAR WC_IPADDRESSW
[] = { 'S','y','s',
4058 'I','P','A','d','d','r','e','s','s','3','2',0 };
4060 #define WC_IPADDRESS WINELIB_NAME_AW(WC_IPADDRESS)
4062 #define IPM_CLEARADDRESS (WM_USER+100)
4063 #define IPM_SETADDRESS (WM_USER+101)
4064 #define IPM_GETADDRESS (WM_USER+102)
4065 #define IPM_SETRANGE (WM_USER+103)
4066 #define IPM_SETFOCUS (WM_USER+104)
4067 #define IPM_ISBLANK (WM_USER+105)
4069 #define IPN_FIRST (0U-860U)
4070 #define IPN_LAST (0U-879U)
4071 #define IPN_FIELDCHANGED (IPN_FIRST-0)
4073 typedef struct tagNMIPADDRESS
4078 } NMIPADDRESS
, *LPNMIPADDRESS
;
4080 #define MAKEIPRANGE(low,high) \
4081 ((LPARAM)(WORD)(((BYTE)(high)<<8)+(BYTE)(low)))
4082 #define MAKEIPADDRESS(b1,b2,b3,b4) \
4083 ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<16)+((DWORD)(b3)<<8)+((DWORD)(b4))))
4085 #define FIRST_IPADDRESS(x) (((x)>>24)&0xff)
4086 #define SECOND_IPADDRESS(x) (((x)>>16)&0xff)
4087 #define THIRD_IPADDRESS(x) (((x)>>8)&0xff)
4088 #define FOURTH_IPADDRESS(x) ((x)&0xff)
4091 /**************************************************************************
4092 * Native Font control
4095 #define WC_NATIVEFONTCTLA "NativeFontCtl"
4096 #if defined(__GNUC__)
4097 # define WC_NATIVEFONTCTLW (const WCHAR []){ 'N','a','t','i','v','e', \
4098 'F','o','n','t','C','t','l',0 }
4099 #elif defined(_MSC_VER)
4100 # define WC_NATIVEFONTCTLW L"NativeFontCtl"
4102 static const WCHAR WC_NATIVEFONTCTLW
[] = { 'N','a','t','i','v','e',
4103 'F','o','n','t','C','t','l',0 };
4105 #define WC_NATIVEFONTCTL WINELIB_NAME_AW(WC_NATIVEFONTCTL)
4107 #define NFS_EDIT 0x0001
4108 #define NFS_STATIC 0x0002
4109 #define NFS_LISTCOMBO 0x0004
4110 #define NFS_BUTTON 0x0008
4111 #define NFS_ALL 0x0010
4114 /**************************************************************************
4115 * Month calendar control
4119 #define MONTHCAL_CLASSA "SysMonthCal32"
4120 #if defined(__GNUC__)
4121 # define MONTHCAL_CLASSW (const WCHAR []){ 'S','y','s', \
4122 'M','o','n','t','h','C','a','l','3','2',0 }
4123 #elif defined(_MSC_VER)
4124 # define MONTHCAL_CLASSW L"SysMonthCal32"
4126 static const WCHAR MONTHCAL_CLASSW
[] = { 'S','y','s',
4127 'M','o','n','t','h','C','a','l','3','2',0 };
4129 #define MONTHCAL_CLASS WINELIB_NAME_AW(MONTHCAL_CLASS)
4131 #define MCM_FIRST 0x1000
4132 #define MCN_FIRST (0U-750U)
4133 #define MCN_LAST (0U-759U)
4136 #define MCM_GETCURSEL (MCM_FIRST + 1)
4137 #define MCM_SETCURSEL (MCM_FIRST + 2)
4138 #define MCM_GETMAXSELCOUNT (MCM_FIRST + 3)
4139 #define MCM_SETMAXSELCOUNT (MCM_FIRST + 4)
4140 #define MCM_GETSELRANGE (MCM_FIRST + 5)
4141 #define MCM_SETSELRANGE (MCM_FIRST + 6)
4142 #define MCM_GETMONTHRANGE (MCM_FIRST + 7)
4143 #define MCM_SETDAYSTATE (MCM_FIRST + 8)
4144 #define MCM_GETMINREQRECT (MCM_FIRST + 9)
4145 #define MCM_SETCOLOR (MCM_FIRST + 10)
4146 #define MCM_GETCOLOR (MCM_FIRST + 11)
4147 #define MCM_SETTODAY (MCM_FIRST + 12)
4148 #define MCM_GETTODAY (MCM_FIRST + 13)
4149 #define MCM_HITTEST (MCM_FIRST + 14)
4150 #define MCM_SETFIRSTDAYOFWEEK (MCM_FIRST + 15)
4151 #define MCM_GETFIRSTDAYOFWEEK (MCM_FIRST + 16)
4152 #define MCM_GETRANGE (MCM_FIRST + 17)
4153 #define MCM_SETRANGE (MCM_FIRST + 18)
4154 #define MCM_GETMONTHDELTA (MCM_FIRST + 19)
4155 #define MCM_SETMONTHDELTA (MCM_FIRST + 20)
4156 #define MCM_GETMAXTODAYWIDTH (MCM_FIRST + 21)
4157 #define MCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT
4158 #define MCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT
4163 #define MCN_SELCHANGE (MCN_FIRST + 1)
4164 #define MCN_GETDAYSTATE (MCN_FIRST + 3)
4165 #define MCN_SELECT (MCN_FIRST + 4)
4167 #define MCSC_BACKGROUND 0
4169 #define MCSC_TITLEBK 2
4170 #define MCSC_TITLETEXT 3
4171 #define MCSC_MONTHBK 4
4172 #define MCSC_TRAILINGTEXT 5
4174 #define MCS_DAYSTATE 0x0001
4175 #define MCS_MULTISELECT 0x0002
4176 #define MCS_WEEKNUMBERS 0x0004
4177 #define MCS_NOTODAY 0x0010
4178 #define MCS_NOTODAYCIRCLE 0x0008
4180 #define MCHT_TITLE 0x00010000
4181 #define MCHT_CALENDAR 0x00020000
4182 #define MCHT_TODAYLINK 0x00030000
4184 #define MCHT_NEXT 0x01000000
4185 #define MCHT_PREV 0x02000000
4186 #define MCHT_NOWHERE 0x00000000
4187 #define MCHT_TITLEBK (MCHT_TITLE)
4188 #define MCHT_TITLEMONTH (MCHT_TITLE | 0x0001)
4189 #define MCHT_TITLEYEAR (MCHT_TITLE | 0x0002)
4190 #define MCHT_TITLEBTNNEXT (MCHT_TITLE | MCHT_NEXT | 0x0003)
4191 #define MCHT_TITLEBTNPREV (MCHT_TITLE | MCHT_PREV | 0x0003)
4193 #define MCHT_CALENDARBK (MCHT_CALENDAR)
4194 #define MCHT_CALENDARDATE (MCHT_CALENDAR | 0x0001)
4195 #define MCHT_CALENDARDATENEXT (MCHT_CALENDARDATE | MCHT_NEXT)
4196 #define MCHT_CALENDARDATEPREV (MCHT_CALENDARDATE | MCHT_PREV)
4197 #define MCHT_CALENDARDAY (MCHT_CALENDAR | 0x0002)
4198 #define MCHT_CALENDARWEEKNUM (MCHT_CALENDAR | 0x0003)
4202 #define GMR_VISIBLE 0
4203 #define GMR_DAYSTATE 1
4206 /* Month calendar's structures */
4214 } MCHITTESTINFO
, *PMCHITTESTINFO
;
4216 typedef struct tagNMSELCHANGE
4219 SYSTEMTIME stSelStart
;
4220 SYSTEMTIME stSelEnd
;
4221 } NMSELCHANGE
, *LPNMSELCHANGE
;
4223 typedef NMSELCHANGE NMSELECT
, *LPNMSELECT
;
4224 typedef DWORD MONTHDAYSTATE
, *LPMONTHDAYSTATE
;
4226 typedef struct tagNMDAYSTATE
4231 LPMONTHDAYSTATE prgDayState
;
4232 } NMDAYSTATE
, *LPNMDAYSTATE
;
4237 #define MonthCal_GetCurSel(hmc, pst) \
4238 (BOOL)SNDMSGA(hmc, MCM_GETCURSEL, 0, (LPARAM)(pst))
4239 #define MonthCal_SetCurSel(hmc, pst) \
4240 (BOOL)SNDMSGA(hmc, MCM_SETCURSEL, 0, (LPARAM)(pst))
4241 #define MonthCal_GetMaxSelCount(hmc) \
4242 (DWORD)SNDMSGA(hmc, MCM_GETMAXSELCOUNT, 0, 0L)
4243 #define MonthCal_SetMaxSelCount(hmc, n) \
4244 (BOOL)SNDMSGA(hmc, MCM_SETMAXSELCOUNT, (WPARAM)(n), 0L)
4245 #define MonthCal_GetSelRange(hmc, rgst) \
4246 SNDMSGA(hmc, MCM_GETSELRANGE, 0, (LPARAM) (rgst))
4247 #define MonthCal_SetSelRange(hmc, rgst) \
4248 SNDMSGA(hmc, MCM_SETSELRANGE, 0, (LPARAM) (rgst))
4249 #define MonthCal_GetMonthRange(hmc, gmr, rgst) \
4250 (DWORD)SNDMSGA(hmc, MCM_GETMONTHRANGE, (WPARAM)(gmr), (LPARAM)(rgst))
4251 #define MonthCal_SetDayState(hmc, cbds, rgds) \
4252 SNDMSGA(hmc, MCM_SETDAYSTATE, (WPARAM)(cbds), (LPARAM)(rgds))
4253 #define MonthCal_GetMinReqRect(hmc, prc) \
4254 SNDMSGA(hmc, MCM_GETMINREQRECT, 0, (LPARAM)(prc))
4255 #define MonthCal_SetColor(hmc, iColor, clr)\
4256 SNDMSGA(hmc, MCM_SETCOLOR, iColor, clr)
4257 #define MonthCal_GetColor(hmc, iColor) \
4258 SNDMSGA(hmc, MCM_SETCOLOR, iColor, 0)
4259 #define MonthCal_GetToday(hmc, pst)\
4260 (BOOL)SNDMSGA(hmc, MCM_GETTODAY, 0, (LPARAM)pst)
4261 #define MonthCal_SetToday(hmc, pst)\
4262 SNDMSGA(hmc, MCM_SETTODAY, 0, (LPARAM)pst)
4263 #define MonthCal_HitTest(hmc, pinfo) \
4264 SNDMSGA(hmc, MCM_HITTEST, 0, (LPARAM)(PMCHITTESTINFO)pinfo)
4265 #define MonthCal_SetFirstDayOfWeek(hmc, iDay) \
4266 SNDMSGA(hmc, MCM_SETFIRSTDAYOFWEEK, 0, iDay)
4267 #define MonthCal_GetFirstDayOfWeek(hmc) \
4268 (DWORD)SNDMSGA(hmc, MCM_GETFIRSTDAYOFWEEK, 0, 0)
4269 #define MonthCal_GetRange(hmc, rgst) \
4270 (DWORD)SNDMSGA(hmc, MCM_GETRANGE, 0, (LPARAM)(rgst))
4271 #define MonthCal_SetRange(hmc, gd, rgst) \
4272 (BOOL)SNDMSGA(hmc, MCM_SETRANGE, (WPARAM)(gd), (LPARAM)(rgst))
4273 #define MonthCal_GetMonthDelta(hmc) \
4274 (int)SNDMSGA(hmc, MCM_GETMONTHDELTA, 0, 0)
4275 #define MonthCal_SetMonthDelta(hmc, n) \
4276 (int)SNDMSGA(hmc, MCM_SETMONTHDELTA, n, 0)
4277 #define MonthCal_GetMaxTodayWidth(hmc) \
4278 (DWORD)SNDMSGA(hmc, MCM_GETMAXTODAYWIDTH, 0, 0)
4279 #define MonthCal_SetUnicodeFormat(hwnd, fUnicode) \
4280 (BOOL)SNDMSGA((hwnd), MCM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0)
4281 #define MonthCal_GetUnicodeFormat(hwnd) \
4282 (BOOL)SNDMSGA((hwnd), MCM_GETUNICODEFORMAT, 0, 0)
4285 /**************************************************************************
4286 * Date and time picker control
4289 #define DATETIMEPICK_CLASSA "SysDateTimePick32"
4290 #if defined(__GNUC__)
4291 # define DATETIMEPICK_CLASSW (const WCHAR []){ 'S','y','s', \
4292 'D','a','t','e','T','i','m','e','P','i','c','k','3','2',0 }
4293 #elif defined(_MSC_VER)
4294 # define DATETIMEPICK_CLASSW L"SysDateTimePick32"
4296 static const WCHAR DATETIMEPICK_CLASSW
[] = { 'S','y','s',
4297 'D','a','t','e','T','i','m','e','P','i','c','k','3','2',0 };
4299 #define DATETIMEPICK_CLASS WINELIB_NAME_AW(DATETIMEPICK_CLASS)
4301 #define DTM_FIRST 0x1000
4302 #define DTN_FIRST (0U-760U)
4303 #define DTN_LAST (0U-799U)
4306 #define DTM_GETSYSTEMTIME (DTM_FIRST+1)
4307 #define DTM_SETSYSTEMTIME (DTM_FIRST+2)
4308 #define DTM_GETRANGE (DTM_FIRST+3)
4309 #define DTM_SETRANGE (DTM_FIRST+4)
4310 #define DTM_SETFORMATA (DTM_FIRST+5)
4311 #define DTM_SETFORMATW (DTM_FIRST + 50)
4312 #define DTM_SETFORMAT WINELIB_NAME_AW(DTM_SETFORMAT)
4313 #define DTM_SETMCCOLOR (DTM_FIRST+6)
4314 #define DTM_GETMCCOLOR (DTM_FIRST+7)
4315 #define DTM_GETMONTHCAL (DTM_FIRST+8)
4316 #define DTM_SETMCFONT (DTM_FIRST+9)
4317 #define DTM_GETMCFONT (DTM_FIRST+10)
4320 /* Datetime Notifications */
4322 #define DTN_DATETIMECHANGE (DTN_FIRST + 1)
4323 #define DTN_USERSTRINGA (DTN_FIRST + 2)
4324 #define DTN_WMKEYDOWNA (DTN_FIRST + 3)
4325 #define DTN_FORMATA (DTN_FIRST + 4)
4326 #define DTN_FORMATQUERYA (DTN_FIRST + 5)
4327 #define DTN_DROPDOWN (DTN_FIRST + 6)
4328 #define DTN_CLOSEUP (DTN_FIRST + 7)
4329 #define DTN_USERSTRINGW (DTN_FIRST + 15)
4330 #define DTN_WMKEYDOWNW (DTN_FIRST + 16)
4331 #define DTN_FORMATW (DTN_FIRST + 17)
4332 #define DTN_FORMATQUERYW (DTN_FIRST + 18)
4334 #define DTN_USERSTRING WINELIB_NAME_AW(DTN_USERSTRING)
4335 #define DTN_WMKEYDOWN WINELIB_NAME_AW(DTN_WMKEYDOWN)
4336 #define DTN_FORMAT WINELIB_NAME_AW(DTN_FORMAT)
4337 #define DTN_FORMATQUERY WINELIB_NAME_AW(DTN_FORMATQUERY)
4339 #define DTS_SHORTDATEFORMAT 0x0000
4340 #define DTS_UPDOWN 0x0001
4341 #define DTS_SHOWNONE 0x0002
4342 #define DTS_LONGDATEFORMAT 0x0004
4343 #define DTS_TIMEFORMAT 0x0009
4344 #define DTS_APPCANPARSE 0x0010
4345 #define DTS_RIGHTALIGN 0x0020
4347 typedef struct tagNMDATETIMECHANGE
4352 } NMDATETIMECHANGE
, *LPNMDATETIMECHANGE
;
4354 typedef struct tagNMDATETIMESTRINGA
4357 LPCSTR pszUserString
;
4360 } NMDATETIMESTRINGA
, *LPNMDATETIMESTRINGA
;
4362 typedef struct tagNMDATETIMESTRINGW
4365 LPCWSTR pszUserString
;
4368 } NMDATETIMESTRINGW
, *LPNMDATETIMESTRINGW
;
4370 DECL_WINELIB_TYPE_AW(NMDATETIMESTRING
)
4371 DECL_WINELIB_TYPE_AW(LPNMDATETIMESTRING
)
4373 typedef struct tagNMDATETIMEWMKEYDOWNA
4379 } NMDATETIMEWMKEYDOWNA
, *LPNMDATETIMEWMKEYDOWNA
;
4381 typedef struct tagNMDATETIMEWMKEYDOWNW
4387 } NMDATETIMEWMKEYDOWNW
, *LPNMDATETIMEWMKEYDOWNW
;
4389 DECL_WINELIB_TYPE_AW(NMDATETIMEWMKEYDOWN
)
4390 DECL_WINELIB_TYPE_AW(LPNMDATETIMEWMKEYDOWN
)
4392 typedef struct tagNMDATETIMEFORMATA
4399 } NMDATETIMEFORMATA
, *LPNMDATETIMEFORMATA
;
4402 typedef struct tagNMDATETIMEFORMATW
4408 WCHAR szDisplay
[64];
4409 } NMDATETIMEFORMATW
, *LPNMDATETIMEFORMATW
;
4411 DECL_WINELIB_TYPE_AW(NMDATETIMEFORMAT
)
4412 DECL_WINELIB_TYPE_AW(LPNMDATETIMEFORMAT
)
4414 typedef struct tagNMDATETIMEFORMATQUERYA
4419 } NMDATETIMEFORMATQUERYA
, *LPNMDATETIMEFORMATQUERYA
;
4421 typedef struct tagNMDATETIMEFORMATQUERYW
4426 } NMDATETIMEFORMATQUERYW
, *LPNMDATETIMEFORMATQUERYW
;
4428 DECL_WINELIB_TYPE_AW(NMDATETIMEFORMATQUERY
)
4429 DECL_WINELIB_TYPE_AW(LPNMDATETIMEFORMATQUERY
)
4433 #define GDT_ERROR -1
4437 #define GDTR_MIN 0x0001
4438 #define GDTR_MAX 0x0002
4441 #define DateTime_GetSystemtime(hdp, pst) \
4442 (DWORD)SNDMSGA (hdp, DTM_GETSYSTEMTIME , 0, (LPARAM)(pst))
4443 #define DateTime_SetSystemtime(hdp, gd, pst) \
4444 (BOOL)SNDMSGA (hdp, DTM_SETSYSTEMTIME, (LPARAM)(gd), (LPARAM)(pst))
4445 #define DateTime_GetRange(hdp, rgst) \
4446 (DWORD)SNDMSGA (hdp, DTM_GETRANGE, 0, (LPARAM)(rgst))
4447 #define DateTime_SetRange(hdp, gd, rgst) \
4448 (BOOL)SNDMSGA (hdp, DTM_SETRANGE, (WPARAM)(gd), (LPARAM)(rgst))
4449 #define DateTime_SetFormat WINELIB_NAME_AW(DateTime_SetFormat)
4450 #define DateTime_SetFormatA(hdp, sz) \
4451 (BOOL)SNDMSGA (hdp, DTM_SETFORMAT, 0, (LPARAM)(sz))
4452 #define DateTime_SetFormatW(hdp, sz) \
4453 (BOOL)SNDMSGW (hdp, DTM_SETFORMAT, 0, (LPARAM)(sz))
4454 #define DateTime_GetMonthCalColor(hdp, iColor) \
4455 SNDMSGA (hdp, DTM_GETMCCOLOR, iColor, 0)
4456 #define DateTime_GetMonthCal(hdp) \
4457 (HWND) SNDMSGA (hdp, DTM_GETMONTHCAL, 0, 0)
4458 #define DateTime_SetMonthCalFont(hdp, hfont, fRedraw) \
4459 SNDMSGA (hdp, DTM_SETMCFONT, (WPARAM)hfont, (LPARAM)fRedraw)
4460 #define DateTime_GetMonthCalFont(hdp) \
4461 SNDMSGA (hdp, DTM_GETMCFONT, 0, 0)
4463 #define DA_LAST (0x7fffffff)
4464 #define DPA_APPEND (0x7fffffff)
4465 #define DPA_ERR (-1)
4467 #define DSA_APPEND (0x7fffffff)
4468 #define DSA_ERR (-1)
4471 typedef struct _DSA
*HDSA
;
4473 typedef INT (CALLBACK
*PFNDSAENUMCALLBACK
)(LPVOID
, LPVOID
);
4475 HDSA WINAPI
DSA_Create(INT
, INT
);
4476 BOOL WINAPI
DSA_Destroy(HDSA
);
4477 void WINAPI
DSA_DestroyCallback(HDSA
, PFNDSAENUMCALLBACK
, LPVOID
);
4478 LPVOID WINAPI
DSA_GetItemPtr(HDSA
, INT
);
4479 INT WINAPI
DSA_InsertItem(HDSA
, INT
, LPVOID
);
4481 #define DPAS_SORTED 0x0001
4482 #define DPAS_INSERTBEFORE 0x0002
4483 #define DPAS_INSERTAFTER 0x0004
4487 typedef struct _DPA
*HDPA
;
4489 typedef INT (CALLBACK
*PFNDPAENUMCALLBACK
)(LPVOID
, LPVOID
);
4490 typedef INT (CALLBACK
*PFNDPACOMPARE
)(LPVOID
, LPVOID
, LPARAM
);
4492 HDPA WINAPI
DPA_Create(INT
);
4493 BOOL WINAPI
DPA_Destroy(HDPA
);
4494 LPVOID WINAPI
DPA_DeletePtr(HDPA
, INT
);
4495 BOOL WINAPI
DPA_DeleteAllPtrs(HDPA
);
4496 BOOL WINAPI
DPA_SetPtr(HDPA
, INT
, LPVOID
);
4497 LPVOID WINAPI
DPA_GetPtr(HDPA
, INT
);
4498 INT WINAPI
DPA_InsertPtr(HDPA
, INT
, LPVOID
);
4499 BOOL WINAPI
DPA_Sort(HDPA
, PFNDPACOMPARE
, LPARAM
);
4500 void WINAPI
DPA_EnumCallback(HDPA
, PFNDPAENUMCALLBACK
, LPVOID
);
4501 void WINAPI
DPA_DestroyCallback(HDPA
, PFNDPAENUMCALLBACK
, LPVOID
);
4502 INT WINAPI
DPA_Search(HDPA
, LPVOID
, INT
, PFNDPACOMPARE
, LPARAM
, UINT
);
4504 BOOL WINAPI
Str_SetPtrW (LPWSTR
*, LPCWSTR
);
4510 #endif /* __WINE_COMMCTRL_H */