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