| 1 | /* $Id: prsht.h,v 1.5 2000-02-24 19:22:28 sandervl Exp $ */
|
|---|
| 2 |
|
|---|
| 3 | #ifndef _WINE_PRSHT_H
|
|---|
| 4 | #define _WINE_PRSHT_H
|
|---|
| 5 |
|
|---|
| 6 | #include "winuser.h"
|
|---|
| 7 |
|
|---|
| 8 | #ifdef __cplusplus
|
|---|
| 9 | extern "C" {
|
|---|
| 10 | #endif
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 | /*
|
|---|
| 14 | * Property sheet support (callback procs)
|
|---|
| 15 | */
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 | #define WC_PROPSHEETA "SysPropertySheet"
|
|---|
| 19 | #define WC_PROPSHEETW L"SysPropertySheet"
|
|---|
| 20 | #define WC_PROPSHEET WINELIB_NAME_AW(WC_PROPSHEET)
|
|---|
| 21 |
|
|---|
| 22 | struct _PROPSHEETPAGEA; /** need to forward declare those structs **/
|
|---|
| 23 | struct _PROPSHEETPAGEW;
|
|---|
| 24 | struct _PSP;
|
|---|
| 25 | typedef struct _PSP *HPROPSHEETPAGE;
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 | typedef UINT (* CALLBACK LPFNPSPCALLBACKA)(HWND, UINT, struct _PROPSHEETPAGEA*);
|
|---|
| 29 | typedef UINT (* CALLBACK LPFNPSPCALLBACKW)(HWND, UINT, struct _PROPSHEETPAGEW*);
|
|---|
| 30 | typedef INT (* CALLBACK PFNPROPSHEETCALLBACK)(HWND, UINT, LPARAM);
|
|---|
| 31 | typedef BOOL (* CALLBACK LPFNADDPROPSHEETPAGE)(HPROPSHEETPAGE, LPARAM);
|
|---|
| 32 | typedef BOOL (* CALLBACK LPFNADDPROPSHEETPAGES)(LPVOID, LPFNADDPROPSHEETPAGE, LPARAM);
|
|---|
| 33 |
|
|---|
| 34 | /* c++ likes nameless unions whereas c doesnt */
|
|---|
| 35 | /* (used in property sheet structures) */
|
|---|
| 36 |
|
|---|
| 37 | #if defined(__cplusplus) && !defined(NONAMELESSUNION)
|
|---|
| 38 | #define DUMMYUNIONNAME
|
|---|
| 39 | #define DUMMYUNIONNAME1
|
|---|
| 40 | #define DUMMYUNIONNAME2
|
|---|
| 41 | #define DUMMYUNIONNAME3
|
|---|
| 42 | #define DUMMYUNIONNAME4
|
|---|
| 43 | #define DUMMYUNIONNAME5
|
|---|
| 44 | #else
|
|---|
| 45 | #define DUMMYUNIONNAME u
|
|---|
| 46 | #define DUMMYUNIONNAME1 u1
|
|---|
| 47 | #define DUMMYUNIONNAME2 u2
|
|---|
| 48 | #define DUMMYUNIONNAME3 u3
|
|---|
| 49 | #define DUMMYUNIONNAME4 u4
|
|---|
| 50 | #define DUMMYUNIONNAME5 u5
|
|---|
| 51 | #endif
|
|---|
| 52 |
|
|---|
| 53 | /*
|
|---|
| 54 | * Property sheet support (structures)
|
|---|
| 55 | */
|
|---|
| 56 | typedef struct _PROPSHEETPAGEA
|
|---|
| 57 | {
|
|---|
| 58 | DWORD dwSize;
|
|---|
| 59 | DWORD dwFlags;
|
|---|
| 60 | HINSTANCE hInstance;
|
|---|
| 61 | union
|
|---|
| 62 | {
|
|---|
| 63 | LPCSTR pszTemplate;
|
|---|
| 64 | LPCDLGTEMPLATEA pResource;
|
|---|
| 65 | }DUMMYUNIONNAME1;
|
|---|
| 66 | union
|
|---|
| 67 | {
|
|---|
| 68 | HICON hIcon;
|
|---|
| 69 | LPCSTR pszIcon;
|
|---|
| 70 | }DUMMYUNIONNAME2;
|
|---|
| 71 | LPCSTR pszTitle;
|
|---|
| 72 | DLGPROC pfnDlgProc;
|
|---|
| 73 | LPARAM lParam;
|
|---|
| 74 | LPFNPSPCALLBACKA pfnCallback;
|
|---|
| 75 | UINT* pcRefParent;
|
|---|
| 76 | LPCWSTR pszHeaderTitle;
|
|---|
| 77 | LPCWSTR pszHeaderSubTitle;
|
|---|
| 78 | } PROPSHEETPAGEA, *LPPROPSHEETPAGEA;
|
|---|
| 79 |
|
|---|
| 80 | typedef const PROPSHEETPAGEA *LPCPROPSHEETPAGEA;
|
|---|
| 81 |
|
|---|
| 82 | typedef struct _PROPSHEETPAGEW
|
|---|
| 83 | {
|
|---|
| 84 | DWORD dwSize;
|
|---|
| 85 | DWORD dwFlags;
|
|---|
| 86 | HINSTANCE hInstance;
|
|---|
| 87 | union
|
|---|
| 88 | {
|
|---|
| 89 | LPCWSTR pszTemplate;
|
|---|
| 90 | LPCDLGTEMPLATEW pResource;
|
|---|
| 91 | }DUMMYUNIONNAME1;
|
|---|
| 92 | union
|
|---|
| 93 | {
|
|---|
| 94 | HICON hIcon;
|
|---|
| 95 | LPCWSTR pszIcon;
|
|---|
| 96 | }DUMMYUNIONNAME2;
|
|---|
| 97 | LPCWSTR pszTitle;
|
|---|
| 98 | DLGPROC pfnDlgProc;
|
|---|
| 99 | LPARAM lParam;
|
|---|
| 100 | LPFNPSPCALLBACKW pfnCallback;
|
|---|
| 101 | UINT* pcRefParent;
|
|---|
| 102 | LPCWSTR pszHeaderTitle;
|
|---|
| 103 | LPCWSTR pszHeaderSubTitle;
|
|---|
| 104 | } PROPSHEETPAGEW, *LPPROPSHEETPAGEW;
|
|---|
| 105 |
|
|---|
| 106 | typedef const PROPSHEETPAGEW *LPCPROPSHEETPAGEW;
|
|---|
| 107 |
|
|---|
| 108 |
|
|---|
| 109 | typedef struct _PROPSHEETHEADERA
|
|---|
| 110 | {
|
|---|
| 111 | DWORD dwSize;
|
|---|
| 112 | DWORD dwFlags;
|
|---|
| 113 | HWND hwndParent;
|
|---|
| 114 | HINSTANCE hInstance;
|
|---|
| 115 | union
|
|---|
| 116 | {
|
|---|
| 117 | HICON hIcon;
|
|---|
| 118 | LPCSTR pszIcon;
|
|---|
| 119 | }DUMMYUNIONNAME1;
|
|---|
| 120 | LPCSTR pszCaption;
|
|---|
| 121 | UINT nPages;
|
|---|
| 122 | union
|
|---|
| 123 | {
|
|---|
| 124 | UINT nStartPage;
|
|---|
| 125 | LPCSTR pStartPage;
|
|---|
| 126 | }DUMMYUNIONNAME2;
|
|---|
| 127 | union
|
|---|
| 128 | {
|
|---|
| 129 | LPCPROPSHEETPAGEA ppsp;
|
|---|
| 130 | HPROPSHEETPAGE* phpage;
|
|---|
| 131 | }DUMMYUNIONNAME3;
|
|---|
| 132 | PFNPROPSHEETCALLBACK pfnCallback;
|
|---|
| 133 | union
|
|---|
| 134 | {
|
|---|
| 135 | HBITMAP hbmWatermark;
|
|---|
| 136 | LPCSTR pszbmWatermark;
|
|---|
| 137 | }DUMMYUNIONNAME4;
|
|---|
| 138 | HPALETTE hplWatermark;
|
|---|
| 139 | union
|
|---|
| 140 | {
|
|---|
| 141 | HBITMAP hbmHeader;
|
|---|
| 142 | LPCSTR pszbmHeader;
|
|---|
| 143 | }DUMMYUNIONNAME5;
|
|---|
| 144 | } PROPSHEETHEADERA, *LPPROPSHEETHEADERA;
|
|---|
| 145 |
|
|---|
| 146 | typedef const PROPSHEETHEADERA *LPCPROPSHEETHEADERA;
|
|---|
| 147 |
|
|---|
| 148 | typedef struct _PROPSHEETHEADERW
|
|---|
| 149 | {
|
|---|
| 150 | DWORD dwSize;
|
|---|
| 151 | DWORD dwFlags;
|
|---|
| 152 | HWND hwndParent;
|
|---|
| 153 | HINSTANCE hInstance;
|
|---|
| 154 | union
|
|---|
| 155 | {
|
|---|
| 156 | HICON hIcon;
|
|---|
| 157 | LPCSTR pszIcon;
|
|---|
| 158 | }DUMMYUNIONNAME1;
|
|---|
| 159 | LPCWSTR pszCaption;
|
|---|
| 160 | UINT nPages;
|
|---|
| 161 | union
|
|---|
| 162 | {
|
|---|
| 163 | UINT nStartPage;
|
|---|
| 164 | LPCWSTR pStartPage;
|
|---|
| 165 | }DUMMYUNIONNAME2;
|
|---|
| 166 | union
|
|---|
| 167 | {
|
|---|
| 168 | LPCPROPSHEETPAGEW ppsp;
|
|---|
| 169 | HPROPSHEETPAGE* phpage;
|
|---|
| 170 | }DUMMYUNIONNAME3;
|
|---|
| 171 | PFNPROPSHEETCALLBACK pfnCallback;
|
|---|
| 172 | union
|
|---|
| 173 | {
|
|---|
| 174 | HBITMAP hbmWatermark;
|
|---|
| 175 | LPCWSTR pszbmWatermark;
|
|---|
| 176 | }DUMMYUNIONNAME4;
|
|---|
| 177 | HPALETTE hplWatermark;
|
|---|
| 178 | union
|
|---|
| 179 | {
|
|---|
| 180 | HBITMAP hbmHeader;
|
|---|
| 181 | LPCWSTR pszbmHeader;
|
|---|
| 182 | }DUMMYUNIONNAME5;
|
|---|
| 183 | } PROPSHEETHEADERW, *LPPROPSHEETHEADERW;
|
|---|
| 184 |
|
|---|
| 185 | typedef const PROPSHEETHEADERW *LPCPROPSHEETHEADERW;
|
|---|
| 186 |
|
|---|
| 187 |
|
|---|
| 188 | /*
|
|---|
| 189 | * Property sheet support (methods)
|
|---|
| 190 | */
|
|---|
| 191 | INT WINAPI PropertySheetA(LPCPROPSHEETHEADERA);
|
|---|
| 192 | INT WINAPI PropertySheetW(LPCPROPSHEETHEADERW);
|
|---|
| 193 | #define PropertySheet WINELIB_NAME_AW(PropertySheet)
|
|---|
| 194 | HPROPSHEETPAGE WINAPI CreatePropertySheetPageA(LPCPROPSHEETPAGEA);
|
|---|
| 195 | HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW);
|
|---|
| 196 | #define CreatePropertySheetPage WINELIB_NAME_AW(CreatePropertySheetPage)
|
|---|
| 197 | BOOL WINAPI DestroyPropertySheetPage(HPROPSHEETPAGE hPropPage);
|
|---|
| 198 |
|
|---|
| 199 | /*
|
|---|
| 200 | * Property sheet support (UNICODE-WineLib)
|
|---|
| 201 | */
|
|---|
| 202 |
|
|---|
| 203 | DECL_WINELIB_TYPE_AW(PROPSHEETPAGE)
|
|---|
| 204 | DECL_WINELIB_TYPE_AW(LPPROPSHEETPAGE)
|
|---|
| 205 | DECL_WINELIB_TYPE_AW(LPCPROPSHEETPAGE)
|
|---|
| 206 | DECL_WINELIB_TYPE_AW(PROPSHEETHEADER)
|
|---|
| 207 | DECL_WINELIB_TYPE_AW(LPPROPSHEETHEADER)
|
|---|
| 208 | DECL_WINELIB_TYPE_AW(LPCPROPSHEETHEADER)
|
|---|
| 209 | DECL_WINELIB_TYPE_AW(LPFNPSPCALLBACK)
|
|---|
| 210 |
|
|---|
| 211 |
|
|---|
| 212 | /*
|
|---|
| 213 | * Property sheet support (defines)
|
|---|
| 214 | */
|
|---|
| 215 | #define PSP_DEFAULT 0x0000
|
|---|
| 216 | #define PSP_DLGINDIRECT 0x0001
|
|---|
| 217 | #define PSP_USEHICON 0x0002
|
|---|
| 218 | #define PSP_USEICONID 0x0004
|
|---|
| 219 | #define PSP_USETITLE 0x0008
|
|---|
| 220 | #define PSP_RTLREADING 0x0010
|
|---|
| 221 |
|
|---|
| 222 | #define PSP_HASHELP 0x0020
|
|---|
| 223 | #define PSP_USEREFPARENT 0x0040
|
|---|
| 224 | #define PSP_USECALLBACK 0x0080
|
|---|
| 225 | #define PSP_PREMATURE 0x0400
|
|---|
| 226 |
|
|---|
| 227 | #define PSP_HIDEHEADER 0x00000800
|
|---|
| 228 | #define PSP_USEHEADERTITLE 0x00001000
|
|---|
| 229 | #define PSP_USEHEADERSUBTITLE 0x00002000
|
|---|
| 230 |
|
|---|
| 231 | #define PSPCB_RELEASE 1
|
|---|
| 232 | #define PSPCB_CREATE 2
|
|---|
| 233 |
|
|---|
| 234 | #define PSH_DEFAULT 0x0000
|
|---|
| 235 | #define PSH_PROPTITLE 0x0001
|
|---|
| 236 | #define PSH_USEHICON 0x0002
|
|---|
| 237 | #define PSH_USEICONID 0x0004
|
|---|
| 238 | #define PSH_PROPSHEETPAGE 0x0008
|
|---|
| 239 | #define PSH_WIZARD 0x0020
|
|---|
| 240 | #define PSH_USEPSTARTPAGE 0x0040
|
|---|
| 241 | #define PSH_NOAPPLYNOW 0x0080
|
|---|
| 242 | #define PSH_USECALLBACK 0x0100
|
|---|
| 243 | #define PSH_HASHELP 0x0200
|
|---|
| 244 | #define PSH_MODELESS 0x0400
|
|---|
| 245 | #define PSH_RTLREADING 0x0800
|
|---|
| 246 | #define PSH_WIZARDCONTEXTHELP 0x00001000
|
|---|
| 247 |
|
|---|
| 248 | #define PSH_WIZARD97 0x00002000
|
|---|
| 249 | #define PSH_WATERMARK 0x00008000
|
|---|
| 250 | #define PSH_USEHBMWATERMARK 0x00010000
|
|---|
| 251 | #define PSH_USEHPLWATERMARK 0x00020000
|
|---|
| 252 | #define PSH_STRETCHWATERMARK 0x00040000
|
|---|
| 253 | #define PSH_HEADER 0x00080000
|
|---|
| 254 | #define PSH_USEHBMHEADER 0x00100000
|
|---|
| 255 | #define PSH_USEPAGELANG 0x00200000
|
|---|
| 256 |
|
|---|
| 257 | #define PSCB_INITIALIZED 1
|
|---|
| 258 | #define PSCB_PRECREATE 2
|
|---|
| 259 |
|
|---|
| 260 | typedef struct _PSHNOTIFY
|
|---|
| 261 | {
|
|---|
| 262 | NMHDR hdr;
|
|---|
| 263 | LPARAM lParam;
|
|---|
| 264 | } PSHNOTIFY, *LPPSHNOTIFY;
|
|---|
| 265 |
|
|---|
| 266 | #define PSN_FIRST (0U-200U)
|
|---|
| 267 | #define PSN_LAST (0U-299U)
|
|---|
| 268 |
|
|---|
| 269 |
|
|---|
| 270 | #define PSN_SETACTIVE (PSN_FIRST-0)
|
|---|
| 271 | #define PSN_KILLACTIVE (PSN_FIRST-1)
|
|---|
| 272 | /* #define PSN_VALIDATE (PSN_FIRST-1) */
|
|---|
| 273 | #define PSN_APPLY (PSN_FIRST-2)
|
|---|
| 274 | #define PSN_RESET (PSN_FIRST-3)
|
|---|
| 275 | /* #define PSN_CANCEL (PSN_FIRST-3) */
|
|---|
| 276 | #define PSN_HELP (PSN_FIRST-5)
|
|---|
| 277 | #define PSN_WIZBACK (PSN_FIRST-6)
|
|---|
| 278 | #define PSN_WIZNEXT (PSN_FIRST-7)
|
|---|
| 279 | #define PSN_WIZFINISH (PSN_FIRST-8)
|
|---|
| 280 | #define PSN_QUERYCANCEL (PSN_FIRST-9)
|
|---|
| 281 |
|
|---|
| 282 | #define PSNRET_NOERROR 0
|
|---|
| 283 | #define PSNRET_INVALID 1
|
|---|
| 284 | #define PSNRET_INVALID_NOCHANGEPAGE 2
|
|---|
| 285 |
|
|---|
| 286 |
|
|---|
| 287 | #define PSM_SETCURSEL (WM_USER + 101)
|
|---|
| 288 | #define PSM_REMOVEPAGE (WM_USER + 102)
|
|---|
| 289 | #define PSM_ADDPAGE (WM_USER + 103)
|
|---|
| 290 | #define PSM_CHANGED (WM_USER + 104)
|
|---|
| 291 | #define PSM_RESTARTWINDOWS (WM_USER + 105)
|
|---|
| 292 | #define PSM_REBOOTSYSTEM (WM_USER + 106)
|
|---|
| 293 | #define PSM_CANCELTOCLOSE (WM_USER + 107)
|
|---|
| 294 | #define PSM_QUERYSIBLINGS (WM_USER + 108)
|
|---|
| 295 | #define PSM_UNCHANGED (WM_USER + 109)
|
|---|
| 296 | #define PSM_APPLY (WM_USER + 110)
|
|---|
| 297 | #define PSM_SETTITLEA (WM_USER + 111)
|
|---|
| 298 | #define PSM_SETTITLEW (WM_USER + 120)
|
|---|
| 299 | #define PSM_SETTITLE WINELIB_NAME_AW(PSM_SETTITLE)
|
|---|
| 300 | #define PSM_SETWIZBUTTONS (WM_USER + 112)
|
|---|
| 301 | #define PSM_PRESSBUTTON (WM_USER + 113)
|
|---|
| 302 | #define PSM_SETCURSELID (WM_USER + 114)
|
|---|
| 303 | #define PSM_SETFINISHTEXTA (WM_USER + 115)
|
|---|
| 304 | #define PSM_SETFINISHTEXTW (WM_USER + 121)
|
|---|
| 305 | #define PSM_SETFINISHTEXT WINELIB_NAME_AW(PSM_SETFINISHTEXT)
|
|---|
| 306 | #define PSM_GETTABCONTROL (WM_USER + 116)
|
|---|
| 307 | #define PSM_ISDIALOGMESSAGE (WM_USER + 117)
|
|---|
| 308 | #define PSM_GETCURRENTPAGEHWND (WM_USER + 118)
|
|---|
| 309 |
|
|---|
| 310 | #define PSWIZB_BACK 0x00000001
|
|---|
| 311 | #define PSWIZB_NEXT 0x00000002
|
|---|
| 312 | #define PSWIZB_FINISH 0x00000004
|
|---|
| 313 | #define PSWIZB_DISABLEDFINISH 0x00000008
|
|---|
| 314 |
|
|---|
| 315 | #define PSBTN_BACK 0
|
|---|
| 316 | #define PSBTN_NEXT 1
|
|---|
| 317 | #define PSBTN_FINISH 2
|
|---|
| 318 | #define PSBTN_OK 3
|
|---|
| 319 | #define PSBTN_APPLYNOW 4
|
|---|
| 320 | #define PSBTN_CANCEL 5
|
|---|
| 321 | #define PSBTN_HELP 6
|
|---|
| 322 | #define PSBTN_MAX 6
|
|---|
| 323 |
|
|---|
| 324 | #define ID_PSRESTARTWINDOWS 0x2
|
|---|
| 325 | #define ID_PSREBOOTSYSTEM (ID_PSRESTARTWINDOWS | 0x1)
|
|---|
| 326 |
|
|---|
| 327 |
|
|---|
| 328 | #define WIZ_CXDLG 276
|
|---|
| 329 | #define WIZ_CYDLG 140
|
|---|
| 330 |
|
|---|
| 331 | #define WIZ_CXBMP 80
|
|---|
| 332 |
|
|---|
| 333 | #define WIZ_BODYX 92
|
|---|
| 334 | #define WIZ_BODYCX 184
|
|---|
| 335 |
|
|---|
| 336 | #define PROP_SM_CXDLG 212
|
|---|
| 337 | #define PROP_SM_CYDLG 188
|
|---|
| 338 |
|
|---|
| 339 | #define PROP_MED_CXDLG 227
|
|---|
| 340 | #define PROP_MED_CYDLG 215
|
|---|
| 341 |
|
|---|
| 342 | #define PROP_LG_CXDLG 252
|
|---|
| 343 | #define PROP_LG_CYDLG 218
|
|---|
| 344 |
|
|---|
| 345 | /*
|
|---|
| 346 | * Property sheet support (macros)
|
|---|
| 347 | */
|
|---|
| 348 |
|
|---|
| 349 | #define PropSheet_SetCurSel(hDlg, hpage, index) \
|
|---|
| 350 | SendMessageA(hDlg, PSM_SETCURSEL, (WPARAM)index, (LPARAM)hpage)
|
|---|
| 351 |
|
|---|
| 352 | #define PropSheet_RemovePage(hDlg, index, hpage) \
|
|---|
| 353 | SNDMSG(hDlg, PSM_REMOVEPAGE, index, (LPARAM)hpage)
|
|---|
| 354 |
|
|---|
| 355 | #define PropSheet_AddPage(hDlg, hpage) \
|
|---|
| 356 | SNDMSG(hDlg, PSM_ADDPAGE, 0, (LPARAM)hpage)
|
|---|
| 357 |
|
|---|
| 358 | #define PropSheet_Changed(hDlg, hwnd) \
|
|---|
| 359 | SNDMSG(hDlg, PSM_CHANGED, (WPARAM)hwnd, 0L)
|
|---|
| 360 |
|
|---|
| 361 | #define PropSheet_RestartWindows(hDlg) \
|
|---|
| 362 | SNDMSG(hDlg, PSM_RESTARTWINDOWS, 0, 0L)
|
|---|
| 363 |
|
|---|
| 364 | #define PropSheet_RebootSystem(hDlg) \
|
|---|
| 365 | SNDMSG(hDlg, PSM_REBOOTSYSTEM, 0, 0L)
|
|---|
| 366 |
|
|---|
| 367 | #define PropSheet_CancelToClose(hDlg) \
|
|---|
| 368 | PostMessage(hDlg, PSM_CANCELTOCLOSE, 0, 0L)
|
|---|
| 369 |
|
|---|
| 370 | #define PropSheet_QuerySiblings(hDlg, wParam, lParam) \
|
|---|
| 371 | SNDMSG(hDlg, PSM_QUERYSIBLINGS, wParam, lParam)
|
|---|
| 372 |
|
|---|
| 373 | #define PropSheet_UnChanged(hDlg, hwnd) \
|
|---|
| 374 | SNDMSG(hDlg, PSM_UNCHANGED, (WPARAM)hwnd, 0L)
|
|---|
| 375 |
|
|---|
| 376 | #define PropSheet_Apply(hDlg) \
|
|---|
| 377 | SNDMSG(hDlg, PSM_APPLY, 0, 0L)
|
|---|
| 378 |
|
|---|
| 379 | #define PropSheet_SetTitle(hDlg, wStyle, lpszText)\
|
|---|
| 380 | SNDMSG(hDlg, PSM_SETTITLE, wStyle, (LPARAM)(LPCTSTR)lpszText)
|
|---|
| 381 |
|
|---|
| 382 | #define PropSheet_SetWizButtons(hDlg, dwFlags) \
|
|---|
| 383 | PostMessage(hDlg, PSM_SETWIZBUTTONS, 0, (LPARAM)dwFlags)
|
|---|
| 384 |
|
|---|
| 385 | #define PropSheet_PressButton(hDlg, iButton) \
|
|---|
| 386 | PostMessage(hDlg, PSM_PRESSBUTTON, (WPARAM)iButton, 0)
|
|---|
| 387 |
|
|---|
| 388 | #define PropSheet_SetCurSelByID(hDlg, id) \
|
|---|
| 389 | SNDMSG(hDlg, PSM_SETCURSELID, 0, (LPARAM)id)
|
|---|
| 390 |
|
|---|
| 391 | #define PropSheet_SetFinishText(hDlg, lpszText) \
|
|---|
| 392 | SNDMSG(hDlg, PSM_SETFINISHTEXT, 0, (LPARAM)lpszText)
|
|---|
| 393 |
|
|---|
| 394 | #define PropSheet_GetTabControl(hDlg) \
|
|---|
| 395 | (HWND)SNDMSG(hDlg, PSM_GETTABCONTROL, 0, 0)
|
|---|
| 396 |
|
|---|
| 397 | #define PropSheet_IsDialogMessage(hDlg, pMsg) \
|
|---|
| 398 | (BOOL)SNDMSG(hDlg, PSM_ISDIALOGMESSAGE, 0, (LPARAM)pMsg)
|
|---|
| 399 |
|
|---|
| 400 | #define PropSheet_GetCurrentPageHwnd(hDlg) \
|
|---|
| 401 | (HWND)SNDMSG(hDlg, PSM_GETCURRENTPAGEHWND, 0, 0L)
|
|---|
| 402 |
|
|---|
| 403 |
|
|---|
| 404 | #ifdef __cplusplus
|
|---|
| 405 | }
|
|---|
| 406 | #endif
|
|---|
| 407 |
|
|---|
| 408 |
|
|---|
| 409 |
|
|---|
| 410 | #endif /* _WINE_PRSHT_H */
|
|---|