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