Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Common controls definitions |
| 3 | */ |
| 4 | |
| 5 | #ifndef __WINE_COMMCTRL_H |
| 6 | #define __WINE_COMMCTRL_H |
| 7 | |
Jim Aston | 2e1cafa | 1999-03-14 16:35:05 +0000 | [diff] [blame] | 8 | #include "windef.h" |
Luc Tourangeau | ce2b141 | 1999-02-17 12:58:48 +0000 | [diff] [blame] | 9 | #include "winuser.h" |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 10 | #include "imagelist.h" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 11 | |
Zygo Blaxell | 50d41fa | 1999-02-09 14:20:05 +0000 | [diff] [blame] | 12 | /* c++ likes nameless unions whereas c doesnt */ |
| 13 | /* (used in property sheet structures) */ |
| 14 | #ifdef __cplusplus |
| 15 | #define DUMMYUNIONNAME |
| 16 | #define DUMMYUNIONNAME1 |
| 17 | #define DUMMYUNIONNAME2 |
| 18 | #define DUMMYUNIONNAME3 |
| 19 | #define DUMMYUNIONNAME4 |
| 20 | #define DUMMYUNIONNAME5 |
| 21 | #else |
| 22 | #define DUMMYUNIONNAME u |
| 23 | #define DUMMYUNIONNAME1 u1 |
| 24 | #define DUMMYUNIONNAME2 u2 |
| 25 | #define DUMMYUNIONNAME3 u3 |
| 26 | #define DUMMYUNIONNAME4 u4 |
| 27 | #define DUMMYUNIONNAME5 u5 |
| 28 | #endif |
| 29 | |
Uwe Bonnes | 627702d | 1998-11-08 13:14:55 +0000 | [diff] [blame] | 30 | #ifdef __cplusplus |
| 31 | extern "C" { |
| 32 | #endif |
| 33 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 34 | BOOL WINAPI ShowHideMenuCtl (HWND, UINT, LPINT); |
| 35 | VOID WINAPI GetEffectiveClientRect (HWND, LPRECT, LPINT); |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 36 | VOID WINAPI InitCommonControls (VOID); |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 37 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 38 | typedef struct tagINITCOMMONCONTROLSEX { |
| 39 | DWORD dwSize; |
| 40 | DWORD dwICC; |
| 41 | } INITCOMMONCONTROLSEX, *LPINITCOMMONCONTROLSEX; |
| 42 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 43 | BOOL WINAPI InitCommonControlsEx (LPINITCOMMONCONTROLSEX); |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 44 | |
| 45 | #define ICC_LISTVIEW_CLASSES 0x00000001 /* listview, header */ |
| 46 | #define ICC_TREEVIEW_CLASSES 0x00000002 /* treeview, tooltips */ |
| 47 | #define ICC_BAR_CLASSES 0x00000004 /* toolbar, statusbar, trackbar, tooltips */ |
| 48 | #define ICC_TAB_CLASSES 0x00000008 /* tab, tooltips */ |
| 49 | #define ICC_UPDOWN_CLASS 0x00000010 /* updown */ |
| 50 | #define ICC_PROGRESS_CLASS 0x00000020 /* progress */ |
| 51 | #define ICC_HOTKEY_CLASS 0x00000040 /* hotkey */ |
| 52 | #define ICC_ANIMATE_CLASS 0x00000080 /* animate */ |
| 53 | #define ICC_WIN95_CLASSES 0x000000FF |
| 54 | #define ICC_DATE_CLASSES 0x00000100 /* month picker, date picker, time picker, updown */ |
| 55 | #define ICC_USEREX_CLASSES 0x00000200 /* comboex */ |
| 56 | #define ICC_COOL_CLASSES 0x00000400 /* rebar (coolbar) */ |
| 57 | #define ICC_INTERNET_CLASSES 0x00000800 /* IP address, ... */ |
| 58 | #define ICC_PAGESCROLLER_CLASS 0x00001000 /* page scroller */ |
| 59 | #define ICC_NATIVEFNTCTL_CLASS 0x00002000 /* native font control ???*/ |
| 60 | |
| 61 | |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 62 | /* common control styles */ |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 63 | #define CCS_TOP 0x00000001L |
| 64 | #define CCS_NOMOVEY 0x00000002L |
| 65 | #define CCS_BOTTOM 0x00000003L |
| 66 | #define CCS_NORESIZE 0x00000004L |
| 67 | #define CCS_NOPARENTALIGN 0x00000008L |
| 68 | #define CCS_ADJUSTABLE 0x00000020L |
| 69 | #define CCS_NODIVIDER 0x00000040L |
| 70 | #define CCS_VERT 0x00000080L |
| 71 | #define CCS_LEFT (CCS_VERT|CCS_TOP) |
| 72 | #define CCS_RIGHT (CCS_VERT|CCS_BOTTOM) |
| 73 | #define CCS_NOMOVEX (CCS_VERT|CCS_NOMOVEY) |
| 74 | |
| 75 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 76 | /* common control shared messages */ |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 77 | #define CCM_FIRST 0x2000 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 78 | |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 79 | #define CCM_SETBKCOLOR (CCM_FIRST+1) /* lParam = bkColor */ |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 80 | #define CCM_SETCOLORSCHEME (CCM_FIRST+2) |
| 81 | #define CCM_GETCOLORSCHEME (CCM_FIRST+3) |
| 82 | #define CCM_GETDROPTARGET (CCM_FIRST+4) |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 83 | #define CCM_SETUNICODEFORMAT (CCM_FIRST+5) |
| 84 | #define CCM_GETUNICODEFORMAT (CCM_FIRST+6) |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 85 | |
| 86 | |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 87 | /* common notification codes (WM_NOTIFY)*/ |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 88 | #define NM_FIRST (0U- 0U) |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 89 | #define NM_LAST (0U- 99U) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 90 | #define NM_OUTOFMEMORY (NM_FIRST-1) |
| 91 | #define NM_CLICK (NM_FIRST-2) |
| 92 | #define NM_DBLCLK (NM_FIRST-3) |
| 93 | #define NM_RETURN (NM_FIRST-4) |
| 94 | #define NM_RCLICK (NM_FIRST-5) |
| 95 | #define NM_RDBLCLK (NM_FIRST-6) |
| 96 | #define NM_SETFOCUS (NM_FIRST-7) |
| 97 | #define NM_KILLFOCUS (NM_FIRST-8) |
| 98 | #define NM_CUSTOMDRAW (NM_FIRST-12) |
| 99 | #define NM_HOVER (NM_FIRST-13) |
| 100 | #define NM_NCHITTEST (NM_FIRST-14) |
| 101 | #define NM_KEYDOWN (NM_FIRST-15) |
| 102 | #define NM_RELEASEDCAPTURE (NM_FIRST-16) |
| 103 | #define NM_SETCURSOR (NM_FIRST-17) |
| 104 | #define NM_CHAR (NM_FIRST-18) |
| 105 | #define NM_TOOLTIPSCREATED (NM_FIRST-19) |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 106 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 107 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 108 | /* callback constants */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 109 | #define LPSTR_TEXTCALLBACKA ((LPSTR)-1L) |
| 110 | #define LPSTR_TEXTCALLBACKW ((LPWSTR)-1L) |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 111 | #define LPSTR_TEXTCALLBACK WINELIB_NAME_AW(LPSTR_TEXTCALLBACK) |
| 112 | |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 113 | #define I_IMAGECALLBACK (-1) |
| 114 | #define I_INDENTCALLBACK (-1) |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 115 | #define I_CHILDRENCALLBACK (-1) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 116 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 117 | |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 118 | /* owner drawn types */ |
| 119 | #define ODT_HEADER 100 |
| 120 | #define ODT_TAB 101 |
| 121 | #define ODT_LISTVIEW 102 |
| 122 | |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 123 | /* common notification structures */ |
| 124 | typedef struct tagNMTOOLTIPSCREATED |
| 125 | { |
| 126 | NMHDR hdr; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 127 | HWND hwndToolTips; |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 128 | } NMTOOLTIPSCREATED, *LPNMTOOLTIPSCREATED; |
| 129 | |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 130 | |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 131 | #ifndef CCSIZEOF_STRUCT |
| 132 | #define CCSIZEOF_STRUCT(name, member) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 133 | (((INT)((LPBYTE)(&((name*)0)->member)-((LPBYTE)((name*)0))))+ \ |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 134 | sizeof(((name*)0)->member)) |
| 135 | #endif |
| 136 | |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 137 | |
| 138 | /* This is only for Winelib applications. DON't use it wine itself!!! */ |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 139 | #define SNDMSG WINELIB_NAME_AW(SendMessage) |
| 140 | |
| 141 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 142 | |
| 143 | /* Custom Draw messages */ |
| 144 | |
| 145 | #define CDRF_DODEFAULT 0x0 |
| 146 | #define CDRF_NEWFONT 0x00000002 |
| 147 | #define CDRF_SKIPDEFAULT 0x00000004 |
| 148 | #define CDRF_NOTIFYPOSTPAINT 0x00000010 |
| 149 | #define CDRF_NOTIFYITEMDRAW 0x00000020 |
| 150 | #define CDRF_NOTIFYSUBITEMDRAW 0x00000020 |
| 151 | #define CDRF_NOTIFYPOSTERASE 0x00000040 |
| 152 | /* #define CDRF_NOTIFYITEMERASE 0x00000080 obsolete ? */ |
| 153 | |
| 154 | |
| 155 | /* drawstage flags */ |
| 156 | |
| 157 | #define CDDS_PREPAINT 1 |
| 158 | #define CDDS_POSTPAINT 2 |
| 159 | #define CDDS_PREERASE 3 |
| 160 | #define CDDS_POSTERASE 4 |
| 161 | |
| 162 | #define CDDS_ITEM 0x00010000 |
| 163 | #define CDDS_ITEMPREPAINT (CDDS_ITEM | CDDS_PREPAINT) |
| 164 | #define CDDS_ITEMPOSTPAINT (CDDS_ITEM | CDDS_POSTPAINT) |
| 165 | #define CDDS_ITEMPREERASE (CDDS_ITEM | CDDS_PREERASE) |
| 166 | #define CDDS_ITEMPOSTERASE (CDDS_ITEM | CDDS_POSTERASE) |
| 167 | #define CDDS_SUBITEM 0x00020000 |
| 168 | |
| 169 | /* itemState flags */ |
| 170 | |
| 171 | #define CDIS_SELECTED 0x0001 |
| 172 | #define CDIS_GRAYED 0x0002 |
| 173 | #define CDIS_DISABLED 0x0004 |
| 174 | #define CDIS_CHECKED 0x0008 |
| 175 | #define CDIS_FOCUS 0x0010 |
| 176 | #define CDIS_DEFAULT 0x0020 |
| 177 | #define CDIS_HOT 0x0040 |
| 178 | #define CDIS_MARKED 0x0080 |
| 179 | #define CDIS_INDETERMINATE 0x0100 |
| 180 | |
| 181 | |
| 182 | typedef struct tagNMCUSTOMDRAWINFO |
| 183 | { |
| 184 | NMHDR hdr; |
| 185 | DWORD dwDrawStage; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 186 | HDC hdc; |
| 187 | RECT rc; |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 188 | DWORD dwItemSpec; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 189 | UINT uItemState; |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 190 | LPARAM lItemlParam; |
| 191 | } NMCUSTOMDRAW, *LPNMCUSTOMDRAW; |
| 192 | |
| 193 | typedef struct tagNMTTCUSTOMDRAW |
| 194 | { |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 195 | NMCUSTOMDRAW nmcd; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 196 | UINT uDrawFlags; |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 197 | } NMTTCUSTOMDRAW, *LPNMTTCUSTOMDRAW; |
| 198 | |
| 199 | |
| 200 | |
| 201 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 202 | /* StatusWindow */ |
| 203 | |
Eric Kohl | 8d2933d | 1998-11-22 18:12:12 +0000 | [diff] [blame] | 204 | #define STATUSCLASSNAME16 "msctls_statusbar" |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 205 | #define STATUSCLASSNAMEA "msctls_statusbar32" |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 206 | /* Does not work. gcc creates 4 byte wide strings. |
| 207 | * #define STATUSCLASSNAME32W L"msctls_statusbar32" |
| 208 | */ |
| 209 | static const WCHAR _scn32w[] = { |
| 210 | 'm','s','c','t','l','s','_','s','t','a','t','u','s','b','a','r','3','2',0 |
| 211 | }; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 212 | #define STATUSCLASSNAMEW _scn32w |
Eric Kohl | 8d2933d | 1998-11-22 18:12:12 +0000 | [diff] [blame] | 213 | #define STATUSCLASSNAME WINELIB_NAME_AW(STATUSCLASSNAME) |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 214 | |
Eric Kohl | 8d2933d | 1998-11-22 18:12:12 +0000 | [diff] [blame] | 215 | #define SBT_NOBORDERS 0x0100 |
| 216 | #define SBT_POPOUT 0x0200 |
| 217 | #define SBT_RTLREADING 0x0400 /* not supported */ |
| 218 | #define SBT_TOOLTIPS 0x0800 |
| 219 | #define SBT_OWNERDRAW 0x1000 |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 220 | |
Eric Kohl | 8d2933d | 1998-11-22 18:12:12 +0000 | [diff] [blame] | 221 | #define SBARS_SIZEGRIP 0x0100 |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 222 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 223 | #define SB_SETTEXTA (WM_USER+1) |
| 224 | #define SB_SETTEXTW (WM_USER+11) |
Eric Kohl | 8d2933d | 1998-11-22 18:12:12 +0000 | [diff] [blame] | 225 | #define SB_SETTEXT WINELIB_NAME_AW(SB_SETTEXT) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 226 | #define SB_GETTEXTA (WM_USER+2) |
| 227 | #define SB_GETTEXTW (WM_USER+13) |
Eric Kohl | 8d2933d | 1998-11-22 18:12:12 +0000 | [diff] [blame] | 228 | #define SB_GETTEXT WINELIB_NAME_AW(SB_GETTEXT) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 229 | #define SB_GETTEXTLENGTHA (WM_USER+3) |
| 230 | #define SB_GETTEXTLENGTHW (WM_USER+12) |
Eric Kohl | 8d2933d | 1998-11-22 18:12:12 +0000 | [diff] [blame] | 231 | #define SB_GETTEXTLENGTH WINELIB_NAME_AW(SB_GETTEXTLENGTH) |
| 232 | #define SB_SETPARTS (WM_USER+4) |
| 233 | #define SB_GETPARTS (WM_USER+6) |
| 234 | #define SB_GETBORDERS (WM_USER+7) |
| 235 | #define SB_SETMINHEIGHT (WM_USER+8) |
| 236 | #define SB_SIMPLE (WM_USER+9) |
| 237 | #define SB_GETRECT (WM_USER+10) |
| 238 | #define SB_ISSIMPLE (WM_USER+14) |
| 239 | #define SB_SETICON (WM_USER+15) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 240 | #define SB_SETTIPTEXTA (WM_USER+16) |
| 241 | #define SB_SETTIPTEXTW (WM_USER+17) |
Eric Kohl | 8d2933d | 1998-11-22 18:12:12 +0000 | [diff] [blame] | 242 | #define SB_SETTIPTEXT WINELIB_NAME_AW(SB_SETTIPTEXT) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 243 | #define SB_GETTIPTEXTA (WM_USER+18) |
| 244 | #define SB_GETTIPTEXTW (WM_USER+19) |
Eric Kohl | 8d2933d | 1998-11-22 18:12:12 +0000 | [diff] [blame] | 245 | #define SB_GETTIPTEXT WINELIB_NAME_AW(SB_GETTIPTEXT) |
| 246 | #define SB_GETICON (WM_USER+20) |
| 247 | #define SB_SETBKCOLOR CCM_SETBKCOLOR /* lParam = bkColor */ |
| 248 | #define SB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT |
| 249 | #define SB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 250 | |
Eric Kohl | 8d2933d | 1998-11-22 18:12:12 +0000 | [diff] [blame] | 251 | #define SBN_FIRST (0U-880U) |
| 252 | #define SBN_LAST (0U-899U) |
| 253 | #define SBN_SIMPLEMODECHANGE (SBN_FIRST-0) |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 254 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 255 | HWND WINAPI CreateStatusWindowA (INT, LPCSTR, HWND, UINT); |
| 256 | HWND WINAPI CreateStatusWindowW (INT, LPCWSTR, HWND, UINT); |
Eric Kohl | 8d2933d | 1998-11-22 18:12:12 +0000 | [diff] [blame] | 257 | #define CreateStatusWindow WINELIB_NAME_AW(CreateStatusWindow) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 258 | VOID WINAPI DrawStatusTextA (HDC, LPRECT, LPCSTR, UINT); |
| 259 | VOID WINAPI DrawStatusTextW (HDC, LPRECT, LPCWSTR, UINT); |
Eric Kohl | 8d2933d | 1998-11-22 18:12:12 +0000 | [diff] [blame] | 260 | #define DrawStatusText WINELIB_NAME_AW(DrawStatusText) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 261 | VOID WINAPI MenuHelp (UINT, WPARAM, LPARAM, HMENU, |
| 262 | HINSTANCE, HWND, LPUINT); |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 263 | |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 264 | /************************************************************************** |
| 265 | * Drag List control |
| 266 | */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 267 | |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 268 | typedef struct tagDRAGLISTINFO |
| 269 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 270 | UINT uNotification; |
| 271 | HWND hWnd; |
| 272 | POINT ptCursor; |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 273 | } DRAGLISTINFO, *LPDRAGLISTINFO; |
| 274 | |
| 275 | #define DL_BEGINDRAG (WM_USER+133) |
| 276 | #define DL_DRAGGING (WM_USER+134) |
| 277 | #define DL_DROPPED (WM_USER+135) |
| 278 | #define DL_CANCELDRAG (WM_USER+136) |
| 279 | |
| 280 | #define DL_CURSORSET 0 |
| 281 | #define DL_STOPCURSOR 1 |
| 282 | #define DL_COPYCURSOR 2 |
| 283 | #define DL_MOVECURSOR 3 |
| 284 | |
| 285 | #define DRAGLISTMSGSTRING TEXT("commctrl_DragListMsg") |
| 286 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 287 | BOOL WINAPI MakeDragList (HWND); |
| 288 | VOID WINAPI DrawInsert (HWND, HWND, INT); |
| 289 | INT WINAPI LBItemFromPt (HWND, POINT, BOOL); |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 290 | |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 291 | |
Alexandre Julliard | 77b9918 | 1997-09-14 17:17:23 +0000 | [diff] [blame] | 292 | /* UpDown */ |
Alexandre Julliard | 670cdc4 | 1997-08-24 16:00:30 +0000 | [diff] [blame] | 293 | |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 294 | #define UPDOWN_CLASS16 "msctls_updown" |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 295 | #define UPDOWN_CLASSA "msctls_updown32" |
| 296 | #define UPDOWN_CLASSW L"msctls_updown32" |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 297 | #define UPDOWN_CLASS WINELIB_NAME_AW(UPDOWN_CLASS) |
Alexandre Julliard | 670cdc4 | 1997-08-24 16:00:30 +0000 | [diff] [blame] | 298 | |
| 299 | typedef struct tagUDACCEL |
| 300 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 301 | UINT nSec; |
| 302 | UINT nInc; |
Alexandre Julliard | 670cdc4 | 1997-08-24 16:00:30 +0000 | [diff] [blame] | 303 | } UDACCEL; |
Alexandre Julliard | 670cdc4 | 1997-08-24 16:00:30 +0000 | [diff] [blame] | 304 | |
| 305 | #define UD_MAXVAL 0x7fff |
| 306 | #define UD_MINVAL 0x8001 |
| 307 | |
| 308 | #define UDS_WRAP 0x0001 |
| 309 | #define UDS_SETBUDDYINT 0x0002 |
| 310 | #define UDS_ALIGNRIGHT 0x0004 |
| 311 | #define UDS_ALIGNLEFT 0x0008 |
| 312 | #define UDS_AUTOBUDDY 0x0010 |
| 313 | #define UDS_ARROWKEYS 0x0020 |
| 314 | #define UDS_HORZ 0x0040 |
| 315 | #define UDS_NOTHOUSANDS 0x0080 |
| 316 | |
| 317 | #define UDN_FIRST (0U-721) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 318 | #define UDN_LAST (0U-740) |
Alexandre Julliard | 77b9918 | 1997-09-14 17:17:23 +0000 | [diff] [blame] | 319 | #define UDN_DELTAPOS (UDN_FIRST-1) |
Alexandre Julliard | 670cdc4 | 1997-08-24 16:00:30 +0000 | [diff] [blame] | 320 | |
Eric Kohl | fa8ae2f | 1999-03-12 17:40:32 +0000 | [diff] [blame] | 321 | #define UDM_SETRANGE (WM_USER+101) |
| 322 | #define UDM_GETRANGE (WM_USER+102) |
Alexandre Julliard | 670cdc4 | 1997-08-24 16:00:30 +0000 | [diff] [blame] | 323 | #define UDM_SETPOS (WM_USER+103) |
| 324 | #define UDM_GETPOS (WM_USER+104) |
| 325 | #define UDM_SETBUDDY (WM_USER+105) |
| 326 | #define UDM_GETBUDDY (WM_USER+106) |
| 327 | #define UDM_SETACCEL (WM_USER+107) |
| 328 | #define UDM_GETACCEL (WM_USER+108) |
| 329 | #define UDM_SETBASE (WM_USER+109) |
| 330 | #define UDM_GETBASE (WM_USER+110) |
Eric Kohl | fa8ae2f | 1999-03-12 17:40:32 +0000 | [diff] [blame] | 331 | #define UDM_SETRANGE32 (WM_USER+111) |
| 332 | #define UDM_GETRANGE32 (WM_USER+112) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 333 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 334 | HWND WINAPI CreateUpDownControl (DWORD, INT, INT, INT, INT, |
| 335 | HWND, INT, HINSTANCE, HWND, |
| 336 | INT, INT, INT); |
Alexandre Julliard | 670cdc4 | 1997-08-24 16:00:30 +0000 | [diff] [blame] | 337 | |
Alexandre Julliard | 77b9918 | 1997-09-14 17:17:23 +0000 | [diff] [blame] | 338 | /* Progress Bar */ |
| 339 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 340 | #define PROGRESS_CLASSA "msctls_progress32" |
| 341 | #define PROGRESS_CLASSW L"msctls_progress32" |
Alexandre Julliard | 77b9918 | 1997-09-14 17:17:23 +0000 | [diff] [blame] | 342 | #define PROGRESS_CLASS16 "msctls_progress" |
Alexandre Julliard | 77b9918 | 1997-09-14 17:17:23 +0000 | [diff] [blame] | 343 | #define PROGRESS_CLASS WINELIB_NAME_AW(PROGRESS_CLASS) |
| 344 | |
Eric Kohl | fa8ae2f | 1999-03-12 17:40:32 +0000 | [diff] [blame] | 345 | #define PBM_SETRANGE (WM_USER+1) |
Alexandre Julliard | 77b9918 | 1997-09-14 17:17:23 +0000 | [diff] [blame] | 346 | #define PBM_SETPOS (WM_USER+2) |
| 347 | #define PBM_DELTAPOS (WM_USER+3) |
| 348 | #define PBM_SETSTEP (WM_USER+4) |
| 349 | #define PBM_STEPIT (WM_USER+5) |
Eric Kohl | fa8ae2f | 1999-03-12 17:40:32 +0000 | [diff] [blame] | 350 | #define PBM_SETRANGE32 (WM_USER+6) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 351 | #define PBM_GETRANGE (WM_USER+7) |
| 352 | #define PBM_GETPOS (WM_USER+8) |
| 353 | #define PBM_SETBARCOLOR (WM_USER+9) |
| 354 | #define PBM_SETBKCOLOR CCM_SETBKCOLOR |
| 355 | |
| 356 | #define PBS_SMOOTH 0x01 |
| 357 | #define PBS_VERTICAL 0x04 |
| 358 | |
| 359 | typedef struct |
| 360 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 361 | INT iLow; |
| 362 | INT iHigh; |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 363 | } PBRANGE, *PPBRANGE; |
| 364 | |
Alexandre Julliard | a69b88b | 1998-03-15 20:29:56 +0000 | [diff] [blame] | 365 | |
| 366 | /* ImageList */ |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 367 | /* |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 368 | #if !defined(__WINE__) || !defined(__WINE_IMAGELIST_C) |
Alexandre Julliard | a69b88b | 1998-03-15 20:29:56 +0000 | [diff] [blame] | 369 | struct _IMAGELIST; |
| 370 | typedef struct _IMAGELIST *HIMAGELIST; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 371 | #endif */ /* __WINE__ */ |
Alexandre Julliard | a69b88b | 1998-03-15 20:29:56 +0000 | [diff] [blame] | 372 | |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 373 | #define CLR_NONE 0xFFFFFFFF |
| 374 | #define CLR_DEFAULT 0xFF000000 |
| 375 | #define CLR_HILIGHT CLR_DEFAULT |
Alexandre Julliard | a69b88b | 1998-03-15 20:29:56 +0000 | [diff] [blame] | 376 | |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 377 | #define ILC_MASK 0x0001 |
| 378 | #define ILC_COLOR 0x0000 |
| 379 | #define ILC_COLORDDB 0x00FE |
| 380 | #define ILC_COLOR4 0x0004 |
| 381 | #define ILC_COLOR8 0x0008 |
| 382 | #define ILC_COLOR16 0x0010 |
| 383 | #define ILC_COLOR24 0x0018 |
| 384 | #define ILC_COLOR32 0x0020 |
| 385 | #define ILC_PALETTE 0x0800 /* no longer supported by M$ */ |
Alexandre Julliard | a69b88b | 1998-03-15 20:29:56 +0000 | [diff] [blame] | 386 | |
| 387 | #define ILD_NORMAL 0x0000 |
| 388 | #define ILD_TRANSPARENT 0x0001 |
| 389 | #define ILD_BLEND25 0x0002 |
| 390 | #define ILD_BLEND50 0x0004 |
| 391 | #define ILD_MASK 0x0010 |
| 392 | #define ILD_IMAGE 0x0020 |
| 393 | #define ILD_ROP 0x0040 |
| 394 | #define ILD_OVERLAYMASK 0x0F00 |
| 395 | |
| 396 | #define ILD_SELECTED ILD_BLEND50 |
| 397 | #define ILD_FOCUS ILD_BLEND25 |
| 398 | #define ILD_BLEND ILD_BLEND50 |
| 399 | |
| 400 | #define INDEXTOOVERLAYMASK(i) ((i)<<8) |
| 401 | |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 402 | #define ILCF_MOVE (0x00000000) |
| 403 | #define ILCF_SWAP (0x00000001) |
| 404 | |
| 405 | |
Alexandre Julliard | a69b88b | 1998-03-15 20:29:56 +0000 | [diff] [blame] | 406 | typedef struct _IMAGEINFO |
| 407 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 408 | HBITMAP hbmImage; |
| 409 | HBITMAP hbmMask; |
| 410 | INT Unused1; |
| 411 | INT Unused2; |
| 412 | RECT rcImage; |
Alexandre Julliard | a69b88b | 1998-03-15 20:29:56 +0000 | [diff] [blame] | 413 | } IMAGEINFO; |
| 414 | |
| 415 | |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 416 | typedef struct _IMAGELISTDRAWPARAMS |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 417 | { |
| 418 | DWORD cbSize; |
| 419 | HIMAGELIST himl; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 420 | INT i; |
| 421 | HDC hdcDst; |
| 422 | INT x; |
| 423 | INT y; |
| 424 | INT cx; |
| 425 | INT cy; |
| 426 | INT xBitmap; /* x offest from the upperleft of bitmap */ |
| 427 | INT yBitmap; /* y offset from the upperleft of bitmap */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 428 | COLORREF rgbBk; |
| 429 | COLORREF rgbFg; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 430 | UINT fStyle; |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 431 | DWORD dwRop; |
| 432 | } IMAGELISTDRAWPARAMS, *LPIMAGELISTDRAWPARAMS; |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 433 | |
| 434 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 435 | INT WINAPI ImageList_Add(HIMAGELIST,HBITMAP,HBITMAP); |
| 436 | INT WINAPI ImageList_AddIcon (HIMAGELIST, HICON); |
| 437 | INT WINAPI ImageList_AddMasked(HIMAGELIST,HBITMAP,COLORREF); |
| 438 | BOOL WINAPI ImageList_BeginDrag(HIMAGELIST,INT,INT,INT); |
| 439 | BOOL WINAPI ImageList_Copy(HIMAGELIST,INT,HIMAGELIST,INT,INT); |
| 440 | HIMAGELIST WINAPI ImageList_Create(INT,INT,UINT,INT,INT); |
| 441 | BOOL WINAPI ImageList_Destroy(HIMAGELIST); |
| 442 | BOOL WINAPI ImageList_DragEnter(HWND,INT,INT); |
| 443 | BOOL WINAPI ImageList_DragLeave(HWND); |
| 444 | BOOL WINAPI ImageList_DragMove(INT,INT); |
| 445 | BOOL WINAPI ImageList_DragShowNolock (BOOL); |
| 446 | BOOL WINAPI ImageList_Draw(HIMAGELIST,INT,HDC,INT,INT,UINT); |
| 447 | BOOL WINAPI ImageList_DrawEx(HIMAGELIST,INT,HDC,INT,INT,INT, |
| 448 | INT,COLORREF,COLORREF,UINT); |
| 449 | BOOL WINAPI ImageList_DrawIndirect(IMAGELISTDRAWPARAMS*); |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 450 | HIMAGELIST WINAPI ImageList_Duplicate(HIMAGELIST); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 451 | BOOL WINAPI ImageList_EndDrag(VOID); |
Alexandre Julliard | a69b88b | 1998-03-15 20:29:56 +0000 | [diff] [blame] | 452 | COLORREF WINAPI ImageList_GetBkColor(HIMAGELIST); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 453 | HIMAGELIST WINAPI ImageList_GetDragImage(POINT*,POINT*); |
| 454 | HICON WINAPI ImageList_GetIcon(HIMAGELIST,INT,UINT); |
| 455 | BOOL WINAPI ImageList_GetIconSize(HIMAGELIST,INT*,INT*); |
| 456 | INT WINAPI ImageList_GetImageCount(HIMAGELIST); |
| 457 | BOOL WINAPI ImageList_GetImageInfo(HIMAGELIST,INT,IMAGEINFO*); |
| 458 | BOOL WINAPI ImageList_GetImageRect(HIMAGELIST,INT,LPRECT); |
| 459 | HIMAGELIST WINAPI ImageList_LoadImageA(HINSTANCE,LPCSTR,INT,INT, |
| 460 | COLORREF,UINT,UINT); |
| 461 | HIMAGELIST WINAPI ImageList_LoadImageW(HINSTANCE,LPCWSTR,INT,INT, |
| 462 | COLORREF,UINT,UINT); |
Alexandre Julliard | a69b88b | 1998-03-15 20:29:56 +0000 | [diff] [blame] | 463 | #define ImageList_LoadImage WINELIB_NAME_AW(ImageList_LoadImage) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 464 | HIMAGELIST WINAPI ImageList_Merge(HIMAGELIST,INT,HIMAGELIST,INT,INT,INT); |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 465 | #ifdef __IStream_INTREFACE_DEFINED__ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 466 | HIMAGELIST WINAPI ImageList_Read(LPSTREAM); |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 467 | #endif |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 468 | BOOL WINAPI ImageList_Remove(HIMAGELIST,INT); |
| 469 | BOOL WINAPI ImageList_Replace(HIMAGELIST,INT,HBITMAP,HBITMAP); |
| 470 | INT WINAPI ImageList_ReplaceIcon(HIMAGELIST,INT,HICON); |
Alexandre Julliard | a69b88b | 1998-03-15 20:29:56 +0000 | [diff] [blame] | 471 | COLORREF WINAPI ImageList_SetBkColor(HIMAGELIST,COLORREF); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 472 | BOOL WINAPI ImageList_SetDragCursorImage(HIMAGELIST,INT,INT,INT); |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 473 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 474 | BOOL WINAPI ImageList_SetIconSize(HIMAGELIST,INT,INT); |
| 475 | BOOL WINAPI ImageList_SetImageCount(HIMAGELIST,INT); |
| 476 | BOOL WINAPI ImageList_SetOverlayImage(HIMAGELIST,INT,INT); |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 477 | #ifdef __IStream_INTREFACE_DEFINED__ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 478 | BOOL WINAPI ImageList_Write(HIMAGELIST, LPSTREAM); |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 479 | #endif |
Alexandre Julliard | a69b88b | 1998-03-15 20:29:56 +0000 | [diff] [blame] | 480 | |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 481 | #ifndef __WINE__ |
Alexandre Julliard | a69b88b | 1998-03-15 20:29:56 +0000 | [diff] [blame] | 482 | #define ImageList_AddIcon(himl,hicon) ImageList_ReplaceIcon(himl,-1,hicon) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 483 | #endif |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 484 | #define ImageList_ExtractIcon(hi,himl,i) ImageList_GetIcon(himl,i,0) |
Alexandre Julliard | a69b88b | 1998-03-15 20:29:56 +0000 | [diff] [blame] | 485 | #define ImageList_LoadBitmap(hi,lpbmp,cx,cGrow,crMask) \ |
| 486 | ImageList_LoadImage(hi,lpbmp,cx,cGrow,crMask,IMAGE_BITMAP,0) |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 487 | #define ImageList_RemoveAll(himl) ImageList_Remove(himl,-1) |
| 488 | |
Alexandre Julliard | a69b88b | 1998-03-15 20:29:56 +0000 | [diff] [blame] | 489 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 490 | /* Flat Scrollbar control */ |
| 491 | |
| 492 | #define FLATSB_CLASS16 "flatsb_class" |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 493 | #define FLATSB_CLASSA "flatsb_class32" |
| 494 | #define FLATSB_CLASSW L"flatsb_class32" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 495 | #define FLATSB_CLASS WINELIB_NAME_AW(FLATSB_CLASS) |
| 496 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 497 | BOOL WINAPI FlatSB_EnableScrollBar(HWND, INT, UINT); |
| 498 | BOOL WINAPI FlatSB_ShowScrollBar(HWND, INT, BOOL); |
| 499 | BOOL WINAPI FlatSB_GetScrollRange(HWND, INT, LPINT, LPINT); |
| 500 | BOOL WINAPI FlatSB_GetScrollInfo(HWND, INT, LPSCROLLINFO); |
| 501 | INT WINAPI FlatSB_GetScrollPos(HWND, INT); |
| 502 | BOOL WINAPI FlatSB_GetScrollProp(HWND, INT, LPINT); |
| 503 | INT WINAPI FlatSB_SetScrollPos(HWND, INT, INT, BOOL); |
| 504 | INT WINAPI FlatSB_SetScrollInfo(HWND, INT, LPSCROLLINFO, BOOL); |
| 505 | INT WINAPI FlatSB_SetScrollRange(HWND, INT, INT, INT, BOOL); |
| 506 | BOOL WINAPI FlatSB_SetScrollProp(HWND, UINT, INT, BOOL); |
| 507 | BOOL WINAPI InitializeFlatSB(HWND); |
| 508 | HRESULT WINAPI UninitializeFlatSB(HWND); |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 509 | |
| 510 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 511 | /* Header control */ |
| 512 | |
Eric Kohl | 17216d3 | 1998-10-11 13:21:17 +0000 | [diff] [blame] | 513 | #define WC_HEADER16 "SysHeader" |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 514 | #define WC_HEADERA "SysHeader32" |
| 515 | #define WC_HEADERW L"SysHeader32" |
Eric Kohl | 17216d3 | 1998-10-11 13:21:17 +0000 | [diff] [blame] | 516 | #define WC_HEADER WINELIB_NAME_AW(WC_HEADER) |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 517 | |
| 518 | #define HDS_HORZ 0x0000 |
| 519 | #define HDS_BUTTONS 0x0002 |
| 520 | #define HDS_HOTTRACK 0x0004 |
| 521 | #define HDS_HIDDEN 0x0008 |
| 522 | #define HDS_DRAGDROP 0x0040 |
| 523 | #define HDS_FULLDRAG 0x0080 |
| 524 | |
| 525 | #define HDI_WIDTH 0x0001 |
| 526 | #define HDI_HEIGHT HDI_WIDTH |
| 527 | #define HDI_TEXT 0x0002 |
| 528 | #define HDI_FORMAT 0x0004 |
| 529 | #define HDI_LPARAM 0x0008 |
| 530 | #define HDI_BITMAP 0x0010 |
| 531 | #define HDI_IMAGE 0x0020 |
| 532 | #define HDI_DI_SETITEM 0x0040 |
| 533 | #define HDI_ORDER 0x0080 |
| 534 | |
| 535 | #define HDF_LEFT 0x0000 |
| 536 | #define HDF_RIGHT 0x0001 |
| 537 | #define HDF_CENTER 0x0002 |
| 538 | #define HDF_JUSTIFYMASK 0x0003 |
| 539 | |
| 540 | #define HDF_IMAGE 0x0800 |
| 541 | #define HDF_BITMAP_ON_RIGHT 0x1000 |
| 542 | #define HDF_BITMAP 0x2000 |
| 543 | #define HDF_STRING 0x4000 |
| 544 | #define HDF_OWNERDRAW 0x8000 |
| 545 | |
| 546 | #define HHT_NOWHERE 0x0001 |
| 547 | #define HHT_ONHEADER 0x0002 |
| 548 | #define HHT_ONDIVIDER 0x0004 |
| 549 | #define HHT_ONDIVOPEN 0x0008 |
| 550 | #define HHT_ABOVE 0x0100 |
| 551 | #define HHT_BELOW 0x0200 |
| 552 | #define HHT_TORIGHT 0x0400 |
| 553 | #define HHT_TOLEFT 0x0800 |
| 554 | |
| 555 | #define HDM_FIRST 0x1200 |
| 556 | #define HDM_GETITEMCOUNT (HDM_FIRST+0) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 557 | #define HDM_INSERTITEMA (HDM_FIRST+1) |
| 558 | #define HDM_INSERTITEMW (HDM_FIRST+10) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 559 | #define HDM_INSERTITEM WINELIB_NAME_AW(HDM_INSERTITEM) |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 560 | #define HDM_DELETEITEM (HDM_FIRST+2) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 561 | #define HDM_GETITEMA (HDM_FIRST+3) |
| 562 | #define HDM_GETITEMW (HDM_FIRST+11) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 563 | #define HDM_GETITEM WINELIB_NAME_AW(HDM_GETITEM) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 564 | #define HDM_SETITEMA (HDM_FIRST+4) |
| 565 | #define HDM_SETITEMW (HDM_FIRST+12) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 566 | #define HDM_SETITEM WINELIB_NAME_AW(HDM_SETITEM) |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 567 | #define HDM_LAYOUT (HDM_FIRST+5) |
| 568 | #define HDM_HITTEST (HDM_FIRST+6) |
| 569 | #define HDM_GETITEMRECT (HDM_FIRST+7) |
| 570 | #define HDM_SETIMAGELIST (HDM_FIRST+8) |
| 571 | #define HDM_GETIMAGELIST (HDM_FIRST+9) |
| 572 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 573 | #define HDM_ORDERTOINDEX (HDM_FIRST+15) |
| 574 | #define HDM_CREATEDRAGIMAGE (HDM_FIRST+16) |
| 575 | #define HDM_GETORDERARRAY (HDM_FIRST+17) |
| 576 | #define HDM_SETORDERARRAY (HDM_FIRST+18) |
| 577 | #define HDM_SETHOTDIVIDER (HDM_FIRST+19) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 578 | #define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT |
| 579 | #define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 580 | |
| 581 | #define HDN_FIRST (0U-300U) |
| 582 | #define HDN_LAST (0U-399U) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 583 | #define HDN_ITEMCHANGINGA (HDN_FIRST-0) |
| 584 | #define HDN_ITEMCHANGINGW (HDN_FIRST-20) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 585 | #define HDN_ITEMCHANGING WINELIB_NAME_AW(HDN_ITEMCHANGING) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 586 | #define HDN_ITEMCHANGEDA (HDN_FIRST-1) |
| 587 | #define HDN_ITEMCHANGEDW (HDN_FIRST-21) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 588 | #define HDN_ITEMCHANGED WINELIB_NAME_AW(HDN_ITEMCHANGED) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 589 | #define HDN_ITEMCLICKA (HDN_FIRST-2) |
| 590 | #define HDN_ITEMCLICKW (HDN_FIRST-22) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 591 | #define HDN_ITEMCLICK WINELIB_NAME_AW(HDN_ITEMCLICK) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 592 | #define HDN_ITEMDBLCLICKA (HDN_FIRST-3) |
| 593 | #define HDN_ITEMDBLCLICKW (HDN_FIRST-23) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 594 | #define HDN_ITEMDBLCLICK WINELIB_NAME_AW(HDN_ITEMDBLCLICK) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 595 | #define HDN_DIVIDERDBLCLICKA (HDN_FIRST-5) |
| 596 | #define HDN_DIVIDERDBLCLICKW (HDN_FIRST-25) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 597 | #define HDN_DIVIDERDBLCLICK WINELIB_NAME_AW(HDN_DIVIDERDBLCLICK) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 598 | #define HDN_BEGINTRACKA (HDN_FIRST-6) |
| 599 | #define HDN_BEGINTRACKW (HDN_FIRST-26) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 600 | #define HDN_BEGINTRACK WINELIB_NAME_AW(HDN_BEGINTRACK) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 601 | #define HDN_ENDTRACKA (HDN_FIRST-7) |
| 602 | #define HDN_ENDTRACKW (HDN_FIRST-27) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 603 | #define HDN_ENDTRACK WINELIB_NAME_AW(HDN_ENDTRACK) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 604 | #define HDN_TRACKA (HDN_FIRST-8) |
| 605 | #define HDN_TRACKW (HDN_FIRST-28) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 606 | #define HDN_TRACK WINELIB_NAME_AW(HDN_TRACK) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 607 | #define HDN_GETDISPINFOA (HDN_FIRST-9) |
| 608 | #define HDN_GETDISPINFOW (HDN_FIRST-29) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 609 | #define HDN_GETDISPINFO WINELIB_NAME_AW(HDN_GETDISPINFO) |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 610 | #define HDN_BEGINDRACK (HDN_FIRST-10) |
| 611 | #define HDN_ENDDRACK (HDN_FIRST-11) |
| 612 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 613 | typedef struct _HD_LAYOUT |
| 614 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 615 | RECT *prc; |
| 616 | WINDOWPOS *pwpos; |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 617 | } HDLAYOUT, *LPHDLAYOUT; |
| 618 | |
| 619 | #define HD_LAYOUT HDLAYOUT |
| 620 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 621 | typedef struct _HD_ITEMA |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 622 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 623 | UINT mask; |
| 624 | INT cxy; |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 625 | LPSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 626 | HBITMAP hbm; |
| 627 | INT cchTextMax; |
| 628 | INT fmt; |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 629 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 630 | INT iImage; |
| 631 | INT iOrder; |
| 632 | } HDITEMA, *LPHDITEMA; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 633 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 634 | typedef struct _HD_ITEMW |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 635 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 636 | UINT mask; |
| 637 | INT cxy; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 638 | LPWSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 639 | HBITMAP hbm; |
| 640 | INT cchTextMax; |
| 641 | INT fmt; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 642 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 643 | INT iImage; |
| 644 | INT iOrder; |
| 645 | } HDITEMW, *LPHDITEMW; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 646 | |
| 647 | #define HDITEM WINELIB_NAME_AW(HDITEM) |
| 648 | #define LPHDITEM WINELIB_NAME_AW(LPHDITEM) |
Alexandre Julliard | 8da12c4 | 1999-01-17 16:55:11 +0000 | [diff] [blame] | 649 | #define HD_ITEM HDITEM |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 650 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 651 | #define HDITEM_V1_SIZEA CCSIZEOF_STRUCT(HDITEMA, lParam) |
| 652 | #define HDITEM_V1_SIZEW CCSIZEOF_STRUCT(HDITEMW, lParam) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 653 | #define HDITEM_V1_SIZE WINELIB_NAME_AW(HDITEM_V1_SIZE) |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 654 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 655 | typedef struct _HD_HITTESTINFO |
| 656 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 657 | POINT pt; |
| 658 | UINT flags; |
| 659 | INT iItem; |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 660 | } HDHITTESTINFO, *LPHDHITTESTINFO; |
| 661 | |
| 662 | #define HD_HITTESTINFO HDHITTESTINFO |
| 663 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 664 | typedef struct tagNMHEADERA |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 665 | { |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 666 | NMHDR hdr; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 667 | INT iItem; |
| 668 | INT iButton; |
| 669 | HDITEMA *pitem; |
| 670 | } NMHEADERA, *LPNMHEADERA; |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 671 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 672 | typedef struct tagNMHEADERW |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 673 | { |
| 674 | NMHDR hdr; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 675 | INT iItem; |
| 676 | INT iButton; |
| 677 | HDITEMW *pitem; |
| 678 | } NMHEADERW, *LPNMHEADERW; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 679 | |
| 680 | #define NMHEADER WINELIB_NAME_AW(NMHEADER) |
| 681 | #define LPNMHEADER WINELIB_NAME_AW(LPNMHEADER) |
Alexandre Julliard | e32be24 | 1999-02-10 06:43:59 +0000 | [diff] [blame] | 682 | #define HD_NOTIFY NMHEADER |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 683 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 684 | typedef struct tagNMHDDISPINFOA |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 685 | { |
| 686 | NMHDR hdr; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 687 | INT iItem; |
| 688 | UINT mask; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 689 | LPSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 690 | INT cchTextMax; |
| 691 | INT iImage; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 692 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 693 | } NMHDDISPINFOA, *LPNMHDDISPINFOA; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 694 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 695 | typedef struct tagNMHDDISPINFOW |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 696 | { |
| 697 | NMHDR hdr; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 698 | INT iItem; |
| 699 | UINT mask; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 700 | LPWSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 701 | INT cchTextMax; |
| 702 | INT iImage; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 703 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 704 | } NMHDDISPINFOW, *LPNMHDDISPINFOW; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 705 | |
| 706 | #define NMHDDISPINFO WINELIB_NAME_AW(NMHDDISPINFO) |
| 707 | #define LPNMHDDISPINFO WINELIB_NAME_AW(LPNMHDDISPINFO) |
| 708 | |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 709 | #define Header_GetItemCount(hwndHD) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 710 | (INT)SendMessageA((hwndHD),HDM_GETITEMCOUNT,0,0L) |
| 711 | #define Header_InsertItemA(hwndHD,i,phdi) \ |
| 712 | (INT)SendMessageA((hwndHD),HDM_INSERTITEMA,(WPARAM)(INT)(i),(LPARAM)(const HDITEMA*)(phdi)) |
| 713 | #define Header_InsertItemW(hwndHD,i,phdi) \ |
| 714 | (INT)SendMessageW((hwndHD),HDM_INSERTITEMW,(WPARAM)(INT)(i),(LPARAM)(const HDITEMW*)(phdi)) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 715 | #define Header_InsertItem WINELIB_NAME_AW(Header_InsertItem) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 716 | #define Header_DeleteItem(hwndHD,i) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 717 | (BOOL)SendMessageA((hwndHD),HDM_DELETEITEM,(WPARAM)(INT)(i),0L) |
| 718 | #define Header_GetItemA(hwndHD,i,phdi) \ |
| 719 | (BOOL)SendMessageA((hwndHD),HDM_GETITEMA,(WPARAM)(INT)(i),(LPARAM)(HDITEMA*)(phdi)) |
| 720 | #define Header_GetItemW(hwndHD,i,phdi) \ |
| 721 | (BOOL)SendMessageW((hwndHD),HDM_GETITEMW,(WPARAM)(INT)(i),(LPARAM)(HDITEMW*)(phdi)) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 722 | #define Header_GetItem WINELIB_NAME_AW(Header_GetItem) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 723 | #define Header_SetItemA(hwndHD,i,phdi) \ |
| 724 | (BOOL)SendMessageA((hwndHD),HDM_SETITEMA,(WPARAM)(INT)(i),(LPARAM)(const HDITEMA*)(phdi)) |
| 725 | #define Header_SetItemW(hwndHD,i,phdi) \ |
| 726 | (BOOL)SendMessageW((hwndHD),HDM_SETITEMW,(WPARAM)(INT)(i),(LPARAM)(const HDITEMW*)(phdi)) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 727 | #define Header_SetItem WINELIB_NAME_AW(Header_SetItem) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 728 | #define Header_Layout(hwndHD,playout) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 729 | (BOOL)SendMessageA((hwndHD),HDM_LAYOUT,0,(LPARAM)(LPHDLAYOUT)(playout)) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 730 | #define Header_GetItemRect(hwnd,iItem,lprc) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 731 | (BOOL)SendMessageA((hwnd),HDM_GETITEMRECT,(WPARAM)iItem,(LPARAM)lprc) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 732 | #define Header_SetImageList(hwnd,himl) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 733 | (HIMAGELIST)SendMessageA((hwnd),HDM_SETIMAGELIST,0,(LPARAM)himl) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 734 | #define Header_GetImageList(hwnd) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 735 | (HIMAGELIST)SendMessageA((hwnd),HDM_GETIMAGELIST,0,0) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 736 | #define Header_OrderToIndex(hwnd,i) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 737 | (INT)SendMessageA((hwnd),HDM_ORDERTOINDEX,(WPARAM)i,0) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 738 | #define Header_CreateDragImage(hwnd,i) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 739 | (HIMAGELIST)SendMessageA((hwnd),HDM_CREATEDRAGIMAGE,(WPARAM)i,0) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 740 | #define Header_GetOrderArray(hwnd,iCount,lpi) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 741 | (BOOL)SendMessageA((hwnd),HDM_GETORDERARRAY,(WPARAM)iCount,(LPARAM)lpi) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 742 | #define Header_SetOrderArray(hwnd,iCount,lpi) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 743 | (BOOL)SendMessageA((hwnd),HDM_SETORDERARRAY,(WPARAM)iCount,(LPARAM)lpi) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 744 | #define Header_SetHotDivider(hwnd,fPos,dw) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 745 | (INT)SendMessageA((hwnd),HDM_SETHOTDIVIDER,(WPARAM)fPos,(LPARAM)dw) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 746 | #define Header_SetUnicodeFormat(hwnd,fUnicode) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 747 | (BOOL)SendMessageA((hwnd),HDM_SETUNICODEFORMAT,(WPARAM)(fUnicode),0) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 748 | #define Header_GetUnicodeFormat(hwnd) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 749 | (BOOL)SendMessageA((hwnd),HDM_GETUNICODEFORMAT,0,0) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 750 | |
| 751 | |
| 752 | /* Toolbar */ |
| 753 | |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 754 | #define TOOLBARCLASSNAME16 "ToolbarWindow" |
Pascal Lessard | 60935ec | 1999-03-25 16:42:27 +0000 | [diff] [blame^] | 755 | #define TOOLBARCLASSNAMEW "ToolbarWindow32" |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 756 | #define TOOLBARCLASSNAMEA "ToolbarWindow32" |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 757 | #define TOOLBARCLASSNAME WINELIB_NAME_AW(TOOLBARCLASSNAME) |
| 758 | |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 759 | #define CMB_MASKED 0x02 |
| 760 | |
| 761 | #define TBSTATE_CHECKED 0x01 |
| 762 | #define TBSTATE_PRESSED 0x02 |
| 763 | #define TBSTATE_ENABLED 0x04 |
| 764 | #define TBSTATE_HIDDEN 0x08 |
| 765 | #define TBSTATE_INDETERMINATE 0x10 |
| 766 | #define TBSTATE_WRAP 0x20 |
| 767 | #define TBSTATE_ELLIPSES 0x40 |
| 768 | #define TBSTATE_MARKED 0x80 |
| 769 | |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 770 | #define TBSTYLE_BUTTON 0x00 |
| 771 | #define TBSTYLE_SEP 0x01 |
| 772 | #define TBSTYLE_CHECK 0x02 |
| 773 | #define TBSTYLE_GROUP 0x04 |
| 774 | #define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK) |
| 775 | #define TBSTYLE_DROPDOWN 0x08 |
| 776 | |
| 777 | #define TBSTYLE_TOOLTIPS 0x0100 |
| 778 | #define TBSTYLE_WRAPABLE 0x0200 |
| 779 | #define TBSTYLE_ALTDRAG 0x0400 |
| 780 | #define TBSTYLE_FLAT 0x0800 |
| 781 | #define TBSTYLE_LIST 0x1000 |
| 782 | #define TBSTYLE_CUSTOMERASE 0x2000 |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 783 | |
| 784 | #define TBIF_IMAGE 0x00000001 |
| 785 | #define TBIF_TEXT 0x00000002 |
| 786 | #define TBIF_STATE 0x00000004 |
| 787 | #define TBIF_STYLE 0x00000008 |
| 788 | #define TBIF_LPARAM 0x00000010 |
| 789 | #define TBIF_COMMAND 0x00000020 |
| 790 | #define TBIF_SIZE 0x00000040 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 791 | |
| 792 | #define TBBF_LARGE 0x0001 |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 793 | |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 794 | #define TB_ENABLEBUTTON (WM_USER+1) |
| 795 | #define TB_CHECKBUTTON (WM_USER+2) |
| 796 | #define TB_PRESSBUTTON (WM_USER+3) |
| 797 | #define TB_HIDEBUTTON (WM_USER+4) |
| 798 | #define TB_INDETERMINATE (WM_USER+5) |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 799 | #define TB_ISBUTTONENABLED (WM_USER+9) |
| 800 | #define TB_ISBUTTONCHECKED (WM_USER+10) |
| 801 | #define TB_ISBUTTONPRESSED (WM_USER+11) |
| 802 | #define TB_ISBUTTONHIDDEN (WM_USER+12) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 803 | #define TB_ISBUTTONINDETERMINATE (WM_USER+13) |
| 804 | #define TB_ISBUTTONHIGHLIGHTED (WM_USER+14) |
| 805 | #define TB_SETSTATE (WM_USER+17) |
| 806 | #define TB_GETSTATE (WM_USER+18) |
| 807 | #define TB_ADDBITMAP (WM_USER+19) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 808 | #define TB_ADDBUTTONSA (WM_USER+20) |
| 809 | #define TB_ADDBUTTONSW (WM_USER+68) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 810 | #define TB_ADDBUTTONS WINELIB_NAME_AW(TB_ADDBUTTONS) |
| 811 | #define TB_HITTEST (WM_USER+69) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 812 | #define TB_INSERTBUTTONA (WM_USER+21) |
| 813 | #define TB_INSERTBUTTONW (WM_USER+67) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 814 | #define TB_INSERTBUTTON WINELIB_NAME_AW(TB_INSERTBUTTON) |
| 815 | #define TB_DELETEBUTTON (WM_USER+22) |
| 816 | #define TB_GETBUTTON (WM_USER+23) |
| 817 | #define TB_BUTTONCOUNT (WM_USER+24) |
| 818 | #define TB_COMMANDTOINDEX (WM_USER+25) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 819 | #define TB_SAVERESTOREA (WM_USER+26) |
| 820 | #define TB_SAVERESTOREW (WM_USER+76) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 821 | #define TB_SAVERESTORE WINELIB_NAME_AW(TB_SAVERESTORE) |
| 822 | #define TB_CUSTOMIZE (WM_USER+27) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 823 | #define TB_ADDSTRINGA (WM_USER+28) |
| 824 | #define TB_ADDSTRINGW (WM_USER+77) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 825 | #define TB_ADDSTRING WINELIB_NAME_AW(TB_ADDSTRING) |
| 826 | #define TB_GETITEMRECT (WM_USER+29) |
| 827 | #define TB_BUTTONSTRUCTSIZE (WM_USER+30) |
| 828 | #define TB_SETBUTTONSIZE (WM_USER+31) |
| 829 | #define TB_SETBITMAPSIZE (WM_USER+32) |
| 830 | #define TB_AUTOSIZE (WM_USER+33) |
| 831 | #define TB_GETTOOLTIPS (WM_USER+35) |
| 832 | #define TB_SETTOOLTIPS (WM_USER+36) |
| 833 | #define TB_SETPARENT (WM_USER+37) |
| 834 | #define TB_SETROWS (WM_USER+39) |
| 835 | #define TB_GETROWS (WM_USER+40) |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 836 | #define TB_GETBITMAPFLAGS (WM_USER+41) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 837 | #define TB_SETCMDID (WM_USER+42) |
| 838 | #define TB_CHANGEBITMAP (WM_USER+43) |
| 839 | #define TB_GETBITMAP (WM_USER+44) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 840 | #define TB_GETBUTTONTEXTA (WM_USER+45) |
| 841 | #define TB_GETBUTTONTEXTW (WM_USER+75) |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 842 | #define TB_GETBUTTONTEXT WINELIB_NAME_AW(TB_GETBUTTONTEXT) |
| 843 | #define TB_REPLACEBITMAP (WM_USER+46) |
| 844 | #define TB_SETINDENT (WM_USER+47) |
| 845 | #define TB_SETIMAGELIST (WM_USER+48) |
| 846 | #define TB_GETIMAGELIST (WM_USER+49) |
| 847 | #define TB_LOADIMAGES (WM_USER+50) |
| 848 | #define TB_GETRECT (WM_USER+51) /* wParam is the Cmd instead of index */ |
| 849 | #define TB_SETHOTIMAGELIST (WM_USER+52) |
| 850 | #define TB_GETHOTIMAGELIST (WM_USER+53) |
| 851 | #define TB_SETDISABLEDIMAGELIST (WM_USER+54) |
| 852 | #define TB_GETDISABLEDIMAGELIST (WM_USER+55) |
| 853 | #define TB_SETSTYLE (WM_USER+56) |
| 854 | #define TB_GETSTYLE (WM_USER+57) |
| 855 | #define TB_GETBUTTONSIZE (WM_USER+58) |
| 856 | #define TB_SETBUTTONWIDTH (WM_USER+59) |
| 857 | #define TB_SETMAXTEXTROWS (WM_USER+60) |
| 858 | #define TB_GETTEXTROWS (WM_USER+61) |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 859 | #define TB_GETOBJECT (WM_USER+62) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 860 | #define TB_GETBUTTONINFOW (WM_USER+63) |
| 861 | #define TB_GETBUTTONINFOA (WM_USER+65) |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 862 | #define TB_GETBUTTONINFO WINELIB_NAME_AW(TB_GETBUTTONINFO) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 863 | #define TB_SETBUTTONINFOW (WM_USER+64) |
| 864 | #define TB_SETBUTTONINFOA (WM_USER+66) |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 865 | #define TB_SETBUTTONINFO WINELIB_NAME_AW(TB_SETBUTTONINFO) |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 866 | #define TB_SETDRAWTEXTFLAGS (WM_USER+70) |
| 867 | #define TB_GETHOTITEM (WM_USER+71) |
| 868 | #define TB_SETHOTITEM (WM_USER+72) |
| 869 | #define TB_SETANCHORHIGHLIGHT (WM_USER+73) |
| 870 | #define TB_GETANCHORHIGHLIGHT (WM_USER+74) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 871 | #define TB_MAPACCELERATORA (WM_USER+78) |
| 872 | #define TB_MAPACCELERATORW (WM_USER+90) |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 873 | #define TB_MAPACCELERATOR WINELIB_NAME_AW(TB_MAPACCELERATOR) |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 874 | #define TB_GETINSERTMARK (WM_USER+79) |
| 875 | #define TB_SETINSERTMARK (WM_USER+80) |
| 876 | #define TB_INSERTMARKHITTEST (WM_USER+81) |
| 877 | #define TB_MOVEBUTTON (WM_USER+82) |
| 878 | #define TB_GETMAXSIZE (WM_USER+83) |
| 879 | #define TB_SETEXTENDEDSTYLE (WM_USER+84) |
| 880 | #define TB_GETEXTENDEDSTYLE (WM_USER+85) |
| 881 | #define TB_GETPADDING (WM_USER+86) |
| 882 | #define TB_SETPADDING (WM_USER+87) |
| 883 | #define TB_SETINSERTMARKCOLOR (WM_USER+88) |
| 884 | #define TB_GETINSERTMARKCOLOR (WM_USER+89) |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 885 | #define TB_SETCOLORSCHEME CCM_SETCOLORSCHEME |
| 886 | #define TB_GETCOLORSCHEME CCM_GETCOLORSCHEME |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 887 | #define TB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT |
| 888 | #define TB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 889 | |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 890 | #define TBN_FIRST (0U-700U) |
| 891 | #define TBN_LAST (0U-720U) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 892 | #define TBN_GETBUTTONINFOA (TBN_FIRST-0) |
| 893 | #define TBN_GETBUTTONINFOW (TBN_FIRST-20) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 894 | #define TBN_GETBUTTONINFO WINELIB_NAME_AW(TBN_GETBUTTONINFO) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 895 | #define TBN_GETINFOTIPA (TBN_FIRST-18) |
| 896 | #define TBN_GETINFOTIPW (TBN_FIRST-19) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 897 | #define TBN_GETINFOTIP WINELIB_NAME_AW(TBN_GETINFOTIP) |
| 898 | |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 899 | |
| 900 | /* This is just for old CreateToolbar. */ |
| 901 | /* Don't use it in new programs. */ |
| 902 | typedef struct _OLDTBBUTTON { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 903 | INT iBitmap; |
| 904 | INT idCommand; |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 905 | BYTE fsState; |
| 906 | BYTE fsStyle; |
| 907 | BYTE bReserved[2]; |
| 908 | DWORD dwData; |
| 909 | } OLDTBBUTTON, *POLDTBBUTTON, *LPOLDTBBUTTON; |
| 910 | typedef const OLDTBBUTTON *LPCOLDTBBUTTON; |
| 911 | |
| 912 | |
| 913 | typedef struct _TBBUTTON { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 914 | INT iBitmap; |
| 915 | INT idCommand; |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 916 | BYTE fsState; |
| 917 | BYTE fsStyle; |
| 918 | BYTE bReserved[2]; |
| 919 | DWORD dwData; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 920 | INT iString; |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 921 | } TBBUTTON, *PTBBUTTON, *LPTBBUTTON; |
| 922 | typedef const TBBUTTON *LPCTBBUTTON; |
| 923 | |
| 924 | |
| 925 | typedef struct _COLORMAP { |
| 926 | COLORREF from; |
| 927 | COLORREF to; |
| 928 | } COLORMAP, *LPCOLORMAP; |
| 929 | |
| 930 | typedef struct tagTBADDBITMAP { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 931 | HINSTANCE hInst; |
| 932 | UINT nID; |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 933 | } TBADDBITMAP, *LPTBADDBITMAP; |
| 934 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 935 | #define HINST_COMMCTRL ((HINSTANCE)-1) |
Juergen Schmied | 0128d04 | 1998-11-05 10:33:18 +0000 | [diff] [blame] | 936 | #define IDB_STD_SMALL_COLOR 0 |
| 937 | #define IDB_STD_LARGE_COLOR 1 |
| 938 | #define IDB_VIEW_SMALL_COLOR 4 |
| 939 | #define IDB_VIEW_LARGE_COLOR 5 |
| 940 | #define IDB_HIST_SMALL_COLOR 8 |
| 941 | #define IDB_HIST_LARGE_COLOR 9 |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 942 | |
Juergen Schmied | 0128d04 | 1998-11-05 10:33:18 +0000 | [diff] [blame] | 943 | #define STD_CUT 0 |
| 944 | #define STD_COPY 1 |
| 945 | #define STD_PASTE 2 |
| 946 | #define STD_UNDO 3 |
| 947 | #define STD_REDOW 4 |
| 948 | #define STD_DELETE 5 |
| 949 | #define STD_FILENEW 6 |
| 950 | #define STD_FILEOPEN 7 |
| 951 | #define STD_FILESAVE 8 |
| 952 | #define STD_PRINTPRE 9 |
| 953 | #define STD_PROPERTIES 10 |
| 954 | #define STD_HELP 11 |
| 955 | #define STD_FIND 12 |
| 956 | #define STD_REPLACE 13 |
| 957 | #define STD_PRINT 14 |
| 958 | |
| 959 | #define VIEW_LARGEICONS 0 |
| 960 | #define VIEW_SMALLICONS 1 |
| 961 | #define VIEW_LIST 2 |
| 962 | #define VIEW_DETAILS 3 |
| 963 | #define VIEW_SORTNAME 4 |
| 964 | #define VIEW_SORTSIZE 5 |
| 965 | #define VIEW_SORTDATE 6 |
| 966 | #define VIEW_SORTTYPE 7 |
| 967 | #define VIEW_PARENTFOLDER 8 |
| 968 | #define VIEW_NETCONNECT 9 |
| 969 | #define VIEW_NETDISCONNECT 10 |
| 970 | #define VIEW_NEWFOLDER 11 |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 971 | |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 972 | typedef struct tagTBSAVEPARAMSA { |
| 973 | HKEY hkr; |
| 974 | LPCSTR pszSubKey; |
| 975 | LPCSTR pszValueName; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 976 | } TBSAVEPARAMSA, *LPTBSAVEPARAMSA; |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 977 | |
| 978 | typedef struct tagTBSAVEPARAMSW { |
| 979 | HKEY hkr; |
| 980 | LPCWSTR pszSubKey; |
| 981 | LPCWSTR pszValueName; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 982 | } TBSAVEPARAMSAW, *LPTBSAVEPARAMSAW; |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 983 | |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 984 | #define TBSAVEPARAMS WINELIB_NAME_AW(TBSAVEPARAMS) |
| 985 | #define LPTBSAVEPARAMS WINELIB_NAME_AW(LPTBSAVEPARAMS) |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 986 | |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 987 | typedef struct |
| 988 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 989 | UINT cbSize; |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 990 | DWORD dwMask; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 991 | INT idCommand; |
| 992 | INT iImage; |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 993 | BYTE fsState; |
| 994 | BYTE fsStyle; |
| 995 | WORD cx; |
| 996 | DWORD lParam; |
| 997 | LPSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 998 | INT cchText; |
| 999 | } TBBUTTONINFOA, *LPTBBUTTONINFOA; |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1000 | |
| 1001 | typedef struct |
| 1002 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1003 | UINT cbSize; |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1004 | DWORD dwMask; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1005 | INT idCommand; |
| 1006 | INT iImage; |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1007 | BYTE fsState; |
| 1008 | BYTE fsStyle; |
| 1009 | WORD cx; |
| 1010 | DWORD lParam; |
| 1011 | LPWSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1012 | INT cchText; |
| 1013 | } TBBUTTONINFOW, *LPTBBUTTONINFOW; |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1014 | |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 1015 | #define TBBUTTONINFO WINELIB_NAME_AW(TBBUTTONINFO) |
| 1016 | #define LPTBBUTTONINFO WINELIB_NAME_AW(LPTBBUTTONINFO) |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1017 | |
| 1018 | typedef struct tagNMTBGETINFOTIPA |
| 1019 | { |
| 1020 | NMHDR hdr; |
| 1021 | LPSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1022 | INT cchTextMax; |
| 1023 | INT iItem; |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1024 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1025 | } NMTBGETINFOTIPA, *LPNMTBGETINFOTIPA; |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1026 | |
| 1027 | typedef struct tagNMTBGETINFOTIPW |
| 1028 | { |
| 1029 | NMHDR hdr; |
| 1030 | LPWSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1031 | INT cchTextMax; |
| 1032 | INT iItem; |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1033 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1034 | } NMTBGETINFOTIPW, *LPNMTBGETINFOTIPW; |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1035 | |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 1036 | #define NMTBGETINFOTIP WINELIB_NAME_AW(NMTBGETINFOFTIP) |
| 1037 | #define LPNMTBGETINFOTIP WINELIB_NAME_AW(LPNMTBGETINFOTIP) |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1038 | |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 1039 | typedef struct |
| 1040 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1041 | HINSTANCE hInstOld; |
| 1042 | UINT nIDOld; |
| 1043 | HINSTANCE hInstNew; |
| 1044 | UINT nIDNew; |
| 1045 | INT nButtons; |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 1046 | } TBREPLACEBITMAP, *LPTBREPLACEBITMAP; |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 1047 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1048 | HWND WINAPI |
| 1049 | CreateToolbar(HWND, DWORD, UINT, INT, HINSTANCE, |
| 1050 | UINT, LPCOLDTBBUTTON, INT); |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 1051 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1052 | HWND WINAPI |
| 1053 | CreateToolbarEx(HWND, DWORD, UINT, INT, |
| 1054 | HINSTANCE, UINT, LPCTBBUTTON, |
| 1055 | INT, INT, INT, INT, INT, UINT); |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 1056 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1057 | HBITMAP WINAPI |
| 1058 | CreateMappedBitmap (HINSTANCE, INT, UINT, LPCOLORMAP, INT); |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 1059 | |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 1060 | |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1061 | /* Tool tips */ |
| 1062 | |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1063 | #define TOOLTIPS_CLASS16 "tooltips_class" |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1064 | #define TOOLTIPS_CLASSA "tooltips_class32" |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1065 | #define TOOLTIPS_CLASS32W L"tooltips_class32" |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1066 | #define TOOLTIPS_CLASS WINELIB_NAME_AW(TOOLTIPS_CLASS) |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 1067 | |
| 1068 | #define INFOTIPSIZE 1024 |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1069 | |
| 1070 | #define TTS_ALWAYSTIP 0x01 |
| 1071 | #define TTS_NOPREFIX 0x02 |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 1072 | |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1073 | #define TTF_IDISHWND 0x0001 |
| 1074 | #define TTF_CENTERTIP 0x0002 |
| 1075 | #define TTF_RTLREADING 0x0004 |
| 1076 | #define TTF_SUBCLASS 0x0010 |
| 1077 | #define TTF_TRACK 0x0020 |
| 1078 | #define TTF_ABSOLUTE 0x0080 |
| 1079 | #define TTF_TRANSPARENT 0x0100 |
| 1080 | #define TTF_DI_SETITEM 0x8000 /* valid only on the TTN_NEEDTEXT callback */ |
| 1081 | |
| 1082 | |
| 1083 | #define TTDT_AUTOMATIC 0 |
| 1084 | #define TTDT_RESHOW 1 |
| 1085 | #define TTDT_AUTOPOP 2 |
| 1086 | #define TTDT_INITIAL 3 |
| 1087 | |
| 1088 | |
| 1089 | #define TTM_ACTIVATE (WM_USER+1) |
| 1090 | #define TTM_SETDELAYTIME (WM_USER+3) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1091 | #define TTM_ADDTOOLA (WM_USER+4) |
| 1092 | #define TTM_ADDTOOLW (WM_USER+50) |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1093 | #define TTM_ADDTOOL WINELIB_NAME_AW(TTM_ADDTOOL) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1094 | #define TTM_DELTOOLA (WM_USER+5) |
| 1095 | #define TTM_DELTOOLW (WM_USER+51) |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1096 | #define TTM_DELTOOL WINELIB_NAME_AW(TTM_DELTOOL) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1097 | #define TTM_NEWTOOLRECTA (WM_USER+6) |
| 1098 | #define TTM_NEWTOOLRECTW (WM_USER+52) |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1099 | #define TTM_NEWTOOLRECT WINELIB_NAME_AW(TTM_NEWTOOLRECT) |
| 1100 | #define TTM_RELAYEVENT (WM_USER+7) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1101 | #define TTM_GETTOOLINFOA (WM_USER+8) |
| 1102 | #define TTM_GETTOOLINFOW (WM_USER+53) |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1103 | #define TTM_GETTOOLINFO WINELIB_NAME_AW(TTM_GETTOOLINFO) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1104 | #define TTM_SETTOOLINFOA (WM_USER+9) |
| 1105 | #define TTM_SETTOOLINFOW (WM_USER+54) |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1106 | #define TTM_SETTOOLINFO WINELIB_NAME_AW(TTM_SETTOOLINFO) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1107 | #define TTM_HITTESTA (WM_USER+10) |
| 1108 | #define TTM_HITTESTW (WM_USER+55) |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1109 | #define TTM_HITTEST WINELIB_NAME_AW(TTM_HITTEST) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1110 | #define TTM_GETTEXTA (WM_USER+11) |
| 1111 | #define TTM_GETTEXTW (WM_USER+56) |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1112 | #define TTM_GETTEXT WINELIB_NAME_AW(TTM_GETTEXT) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1113 | #define TTM_UPDATETIPTEXTA (WM_USER+12) |
| 1114 | #define TTM_UPDATETIPTEXTW (WM_USER+57) |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1115 | #define TTM_UPDATETIPTEXT WINELIB_NAME_AW(TTM_UPDATETIPTEXT) |
| 1116 | #define TTM_GETTOOLCOUNT (WM_USER+13) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1117 | #define TTM_ENUMTOOLSA (WM_USER+14) |
| 1118 | #define TTM_ENUMTOOLSW (WM_USER+58) |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1119 | #define TTM_ENUMTOOLS WINELIB_NAME_AW(TTM_ENUMTOOLS) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1120 | #define TTM_GETCURRENTTOOLA (WM_USER+15) |
| 1121 | #define TTM_GETCURRENTTOOLW (WM_USER+59) |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1122 | #define TTM_GETCURRENTTOOL WINELIB_NAME_AW(TTM_GETCURRENTTOOL) |
| 1123 | #define TTM_WINDOWFROMPOINT (WM_USER+16) |
| 1124 | #define TTM_TRACKACTIVATE (WM_USER+17) |
| 1125 | #define TTM_TRACKPOSITION (WM_USER+18) |
| 1126 | #define TTM_SETTIPBKCOLOR (WM_USER+19) |
| 1127 | #define TTM_SETTIPTEXTCOLOR (WM_USER+20) |
| 1128 | #define TTM_GETDELAYTIME (WM_USER+21) |
| 1129 | #define TTM_GETTIPBKCOLOR (WM_USER+22) |
| 1130 | #define TTM_GETTIPTEXTCOLOR (WM_USER+23) |
| 1131 | #define TTM_SETMAXTIPWIDTH (WM_USER+24) |
| 1132 | #define TTM_GETMAXTIPWIDTH (WM_USER+25) |
| 1133 | #define TTM_SETMARGIN (WM_USER+26) |
| 1134 | #define TTM_GETMARGIN (WM_USER+27) |
| 1135 | #define TTM_POP (WM_USER+28) |
| 1136 | #define TTM_UPDATE (WM_USER+29) |
| 1137 | |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 1138 | |
| 1139 | #define TTN_FIRST (0U-520U) |
| 1140 | #define TTN_LAST (0U-549U) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1141 | #define TTN_GETDISPINFOA (TTN_FIRST-0) |
| 1142 | #define TTN_GETDISPINFOW (TTN_FIRST-10) |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1143 | #define TTN_GETDISPINFO WINELIB_NAME_AW(TTN_GETDISPINFO) |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 1144 | #define TTN_SHOW (TTN_FIRST-1) |
| 1145 | #define TTN_POP (TTN_FIRST-2) |
| 1146 | |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 1147 | #define TTN_NEEDTEXT TTN_GETDISPINFO |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1148 | #define TTN_NEEDTEXTA TTN_GETDISPINFOA |
| 1149 | #define TTN_NEEDTEXTW TTN_GETDISPINFOW |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 1150 | |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1151 | typedef struct tagTOOLINFOA { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1152 | UINT cbSize; |
| 1153 | UINT uFlags; |
| 1154 | HWND hwnd; |
| 1155 | UINT uId; |
| 1156 | RECT rect; |
| 1157 | HINSTANCE hinst; |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1158 | LPSTR lpszText; |
| 1159 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1160 | } TTTOOLINFOA, *LPTOOLINFOA, *PTOOLINFOA, *LPTTTOOLINFOA; |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1161 | |
| 1162 | typedef struct tagTOOLINFOW { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1163 | UINT cbSize; |
| 1164 | UINT uFlags; |
| 1165 | HWND hwnd; |
| 1166 | UINT uId; |
| 1167 | RECT rect; |
| 1168 | HINSTANCE hinst; |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1169 | LPWSTR lpszText; |
| 1170 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1171 | } TTTOOLINFOW, *LPTOOLINFOW, *PTOOLINFOW, *LPTTTOOLINFOW; |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1172 | |
| 1173 | #define TTTOOLINFO WINELIB_NAME_AW(TTTOOLINFO) |
Eric Kohl | 8b1a2a7 | 1998-12-07 10:59:40 +0000 | [diff] [blame] | 1174 | #define TOOLINFO WINELIB_NAME_AW(TTTOOLINFO) |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1175 | #define PTOOLINFO WINELIB_NAME_AW(PTOOLINFO) |
| 1176 | #define LPTTTOOLINFO WINELIB_NAME_AW(LPTTTOOLINFO) |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 1177 | #define LPTOOLINFO WINELIB_NAME_AW(LPTOOLINFO) |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1178 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1179 | #define TTTOOLINFO_V1_SIZEA CCSIZEOF_STRUCT(TTTOOLINFOA, lpszText) |
| 1180 | #define TTTOOLINFO_V1_SIZEW CCSIZEOF_STRUCT(TTTOOLINFOW, lpszText) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1181 | #define TTTOOLINFO_V1_SIZE WINELIB_NAME_AW(TTTOOLINFO_V1_SIZE) |
| 1182 | |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 1183 | typedef struct _TT_HITTESTINFOA |
| 1184 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1185 | HWND hwnd; |
| 1186 | POINT pt; |
| 1187 | TTTOOLINFOA ti; |
| 1188 | } TTHITTESTINFOA, *LPTTHITTESTINFOA; |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1189 | |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 1190 | typedef struct _TT_HITTESTINFOW |
| 1191 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1192 | HWND hwnd; |
| 1193 | POINT pt; |
| 1194 | TTTOOLINFOW ti; |
| 1195 | } TTHITTESTINFOW, *LPTTHITTESTINFOW; |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1196 | |
| 1197 | #define TTHITTESTINFO WINELIB_NAME_AW(TTHITTESTINFO) |
| 1198 | #define LPTTHITTESTINFO WINELIB_NAME_AW(LPTTHITTESTINFO) |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 1199 | |
| 1200 | typedef struct tagNMTTDISPINFOA |
| 1201 | { |
| 1202 | NMHDR hdr; |
| 1203 | LPSTR lpszText; |
| 1204 | CHAR szText[80]; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1205 | HINSTANCE hinst; |
| 1206 | UINT uFlags; |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 1207 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1208 | } NMTTDISPINFOA, *LPNMTTDISPINFOA; |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 1209 | |
| 1210 | typedef struct tagNMTTDISPINFOW |
| 1211 | { |
| 1212 | NMHDR hdr; |
| 1213 | LPWSTR lpszText; |
| 1214 | WCHAR szText[80]; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1215 | HINSTANCE hinst; |
| 1216 | UINT uFlags; |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 1217 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1218 | } NMTTDISPINFOW, *LPNMTTDISPINFOW; |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1219 | |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1220 | #define NMTTDISPINFO WINELIB_NAME_AW(NMTTDISPINFO) |
| 1221 | #define LPNMTTDISPINFO WINELIB_NAME_AW(LPNMTTDISPINFO) |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1222 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1223 | #define NMTTDISPINFO_V1_SIZEA CCSIZEOF_STRUCT(NMTTDISPINFOA, uFlags) |
| 1224 | #define NMTTDISPINFO_V1_SIZEW CCSIZEOF_STRUCT(NMTTDISPINFOW, uFlags) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1225 | #define NMTTDISPINFO_V1_SIZE WINELIB_NAME_AW(NMTTDISPINFO_V1_SIZE) |
| 1226 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1227 | #define TOOLTIPTEXTW NMTTDISPINFOW |
| 1228 | #define TOOLTIPTEXTA NMTTDISPINFOA |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 1229 | #define TOOLTIPTEXT NMTTDISPINFO |
| 1230 | #define LPTOOLTIPTEXTW LPNMTTDISPINFOW |
| 1231 | #define LPTOOLTIPTEXTA LPNMTTDISPINFOA |
| 1232 | #define LPTOOLTIPTEXT LPNMTTDISPINFO |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1233 | |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 1234 | |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1235 | /* Rebar control */ |
| 1236 | |
| 1237 | #define REBARCLASSNAME16 "ReBarWindow" |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1238 | #define REBARCLASSNAMEA "ReBarWindow32" |
| 1239 | #define REBARCLASSNAMEW L"ReBarWindow32" |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 1240 | #define REBARCLASSNAME WINELIB_NAME_AW(REBARCLASSNAME) |
| 1241 | |
| 1242 | #define RBS_TOOLTIPS 0x0100 |
| 1243 | #define RBS_VARHEIGHT 0x0200 |
| 1244 | #define RBS_BANDBORDERS 0x0400 |
| 1245 | #define RBS_FIXEDORDER 0x0800 |
| 1246 | #define RBS_REGISTERDROP 0x1000 |
| 1247 | #define RBS_AUTOSIZE 0x2000 |
| 1248 | #define RBS_VERTICALGRIPPER 0x4000 |
| 1249 | #define RBS_DBLCLKTOGGLE 0x8000 |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1250 | |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 1251 | #define RBIM_IMAGELIST 0x00000001 |
| 1252 | |
| 1253 | #define RBBIM_STYLE 0x00000001 |
| 1254 | #define RBBIM_COLORS 0x00000002 |
| 1255 | #define RBBIM_TEXT 0x00000004 |
| 1256 | #define RBBIM_IMAGE 0x00000008 |
| 1257 | #define RBBIM_CHILD 0x00000010 |
| 1258 | #define RBBIM_CHILDSIZE 0x00000020 |
| 1259 | #define RBBIM_SIZE 0x00000040 |
| 1260 | #define RBBIM_BACKGROUND 0x00000080 |
| 1261 | #define RBBIM_ID 0x00000100 |
| 1262 | #define RBBIM_IDEALSIZE 0x00000200 |
| 1263 | #define RBBIM_LPARAM 0x00000400 |
| 1264 | #define RBBIM_HEADERSIZE 0x00000800 |
| 1265 | |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 1266 | #define RBBS_BREAK 0x00000001 |
| 1267 | #define RBBS_FIXEDSIZE 0x00000002 |
| 1268 | #define RBBS_CHILDEDGE 0x00000004 |
| 1269 | #define RBBS_HIDDEN 0x00000008 |
| 1270 | #define RBBS_NOVERT 0x00000010 |
| 1271 | #define RBBS_FIXEDBMP 0x00000020 |
| 1272 | #define RBBS_VARIABLEHEIGHT 0x00000040 |
| 1273 | #define RBBS_GRIPPERALWAYS 0x00000080 |
| 1274 | #define RBBS_NOGRIPPER 0x00000100 |
| 1275 | |
| 1276 | #define RBNM_ID 0x00000001 |
| 1277 | #define RBNM_STYLE 0x00000002 |
| 1278 | #define RBNM_LPARAM 0x00000004 |
| 1279 | |
| 1280 | #define RBHT_NOWHERE 0x0001 |
| 1281 | #define RBHT_CAPTION 0x0002 |
| 1282 | #define RBHT_CLIENT 0x0003 |
| 1283 | #define RBHT_GRABBER 0x0004 |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 1284 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1285 | #define RB_INSERTBANDA (WM_USER+1) |
| 1286 | #define RB_INSERTBANDW (WM_USER+10) |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 1287 | #define RB_INSERTBAND WINELIB_NAME_AW(RB_INSERTBAND) |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 1288 | #define RB_DELETEBAND (WM_USER+2) |
| 1289 | #define RB_GETBARINFO (WM_USER+3) |
| 1290 | #define RB_SETBARINFO (WM_USER+4) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1291 | #define RB_GETBANDINFO (WM_USER+5) /* just for compatibility */ |
| 1292 | #define RB_SETBANDINFOA (WM_USER+6) |
| 1293 | #define RB_SETBANDINFOW (WM_USER+11) |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 1294 | #define RB_SETBANDINFO WINELIB_NAME_AW(RB_SETBANDINFO) |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 1295 | #define RB_SETPARENT (WM_USER+7) |
| 1296 | #define RB_HITTEST (WM_USER+8) |
| 1297 | #define RB_GETRECT (WM_USER+9) |
| 1298 | #define RB_GETBANDCOUNT (WM_USER+12) |
| 1299 | #define RB_GETROWCOUNT (WM_USER+13) |
| 1300 | #define RB_GETROWHEIGHT (WM_USER+14) |
| 1301 | #define RB_IDTOINDEX (WM_USER+16) |
| 1302 | #define RB_GETTOOLTIPS (WM_USER+17) |
| 1303 | #define RB_SETTOOLTIPS (WM_USER+18) |
| 1304 | #define RB_SETBKCOLOR (WM_USER+19) |
| 1305 | #define RB_GETBKCOLOR (WM_USER+20) |
| 1306 | #define RB_SETTEXTCOLOR (WM_USER+21) |
| 1307 | #define RB_GETTEXTCOLOR (WM_USER+22) |
| 1308 | #define RB_SIZETORECT (WM_USER+23) |
| 1309 | #define RB_BEGINDRAG (WM_USER+24) |
| 1310 | #define RB_ENDDRAG (WM_USER+25) |
| 1311 | #define RB_DRAGMOVE (WM_USER+26) |
| 1312 | #define RB_GETBARHEIGHT (WM_USER+27) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1313 | #define RB_GETBANDINFOW (WM_USER+28) |
| 1314 | #define RB_GETBANDINFOA (WM_USER+29) |
| 1315 | #define RB_GETBANDINFO16 WINELIB_NAME_AW(RB_GETBANDINFO16) |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 1316 | #define RB_MINIMIZEBAND (WM_USER+30) |
| 1317 | #define RB_MAXIMIZEBAND (WM_USER+31) |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 1318 | #define RB_GETBANDBORDERS (WM_USER+34) |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 1319 | #define RB_SHOWBAND (WM_USER+35) |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 1320 | #define RB_SETPALETTE (WM_USER+37) |
| 1321 | #define RB_GETPALETTE (WM_USER+38) |
| 1322 | #define RB_MOVEBAND (WM_USER+39) |
Eric Kohl | 8d2933d | 1998-11-22 18:12:12 +0000 | [diff] [blame] | 1323 | #define RB_GETDROPTARGET CCM_GETDROPTARGET |
| 1324 | #define RB_SETCOLORSCHEME CCM_SETCOLORSCHEME |
| 1325 | #define RB_GETCOLORSCHEME CCM_GETCOLORSCHEME |
| 1326 | #define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT |
| 1327 | #define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 1328 | |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1329 | #define RBN_FIRST (0U-831U) |
| 1330 | #define RBN_LAST (0U-859U) |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 1331 | #define RBN_HEIGHTCHANGE (RBN_FIRST-0) |
| 1332 | #define RBN_GETOBJECT (RBN_FIRST-1) |
| 1333 | #define RBN_LAYOUTCHANGED (RBN_FIRST-2) |
| 1334 | #define RBN_AUTOSIZE (RBN_FIRST-3) |
| 1335 | #define RBN_BEGINDRAG (RBN_FIRST-4) |
| 1336 | #define RBN_ENDDRAG (RBN_FIRST-5) |
| 1337 | #define RBN_DELETINGBAND (RBN_FIRST-6) |
| 1338 | #define RBN_DELETEDBAND (RBN_FIRST-7) |
| 1339 | #define RBN_CHILDSIZE (RBN_FIRST-8) |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 1340 | |
| 1341 | typedef struct tagREBARINFO |
| 1342 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1343 | UINT cbSize; |
| 1344 | UINT fMask; |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 1345 | HIMAGELIST himl; |
| 1346 | } REBARINFO, *LPREBARINFO; |
| 1347 | |
| 1348 | typedef struct tagREBARBANDINFOA |
| 1349 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1350 | UINT cbSize; |
| 1351 | UINT fMask; |
| 1352 | UINT fStyle; |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 1353 | COLORREF clrFore; |
| 1354 | COLORREF clrBack; |
| 1355 | LPSTR lpText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1356 | UINT cch; |
| 1357 | INT iImage; |
| 1358 | HWND hwndChild; |
| 1359 | UINT cxMinChild; |
| 1360 | UINT cyMinChild; |
| 1361 | UINT cx; |
| 1362 | HBITMAP hbmBack; |
| 1363 | UINT wID; |
| 1364 | UINT cyChild; |
| 1365 | UINT cyMaxChild; |
| 1366 | UINT cyIntegral; |
| 1367 | UINT cxIdeal; |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 1368 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1369 | UINT cxHeader; |
| 1370 | } REBARBANDINFOA, *LPREBARBANDINFOA; |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 1371 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1372 | typedef REBARBANDINFOA const *LPCREBARBANDINFOA; |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 1373 | |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1374 | typedef struct tagREBARBANDINFOW |
| 1375 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1376 | UINT cbSize; |
| 1377 | UINT fMask; |
| 1378 | UINT fStyle; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1379 | COLORREF clrFore; |
| 1380 | COLORREF clrBack; |
Eric Kohl | 8d2933d | 1998-11-22 18:12:12 +0000 | [diff] [blame] | 1381 | LPWSTR lpText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1382 | UINT cch; |
| 1383 | INT iImage; |
| 1384 | HWND hwndChild; |
| 1385 | UINT cxMinChild; |
| 1386 | UINT cyMinChild; |
| 1387 | UINT cx; |
| 1388 | HBITMAP hbmBack; |
| 1389 | UINT wID; |
| 1390 | UINT cyChild; |
| 1391 | UINT cyMaxChild; |
| 1392 | UINT cyIntegral; |
| 1393 | UINT cxIdeal; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1394 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1395 | UINT cxHeader; |
| 1396 | } REBARBANDINFOW, *LPREBARBANDINFOW; |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 1397 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1398 | typedef REBARBANDINFOW const *LPCREBARBANDINFOW; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1399 | |
| 1400 | #define REBARBANDINFO WINELIB_NAME_AW(REBARBANDINFO) |
| 1401 | #define LPREBARBANDINFO WINELIB_NAME_AW(LPREBARBANDINFO) |
| 1402 | #define LPCREBARBANDINFO WINELIB_NAME_AW(LPCREBARBANDINFO) |
| 1403 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1404 | #define REBARBANDINFO_V3_SIZEA CCSIZEOF_STRUCT(REBARBANDINFOA, wID) |
| 1405 | #define REBARBANDINFO_V3_SIZEW CCSIZEOF_STRUCT(REBARBANDINFOW, wID) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1406 | #define REBARBANDINFO_V3_SIZE WINELIB_NAME_AW(REBARBANDINFO_V3_SIZE) |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 1407 | |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 1408 | typedef struct tagNMREBARCHILDSIZE |
| 1409 | { |
| 1410 | NMHDR hdr; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1411 | UINT uBand; |
| 1412 | UINT wID; |
| 1413 | RECT rcChild; |
| 1414 | RECT rcBand; |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 1415 | } NMREBARCHILDSIZE, *LPNMREBARCHILDSIZE; |
| 1416 | |
| 1417 | typedef struct tagNMREBAR |
| 1418 | { |
| 1419 | NMHDR hdr; |
| 1420 | DWORD dwMask; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1421 | UINT uBand; |
| 1422 | UINT fStyle; |
| 1423 | UINT wID; |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 1424 | LPARAM lParam; |
| 1425 | } NMREBAR, *LPNMREBAR; |
| 1426 | |
| 1427 | typedef struct tagNMRBAUTOSIZE |
| 1428 | { |
| 1429 | NMHDR hdr; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1430 | BOOL fChanged; |
| 1431 | RECT rcTarget; |
| 1432 | RECT rcActual; |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 1433 | } NMRBAUTOSIZE, *LPNMRBAUTOSIZE; |
| 1434 | |
| 1435 | typedef struct _RB_HITTESTINFO |
| 1436 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1437 | POINT pt; |
| 1438 | UINT flags; |
| 1439 | INT iBand; |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 1440 | } RBHITTESTINFO, *LPRBHITTESTINFO; |
| 1441 | |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1442 | |
| 1443 | /* Trackbar control */ |
| 1444 | |
| 1445 | #define TRACKBAR_CLASS16 "msctls_trackbar" |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1446 | #define TRACKBAR_CLASSA "msctls_trackbar32" |
| 1447 | #define TRACKBAR_CLASSW L"msctls_trackbar32" |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1448 | #define TRACKBAR_CLASS WINELIB_NAME_AW(TRACKBAR_CLASS) |
| 1449 | |
| 1450 | #define TBS_AUTOTICKS 0x0001 |
| 1451 | #define TBS_VERT 0x0002 |
| 1452 | #define TBS_HORZ 0x0000 |
| 1453 | #define TBS_TOP 0x0004 |
| 1454 | #define TBS_BOTTOM 0x0000 |
| 1455 | #define TBS_LEFT 0x0004 |
| 1456 | #define TBS_RIGHT 0x0000 |
| 1457 | #define TBS_BOTH 0x0008 |
| 1458 | #define TBS_NOTICKS 0x0010 |
| 1459 | #define TBS_ENABLESELRANGE 0x0020 |
| 1460 | #define TBS_FIXEDLENGTH 0x0040 |
| 1461 | #define TBS_NOTHUMB 0x0080 |
| 1462 | #define TBS_TOOLTIPS 0x0100 |
| 1463 | |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1464 | #define TBTS_TOP 0 |
| 1465 | #define TBTS_LEFT 1 |
| 1466 | #define TBTS_BOTTOM 2 |
| 1467 | #define TBTS_RIGHT 3 |
| 1468 | |
| 1469 | #define TB_LINEUP 0 |
| 1470 | #define TB_LINEDOWN 1 |
| 1471 | #define TB_PAGEUP 2 |
| 1472 | #define TB_PAGEDOWN 3 |
| 1473 | #define TB_THUMBPOSITION 4 |
| 1474 | #define TB_THUMBTRACK 5 |
| 1475 | #define TB_TOP 6 |
| 1476 | #define TB_BOTTOM 7 |
| 1477 | #define TB_ENDTRACK 8 |
| 1478 | |
| 1479 | #define TBCD_TICS 0x0001 |
| 1480 | #define TBCD_THUMB 0x0002 |
| 1481 | #define TBCD_CHANNEL 0x0003 |
| 1482 | |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1483 | #define TBM_GETPOS (WM_USER) |
| 1484 | #define TBM_GETRANGEMIN (WM_USER+1) |
| 1485 | #define TBM_GETRANGEMAX (WM_USER+2) |
| 1486 | #define TBM_GETTIC (WM_USER+3) |
| 1487 | #define TBM_SETTIC (WM_USER+4) |
| 1488 | #define TBM_SETPOS (WM_USER+5) |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1489 | #define TBM_SETRANGE (WM_USER+6) |
| 1490 | #define TBM_SETRANGEMIN (WM_USER+7) |
| 1491 | #define TBM_SETRANGEMAX (WM_USER+8) |
| 1492 | #define TBM_CLEARTICS (WM_USER+9) |
| 1493 | #define TBM_SETSEL (WM_USER+10) |
| 1494 | #define TBM_SETSELSTART (WM_USER+11) |
| 1495 | #define TBM_SETSELEND (WM_USER+12) |
| 1496 | #define TBM_GETPTICS (WM_USER+14) |
| 1497 | #define TBM_GETTICPOS (WM_USER+15) |
| 1498 | #define TBM_GETNUMTICS (WM_USER+16) |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1499 | #define TBM_GETSELSTART (WM_USER+17) |
| 1500 | #define TBM_GETSELEND (WM_USER+18) |
| 1501 | #define TBM_CLEARSEL (WM_USER+19) |
| 1502 | #define TBM_SETTICFREQ (WM_USER+20) |
| 1503 | #define TBM_SETPAGESIZE (WM_USER+21) |
| 1504 | #define TBM_GETPAGESIZE (WM_USER+22) |
| 1505 | #define TBM_SETLINESIZE (WM_USER+23) |
| 1506 | #define TBM_GETLINESIZE (WM_USER+24) |
| 1507 | #define TBM_GETTHUMBRECT (WM_USER+25) |
| 1508 | #define TBM_GETCHANNELRECT (WM_USER+26) |
| 1509 | #define TBM_SETTHUMBLENGTH (WM_USER+27) |
| 1510 | #define TBM_GETTHUMBLENGTH (WM_USER+28) |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1511 | #define TBM_SETTOOLTIPS (WM_USER+29) |
| 1512 | #define TBM_GETTOOLTIPS (WM_USER+30) |
| 1513 | #define TBM_SETTIPSIDE (WM_USER+31) |
| 1514 | #define TBM_SETBUDDY (WM_USER+32) |
| 1515 | #define TBM_GETBUDDY (WM_USER+33) |
| 1516 | #define TBM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT |
| 1517 | #define TBM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1518 | |
| 1519 | |
| 1520 | /* Pager control */ |
| 1521 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1522 | #define WC_PAGESCROLLERA "SysPager" |
| 1523 | #define WC_PAGESCROLLERW L"SysPager" |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1524 | #define WC_PAGESCROLLER WINELIB_NAME_AW(WC_PAGESCROLLER) |
| 1525 | |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 1526 | #define PGS_VERT 0x00000000 |
| 1527 | #define PGS_HORZ 0x00000001 |
| 1528 | #define PGS_AUTOSCROLL 0x00000002 |
| 1529 | #define PGS_DRAGNDROP 0x00000004 |
| 1530 | |
| 1531 | #define PGF_INVISIBLE 0 |
| 1532 | #define PGF_NORMAL 1 |
| 1533 | #define PGF_GRAYED 2 |
| 1534 | #define PGF_DEPRESSED 4 |
| 1535 | #define PGF_HOT 8 |
| 1536 | |
| 1537 | #define PGB_TOPORLEFT 0 |
| 1538 | #define PGB_BOTTOMORRIGHT 1 |
| 1539 | |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1540 | /* only used with PGN_SCROLL */ |
| 1541 | #define PGF_SCROLLUP 1 |
| 1542 | #define PGF_SCROLLDOWN 2 |
| 1543 | #define PGF_SCROLLLEFT 4 |
| 1544 | #define PGF_SCROLLRIGHT 8 |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 1545 | |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1546 | #define PGK_SHIFT 1 |
| 1547 | #define PGK_CONTROL 2 |
| 1548 | #define PGK_MENU 4 |
| 1549 | |
| 1550 | /* only used with PGN_CALCSIZE */ |
| 1551 | #define PGF_CALCWIDTH 1 |
| 1552 | #define PGF_CALCHEIGHT 2 |
| 1553 | |
| 1554 | #define PGM_FIRST 0x1400 |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 1555 | #define PGM_SETCHILD (PGM_FIRST+1) |
| 1556 | #define PGM_RECALCSIZE (PGM_FIRST+2) |
| 1557 | #define PGM_FORWARDMOUSE (PGM_FIRST+3) |
| 1558 | #define PGM_SETBKCOLOR (PGM_FIRST+4) |
| 1559 | #define PGM_GETBKCOLOR (PGM_FIRST+5) |
| 1560 | #define PGM_SETBORDER (PGM_FIRST+6) |
| 1561 | #define PGM_GETBORDER (PGM_FIRST+7) |
| 1562 | #define PGM_SETPOS (PGM_FIRST+8) |
| 1563 | #define PGM_GETPOS (PGM_FIRST+9) |
| 1564 | #define PGM_SETBUTTONSIZE (PGM_FIRST+10) |
| 1565 | #define PGM_GETBUTTONSIZE (PGM_FIRST+11) |
| 1566 | #define PGM_GETBUTTONSTATE (PGM_FIRST+12) |
| 1567 | #define PGM_GETDROPTARGET CCM_GETDROPTARGET |
| 1568 | |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1569 | #define PGN_FIRST (0U-900U) |
| 1570 | #define PGN_LAST (0U-950U) |
| 1571 | #define PGN_SCROLL (PGN_FIRST-1) |
| 1572 | #define PGN_CALCSIZE (PGN_FIRST-2) |
| 1573 | |
| 1574 | typedef struct |
| 1575 | { |
| 1576 | NMHDR hdr; |
| 1577 | WORD fwKeys; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1578 | RECT rcParent; |
| 1579 | INT iDir; |
| 1580 | INT iXpos; |
| 1581 | INT iYpos; |
| 1582 | INT iScroll; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1583 | } NMPGSCROLL, *LPNMPGSCROLL; |
| 1584 | |
| 1585 | typedef struct |
| 1586 | { |
| 1587 | NMHDR hdr; |
| 1588 | DWORD dwFlag; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1589 | INT iWidth; |
| 1590 | INT iHeight; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1591 | } NMPGCALCSIZE, *LPNMPGCALCSIZE; |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 1592 | |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1593 | |
| 1594 | /* Treeview control */ |
| 1595 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1596 | #define WC_TREEVIEWA "SysTreeView32" |
| 1597 | #define WC_TREEVIEWW L"SysTreeView32" |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1598 | #define WC_TREEVIEW WINELIB_NAME_AW(WC_TREEVIEW) |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1599 | |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 1600 | #define TVSIL_NORMAL 0 |
| 1601 | #define TVSIL_STATE 2 |
| 1602 | |
| 1603 | #define TV_FIRST 0x1100 |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1604 | #define TVM_INSERTITEMA (TV_FIRST+0) |
| 1605 | #define TVM_INSERTITEMW (TV_FIRST+50) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1606 | #define TVM_INSERTITEM WINELIB_NAME_AW(TVM_INSERTITEM) |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1607 | #define TVM_DELETEITEM (TV_FIRST+1) |
| 1608 | #define TVM_EXPAND (TV_FIRST+2) |
| 1609 | #define TVM_GETITEMRECT (TV_FIRST+4) |
| 1610 | #define TVM_GETCOUNT (TV_FIRST+5) |
| 1611 | #define TVM_GETINDENT (TV_FIRST+6) |
| 1612 | #define TVM_SETINDENT (TV_FIRST+7) |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 1613 | #define TVM_GETIMAGELIST (TV_FIRST+8) |
| 1614 | #define TVM_SETIMAGELIST (TV_FIRST+9) |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1615 | #define TVM_GETNEXTITEM (TV_FIRST+10) |
| 1616 | #define TVM_SELECTITEM (TV_FIRST+11) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1617 | #define TVM_GETITEMA (TV_FIRST+12) |
| 1618 | #define TVM_GETITEMW (TV_FIRST+62) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1619 | #define TVM_GETITEM WINELIB_NAME_AW(TVM_GETITEM) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1620 | #define TVM_SETITEMA (TV_FIRST+13) |
| 1621 | #define TVM_SETITEMW (TV_FIRST+63) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1622 | #define TVM_SETITEM WINELIB_NAME_AW(TVM_SETITEM) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1623 | #define TVM_EDITLABELA (TV_FIRST+14) |
| 1624 | #define TVM_EDITLABELW (TV_FIRST+65) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1625 | #define TVM_EDITLABEL WINELIB_NAME_AW(TVM_EDITLABEL) |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1626 | #define TVM_GETEDITCONTROL (TV_FIRST+15) |
| 1627 | #define TVM_GETVISIBLECOUNT (TV_FIRST+16) |
| 1628 | #define TVM_HITTEST (TV_FIRST+17) |
| 1629 | #define TVM_CREATEDRAGIMAGE (TV_FIRST+18) |
| 1630 | #define TVM_SORTCHILDREN (TV_FIRST+19) |
| 1631 | #define TVM_ENSUREVISIBLE (TV_FIRST+20) |
| 1632 | #define TVM_SORTCHILDRENCB (TV_FIRST+21) |
| 1633 | #define TVM_ENDEDITLABELNOW (TV_FIRST+22) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1634 | #define TVM_GETISEARCHSTRINGA (TV_FIRST+23) |
| 1635 | #define TVM_GETISEARCHSTRINGW (TV_FIRST+64) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1636 | #define TVM_GETISEARCHSTRING WINELIB_NAME_AW(TVM_GETISEARCHSTRING) |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 1637 | #define TVM_SETTOOLTIPS (TV_FIRST+24) |
| 1638 | #define TVM_GETTOOLTIPS (TV_FIRST+25) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1639 | #define TVM_SETINSERTMARK (TV_FIRST+26) |
| 1640 | #define TVM_SETITEMHEIGHT (TV_FIRST+27) |
| 1641 | #define TVM_GETITEMHEIGHT (TV_FIRST+28) |
| 1642 | #define TVM_SETBKCOLOR (TV_FIRST+29) |
| 1643 | #define TVM_SETTEXTCOLOR (TV_FIRST+30) |
| 1644 | #define TVM_GETBKCOLOR (TV_FIRST+31) |
| 1645 | #define TVM_GETTEXTCOLOR (TV_FIRST+32) |
| 1646 | #define TVM_SETSCROLLTIME (TV_FIRST+33) |
| 1647 | #define TVM_GETSCROLLTIME (TV_FIRST+34) |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 1648 | #define TVM_UNKNOWN35 (TV_FIRST+35) |
| 1649 | #define TVM_UNKNOWN36 (TV_FIRST+36) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1650 | #define TVM_SETINSERTMARKCOLOR (TV_FIRST+37) |
| 1651 | #define TVM_GETINSERTMARKCOLOR (TV_FIRST+38) |
| 1652 | #define TVM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT |
| 1653 | #define TVM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT |
| 1654 | |
| 1655 | #define TVN_FIRST (0U-400U) |
| 1656 | #define TVN_LAST (0U-499U) |
| 1657 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1658 | #define TVN_SELCHANGING (TVN_FIRST-1) |
| 1659 | #define TVN_SELCHANGED (TVN_FIRST-2) |
| 1660 | #define TVN_GETDISPINFO (TVN_FIRST-3) |
| 1661 | #define TVN_SETDISPINFO (TVN_FIRST-4) |
| 1662 | #define TVN_ITEMEXPANDING (TVN_FIRST-5) |
| 1663 | #define TVN_ITEMEXPANDED (TVN_FIRST-6) |
| 1664 | #define TVN_BEGINDRAG (TVN_FIRST-7) |
| 1665 | #define TVN_BEGINRDRAG (TVN_FIRST-8) |
| 1666 | #define TVN_DELETEITEM (TVN_FIRST-9) |
| 1667 | #define TVN_BEGINLABELEDIT (TVN_FIRST-10) |
| 1668 | #define TVN_ENDLABELEDIT (TVN_FIRST-11) |
| 1669 | #define TVN_KEYDOWN (TVN_FIRST-12) |
| 1670 | #define TVN_GETINFOTIPA (TVN_FIRST-13) |
| 1671 | #define TVN_GETINFOTIPW (TVN_FIRST-14) |
| 1672 | #define TVN_SINGLEEXPAND (TVN_FIRST-15) |
| 1673 | |
| 1674 | |
| 1675 | #define TVN_SELCHANGINGW (TVN_FIRST-50) |
| 1676 | #define TVN_SELCHANGEDW (TVN_FIRST-51) |
| 1677 | #define TVN_GETDISPINFOW (TVN_FIRST-52) |
| 1678 | #define TVN_SETDISPINFOW (TVN_FIRST-53) |
| 1679 | #define TVN_ITEMEXPANDINGW (TVN_FIRST-54) |
| 1680 | #define TVN_ITEMEXPANDEDW (TVN_FIRST-55) |
| 1681 | #define TVN_BEGINDRAGW (TVN_FIRST-56) |
| 1682 | #define TVN_BEGINRDRAGW (TVN_FIRST-57) |
| 1683 | #define TVN_DELETEITEMW (TVN_FIRST-58) |
| 1684 | #define TVN_BEGINLABELEDITW (TVN_FIRST-59) |
| 1685 | #define TVN_ENDLABELEDITW (TVN_FIRST-60) |
| 1686 | |
| 1687 | |
| 1688 | |
| 1689 | #define TVIF_TEXT 0x0001 |
| 1690 | #define TVIF_IMAGE 0x0002 |
| 1691 | #define TVIF_PARAM 0x0004 |
| 1692 | #define TVIF_STATE 0x0008 |
| 1693 | #define TVIF_HANDLE 0x0010 |
| 1694 | #define TVIF_SELECTEDIMAGE 0x0020 |
| 1695 | #define TVIF_CHILDREN 0x0040 |
| 1696 | #define TVIF_INTEGRAL 0x0080 |
| 1697 | #define TVIF_DI_SETITEM 0x1000 |
| 1698 | |
Zygo Blaxell | f861e27 | 1999-02-02 13:59:17 +0000 | [diff] [blame] | 1699 | #define TVI_ROOT ((HTREEITEM)0xffff0000) /* -65536 */ |
| 1700 | #define TVI_FIRST ((HTREEITEM)0xffff0001) /* -65535 */ |
| 1701 | #define TVI_LAST ((HTREEITEM)0xffff0002) /* -65534 */ |
| 1702 | #define TVI_SORT ((HTREEITEM)0xffff0003) /* -65533 */ |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1703 | |
| 1704 | #define TVIS_FOCUSED 0x0001 |
| 1705 | #define TVIS_SELECTED 0x0002 |
| 1706 | #define TVIS_CUT 0x0004 |
| 1707 | #define TVIS_DROPHILITED 0x0008 |
| 1708 | #define TVIS_BOLD 0x0010 |
| 1709 | #define TVIS_EXPANDED 0x0020 |
| 1710 | #define TVIS_EXPANDEDONCE 0x0040 |
| 1711 | #define TVIS_OVERLAYMASK 0x0f00 |
| 1712 | #define TVIS_STATEIMAGEMASK 0xf000 |
| 1713 | #define TVIS_USERMASK 0xf000 |
| 1714 | |
| 1715 | #define TVHT_NOWHERE 0x0001 |
| 1716 | #define TVHT_ONITEMICON 0x0002 |
| 1717 | #define TVHT_ONITEMLABEL 0x0004 |
| 1718 | #define TVHT_ONITEMINDENT 0x0008 |
| 1719 | #define TVHT_ONITEMBUTTON 0x0010 |
| 1720 | #define TVHT_ONITEMRIGHT 0x0020 |
| 1721 | #define TVHT_ONITEMSTATEICON 0x0040 |
| 1722 | #define TVHT_ONITEM 0x0046 |
| 1723 | #define TVHT_ABOVE 0x0100 |
| 1724 | #define TVHT_BELOW 0x0200 |
| 1725 | #define TVHT_TORIGHT 0x0400 |
| 1726 | #define TVHT_TOLEFT 0x0800 |
| 1727 | |
| 1728 | #define TVS_HASBUTTONS 0x0001 |
| 1729 | #define TVS_HASLINES 0x0002 |
| 1730 | #define TVS_LINESATROOT 0x0004 |
| 1731 | #define TVS_EDITLABELS 0x0008 |
| 1732 | #define TVS_DISABLEDRAGDROP 0x0010 |
| 1733 | #define TVS_SHOWSELALWAYS 0x0020 |
| 1734 | #define TVS_RTLREADING 0x0040 |
| 1735 | #define TVS_NOTOOLTIPS 0x0080 |
| 1736 | #define TVS_CHECKBOXES 0x0100 |
| 1737 | #define TVS_TRACKSELECT 0x0200 |
| 1738 | #define TVS_SINGLEEXPAND 0x0400 |
| 1739 | #define TVS_INFOTIP 0x0800 |
| 1740 | #define TVS_FULLROWSELECT 0x1000 |
| 1741 | #define TVS_NOSCROLL 0x2000 |
| 1742 | #define TVS_NONEVENHEIGHT 0x4000 |
| 1743 | |
| 1744 | #define TVS_SHAREDIMAGELISTS 0x0000 |
| 1745 | #define TVS_PRIVATEIMAGELISTS 0x0400 |
| 1746 | |
| 1747 | |
| 1748 | #define TVE_COLLAPSE 0x0001 |
| 1749 | #define TVE_EXPAND 0x0002 |
| 1750 | #define TVE_TOGGLE 0x0003 |
| 1751 | #define TVE_EXPANDPARTIAL 0x4000 |
| 1752 | #define TVE_COLLAPSERESET 0x8000 |
| 1753 | |
| 1754 | #define TVGN_ROOT 0 |
| 1755 | #define TVGN_NEXT 1 |
| 1756 | #define TVGN_PREVIOUS 2 |
| 1757 | #define TVGN_PARENT 3 |
| 1758 | #define TVGN_CHILD 4 |
| 1759 | #define TVGN_FIRSTVISIBLE 5 |
| 1760 | #define TVGN_NEXTVISIBLE 6 |
| 1761 | #define TVGN_PREVIOUSVISIBLE 7 |
| 1762 | #define TVGN_DROPHILITE 8 |
| 1763 | #define TVGN_CARET 9 |
| 1764 | #define TVGN_LASTVISIBLE 10 |
| 1765 | |
| 1766 | #define TVC_UNKNOWN 0x00 |
| 1767 | #define TVC_BYMOUSE 0x01 |
| 1768 | #define TVC_BYKEYBOARD 0x02 |
| 1769 | |
| 1770 | |
Zygo Blaxell | f861e27 | 1999-02-02 13:59:17 +0000 | [diff] [blame] | 1771 | typedef struct _TREEITEM *HTREEITEM; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1772 | |
| 1773 | typedef struct { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1774 | UINT mask; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1775 | HTREEITEM hItem; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1776 | UINT state; |
| 1777 | UINT stateMask; |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 1778 | LPSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1779 | INT cchTextMax; |
| 1780 | INT iImage; |
| 1781 | INT iSelectedImage; |
| 1782 | INT cChildren; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1783 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1784 | } TVITEMA, *LPTVITEMA; |
Juergen Schmied | 26ff83d | 1999-01-26 10:35:53 +0000 | [diff] [blame] | 1785 | |
| 1786 | typedef struct { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1787 | UINT mask; |
Juergen Schmied | 26ff83d | 1999-01-26 10:35:53 +0000 | [diff] [blame] | 1788 | HTREEITEM hItem; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1789 | UINT state; |
| 1790 | UINT stateMask; |
Juergen Schmied | 26ff83d | 1999-01-26 10:35:53 +0000 | [diff] [blame] | 1791 | LPWSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1792 | INT cchTextMax; |
| 1793 | INT iImage; |
| 1794 | INT iSelectedImage; |
| 1795 | INT cChildren; |
Juergen Schmied | 26ff83d | 1999-01-26 10:35:53 +0000 | [diff] [blame] | 1796 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1797 | } TVITEMW, *LPTVITEMW; |
Juergen Schmied | 26ff83d | 1999-01-26 10:35:53 +0000 | [diff] [blame] | 1798 | |
Zygo Blaxell | 50d41fa | 1999-02-09 14:20:05 +0000 | [diff] [blame] | 1799 | #define TVITEM WINELIB_NAME_AW(TVITEM) |
| 1800 | #define LPTVITEM WINELIB_NAME_AW(LPTVITEM) |
Zygo Blaxell | 50d41fa | 1999-02-09 14:20:05 +0000 | [diff] [blame] | 1801 | #define TV_ITEM TVITEM |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1802 | |
| 1803 | typedef struct { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1804 | UINT mask; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1805 | HTREEITEM hItem; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1806 | UINT state; |
| 1807 | UINT stateMask; |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 1808 | LPSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1809 | INT cchTextMax; |
| 1810 | INT iImage; |
| 1811 | INT iSelectedImage; |
| 1812 | INT cChildren; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1813 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1814 | INT iIntegral; |
| 1815 | } TVITEMEXA, *LPTVITEMEXA; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1816 | |
Juergen Schmied | 26ff83d | 1999-01-26 10:35:53 +0000 | [diff] [blame] | 1817 | typedef struct { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1818 | UINT mask; |
Juergen Schmied | 26ff83d | 1999-01-26 10:35:53 +0000 | [diff] [blame] | 1819 | HTREEITEM hItem; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1820 | UINT state; |
| 1821 | UINT stateMask; |
Juergen Schmied | 26ff83d | 1999-01-26 10:35:53 +0000 | [diff] [blame] | 1822 | LPWSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1823 | INT cchTextMax; |
| 1824 | INT iImage; |
| 1825 | INT iSelectedImage; |
| 1826 | INT cChildren; |
Juergen Schmied | 26ff83d | 1999-01-26 10:35:53 +0000 | [diff] [blame] | 1827 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1828 | INT iIntegral; |
| 1829 | } TVITEMEXW, *LPTVITEMEXW; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1830 | |
Zygo Blaxell | 50d41fa | 1999-02-09 14:20:05 +0000 | [diff] [blame] | 1831 | #define TVITEMEX WINELIB_NAME_AW(TVITEMEX) |
| 1832 | #define LPTVITEMEX WINELIB_NAME_AW(LPTVITEMEX) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1833 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1834 | typedef struct tagTVINSERTSTRUCTA { |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1835 | HTREEITEM hParent; |
| 1836 | HTREEITEM hInsertAfter; |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 1837 | union { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1838 | TVITEMEXA itemex; |
| 1839 | TVITEMA item; |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 1840 | } DUMMYUNIONNAME; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1841 | } TVINSERTSTRUCTA, *LPTVINSERTSTRUCTA; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1842 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1843 | typedef struct tagTVINSERTSTRUCTW { |
Juergen Schmied | 26ff83d | 1999-01-26 10:35:53 +0000 | [diff] [blame] | 1844 | HTREEITEM hParent; |
| 1845 | HTREEITEM hInsertAfter; |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 1846 | union { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1847 | TVITEMEXW itemex; |
| 1848 | TVITEMW item; |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 1849 | } DUMMYUNIONNAME; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1850 | } TVINSERTSTRUCTW, *LPTVINSERTSTRUCTW; |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 1851 | |
Zygo Blaxell | 50d41fa | 1999-02-09 14:20:05 +0000 | [diff] [blame] | 1852 | #define TV_INSERTSTRUCT WINELIB_NAME_AW(TVINSERTSTRUCT) |
| 1853 | #define LPTV_INSERTSTRUCT WINELIB_NAME_AW(LPTVINSERTSTRUCT) |
Juergen Schmied | 26ff83d | 1999-01-26 10:35:53 +0000 | [diff] [blame] | 1854 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1855 | #define TVINSERTSTRUCT_V1_SIZEA CCSIZEOF_STRUCT(TVINSERTSTRUCTA, item) |
| 1856 | #define TVINSERTSTRUCT_V1_SIZEW CCSIZEOF_STRUCT(TVINSERTSTRUCTW, item) |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 1857 | #define TVINSERTSTRUCT_V1_SIZE WINELIB_NAME_AW(TVINSERTSTRUCT_V1_SIZE) |
| 1858 | |
| 1859 | |
| 1860 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1861 | typedef struct tagNMTREEVIEWA { |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1862 | NMHDR hdr; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1863 | UINT action; |
| 1864 | TVITEMA itemOld; |
| 1865 | TVITEMA itemNew; |
| 1866 | POINT ptDrag; |
| 1867 | } NMTREEVIEWA, *LPNMTREEVIEWA; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1868 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1869 | typedef struct tagNMTREEVIEWW { |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1870 | NMHDR hdr; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1871 | UINT action; |
| 1872 | TVITEMW itemOld; |
| 1873 | TVITEMW itemNew; |
| 1874 | POINT ptDrag; |
| 1875 | } NMTREEVIEWW, *LPNMTREEVIEWW; |
Juergen Schmied | 26ff83d | 1999-01-26 10:35:53 +0000 | [diff] [blame] | 1876 | |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 1877 | #define NMTREEVIEW WINELIB_NAME_AW(NMTREEVIEW) |
Alexandre Julliard | e32be24 | 1999-02-10 06:43:59 +0000 | [diff] [blame] | 1878 | #define NM_TREEVIEW WINELIB_NAME_AW(NMTREEVIEW) |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 1879 | #define LPNMTREEVIEW WINELIB_NAME_AW(LPNMTREEVIEW) |
Juergen Schmied | 26ff83d | 1999-01-26 10:35:53 +0000 | [diff] [blame] | 1880 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1881 | typedef struct tagTVDISPINFOA { |
Juergen Schmied | 26ff83d | 1999-01-26 10:35:53 +0000 | [diff] [blame] | 1882 | NMHDR hdr; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1883 | TVITEMA item; |
| 1884 | } NMTVDISPINFOA, *LPNMTVDISPINFOA; |
Juergen Schmied | 26ff83d | 1999-01-26 10:35:53 +0000 | [diff] [blame] | 1885 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1886 | typedef struct tagTVDISPINFOW { |
Juergen Schmied | 26ff83d | 1999-01-26 10:35:53 +0000 | [diff] [blame] | 1887 | NMHDR hdr; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1888 | TVITEMW item; |
| 1889 | } NMTVDISPINFOW, *LPNMTVDISPINFOW; |
Juergen Schmied | 26ff83d | 1999-01-26 10:35:53 +0000 | [diff] [blame] | 1890 | |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 1891 | #define NMTVDISPINFO WINELIB_NAME_AW(NMTVDISPINFO) |
| 1892 | #define LPNMTVDISPINFO WINELIB_NAME_AW(LPNMTVDISPINFO) |
| 1893 | #define TV_DISPINFO NMTVDISPINFO |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1894 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1895 | typedef INT (CALLBACK *PFNTVCOMPARE)(LPARAM, LPARAM, LPARAM); |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1896 | |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 1897 | typedef struct tagTVSORTCB |
| 1898 | { |
| 1899 | HTREEITEM hParent; |
| 1900 | PFNTVCOMPARE lpfnCompare; |
| 1901 | LPARAM lParam; |
| 1902 | } TVSORTCB, *LPTVSORTCB; |
| 1903 | |
| 1904 | #define TV_SORTCB TVSORTCB |
| 1905 | #define LPTV_SORTCB LPTVSORTCB |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1906 | |
| 1907 | typedef struct tagTVHITTESTINFO { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1908 | POINT pt; |
| 1909 | UINT flags; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1910 | HTREEITEM hItem; |
| 1911 | } TVHITTESTINFO, *LPTVHITTESTINFO; |
| 1912 | |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 1913 | #define TV_HITTESTINFO TVHITTESTINFO |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1914 | |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 1915 | |
| 1916 | /* Custom Draw Treeview */ |
| 1917 | |
| 1918 | #define NMTVCUSTOMDRAW_V3_SIZE CCSIZEOF_STRUCT(NMTVCUSTOMDRAW, clrTextBk) |
| 1919 | |
| 1920 | #define TVCDRF_NOIMAGES 0x00010000 |
| 1921 | |
| 1922 | typedef struct tagNMTVCUSTOMDRAW |
| 1923 | { |
| 1924 | NMCUSTOMDRAW nmcd; |
| 1925 | COLORREF clrText; |
| 1926 | COLORREF clrTextBk; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1927 | INT iLevel; /* IE>0x0400 */ |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 1928 | } NMTVCUSTOMDRAW, *LPNMTVCUSTOMDRAW; |
| 1929 | |
| 1930 | /* Treeview tooltips */ |
| 1931 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1932 | typedef struct tagNMTVGETINFOTIPA |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 1933 | { |
| 1934 | NMHDR hdr; |
| 1935 | LPSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1936 | INT cchTextMax; |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 1937 | HTREEITEM hItem; |
| 1938 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1939 | } NMTVGETINFOTIPA, *LPNMTVGETINFOTIPA; |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 1940 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1941 | typedef struct tagNMTVGETINFOTIPW |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 1942 | { |
| 1943 | NMHDR hdr; |
| 1944 | LPWSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1945 | INT cchTextMax; |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 1946 | HTREEITEM hItem; |
| 1947 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1948 | } NMTVGETINFOTIPW, *LPNMTVGETINFOTIPW; |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 1949 | |
| 1950 | |
| 1951 | |
| 1952 | |
| 1953 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1954 | |
| 1955 | |
| 1956 | #define TreeView_InsertItemA(hwnd, phdi) \ |
| 1957 | (INT)SendMessageA((hwnd), TVM_INSERTITEMA, 0, \ |
| 1958 | (LPARAM)(LPTVINSERTSTRUCTA)(phdi)) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1959 | #define TreeView_DeleteItem(hwnd, hItem) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1960 | (BOOL)SendMessageA((hwnd), TVM_DELETEITEM, 0, (LPARAM)(HTREEITEM)(hItem)) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1961 | #define TreeView_DeleteAllItems(hwnd) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1962 | (BOOL)SendMessageA((hwnd), TVM_DELETEITEM, 0, (LPARAM)TVI_ROOT) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1963 | #define TreeView_Expand(hwnd, hitem, code) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1964 | (BOOL)SendMessageA((hwnd), TVM_EXPAND, (WPARAM)code, \ |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1965 | (LPARAM)(HTREEITEM)(hitem)) |
| 1966 | |
| 1967 | #define TreeView_GetItemRect(hwnd, hitem, prc, code) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1968 | (*(HTREEITEM *)prc = (hitem), (BOOL)SendMessageA((hwnd), \ |
| 1969 | TVM_GETITEMRECT, (WPARAM)(code), (LPARAM)(RECT *)(prc))) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1970 | |
| 1971 | #define TreeView_GetCount(hwnd) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1972 | (UINT)SendMessageA((hwnd), TVM_GETCOUNT, 0, 0) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1973 | #define TreeView_GetIndent(hwnd) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1974 | (UINT)SendMessageA((hwnd), TVM_GETINDENT, 0, 0) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1975 | #define TreeView_SetIndent(hwnd, indent) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1976 | (BOOL)SendMessageA((hwnd), TVM_SETINDENT, (WPARAM)indent, 0) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1977 | |
| 1978 | #define TreeView_GetImageList(hwnd, iImage) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1979 | (HIMAGELIST)SendMessageA((hwnd), TVM_GETIMAGELIST, iImage, 0) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1980 | |
| 1981 | #define TreeView_SetImageList(hwnd, himl, iImage) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1982 | (HIMAGELIST)SendMessageA((hwnd), TVM_SETIMAGELIST, iImage, \ |
| 1983 | (LPARAM)(UINT)(HIMAGELIST)(himl)) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1984 | |
| 1985 | #define TreeView_GetNextItem(hwnd, hitem, code) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 1986 | (HTREEITEM)SendMessageA((hwnd), TVM_GETNEXTITEM, (WPARAM)code,\ |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1987 | (LPARAM)(HTREEITEM) (hitem)) |
| 1988 | |
| 1989 | #define TreeView_GetChild(hwnd, hitem) \ |
| 1990 | TreeView_GetNextItem(hwnd, hitem , TVGN_CHILD) |
| 1991 | #define TreeView_GetNextSibling(hwnd, hitem) \ |
| 1992 | TreeView_GetNextItem(hwnd, hitem , TVGN_NEXT) |
| 1993 | #define TreeView_GetPrevSibling(hwnd, hitem) \ |
| 1994 | TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUS) |
| 1995 | #define TreeView_GetParent(hwnd, hitem) \ |
| 1996 | TreeView_GetNextItem(hwnd, hitem , TVGN_PARENT) |
| 1997 | #define TreeView_GetFirstVisible(hwnd) \ |
| 1998 | TreeView_GetNextItem(hwnd, NULL, TVGN_FIRSTVISIBLE) |
| 1999 | #define TreeView_GetLastVisible(hwnd) \ |
| 2000 | TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE) |
| 2001 | #define TreeView_GetNextVisible(hwnd, hitem) \ |
| 2002 | TreeView_GetNextItem(hwnd, hitem , TVGN_NEXTVISIBLE) |
| 2003 | #define TreeView_GetPrevVisible(hwnd, hitem) \ |
| 2004 | TreeView_GetNextItem(hwnd, hitem , TVGN_PREVIOUSVISIBLE) |
| 2005 | #define TreeView_GetSelection(hwnd) \ |
| 2006 | TreeView_GetNextItem(hwnd, NULL, TVGN_CARET) |
| 2007 | #define TreeView_GetDropHilight(hwnd) \ |
| 2008 | TreeView_GetNextItem(hwnd, NULL, TVGN_DROPHILITE) |
| 2009 | #define TreeView_GetRoot(hwnd) \ |
| 2010 | TreeView_GetNextItem(hwnd, NULL, TVGN_ROOT) |
| 2011 | #define TreeView_GetLastVisible(hwnd) \ |
| 2012 | TreeView_GetNextItem(hwnd, NULL, TVGN_LASTVISIBLE) |
| 2013 | |
| 2014 | |
| 2015 | #define TreeView_Select(hwnd, hitem, code) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2016 | (UINT)SendMessageA((hwnd), TVM_SELECTITEM, (WPARAM)code, \ |
| 2017 | (LPARAM)(UINT)(hitem)) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2018 | |
| 2019 | |
| 2020 | #define TreeView_SelectItem(hwnd, hitem) \ |
| 2021 | TreeView_Select(hwnd, hitem, TVGN_CARET) |
| 2022 | #define TreeView_SelectDropTarget(hwnd, hitem) \ |
| 2023 | TreeView_Select(hwnd, hitem, TVGN_DROPHILITE) |
| 2024 | /* FIXME |
| 2025 | #define TreeView_SelectSetFirstVisible(hwnd, hitem) \ |
| 2026 | TreeView_Select(hwnd, hitem, TVGN_FIRSTVISIBLE) |
| 2027 | */ |
| 2028 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2029 | #define TreeView_GetItemA(hwnd, pitem) \ |
| 2030 | (BOOL)SendMessageA((hwnd), TVM_GETITEMA, 0, (LPARAM) (TVITEMA *)(pitem)) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2031 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2032 | #define TreeView_SetItemA(hwnd, pitem) \ |
| 2033 | (BOOL)SendMessageA((hwnd), TVM_SETITEMA, 0, (LPARAM)(const TVITEMA *)(pitem)) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2034 | |
| 2035 | #define TreeView_EditLabel(hwnd, hitem) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2036 | (HWND)SendMessageA((hwnd), TVM_EDITLABEL, 0, (LPARAM)(HTREEITEM)(hitem)) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2037 | |
| 2038 | |
| 2039 | #define TreeView_GetEditControl(hwnd) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2040 | (HWND)SendMessageA((hwnd), TVM_GETEDITCONTROL, 0, 0) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2041 | |
| 2042 | #define TreeView_GetVisibleCount(hwnd) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2043 | (UINT)SendMessageA((hwnd), TVM_GETVISIBLECOUNT, 0, 0) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2044 | |
| 2045 | #define TreeView_HitTest(hwnd, lpht) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2046 | (HTREEITEM)SendMessageA((hwnd), TVM_HITTEST, 0,\ |
Juergen Schmied | 26ff83d | 1999-01-26 10:35:53 +0000 | [diff] [blame] | 2047 | (LPARAM)(LPTVHITTESTINFO)(lpht)) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2048 | |
| 2049 | #define TreeView_CreateDragImage(hwnd, hitem) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2050 | (HIMAGELIST)SendMessageA((hwnd), TVM_CREATEDRAGIMAGE, 0,\ |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2051 | (LPARAM)(HTREEITEM)(hitem)) |
| 2052 | |
| 2053 | #define TreeView_SortChildren(hwnd, hitem, recurse) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2054 | (BOOL)SendMessageA((hwnd), TVM_SORTCHILDREN, (WPARAM)recurse,\ |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2055 | (LPARAM)(HTREEITEM)(hitem)) |
| 2056 | |
| 2057 | #define TreeView_EnsureVisible(hwnd, hitem) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2058 | (BOOL)SendMessageA((hwnd), TVM_ENSUREVISIBLE, 0, (LPARAM)(UINT)(hitem)) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2059 | |
| 2060 | #define TreeView_SortChildrenCB(hwnd, psort, recurse) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2061 | (BOOL)SendMessageA((hwnd), TVM_SORTCHILDRENCB, (WPARAM)recurse, \ |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2062 | (LPARAM)(LPTV_SORTCB)(psort)) |
| 2063 | |
| 2064 | #define TreeView_EndEditLabelNow(hwnd, fCancel) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2065 | (BOOL)SendMessageA((hwnd), TVM_ENDEDITLABELNOW, (WPARAM)fCancel, 0) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2066 | |
| 2067 | #define TreeView_GetISearchString(hwndTV, lpsz) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2068 | (BOOL)SendMessageA((hwndTV), TVM_GETISEARCHSTRING, 0, \ |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2069 | (LPARAM)(LPTSTR)lpsz) |
| 2070 | |
| 2071 | #define TreeView_SetItemHeight(hwnd, iHeight) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2072 | (INT)SendMessageA((hwnd), TVM_SETITEMHEIGHT, (WPARAM)iHeight, 0) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2073 | #define TreeView_GetItemHeight(hwnd) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2074 | (INT)SendMessageA((hwnd), TVM_GETITEMHEIGHT, 0, 0) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2075 | |
| 2076 | #define TreeView_SetBkColor(hwnd, clr) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2077 | (COLORREF)SendMessageA((hwnd), TVM_SETBKCOLOR, 0, (LPARAM)clr) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2078 | |
| 2079 | #define TreeView_SetTextColor(hwnd, clr) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2080 | (COLORREF)SendMessageA((hwnd), TVM_SETTEXTCOLOR, 0, (LPARAM)clr) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2081 | |
| 2082 | #define TreeView_GetBkColor(hwnd) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2083 | (COLORREF)SendMessageA((hwnd), TVM_GETBKCOLOR, 0, 0) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2084 | |
| 2085 | #define TreeView_GetTextColor(hwnd) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2086 | (COLORREF)SendMessageA((hwnd), TVM_GETTEXTCOLOR, 0, 0) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2087 | |
| 2088 | #define TreeView_SetScrollTime(hwnd, uTime) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2089 | (UINT)SendMessageA((hwnd), TVM_SETSCROLLTIME, uTime, 0) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2090 | |
| 2091 | #define TreeView_GetScrollTime(hwnd) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2092 | (UINT)SendMessageA((hwnd), TVM_GETSCROLLTIME, 0, 0) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2093 | |
| 2094 | #define TreeView_SetInsertMarkColor(hwnd, clr) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2095 | (COLORREF)SendMessageA((hwnd), TVM_SETINSERTMARKCOLOR, 0, (LPARAM)clr) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2096 | #define TreeView_GetInsertMarkColor(hwnd) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2097 | (COLORREF)SendMessageA((hwnd), TVM_GETINSERTMARKCOLOR, 0, 0) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2098 | |
| 2099 | |
| 2100 | |
| 2101 | |
| 2102 | |
| 2103 | |
| 2104 | |
| 2105 | |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 2106 | |
| 2107 | /* Listview control */ |
| 2108 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2109 | #define WC_LISTVIEWA "SysListView32" |
| 2110 | #define WC_LISTVIEWW L"SysListView32" |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 2111 | #define WC_LISTVIEW WINELIB_NAME_AW(WC_LISTVIEW) |
| 2112 | |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 2113 | #define LVS_ICON 0x0000 |
| 2114 | #define LVS_REPORT 0x0001 |
| 2115 | #define LVS_SMALLICON 0x0002 |
| 2116 | #define LVS_LIST 0x0003 |
| 2117 | #define LVS_TYPEMASK 0x0003 |
| 2118 | #define LVS_SINGLESEL 0x0004 |
| 2119 | #define LVS_SHOWSELALWAYS 0x0008 |
| 2120 | #define LVS_SORTASCENDING 0x0010 |
| 2121 | #define LVS_SORTDESCENDING 0x0020 |
| 2122 | #define LVS_SHAREIMAGELISTS 0x0040 |
| 2123 | #define LVS_NOLABELWRAP 0x0080 |
| 2124 | #define LVS_AUTOARRANGE 0x0100 |
| 2125 | #define LVS_EDITLABELS 0x0200 |
| 2126 | #define LVS_OWNERDATA 0x1000 |
| 2127 | #define LVS_NOSCROLL 0x2000 |
| 2128 | #define LVS_TYPESTYLEMASK 0xfc00 |
| 2129 | #define LVS_ALIGNTOP 0x0000 |
| 2130 | #define LVS_ALIGNLEFT 0x0800 |
| 2131 | #define LVS_ALIGNMASK 0x0c00 |
| 2132 | #define LVS_OWNERDRAWFIXED 0x0400 |
| 2133 | #define LVS_NOCOLUMNHEADER 0x4000 |
| 2134 | #define LVS_NOSORTHEADER 0x8000 |
| 2135 | |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 2136 | #define LVCF_FMT 0x0001 |
| 2137 | #define LVCF_WIDTH 0x0002 |
| 2138 | #define LVCF_TEXT 0x0004 |
| 2139 | #define LVCF_SUBITEM 0x0008 |
| 2140 | #define LVCF_IMAGE 0x0010 |
| 2141 | #define LVCF_ORDER 0x0020 |
| 2142 | |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 2143 | #define LVCFMT_LEFT 0x0000 |
| 2144 | #define LVCFMT_RIGHT 0x0001 |
| 2145 | #define LVCFMT_CENTER 0x0002 |
| 2146 | #define LVCFMT_JUSTIFYMASK 0x0003 |
| 2147 | #define LVCFMT_IMAGE 0x0800 |
| 2148 | #define LVCFMT_BITMAP_ON_RIGHT 0x1000 |
| 2149 | #define LVCFMT_COL_HAS_IMAGES 0x8000 |
| 2150 | |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 2151 | #define LVSIL_NORMAL 0 |
| 2152 | #define LVSIL_SMALL 1 |
| 2153 | #define LVSIL_STATE 2 |
| 2154 | |
Luc Tourangeau | ce2b141 | 1999-02-17 12:58:48 +0000 | [diff] [blame] | 2155 | #define LVIS_FOCUSED 0x0001 |
| 2156 | #define LVIS_SELECTED 0x0002 |
| 2157 | #define LVIS_CUT 0x0004 |
| 2158 | #define LVIS_DROPHILITED 0x0008 |
| 2159 | #define LVIS_ACTIVATING 0x0020 |
| 2160 | |
| 2161 | #define LVFI_PARAM 0X0001 |
| 2162 | #define LVFI_STRING 0X0002 |
| 2163 | #define LVFI_PARTIAL 0X0008 |
| 2164 | #define LVFI_WRAP 0X0020 |
| 2165 | #define LVFI_NEARESTXY 0X0040 |
| 2166 | |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 2167 | #define LVIF_TEXT 0x0001 |
| 2168 | #define LVIF_IMAGE 0x0002 |
| 2169 | #define LVIF_PARAM 0x0004 |
| 2170 | #define LVIF_STATE 0x0008 |
| 2171 | #define LVIF_INDENT 0x0010 |
| 2172 | #define LVIF_NORECOMPUTE 0x0800 |
Luc Tourangeau | 4d6df2c | 1999-03-12 17:31:08 +0000 | [diff] [blame] | 2173 | #define LVIF_DI_SETITEM 0x1000 |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 2174 | |
Luc Tourangeau | ce2b141 | 1999-02-17 12:58:48 +0000 | [diff] [blame] | 2175 | #define LVIR_BOUNDS 0x0000 |
| 2176 | #define LVIR_LABEL 0x0002 |
| 2177 | #define LVIR_ICON 0x0001 |
| 2178 | #define LVIR_SELECTBOUNDS 0x0003 |
| 2179 | |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 2180 | #define LVIS_FOCUSED 0x0001 |
| 2181 | #define LVIS_SELECTED 0x0002 |
| 2182 | #define LVIS_CUT 0x0004 |
| 2183 | #define LVIS_DROPHILITED 0x0008 |
| 2184 | #define LVIS_ACTIVATING 0x0020 |
| 2185 | |
| 2186 | #define LVIS_OVERLAYMASK 0x0F00 |
| 2187 | #define LVIS_STATEIMAGEMASK 0xF000 |
| 2188 | |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 2189 | #define LVNI_ALL 0x0000 |
| 2190 | #define LVNI_FOCUSED 0x0001 |
| 2191 | #define LVNI_SELECTED 0x0002 |
| 2192 | #define LVNI_CUT 0x0004 |
| 2193 | #define LVNI_DROPHILITED 0x0008 |
| 2194 | |
| 2195 | #define LVNI_ABOVE 0x0100 |
| 2196 | #define LVNI_BELOW 0x0200 |
| 2197 | #define LVNI_TOLEFT 0x0400 |
| 2198 | #define LVNI_TORIGHT 0x0800 |
| 2199 | |
Eric Kohl | a867030 | 1998-11-08 11:30:27 +0000 | [diff] [blame] | 2200 | #define LVHT_NOWHERE 0x0001 |
| 2201 | #define LVHT_ONITEMICON 0x0002 |
| 2202 | #define LVHT_ONITEMLABEL 0x0004 |
| 2203 | #define LVHT_ONITEMSTATEICON 0x0008 |
| 2204 | #define LVHT_ONITEM (LVHT_ONITEMICON|LVHT_ONITEMLABEL|LVHT_ONITEMSTATEICON) |
| 2205 | |
| 2206 | #define LVHT_ABOVE 0x0008 |
| 2207 | #define LVHT_BELOW 0x0010 |
| 2208 | #define LVHT_TORIGHT 0x0020 |
| 2209 | #define LVHT_TOLEFT 0x0040 |
| 2210 | |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2211 | #define LVM_FIRST 0x1000 |
| 2212 | #define LVM_GETBKCOLOR (LVM_FIRST+0) |
| 2213 | #define LVM_SETBKCOLOR (LVM_FIRST+1) |
| 2214 | #define LVM_GETIMAGELIST (LVM_FIRST+2) |
| 2215 | #define LVM_SETIMAGELIST (LVM_FIRST+3) |
| 2216 | #define LVM_GETITEMCOUNT (LVM_FIRST+4) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2217 | #define LVM_GETITEMA (LVM_FIRST+5) |
| 2218 | #define LVM_GETITEMW (LVM_FIRST+75) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2219 | #define LVM_GETITEM WINELIB_NAME_AW(LVM_GETITEM) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2220 | #define LVM_SETITEMA (LVM_FIRST+6) |
| 2221 | #define LVM_SETITEMW (LVM_FIRST+76) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2222 | #define LVM_SETITEM WINELIB_NAME_AW(LVM_SETITEM) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2223 | #define LVM_INSERTITEMA (LVM_FIRST+7) |
| 2224 | #define LVM_INSERTITEMW (LVM_FIRST+77) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2225 | #define LVM_INSERTITEM WINELIB_NAME_AW(LVM_INSERTITEM) |
| 2226 | #define LVM_DELETEITEM (LVM_FIRST+8) |
| 2227 | #define LVM_DELETEALLITEMS (LVM_FIRST+9) |
| 2228 | #define LVM_GETCALLBACKMASK (LVM_FIRST+10) |
| 2229 | #define LVM_SETCALLBACKMASK (LVM_FIRST+11) |
| 2230 | #define LVM_GETNEXTITEM (LVM_FIRST+12) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2231 | #define LVM_FINDITEMA (LVM_FIRST+13) |
| 2232 | #define LVM_FINDITEMW (LVM_FIRST+83) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2233 | #define LVM_FINDITEM WINELIB_NAME_AW(LVM_FINDITEM) |
| 2234 | #define LVM_GETITEMRECT (LVM_FIRST+14) |
Alexandre Julliard | 73cc3ba | 1999-03-13 17:12:07 +0000 | [diff] [blame] | 2235 | #define LVM_SETITEMPOSITION (LVM_FIRST+15) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2236 | #define LVM_GETITEMPOSITION (LVM_FIRST+16) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2237 | #define LVM_GETSTRINGWIDTHA (LVM_FIRST+17) |
| 2238 | #define LVM_GETSTRINGWIDTHW (LVM_FIRST+87) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2239 | #define LVM_GETSTRINGWIDTH WINELIB_NAME_AW(LVM_GETSTRINGWIDTH) |
| 2240 | #define LVM_HITTEST (LVM_FIRST+18) |
| 2241 | #define LVM_ENSUREVISIBLE (LVM_FIRST+19) |
| 2242 | #define LVM_SCROLL (LVM_FIRST+20) |
| 2243 | #define LVM_REDRAWITEMS (LVM_FIRST+21) |
| 2244 | #define LVM_ARRANGE (LVM_FIRST+22) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2245 | #define LVM_EDITLABELA (LVM_FIRST+23) |
| 2246 | #define LVM_EDITLABELW (LVM_FIRST+118) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2247 | #define LVM_EDITLABEL WINELIB_NAME_AW(LVM_EDITLABEL) |
| 2248 | #define LVM_GETEDITCONTROL (LVM_FIRST+24) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2249 | #define LVM_GETCOLUMNA (LVM_FIRST+25) |
| 2250 | #define LVM_GETCOLUMNW (LVM_FIRST+95) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2251 | #define LVM_GETCOLUMN WINELIB_NAME_AW(LVM_GETCOLUMN) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2252 | #define LVM_SETCOLUMNA (LVM_FIRST+26) |
| 2253 | #define LVM_SETCOLUMNW (LVM_FIRST+96) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2254 | #define LVM_SETCOLUMN WINELIB_NAME_AW(LVM_SETCOLUMN) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2255 | #define LVM_INSERTCOLUMNA (LVM_FIRST+27) |
| 2256 | #define LVM_INSERTCOLUMNW (LVM_FIRST+97) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2257 | #define LVM_INSERTCOLUMN WINELIB_NAME_AW(LVM_INSERTCOLUMN) |
| 2258 | #define LVM_DELETECOLUMN (LVM_FIRST+28) |
| 2259 | #define LVM_GETCOLUMNWIDTH (LVM_FIRST+29) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2260 | #define LVM_SETCOLUMNWIDTH (LVM_FIRST+30) |
| 2261 | #define LVM_GETHEADER (LVM_FIRST+31) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2262 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2263 | #define LVM_CREATEDRAGIMAGE (LVM_FIRST+33) |
| 2264 | #define LVM_GETVIEWRECT (LVM_FIRST+34) |
| 2265 | #define LVM_GETTEXTCOLOR (LVM_FIRST+35) |
| 2266 | #define LVM_SETTEXTCOLOR (LVM_FIRST+36) |
| 2267 | #define LVM_GETTEXTBKCOLOR (LVM_FIRST+37) |
| 2268 | #define LVM_SETTEXTBKCOLOR (LVM_FIRST+38) |
| 2269 | #define LVM_GETTOPINDEX (LVM_FIRST+39) |
| 2270 | #define LVM_GETCOUNTPERPAGE (LVM_FIRST+40) |
| 2271 | #define LVM_GETORIGIN (LVM_FIRST+41) |
| 2272 | #define LVM_UPDATE (LVM_FIRST+42) |
| 2273 | #define LVM_SETITEMSTATE (LVM_FIRST+43) |
| 2274 | #define LVM_GETITEMSTATE (LVM_FIRST+44) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2275 | #define LVM_GETITEMTEXTA (LVM_FIRST+45) |
| 2276 | #define LVM_GETITEMTEXTW (LVM_FIRST+115) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2277 | #define LVM_GETITEMTEXT WINELIB_NAME_AW(LVM_GETITEMTEXT) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2278 | #define LVM_SETITEMTEXTA (LVM_FIRST+46) |
| 2279 | #define LVM_SETITEMTEXTW (LVM_FIRST+116) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2280 | #define LVM_SETITEMTEXT WINELIB_NAME_AW(LVM_SETITEMTEXT) |
| 2281 | #define LVM_SETITEMCOUNT (LVM_FIRST+47) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2282 | #define LVM_SORTITEMS (LVM_FIRST+48) |
Alexandre Julliard | 73cc3ba | 1999-03-13 17:12:07 +0000 | [diff] [blame] | 2283 | #define LVM_SETITEMPOSITION32 (LVM_FIRST+49) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2284 | #define LVM_GETSELECTEDCOUNT (LVM_FIRST+50) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2285 | #define LVM_GETITEMSPACING (LVM_FIRST+51) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2286 | #define LVM_GETISEARCHSTRINGA (LVM_FIRST+52) |
| 2287 | #define LVM_GETISEARCHSTRINGW (LVM_FIRST+117) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2288 | #define LVM_GETISEARCHSTRING WINELIB_NAME_AW(LVM_GETISEARCHSTRING) |
| 2289 | #define LVM_SETICONSPACING (LVM_FIRST+53) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2290 | #define LVM_SETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+54) |
| 2291 | #define LVM_GETEXTENDEDLISTVIEWSTYLE (LVM_FIRST+55) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2292 | #define LVM_GETSUBITEMRECT (LVM_FIRST+56) |
| 2293 | #define LVM_SUBITEMHITTEST (LVM_FIRST+57) |
| 2294 | #define LVM_SETCOLUMNORDERARRAY (LVM_FIRST+58) |
| 2295 | #define LVM_GETCOLUMNORDERARRAY (LVM_FIRST+59) |
| 2296 | #define LVM_SETHOTITEM (LVM_FIRST+60) |
| 2297 | #define LVM_GETHOTITEM (LVM_FIRST+61) |
| 2298 | #define LVM_SETHOTCURSOR (LVM_FIRST+62) |
| 2299 | #define LVM_GETHOTCURSOR (LVM_FIRST+63) |
| 2300 | #define LVM_APPROXIMATEVIEWRECT (LVM_FIRST+64) |
| 2301 | #define LVM_SETWORKAREAS (LVM_FIRST+65) |
| 2302 | #define LVM_GETSELECTIONMARK (LVM_FIRST+66) |
| 2303 | #define LVM_SETSELECTIONMARK (LVM_FIRST+67) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2304 | #define LVM_SETBKIMAGEA (LVM_FIRST+68) |
| 2305 | #define LVM_SETBKIMAGEW (LVM_FIRST+138) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2306 | #define LVM_SETBKIMAGE WINELIB_NAME_AW(LVM_SETBKIMAGE) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2307 | #define LVM_GETBKIMAGEA (LVM_FIRST+69) |
| 2308 | #define LVM_GETBKIMAGEW (LVM_FIRST+139) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2309 | #define LVM_GETBKIMAGE WINELIB_NAME_AW(LVM_GETBKIMAGE) |
| 2310 | #define LVM_GETWORKAREAS (LVM_FIRST+70) |
| 2311 | #define LVM_SETHOVERTIME (LVM_FIRST+71) |
| 2312 | #define LVM_GETHOVERTIME (LVM_FIRST+72) |
| 2313 | #define LVM_GETNUMBEROFWORKAREAS (LVM_FIRST+73) |
| 2314 | #define LVM_SETTOOLTIPS (LVM_FIRST+74) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2315 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2316 | #define LVM_GETTOOLTIPS (LVM_FIRST+78) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2317 | |
| 2318 | #define LVN_FIRST (0U-100U) |
| 2319 | #define LVN_LAST (0U-199U) |
| 2320 | #define LVN_ITEMCHANGING (LVN_FIRST-0) |
| 2321 | #define LVN_ITEMCHANGED (LVN_FIRST-1) |
| 2322 | #define LVN_INSERTITEM (LVN_FIRST-2) |
| 2323 | #define LVN_DELETEITEM (LVN_FIRST-3) |
| 2324 | #define LVN_DELETEALLITEMS (LVN_FIRST-4) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2325 | #define LVN_BEGINLABELEDITA (LVN_FIRST-5) |
| 2326 | #define LVN_BEGINLABELEDITW (LVN_FIRST-75) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2327 | #define LVN_BEGINLABELEDIT WINELIB_NAME_AW(LVN_BEGINLABELEDIT) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2328 | #define LVN_ENDLABELEDITA (LVN_FIRST-6) |
| 2329 | #define LVN_ENDLABELEDITW (LVN_FIRST-76) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2330 | #define LVN_ENDLABELEDIT WINELIB_NAME_AW(LVN_ENDLABELEDIT) |
| 2331 | #define LVN_COLUMNCLICK (LVN_FIRST-8) |
| 2332 | #define LVN_BEGINDRAG (LVN_FIRST-9) |
| 2333 | #define LVN_BEGINRDRAG (LVN_FIRST-11) |
| 2334 | #define LVN_ODCACHEHINT (LVN_FIRST-13) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2335 | #define LVN_ODFINDITEMA (LVN_FIRST-52) |
| 2336 | #define LVN_ODFINDITEMW (LVN_FIRST-79) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2337 | #define LVN_ODFINDITEM WINELIB_NAME_AW(LVN_ODFINDITEM) |
| 2338 | #define LVN_ITEMACTIVATE (LVN_FIRST-14) |
| 2339 | #define LVN_ODSTATECHANGED (LVN_FIRST-15) |
| 2340 | #define LVN_HOTTRACK (LVN_FIRST-21) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2341 | #define LVN_GETDISPINFOA (LVN_FIRST-50) |
| 2342 | #define LVN_GETDISPINFOW (LVN_FIRST-77) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2343 | #define LVN_GETDISPINFO WINELIB_NAME_AW(LVN_GETDISPINFO) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2344 | #define LVN_SETDISPINFOA (LVN_FIRST-51) |
| 2345 | #define LVN_SETDISPINFOW (LVN_FIRST-78) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2346 | #define LVN_SETDISPINFO WINELIB_NAME_AW(LVN_SETDISPINFO) |
| 2347 | |
Luc Tourangeau | ce2b141 | 1999-02-17 12:58:48 +0000 | [diff] [blame] | 2348 | #define LVA_ALIGNLEFT 0x0000 |
| 2349 | #define LVA_DEFAULT 0x0001 |
| 2350 | #define LVA_ALIGNTOP 0x0002 |
| 2351 | #define LVA_SNAPTOGRID 0x0005 |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2352 | |
| 2353 | typedef struct tagLVITEMA |
| 2354 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2355 | UINT mask; |
| 2356 | INT iItem; |
| 2357 | INT iSubItem; |
| 2358 | UINT state; |
| 2359 | UINT stateMask; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2360 | LPSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2361 | INT cchTextMax; |
| 2362 | INT iImage; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2363 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2364 | INT iIndent; /* (_WIN32_IE >= 0x0300) */ |
| 2365 | } LVITEMA, *LPLVITEMA; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2366 | |
| 2367 | typedef struct tagLVITEMW |
| 2368 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2369 | UINT mask; |
| 2370 | INT iItem; |
| 2371 | INT iSubItem; |
| 2372 | UINT state; |
| 2373 | UINT stateMask; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2374 | LPWSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2375 | INT cchTextMax; |
| 2376 | INT iImage; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2377 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2378 | INT iIndent; /* (_WIN32_IE >= 0x0300) */ |
| 2379 | } LVITEMW, *LPLVITEMW; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2380 | |
Alexandre Julliard | 8da12c4 | 1999-01-17 16:55:11 +0000 | [diff] [blame] | 2381 | #define LVITEM WINELIB_NAME_AW(LVITEM) |
| 2382 | #define LPLVITEM WINELIB_NAME_AW(LPLVITEM) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2383 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2384 | #define LVITEM_V1_SIZEA CCSIZEOF_STRUCT(LVITEMA, lParam) |
| 2385 | #define LVITEM_V1_SIZEW CCSIZEOF_STRUCT(LVITEMW, lParam) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2386 | #define LVITEM_V1_SIZE WINELIB_NAME_AW(LVITEM_V1_SIZE) |
| 2387 | |
| 2388 | #define LV_ITEM LVITEM |
| 2389 | |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2390 | typedef struct tagLVCOLUMNA |
| 2391 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2392 | UINT mask; |
| 2393 | INT fmt; |
| 2394 | INT cx; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2395 | LPSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2396 | INT cchTextMax; |
| 2397 | INT iSubItem; |
| 2398 | INT iImage; /* (_WIN32_IE >= 0x0300) */ |
| 2399 | INT iOrder; /* (_WIN32_IE >= 0x0300) */ |
| 2400 | } LVCOLUMNA, *LPLVCOLUMNA; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2401 | |
| 2402 | typedef struct tagLVCOLUMNW |
| 2403 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2404 | UINT mask; |
| 2405 | INT fmt; |
| 2406 | INT cx; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2407 | LPWSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2408 | INT cchTextMax; |
| 2409 | INT iSubItem; |
| 2410 | INT iImage; /* (_WIN32_IE >= 0x0300) */ |
| 2411 | INT iOrder; /* (_WIN32_IE >= 0x0300) */ |
| 2412 | } LVCOLUMNW, *LPLVCOLUMNW; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2413 | |
| 2414 | #define LVCOLUMN WINELIB_NAME_AW(LVCOLUMN) |
| 2415 | #define LPLVCOLUMN WINELIB_NAME_AW(LPLVCOLUMN) |
| 2416 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2417 | #define LVCOLUMN_V1_SIZEA CCSIZEOF_STRUCT(LVCOLUMNA, iSubItem) |
| 2418 | #define LVCOLUMN_V1_SIZEW CCSIZEOF_STRUCT(LVCOLUMNW, iSubItem) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2419 | #define LVCOLUMN_V1_SIZE WINELIB_NAME_AW(LVCOLUMN_V1_SIZE) |
| 2420 | |
| 2421 | #define LV_COLUMN LVCOLUMN |
| 2422 | |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 2423 | |
| 2424 | typedef struct tagNMLISTVIEW |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2425 | { |
| 2426 | NMHDR hdr; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2427 | INT iItem; |
| 2428 | INT iSubItem; |
| 2429 | UINT uNewState; |
| 2430 | UINT uOldState; |
| 2431 | UINT uChanged; |
| 2432 | POINT ptAction; |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 2433 | LPARAM lParam; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2434 | } NMLISTVIEW, *LPNMLISTVIEW; |
| 2435 | |
| 2436 | #define LPNM_LISTVIEW LPNMLISTVIEW |
| 2437 | #define NM_LISTVIEW NMLISTVIEW |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 2438 | |
| 2439 | |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2440 | typedef struct tagLVDISPINFO |
| 2441 | { |
| 2442 | NMHDR hdr; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2443 | LVITEMA item; |
| 2444 | } NMLVDISPINFOA, *LPNMLVDISPINFOA; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2445 | |
| 2446 | typedef struct tagLVDISPINFOW |
| 2447 | { |
| 2448 | NMHDR hdr; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2449 | LVITEMW item; |
| 2450 | } NMLVDISPINFOW, *LPNMLVDISPINFOW; |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2451 | |
| 2452 | #define NMLVDISPINFO WINELIB_NAME_AW(NMLVDISPINFO) |
| 2453 | #define LPNMLVDISPINFO WINELIB_NAME_AW(LPNMLVDISPINFO) |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 2454 | |
| 2455 | #define LV_DISPINFO NMLVDISPINFO |
| 2456 | |
Alexandre Julliard | e32be24 | 1999-02-10 06:43:59 +0000 | [diff] [blame] | 2457 | #define LVN_KEYDOWN (LVN_FIRST-55) |
| 2458 | |
| 2459 | typedef struct tagLVKEYDOWN |
| 2460 | { |
| 2461 | NMHDR hdr; |
| 2462 | WORD wVKey; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2463 | UINT flags; |
Alexandre Julliard | e32be24 | 1999-02-10 06:43:59 +0000 | [diff] [blame] | 2464 | } NMLVKEYDOWN, *LPNMLVKEYDOWN; |
| 2465 | |
| 2466 | #define LV_KEYDOWN NMLVKEYDOWN |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 2467 | |
Eric Kohl | a867030 | 1998-11-08 11:30:27 +0000 | [diff] [blame] | 2468 | typedef struct tagLVHITTESTINFO |
| 2469 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2470 | POINT pt; |
| 2471 | UINT flags; |
| 2472 | INT iItem; |
| 2473 | INT iSubItem; |
Eric Kohl | a867030 | 1998-11-08 11:30:27 +0000 | [diff] [blame] | 2474 | } LVHITTESTINFO, *LPLVHITTESTINFO; |
| 2475 | |
| 2476 | #define LV_HITTESTINFO LVHITTESTINFO |
| 2477 | #define _LV_HITTESTINFO tagLVHITTESTINFO |
| 2478 | #define LVHITTESTINFO_V1_SIZE CCSIZEOF_STRUCT(LVHITTESTINFO,iItem) |
| 2479 | |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 2480 | typedef struct tagLVFINDINFO |
| 2481 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2482 | UINT flags; |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 2483 | LPCSTR psz; |
| 2484 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2485 | POINT pt; |
| 2486 | UINT vkDirection; |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 2487 | } LVFINDINFO, *LPLVFINDINFO; |
| 2488 | |
| 2489 | #define LV_FINDINFO LVFINDINFO |
| 2490 | |
| 2491 | typedef struct tagTCHITTESTINFO |
| 2492 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2493 | POINT pt; |
| 2494 | UINT flags; |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 2495 | } TCHITTESTINFO, *LPTCHITTESTINFO; |
| 2496 | |
| 2497 | #define TC_HITTESTINFO TCHITTESTINFO |
| 2498 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2499 | typedef INT (CALLBACK *PFNLVCOMPARE)(LPARAM, LPARAM, LPARAM); |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 2500 | |
Luc Tourangeau | 4d6df2c | 1999-03-12 17:31:08 +0000 | [diff] [blame] | 2501 | #define ListView_Arrange(hwnd,code) \ |
| 2502 | (INT)SendMessageA((hwnd),LVM_ARRANGE,(WPARAM)(INT)(code),0L) |
| 2503 | #define ListView_GetItemPosition(hwnd,i,ppt) \ |
| 2504 | (INT)SendMessageA((hwnd),LVM_GETITEMPOSITION,(WPARAM)(INT)(i),(LPARAM)(LPPOINT)(ppt)) |
| 2505 | #define ListView_GetItemRect(hwnd,i,prc) \ |
| 2506 | (INT)SendMessageA((hwnd),LVM_GETITEMRECT,(WPARAM)(INT)(i),(LPARAM)(LPRECT)(prc)) |
| 2507 | #define ListView_SetItemA(hwnd,pitem) \ |
| 2508 | (INT)SendMessageA((hwnd),LVM_SETITEMA,0,(LPARAM)(const LVITEMA *)(pitem)) |
| 2509 | #define ListView_SetItemState(hwnd,i,pitem) \ |
| 2510 | (BOOL)SendMessageA((hwnd),LVM_SETITEMSTATE,(WPARAM)(UINT)(i),(LPARAM)(LPLVITEMA)(pitem)) |
| 2511 | #define ListView_GetItemState(hwnd,i,mask) \ |
| 2512 | (BOOL)SendMessageA((hwnd),LVM_GETITEMSTATE,(WPARAM)(UINT)(i),(LPARAM)(UINT)(mask)) |
| 2513 | #define ListView_GetCountPerPage(hwnd) \ |
| 2514 | (BOOL)SendMessageW((hwnd),LVM_GETCOUNTPERPAGE,0,0L) |
| 2515 | #define ListView_GetImageList(hwnd,iImageList) \ |
| 2516 | (HIMAGELIST)SendMessageA((hwnd),LVM_GETIMAGELIST,(WPARAM)(INT)(iImageList),0L) |
| 2517 | #define ListView_GetStringWidthA(hwnd,pstr) \ |
| 2518 | (INT)SendMessageA((hwnd),LVM_GETSTRINGWIDTHA,0,(LPARAM)(LPCSTR)(pstr)) |
| 2519 | #define ListView_GetTopIndex(hwnd) \ |
| 2520 | (BOOL)SendMessageA((hwnd),LVM_GETTOPINDEX,0,0L) |
| 2521 | #define ListView_Scroll(hwnd,dx,dy) \ |
| 2522 | (BOOL)SendMessageA((hwnd),LVM_SCROLL,(WPARAM)(INT)(dx),(LPARAM)(INT)(dy)) |
| 2523 | #define ListView_EnsureVisible(hwnd,i,fPartialOk) \ |
| 2524 | (BOOL)SendMessageA((hwnd),LVM_ENSUREVISIBLE,(WPARAM)(INT)i,(LPARAM)(BOOL)fPartialOk) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2525 | #define ListView_SetBkColor(hwnd,clrBk) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2526 | (BOOL)SendMessageA((hwnd),LVM_SETBKCOLOR,0,(LPARAM)(COLORREF)(clrBk)) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2527 | #define ListView_GetImageList(hwnd,iImageList) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2528 | (HIMAGELIST)SendMessageA((hwnd),LVM_GETIMAGELIST,(WPARAM)(INT)(iImageList),0L) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2529 | #define ListView_SetImageList(hwnd,himl,iImageList) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2530 | (HIMAGELIST)(UINT)SendMessageA((hwnd),LVM_SETIMAGELIST,(WPARAM)(iImageList),(LPARAM)(UINT)(HIMAGELIST)(himl)) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2531 | #define ListView_GetItemCount(hwnd) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2532 | (INT)SendMessageA((hwnd),LVM_GETITEMCOUNT,0,0L) |
| 2533 | #define ListView_GetItemA(hwnd,pitem) \ |
| 2534 | (BOOL)SendMessageA((hwnd),LVM_GETITEMA,0,(LPARAM)(LVITEMA *)(pitem)) |
| 2535 | #define ListView_GetItemW(hwnd,pitem) \ |
| 2536 | (BOOL)SendMessageW((hwnd),LVM_GETITEMW,0,(LPARAM)(LVITEMW *)(pitem)) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2537 | #define ListView_GetItem WINELIB_NAME_AW(ListView_GetItem) |
Eric Kohl | a867030 | 1998-11-08 11:30:27 +0000 | [diff] [blame] | 2538 | #define ListView_HitTest(hwnd,pinfo) \ |
Luc Tourangeau | 4d6df2c | 1999-03-12 17:31:08 +0000 | [diff] [blame] | 2539 | (INT)SendMessageA((hwnd),LVM_HITTEST,0,(LPARAM)(LPLVHITTESTINFO)(pinfo)) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2540 | #define ListView_InsertItemA(hwnd,pitem) \ |
| 2541 | (INT)SendMessageA((hwnd),LVM_INSERTITEMA,0,(LPARAM)(const LVITEMA *)(pitem)) |
| 2542 | #define ListView_InsertItemW(hwnd,pitem) \ |
| 2543 | (INT)SendMessageW((hwnd),LVM_INSERTITEMW,0,(LPARAM)(const LVITEMW *)(pitem)) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2544 | #define ListView_InsertItem WINELIB_NAME_AW(ListView_InsertItem) |
| 2545 | #define ListView_DeleteAllItems(hwnd) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2546 | (BOOL)SendMessageA((hwnd),LVM_DELETEALLITEMS,0,0L) |
| 2547 | #define ListView_InsertColumnA(hwnd,iCol,pcol) \ |
| 2548 | (INT)SendMessageA((hwnd),LVM_INSERTCOLUMNA,(WPARAM)(INT)(iCol),(LPARAM)(const LVCOLUMNA *)(pcol)) |
| 2549 | #define ListView_InsertColumnW(hwnd,iCol,pcol) \ |
| 2550 | (INT)SendMessageW((hwnd),LVM_INSERTCOLUMNW,(WPARAM)(INT)(iCol),(LPARAM)(const LVCOLUMNW *)(pcol)) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2551 | #define ListView_InsertColumn WINELIB_NAME_AW(ListView_InsertColumn) |
| 2552 | #define ListView_SortItems(hwndLV,_pfnCompare,_lPrm) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2553 | (BOOL)SendMessageA((hwndLV),LVM_SORTITEMS,(WPARAM)(LPARAM)_lPrm,(LPARAM)(PFNLVCOMPARE)_pfnCompare) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2554 | #define ListView_SetItemPosition(hwndLV, i, x, y) \ |
Alexandre Julliard | 73cc3ba | 1999-03-13 17:12:07 +0000 | [diff] [blame] | 2555 | (BOOL)SendMessageA((hwndLV),LVM_SETITEMPOSITION,(WPARAM)(INT)(i),MAKELPARAM((x),(y))) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2556 | #define ListView_GetSelectedCount(hwndLV) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2557 | (UINT)SendMessageA((hwndLV),LVM_GETSELECTEDCOUNT,0,0L) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2558 | |
| 2559 | |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 2560 | /* Tab Control */ |
| 2561 | |
| 2562 | #define WC_TABCONTROL16 "SysTabControl" |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2563 | #define WC_TABCONTROLA "SysTabControl32" |
| 2564 | #define WC_TABCONTROLW L"SysTabControl32" |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 2565 | |
| 2566 | #define WC_TABCONTROL WINELIB_NAME_AW(WC_TABCONTROL) |
| 2567 | |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 2568 | /* tab control styles */ |
Marcus Meissner | 73458b0 | 1998-12-26 12:54:29 +0000 | [diff] [blame] | 2569 | #define TCS_SCROLLOPPOSITE 0x0001 /* assumes multiline tab */ |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 2570 | #define TCS_BOTTOM 0x0002 |
| 2571 | #define TCS_RIGHT 0x0002 |
Marcus Meissner | 73458b0 | 1998-12-26 12:54:29 +0000 | [diff] [blame] | 2572 | #define TCS_MULTISELECT 0x0004 /* allow multi-select in button mode */ |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 2573 | #define TCS_FLATBUTTONS 0x0008 |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 2574 | #define TCS_FORCEICONLEFT 0x0010 |
| 2575 | #define TCS_FORCELABELLEFT 0x0020 |
| 2576 | #define TCS_HOTTRACK 0x0040 |
| 2577 | #define TCS_VERTICAL 0x0080 |
| 2578 | #define TCS_TABS 0x0000 |
| 2579 | #define TCS_BUTTONS 0x0100 |
| 2580 | #define TCS_SINGLELINE 0x0000 |
| 2581 | #define TCS_MULTILINE 0x0200 |
| 2582 | #define TCS_RIGHTJUSTIFY 0x0000 |
| 2583 | #define TCS_FIXEDWIDTH 0x0400 |
| 2584 | #define TCS_RAGGEDRIGHT 0x0800 |
| 2585 | #define TCS_FOCUSONBUTTONDOWN 0x1000 |
| 2586 | #define TCS_OWNERDRAWFIXED 0x2000 |
| 2587 | #define TCS_TOOLTIPS 0x4000 |
| 2588 | #define TCS_FOCUSNEVER 0x8000 |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 2589 | #define TCS_EX_FLATSEPARATORS 0x00000001 /* to be used with */ |
| 2590 | #define TCS_EX_REGISTERDROP 0x00000002 /* TCM_SETEXTENDEDSTYLE */ |
| 2591 | |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 2592 | |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 2593 | #define TCM_FIRST 0x1300 |
| 2594 | |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 2595 | #define TCM_GETIMAGELIST (TCM_FIRST + 2) |
| 2596 | #define TCM_SETIMAGELIST (TCM_FIRST + 3) |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 2597 | #define TCM_GETITEMCOUNT (TCM_FIRST + 4) |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 2598 | #define TCM_GETITEM WINELIB_NAME_AW(TCM_GETITEM) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2599 | #define TCM_GETITEMA (TCM_FIRST + 5) |
| 2600 | #define TCM_GETITEMW (TCM_FIRST + 60) |
| 2601 | #define TCM_SETITEMA (TCM_FIRST + 6) |
| 2602 | #define TCM_SETITEMW (TCM_FIRST + 61) |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 2603 | #define TCM_SETITEM WINELIB_NAME_AW(TCM_SETITEM) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2604 | #define TCM_INSERTITEMA (TCM_FIRST + 7) |
| 2605 | #define TCM_INSERTITEMW (TCM_FIRST + 62) |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 2606 | #define TCM_INSERTITEM WINELIB_NAME_AW(TCM_INSERTITEM) |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 2607 | #define TCM_DELETEITEM (TCM_FIRST + 8) |
| 2608 | #define TCM_DELETEALLITEMS (TCM_FIRST + 9) |
| 2609 | #define TCM_GETITEMRECT (TCM_FIRST + 10) |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 2610 | #define TCM_GETCURSEL (TCM_FIRST + 11) |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 2611 | #define TCM_SETCURSEL (TCM_FIRST + 12) |
| 2612 | #define TCM_HITTEST (TCM_FIRST + 13) |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 2613 | #define TCM_SETITEMEXTRA (TCM_FIRST + 14) |
Paul Quinn | 1beaae5 | 1998-12-15 15:38:36 +0000 | [diff] [blame] | 2614 | #define TCM_ADJUSTRECT (TCM_FIRST + 40) |
| 2615 | #define TCM_SETITEMSIZE (TCM_FIRST + 41) |
| 2616 | #define TCM_REMOVEIMAGE (TCM_FIRST + 42) |
| 2617 | #define TCM_SETPADDING (TCM_FIRST + 43) |
| 2618 | #define TCM_GETROWCOUNT (TCM_FIRST + 44) |
| 2619 | #define TCM_GETTOOLTIPS (TCM_FIRST + 45) |
| 2620 | #define TCM_SETTOOLTIPS (TCM_FIRST + 46) |
| 2621 | #define TCM_GETCURFOCUS (TCM_FIRST + 47) |
| 2622 | #define TCM_SETCURFOCUS (TCM_FIRST + 48) |
| 2623 | #define TCM_SETMINTTABWIDTH (TCM_FIRST + 49) |
| 2624 | #define TCM_DESELECTALL (TCM_FIRST + 50) |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 2625 | #define TCM_HIGHLIGHTITEM (TCM_FIRST + 51) |
| 2626 | #define TCM_SETEXTENDEDSTYLE (TCM_FIRST + 52) |
| 2627 | #define TCM_GETEXTENDEDSTYLE (TCM_FIRST + 53) |
| 2628 | #define TCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT |
| 2629 | #define TCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT |
| 2630 | |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 2631 | |
| 2632 | #define TCIF_TEXT 0x0001 |
| 2633 | #define TCIF_IMAGE 0x0002 |
| 2634 | #define TCIF_RTLREADING 0x0004 |
| 2635 | #define TCIF_PARAM 0x0008 |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 2636 | #define TCIF_STATE 0x0010 |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 2637 | |
Alex Priem | d2d7f96 | 1999-01-30 13:02:30 +0000 | [diff] [blame] | 2638 | #define TCIS_BUTTONPRESSED 0x0001 |
| 2639 | #define TCIS_HIGHLIGHTED 0x0002 |
| 2640 | |
| 2641 | |
| 2642 | /* constants for TCHITTESTINFO */ |
| 2643 | |
| 2644 | #define TCHT_NOWHERE 0x01 |
| 2645 | #define TCHT_ONITEMICON 0x02 |
| 2646 | #define TCHT_ONITEMLABEL 0x04 |
| 2647 | #define TCHT_ONITEM (TCHT_ONITEMICON | TCHT_ONITEMLABEL) |
| 2648 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 2649 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2650 | typedef struct tagTCITEMA { |
| 2651 | UINT mask; |
| 2652 | UINT dwState; |
| 2653 | UINT dwStateMask; |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 2654 | LPSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2655 | INT cchTextMax; |
| 2656 | INT iImage; |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 2657 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2658 | } TCITEMA, *LPTCITEMA; |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 2659 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2660 | typedef struct tagTCITEMW |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 2661 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2662 | UINT mask; |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 2663 | DWORD dwState; |
| 2664 | DWORD dwStateMask; |
| 2665 | LPWSTR pszText; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2666 | INT cchTextMax; |
| 2667 | INT iImage; |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 2668 | LPARAM lParam; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2669 | } TCITEMW, *LPTCITEMW; |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 2670 | |
| 2671 | #define TCITEM WINELIB_NAME_AW(TCITEM) |
| 2672 | #define LPTCITEM WINELIB_NAME_AW(LPTCITEM) |
Alexandre Julliard | 8da12c4 | 1999-01-17 16:55:11 +0000 | [diff] [blame] | 2673 | #define TC_ITEM TCITEM |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 2674 | |
| 2675 | #define TCN_FIRST (0U-550U) |
| 2676 | #define TCN_LAST (0U-580U) |
| 2677 | #define TCN_KEYDOWN (TCN_FIRST - 0) |
| 2678 | #define TCN_SELCHANGE (TCN_FIRST - 1) |
| 2679 | #define TCN_SELCHANGING (TCN_FIRST - 2) |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 2680 | #define TCN_GETOBJECT (TCN_FIRST - 3) |
Eric Kohl | 9d8e864 | 1998-10-24 10:49:27 +0000 | [diff] [blame] | 2681 | |
| 2682 | |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2683 | /* ComboBoxEx control */ |
| 2684 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2685 | #define WC_COMBOBOXEXA "ComboBoxEx32" |
| 2686 | #define WC_COMBOBOXEXW L"ComboBoxEx32" |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2687 | #define WC_COMBOBOXEX WINELIB_NAME_AW(WC_COMBOBOXEX) |
| 2688 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2689 | #define CBEM_INSERTITEMA (WM_USER+1) |
| 2690 | #define CBEM_INSERTITEMW (WM_USER+11) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2691 | #define CBEM_INSERTITEM WINELIB_NAME_AW(CBEM_INSERTITEM) |
| 2692 | #define CBEM_SETIMAGELIST (WM_USER+2) |
| 2693 | #define CBEM_GETIMAGELIST (WM_USER+3) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2694 | #define CBEM_GETITEMA (WM_USER+4) |
| 2695 | #define CBEM_GETITEMW (WM_USER+13) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2696 | #define CBEM_GETITEM WINELIB_NAME_AW(CBEM_GETITEM) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2697 | #define CBEM_SETITEMA (WM_USER+5) |
| 2698 | #define CBEM_SETITEMW (WM_USER+12) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2699 | #define CBEM_SETITEM WINELIB_NAME_AW(CBEM_SETITEM) |
| 2700 | #define CBEM_GETCOMBOCONTROL (WM_USER+6) |
| 2701 | #define CBEM_GETEDITCONTROL (WM_USER+7) |
| 2702 | #define CBEM_SETEXSTYLE (WM_USER+8) |
| 2703 | #define CBEM_GETEXSTYLE (WM_USER+9) |
| 2704 | #define CBEM_GETEXTENDEDSTYLE (WM_USER+9) |
| 2705 | #define CBEM_SETEXTENDEDSTYLE (WM_USER+14) |
| 2706 | #define CBEM_HASEDITCHANGED (WM_USER+10) |
| 2707 | #define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT |
| 2708 | #define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT |
| 2709 | |
| 2710 | #define CBEN_FIRST (0U-800U) |
| 2711 | #define CBEN_LAST (0U-830U) |
| 2712 | |
| 2713 | |
| 2714 | /* Hotkey control */ |
| 2715 | |
| 2716 | #define HOTKEY_CLASS16 "msctls_hotkey" |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2717 | #define HOTKEY_CLASSA "msctls_hotkey32" |
| 2718 | #define HOTKEY_CLASSW L"msctls_hotkey32" |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2719 | #define HOTKEY_CLASS WINELIB_NAME_AW(HOTKEY_CLASS) |
| 2720 | |
| 2721 | #define HOTKEYF_SHIFT 0x01 |
| 2722 | #define HOTKEYF_CONTROL 0x02 |
| 2723 | #define HOTKEYF_ALT 0x04 |
| 2724 | #define HOTKEYF_EXT 0x08 |
| 2725 | |
| 2726 | #define HKCOMB_NONE 0x0001 |
| 2727 | #define HKCOMB_S 0x0002 |
| 2728 | #define HKCOMB_C 0x0004 |
| 2729 | #define HKCOMB_A 0x0008 |
| 2730 | #define HKCOMB_SC 0x0010 |
| 2731 | #define HKCOMB_SA 0x0020 |
| 2732 | #define HKCOMB_CA 0x0040 |
| 2733 | #define HKCOMB_SCA 0x0080 |
| 2734 | |
| 2735 | #define HKM_SETHOTKEY (WM_USER+1) |
| 2736 | #define HKM_GETHOTKEY (WM_USER+2) |
| 2737 | #define HKM_SETRULES (WM_USER+3) |
| 2738 | |
| 2739 | |
| 2740 | /* animate control */ |
| 2741 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2742 | #define ANIMATE_CLASSA "SysAnimate32" |
| 2743 | #define ANIMATE_CLASSW L"SysAnimate32" |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2744 | #define ANIMATE_CLASS WINELIB_NAME_AW(ANIMATE_CLASS) |
| 2745 | |
| 2746 | #define ACS_CENTER 0x0001 |
| 2747 | #define ACS_TRANSPARENT 0x0002 |
| 2748 | #define ACS_AUTOPLAY 0x0004 |
| 2749 | #define ACS_TIMER 0x0008 /* no threads, just timers */ |
| 2750 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2751 | #define ACM_OPENA (WM_USER+100) |
| 2752 | #define ACM_OPENW (WM_USER+103) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2753 | #define ACM_OPEN WINELIB_NAME_AW(ACM_OPEN) |
| 2754 | #define ACM_PLAY (WM_USER+101) |
| 2755 | #define ACM_STOP (WM_USER+102) |
| 2756 | |
| 2757 | #define ACN_START 1 |
| 2758 | #define ACN_STOP 2 |
| 2759 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2760 | #define Animate_CreateA(hwndP,id,dwStyle,hInstance) \ |
| 2761 | CreateWindowA(ANIMATE_CLASSA,NULL,dwStyle,0,0,0,0,hwndP,(HMENU)(id),hInstance,NULL) |
| 2762 | #define Animate_CreateW(hwndP,id,dwStyle,hInstance) \ |
| 2763 | CreateWindowW(ANIMATE_CLASSW,NULL,dwStyle,0,0,0,0,hwndP,(HMENU)(id),hInstance,NULL) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2764 | #define Animate_Create WINELIB_NAME_AW(Animate_Create) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2765 | #define Animate_OpenA(hwnd,szName) \ |
| 2766 | (BOOL)SendMessageA(hwnd,ACM_OPENA,0,(LPARAM)(LPSTR)(szName)) |
| 2767 | #define Animate_OpenW(hwnd,szName) \ |
| 2768 | (BOOL)SendMessageW(hwnd,ACM_OPENW,0,(LPARAM)(LPWSTR)(szName)) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2769 | #define Animate_Open WINELIB_NAME_AW(Animate_Open) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2770 | #define Animate_OpenExA(hwnd,hInst,szName) \ |
| 2771 | (BOOL)SendMessageA(hwnd,ACM_OPENA,(WPARAM)hInst,(LPARAM)(LPSTR)(szName)) |
| 2772 | #define Animate_OpenExW(hwnd,hInst,szName) \ |
| 2773 | (BOOL)SendMessageW(hwnd,ACM_OPENW,(WPARAM)hInst,(LPARAM)(LPWSTR)(szName)) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 2774 | #define Animate_OpenEx WINELIB_NAME_AW(Animate_OpenEx) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2775 | #define Animate_Play(hwnd,from,to,rep) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2776 | (BOOL)SendMessageA(hwnd,ACM_PLAY,(WPARAM)(UINT)(rep),(LPARAM)MAKELONG(from,to)) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2777 | #define Animate_Stop(hwnd) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2778 | (BOOL)SendMessageA(hwnd,ACM_STOP,0,0) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2779 | #define Animate_Close(hwnd) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2780 | (BOOL)SendMessageA(hwnd,ACM_OPENA,0,0) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2781 | #define Animate_Seek(hwnd,frame) \ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2782 | (BOOL)SendMessageA(hwnd,ACM_PLAY,1,(LPARAM)MAKELONG(frame,frame)) |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2783 | |
| 2784 | |
Eric Kohl | 17216d3 | 1998-10-11 13:21:17 +0000 | [diff] [blame] | 2785 | /************************************************************************** |
| 2786 | * IP Address control |
| 2787 | */ |
| 2788 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2789 | #define WC_IPADDRESSA "SysIPAddress32" |
| 2790 | #define WC_IPADDRESSW L"SysIPAddress32" |
Eric Kohl | 17216d3 | 1998-10-11 13:21:17 +0000 | [diff] [blame] | 2791 | #define WC_IPADDRESS WINELIB_NAME_AW(WC_IPADDRESS) |
| 2792 | |
| 2793 | #define IPM_CLEARADDRESS (WM_USER+100) |
| 2794 | #define IPM_SETADDRESS (WM_USER+101) |
| 2795 | #define IPM_GETADDRESS (WM_USER+102) |
| 2796 | #define IPM_SETRANGE (WM_USER+103) |
| 2797 | #define IPM_SETFOCUS (WM_USER+104) |
| 2798 | #define IPM_ISBLANK (WM_USER+105) |
| 2799 | |
Alex Priem | d70de84 | 1998-12-26 11:48:35 +0000 | [diff] [blame] | 2800 | #define IPN_FIRST (0U-860U) |
| 2801 | #define IPN_LAST (0U-879U) |
| 2802 | #define IPN_FIELDCHANGED (IPN_FIRST-0) |
Eric Kohl | 17216d3 | 1998-10-11 13:21:17 +0000 | [diff] [blame] | 2803 | |
| 2804 | typedef struct tagNMIPADDRESS |
| 2805 | { |
| 2806 | NMHDR hdr; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2807 | INT iField; |
| 2808 | INT iValue; |
Eric Kohl | 17216d3 | 1998-10-11 13:21:17 +0000 | [diff] [blame] | 2809 | } NMIPADDRESS, *LPNMIPADDRESS; |
| 2810 | |
| 2811 | #define MAKEIPRANGE(low,high) \ |
| 2812 | ((LPARAM)(WORD)(((BYTE)(high)<<8)+(BYTE)(low))) |
| 2813 | #define MAKEIPADDRESS(b1,b2,b3,b4) \ |
| 2814 | ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<16)+((DWORD)(b3)<<8)+((DWORD)(b4)))) |
| 2815 | |
| 2816 | #define FIRST_IPADDRESS(x) (((x)>>24)&0xff) |
| 2817 | #define SECOND_IPADDRESS(x) (((x)>>16)&0xff) |
| 2818 | #define THIRD_IPADDRESS(x) (((x)>>8)&0xff) |
| 2819 | #define FOURTH_IPADDRESS(x) ((x)&0xff) |
| 2820 | |
| 2821 | |
| 2822 | /************************************************************************** |
| 2823 | * Native Font control |
| 2824 | */ |
| 2825 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2826 | #define WC_NATIVEFONTCTLA "NativeFontCtl" |
| 2827 | #define WC_NATIVEFONTCTLW L"NativeFontCtl" |
Eric Kohl | 17216d3 | 1998-10-11 13:21:17 +0000 | [diff] [blame] | 2828 | #define WC_NATIVEFONTCTL WINELIB_NAME_AW(WC_NATIVEFONTCTL) |
| 2829 | |
| 2830 | #define NFS_EDIT 0x0001 |
| 2831 | #define NFS_STATIC 0x0002 |
| 2832 | #define NFS_LISTCOMBO 0x0004 |
| 2833 | #define NFS_BUTTON 0x0008 |
| 2834 | #define NFS_ALL 0x0010 |
| 2835 | |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 2836 | |
| 2837 | /************************************************************************** |
Eric Kohl | a867030 | 1998-11-08 11:30:27 +0000 | [diff] [blame] | 2838 | * Month calendar control |
| 2839 | */ |
| 2840 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2841 | #define MONTHCAL_CLASSA "SysMonthCal32" |
| 2842 | #define MONTHCAL_CLASSW L"SysMonthCal32" |
Eric Kohl | a867030 | 1998-11-08 11:30:27 +0000 | [diff] [blame] | 2843 | #define MONTHCAL_CLASS WINELIB_NAME_AW(MONTHCAL_CLASS) |
| 2844 | |
| 2845 | |
| 2846 | /************************************************************************** |
| 2847 | * Date and time picker control |
| 2848 | */ |
| 2849 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2850 | #define DATETIMEPICK_CLASSA "SysDateTimePick32" |
| 2851 | #define DATETIMEPICK_CLASSW L"SysDateTimePick32" |
Eric Kohl | a867030 | 1998-11-08 11:30:27 +0000 | [diff] [blame] | 2852 | #define DATETIMEPICK_CLASS WINELIB_NAME_AW(DATETIMEPICK_CLASS) |
| 2853 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 2854 | #define DTM_FIRST 0x1000 |
| 2855 | |
| 2856 | #define DTM_GETSYSTEMTIME (DTM_FIRST+1) |
| 2857 | #define DTM_SETSYSTEMTIME (DTM_FIRST+2) |
| 2858 | #define DTM_GETRANGE (DTM_FIRST+3) |
| 2859 | #define DTM_SETRANGE (DTM_FIRST+4) |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2860 | #define DTM_SETFORMATA (DTM_FIRST+5) |
| 2861 | #define DTM_SETFORMATW (DTM_FIRST + 50) |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 2862 | #define DTM_SETFORMAT WINELIB_NAME_AW(DTM_SETFORMAT) |
| 2863 | #define DTM_SETMCCOLOR (DTM_FIRST+6) |
| 2864 | #define DTM_GETMCCOLOR (DTM_FIRST+7) |
| 2865 | |
| 2866 | #define DTM_GETMONTHCAL (DTM_FIRST+8) |
| 2867 | |
| 2868 | #define DTM_SETMCFONT (DTM_FIRST+9) |
| 2869 | #define DTM_GETMCFONT (DTM_FIRST+10) |
| 2870 | |
| 2871 | |
| 2872 | |
| 2873 | |
| 2874 | #define GDT_ERROR -1 |
| 2875 | #define GDT_VALID 0 |
| 2876 | #define GDT_NONE 1 |
| 2877 | |
| 2878 | #define GDTR_MIN 0x0001 |
| 2879 | #define GDTR_MAX 0x0002 |
| 2880 | |
| 2881 | |
| 2882 | |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2883 | /************************************************************************** |
| 2884 | * UNDOCUMENTED functions |
| 2885 | */ |
| 2886 | |
| 2887 | /* private heap memory functions */ |
| 2888 | |
| 2889 | LPVOID WINAPI COMCTL32_Alloc (DWORD); |
| 2890 | LPVOID WINAPI COMCTL32_ReAlloc (LPVOID, DWORD); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2891 | BOOL WINAPI COMCTL32_Free (LPVOID); |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2892 | DWORD WINAPI COMCTL32_GetSize (LPVOID); |
| 2893 | |
| 2894 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2895 | INT WINAPI Str_GetPtrA (LPCSTR, LPSTR, INT); |
| 2896 | BOOL WINAPI Str_SetPtrA (LPSTR *, LPCSTR); |
| 2897 | INT WINAPI Str_GetPtrW (LPCWSTR, LPWSTR, INT); |
| 2898 | BOOL WINAPI Str_SetPtrW (LPWSTR *, LPCWSTR); |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2899 | #define Str_GetPtr WINELIB_NAME_AW(Str_GetPtr) |
| 2900 | #define Str_SetPtr WINELIB_NAME_AW(Str_SetPtr) |
| 2901 | |
| 2902 | |
| 2903 | /* Dynamic Storage Array */ |
| 2904 | |
| 2905 | typedef struct _DSA |
| 2906 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2907 | INT nItemCount; |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2908 | LPVOID pData; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2909 | INT nMaxCount; |
| 2910 | INT nItemSize; |
| 2911 | INT nGrow; |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2912 | } DSA, *HDSA; |
| 2913 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2914 | HDSA WINAPI DSA_Create (INT, INT); |
| 2915 | BOOL WINAPI DSA_DeleteAllItems (const HDSA); |
| 2916 | INT WINAPI DSA_DeleteItem (const HDSA, INT); |
| 2917 | BOOL WINAPI DSA_Destroy (const HDSA); |
| 2918 | BOOL WINAPI DSA_GetItem (const HDSA, INT, LPVOID); |
| 2919 | LPVOID WINAPI DSA_GetItemPtr (const HDSA, INT); |
| 2920 | INT WINAPI DSA_InsertItem (const HDSA, INT, LPVOID); |
| 2921 | BOOL WINAPI DSA_SetItem (const HDSA, INT, LPVOID); |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2922 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2923 | typedef INT (CALLBACK *DSAENUMPROC)(LPVOID, DWORD); |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2924 | VOID WINAPI DSA_EnumCallback (const HDSA, DSAENUMPROC, LPARAM); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2925 | BOOL WINAPI DSA_DestroyCallback (const HDSA, DSAENUMPROC, LPARAM); |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2926 | |
| 2927 | |
| 2928 | /* Dynamic Pointer Array */ |
| 2929 | |
| 2930 | typedef struct _DPA |
| 2931 | { |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2932 | INT nItemCount; |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2933 | LPVOID *ptrs; |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2934 | HANDLE hHeap; |
| 2935 | INT nGrow; |
| 2936 | INT nMaxCount; |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2937 | } DPA, *HDPA; |
| 2938 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2939 | HDPA WINAPI DPA_Create (INT); |
| 2940 | HDPA WINAPI DPA_CreateEx (INT, HANDLE); |
| 2941 | BOOL WINAPI DPA_Destroy (const HDPA); |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2942 | HDPA WINAPI DPA_Clone (const HDPA, const HDPA); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2943 | LPVOID WINAPI DPA_GetPtr (const HDPA, INT); |
| 2944 | INT WINAPI DPA_GetPtrIndex (const HDPA, LPVOID); |
| 2945 | BOOL WINAPI DPA_Grow (const HDPA, INT); |
| 2946 | BOOL WINAPI DPA_SetPtr (const HDPA, INT, LPVOID); |
| 2947 | INT WINAPI DPA_InsertPtr (const HDPA, INT, LPVOID); |
| 2948 | LPVOID WINAPI DPA_DeletePtr (const HDPA, INT); |
| 2949 | BOOL WINAPI DPA_DeleteAllPtrs (const HDPA); |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2950 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2951 | typedef INT (CALLBACK *PFNDPACOMPARE)(LPVOID, LPVOID, LPARAM); |
| 2952 | BOOL WINAPI DPA_Sort (const HDPA, PFNDPACOMPARE, LPARAM); |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2953 | |
| 2954 | #define DPAS_SORTED 0x0001 |
| 2955 | #define DPAS_INSERTBEFORE 0x0002 |
| 2956 | #define DPAS_INSERTAFTER 0x0004 |
| 2957 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2958 | INT WINAPI DPA_Search (const HDPA, LPVOID, INT, PFNDPACOMPARE, LPARAM, UINT); |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2959 | |
| 2960 | #define DPAM_SORT 0x0001 |
| 2961 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2962 | BOOL WINAPI DPA_Merge (const HDPA, const HDPA, DWORD, PFNDPACOMPARE, LPVOID, LPARAM); |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2963 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2964 | typedef INT (CALLBACK *DPAENUMPROC)(LPVOID, DWORD); |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2965 | VOID WINAPI DPA_EnumCallback (const HDPA, DPAENUMPROC, LPARAM); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2966 | BOOL WINAPI DPA_DestroyCallback (const HDPA, DPAENUMPROC, LPARAM); |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2967 | |
| 2968 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2969 | #define DPA_GetPtrCount(hdpa) (*(INT*)(hdpa)) |
| 2970 | #define DPA_GetPtrPtr(hdpa) (*((LPVOID**)((BYTE*)(hdpa)+sizeof(INT)))) |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2971 | #define DPA_FastGetPtr(hdpa,i) (DPA_GetPtrPtr(hdpa)[i]) |
| 2972 | |
| 2973 | |
| 2974 | /* notification helper functions */ |
| 2975 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2976 | LRESULT WINAPI COMCTL32_SendNotify (HWND, HWND, UINT, LPNMHDR); |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2977 | |
| 2978 | /* type and functionality of last parameter is still unknown */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 2979 | LRESULT WINAPI COMCTL32_SendNotifyEx (HWND, HWND, UINT, LPNMHDR, DWORD); |
Eric Kohl | b406c7d | 1999-01-24 19:12:34 +0000 | [diff] [blame] | 2980 | |
Uwe Bonnes | 627702d | 1998-11-08 13:14:55 +0000 | [diff] [blame] | 2981 | #ifdef __cplusplus |
| 2982 | } |
| 2983 | #endif |
Eric Kohl | 17216d3 | 1998-10-11 13:21:17 +0000 | [diff] [blame] | 2984 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 2985 | #endif /* __WINE_COMMCTRL_H */ |
Alexandre Julliard | 0c0e3be | 1998-12-10 15:49:22 +0000 | [diff] [blame] | 2986 | |
| 2987 | |