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