d2d1/effect: Create effect instance properties from builtin effect description.
[wine.git] / include / prsht.h
bloba88351701ed8dc925fcd19c0f3b5071e93b5730f
1 /*
2 * Copyright (C) the Wine project
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_PRSHT_H
20 #define __WINE_PRSHT_H
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
28 * Property sheet support (callback procs)
32 #define WC_PROPSHEETA "SysPropertySheet"
33 #if defined(_MSC_VER) || defined(__MINGW32__)
34 # define WC_PROPSHEETW L"SysPropertySheet"
35 #else
36 static const WCHAR WC_PROPSHEETW[] = { 'S','y','s',
37 'P','r','o','p','e','r','t','y','S','h','e','e','t',0 };
38 #endif
39 #define WC_PROPSHEET WINELIB_NAME_AW(WC_PROPSHEET)
41 struct _PROPSHEETPAGEA; /** need to forward declare those structs **/
42 struct _PROPSHEETPAGEW;
43 struct _PSP;
44 #ifndef _HPROPSHEETPAGE_DEFINED
45 #define _HPROPSHEETPAGE_DEFINED
46 typedef struct _PSP *HPROPSHEETPAGE;
47 #endif /* _HPROPSHEETPAGE_DEFINED */
50 typedef UINT (CALLBACK *LPFNPSPCALLBACKA)(HWND, UINT, struct _PROPSHEETPAGEA*);
51 typedef UINT (CALLBACK *LPFNPSPCALLBACKW)(HWND, UINT, struct _PROPSHEETPAGEW*);
52 typedef INT (CALLBACK *PFNPROPSHEETCALLBACK)(HWND, UINT, LPARAM);
53 typedef BOOL (CALLBACK *LPFNADDPROPSHEETPAGE)(HPROPSHEETPAGE, LPARAM);
54 typedef BOOL (CALLBACK *LPFNADDPROPSHEETPAGES)(LPVOID, LPFNADDPROPSHEETPAGE, LPARAM);
57 * Property sheet support (structures)
60 typedef LPCDLGTEMPLATEA PROPSHEETPAGE_RESOURCEA;
61 typedef LPCDLGTEMPLATEW PROPSHEETPAGE_RESOURCEW;
62 DECL_WINELIB_TYPE_AW(PROPSHEETPAGE_RESOURCE)
64 typedef struct _PROPSHEETPAGEA
66 DWORD dwSize;
67 DWORD dwFlags;
68 HINSTANCE hInstance;
69 union
71 LPCSTR pszTemplate;
72 PROPSHEETPAGE_RESOURCEA pResource;
73 } DUMMYUNIONNAME;
74 union
76 HICON hIcon;
77 LPCSTR pszIcon;
78 } DUMMYUNIONNAME2;
79 LPCSTR pszTitle;
80 DLGPROC pfnDlgProc;
81 LPARAM lParam;
82 LPFNPSPCALLBACKA pfnCallback;
83 UINT* pcRefParent;
84 LPCSTR pszHeaderTitle;
85 LPCSTR pszHeaderSubTitle;
86 HANDLE hActCtx;
87 union
89 HBITMAP hbmHeader;
90 LPCSTR pszbmHeader;
91 } DUMMYUNIONNAME3;
92 } PROPSHEETPAGEA, *LPPROPSHEETPAGEA,
93 PROPSHEETPAGEA_LATEST, *LPPROPSHEETPAGEA_LATEST;
95 typedef const PROPSHEETPAGEA *LPCPROPSHEETPAGEA, *LPCPROPSHEETPAGEA_LATEST;
96 #define PROPSHEETPAGEA_V1_SIZE CCSIZEOF_STRUCT(PROPSHEETPAGEA, pcRefParent)
97 #define PROPSHEETPAGEA_V2_SIZE CCSIZEOF_STRUCT(PROPSHEETPAGEA, pszHeaderSubTitle)
98 #define PROPSHEETPAGEA_V3_SIZE CCSIZEOF_STRUCT(PROPSHEETPAGEA, hActCtx)
99 #define PROPSHEETPAGEA_V4_SIZE sizeof(PROPSHEETPAGEA)
101 typedef struct _PROPSHEETPAGEW
103 DWORD dwSize;
104 DWORD dwFlags;
105 HINSTANCE hInstance;
106 union
108 LPCWSTR pszTemplate;
109 PROPSHEETPAGE_RESOURCEW pResource;
110 } DUMMYUNIONNAME;
111 union
113 HICON hIcon;
114 LPCWSTR pszIcon;
115 } DUMMYUNIONNAME2;
116 LPCWSTR pszTitle;
117 DLGPROC pfnDlgProc;
118 LPARAM lParam;
119 LPFNPSPCALLBACKW pfnCallback;
120 UINT* pcRefParent;
121 LPCWSTR pszHeaderTitle;
122 LPCWSTR pszHeaderSubTitle;
123 HANDLE hActCtx;
124 union
126 HBITMAP hbmHeader;
127 LPCWSTR pszbmHeader;
128 } DUMMYUNIONNAME3;
129 } PROPSHEETPAGEW, *LPPROPSHEETPAGEW,
130 PROPSHEETPAGEW_LATEST, *LPPROPSHEETPAGEW_LATEST;
132 typedef const PROPSHEETPAGEW *LPCPROPSHEETPAGEW, *LPCPROPSHEETPAGEW_LATEST;
133 #define PROPSHEETPAGEW_V1_SIZE CCSIZEOF_STRUCT(PROPSHEETPAGEW, pcRefParent)
134 #define PROPSHEETPAGEW_V2_SIZE CCSIZEOF_STRUCT(PROPSHEETPAGEW, pszHeaderSubTitle)
135 #define PROPSHEETPAGEW_V3_SIZE CCSIZEOF_STRUCT(PROPSHEETPAGEW, hActCtx)
136 #define PROPSHEETPAGEW_V4_SIZE sizeof(PROPSHEETPAGEW)
139 typedef struct _PROPSHEETHEADERA
141 DWORD dwSize;
142 DWORD dwFlags;
143 HWND hwndParent;
144 HINSTANCE hInstance;
145 union
147 HICON hIcon;
148 LPCSTR pszIcon;
149 }DUMMYUNIONNAME;
150 LPCSTR pszCaption;
151 UINT nPages;
152 union
154 UINT nStartPage;
155 LPCSTR pStartPage;
156 }DUMMYUNIONNAME2;
157 union
159 LPCPROPSHEETPAGEA ppsp;
160 HPROPSHEETPAGE* phpage;
161 }DUMMYUNIONNAME3;
162 PFNPROPSHEETCALLBACK pfnCallback;
163 union
165 HBITMAP hbmWatermark;
166 LPCSTR pszbmWatermark;
167 }DUMMYUNIONNAME4;
168 HPALETTE hplWatermark;
169 union
171 HBITMAP hbmHeader;
172 LPCSTR pszbmHeader;
173 }DUMMYUNIONNAME5;
174 } PROPSHEETHEADERA, *LPPROPSHEETHEADERA;
176 typedef const PROPSHEETHEADERA *LPCPROPSHEETHEADERA;
177 #define PROPSHEETHEADERA_V1_SIZE CCSIZEOF_STRUCT(PROPSHEETHEADERA, pfnCallback)
178 #define PROPSHEETHEADERA_V2_SIZE sizeof(PROPSHEETHEADERA)
180 typedef struct _PROPSHEETHEADERW
182 DWORD dwSize;
183 DWORD dwFlags;
184 HWND hwndParent;
185 HINSTANCE hInstance;
186 union
188 HICON hIcon;
189 LPCWSTR pszIcon;
190 }DUMMYUNIONNAME;
191 LPCWSTR pszCaption;
192 UINT nPages;
193 union
195 UINT nStartPage;
196 LPCWSTR pStartPage;
197 }DUMMYUNIONNAME2;
198 union
200 LPCPROPSHEETPAGEW ppsp;
201 HPROPSHEETPAGE* phpage;
202 }DUMMYUNIONNAME3;
203 PFNPROPSHEETCALLBACK pfnCallback;
204 union
206 HBITMAP hbmWatermark;
207 LPCWSTR pszbmWatermark;
208 }DUMMYUNIONNAME4;
209 HPALETTE hplWatermark;
210 union
212 HBITMAP hbmHeader;
213 LPCWSTR pszbmHeader;
214 }DUMMYUNIONNAME5;
215 } PROPSHEETHEADERW, *LPPROPSHEETHEADERW;
217 typedef const PROPSHEETHEADERW *LPCPROPSHEETHEADERW;
218 #define PROPSHEETHEADERW_V1_SIZE CCSIZEOF_STRUCT(PROPSHEETHEADERW, pfnCallback)
219 #define PROPSHEETHEADERW_V2_SIZE sizeof(PROPSHEETHEADERW)
223 * Property sheet support (methods)
225 INT_PTR WINAPI PropertySheetA(LPCPROPSHEETHEADERA);
226 INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW);
227 #define PropertySheet WINELIB_NAME_AW(PropertySheet)
228 HPROPSHEETPAGE WINAPI CreatePropertySheetPageA(LPCPROPSHEETPAGEA);
229 HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW);
230 #define CreatePropertySheetPage WINELIB_NAME_AW(CreatePropertySheetPage)
231 BOOL WINAPI DestroyPropertySheetPage(HPROPSHEETPAGE hPropPage);
234 * Property sheet support (UNICODE-Winelib)
237 DECL_WINELIB_TYPE_AW(PROPSHEETPAGE)
238 DECL_WINELIB_TYPE_AW(LPPROPSHEETPAGE)
239 DECL_WINELIB_TYPE_AW(LPCPROPSHEETPAGE)
240 DECL_WINELIB_TYPE_AW(PROPSHEETHEADER)
241 DECL_WINELIB_TYPE_AW(LPPROPSHEETHEADER)
242 DECL_WINELIB_TYPE_AW(LPCPROPSHEETHEADER)
243 DECL_WINELIB_TYPE_AW(LPFNPSPCALLBACK)
245 #ifdef WINE_NO_UNICODE_MACROS
246 # define PRSHT_NAME_AW(base, suffix) \
247 base##_##suffix##_must_use_W_or_A_in_this_context \
248 base##_##suffix##_must_use_W_or_A_in_this_context
249 # define DECL_PRSHT_TYPE_AW(base, suffix) /* nothing */
250 #else /* WINE_NO_UNICODE_MACROS */
251 # ifdef UNICODE
252 # define PRSHT_NAME_AW(base, suffix) base##W_##suffix
253 # else
254 # define PRSHT_NAME_AW(base, suffix) base##A_##suffix
255 # endif
256 # define DECL_PRSHT_TYPE_AW(base, suffix) typedef PRSHT_NAME_AW(base, suffix) base##_##suffix;
257 #endif /* WINE_NO_UNICODE_MACROS */
259 DECL_PRSHT_TYPE_AW(PROPSHEETPAGE, LATEST)
260 DECL_PRSHT_TYPE_AW(LPPROPSHEETPAGE, LATEST)
261 DECL_PRSHT_TYPE_AW(LPCPROPSHEETPAGE, LATEST)
262 #define PROPSHEETPAGE_V1_SIZE PRSHT_NAME_AW(PROPSHEETPAGE, V1_SIZE)
263 #define PROPSHEETPAGE_V2_SIZE PRSHT_NAME_AW(PROPSHEETPAGE, V2_SIZE)
264 #define PROPSHEETPAGE_V3_SIZE PRSHT_NAME_AW(PROPSHEETPAGE, V3_SIZE)
265 #define PROPSHEETPAGE_V4_SIZE PRSHT_NAME_AW(PROPSHEETPAGE, V4_SIZE)
266 #define PROPSHEETHEADER_V1_SIZE PRSHT_NAME_AW(PROPSHEETHEADER, V1_SIZE)
267 #define PROPSHEETHEADER_V2_SIZE PRSHT_NAME_AW(PROPSHEETHEADER, V2_SIZE)
269 #undef PRSHT_NAME_AW
270 #undef DECL_PRSHT_TYPE_AW
273 * Property sheet support (defines)
275 #define PSP_DEFAULT 0x0000
276 #define PSP_DLGINDIRECT 0x0001
277 #define PSP_USEHICON 0x0002
278 #define PSP_USEICONID 0x0004
279 #define PSP_USETITLE 0x0008
280 #define PSP_RTLREADING 0x0010
282 #define PSP_HASHELP 0x0020
283 #define PSP_USEREFPARENT 0x0040
284 #define PSP_USECALLBACK 0x0080
285 #define PSP_PREMATURE 0x0400
287 #define PSP_HIDEHEADER 0x00000800
288 #define PSP_USEHEADERTITLE 0x00001000
289 #define PSP_USEHEADERSUBTITLE 0x00002000
290 #define PSP_USEFUSIONCONTEXT 0x00004000
291 #define PSP_COMMANDLINKS 0x00040000
293 #define PSPCB_ADDREF 0
294 #define PSPCB_RELEASE 1
295 #define PSPCB_CREATE 2
297 #define PSH_DEFAULT 0x0000
298 #define PSH_PROPTITLE 0x0001
299 #define PSH_USEHICON 0x0002
300 #define PSH_USEICONID 0x0004
301 #define PSH_PROPSHEETPAGE 0x0008
302 #define PSH_WIZARDHASFINISH 0x0010
303 #define PSH_WIZARD 0x0020
304 #define PSH_USEPSTARTPAGE 0x0040
305 #define PSH_NOAPPLYNOW 0x0080
306 #define PSH_USECALLBACK 0x0100
307 #define PSH_HASHELP 0x0200
308 #define PSH_MODELESS 0x0400
309 #define PSH_RTLREADING 0x0800
310 #define PSH_WIZARDCONTEXTHELP 0x00001000
312 #define PSH_WIZARD97_OLD 0x00002000 /* for IE < 5 */
313 #define PSH_AEROWIZARD 0x00004000
314 #define PSH_WATERMARK 0x00008000
315 #define PSH_USEHBMWATERMARK 0x00010000
316 #define PSH_USEHPLWATERMARK 0x00020000
317 #define PSH_STRETCHWATERMARK 0x00040000
318 #define PSH_HEADER 0x00080000
319 #define PSH_USEHBMHEADER 0x00100000
320 #define PSH_USEPAGELANG 0x00200000
321 #define PSH_WIZARD_LITE 0x00400000
322 #define PSH_WIZARD97_NEW 0x01000000 /* for IE >= 5 */
323 #define PSH_NOCONTEXTHELP 0x02000000
324 #define PSH_RESIZABLE 0x04000000
325 #define PSH_HEADERBITMAP 0x08000000
326 #define PSH_NOMARGIN 0x10000000
327 #ifndef __WINESRC__
328 # if defined(_WIN32_IE) && (_WIN32_IE < 0x0500)
329 # define PSH_WIZARD97 PSH_WIZARD97_OLD
330 # else
331 # define PSH_WIZARD97 PSH_WIZARD97_NEW
332 # endif
333 #endif
335 #define PSCB_INITIALIZED 1
336 #define PSCB_PRECREATE 2
338 typedef struct _PSHNOTIFY
340 NMHDR hdr;
341 LPARAM lParam;
342 } PSHNOTIFY, *LPPSHNOTIFY;
344 #define PSN_FIRST (0U-200U)
345 #define PSN_LAST (0U-299U)
348 #define PSN_SETACTIVE (PSN_FIRST-0)
349 #define PSN_KILLACTIVE (PSN_FIRST-1)
350 /* #define PSN_VALIDATE (PSN_FIRST-1) */
351 #define PSN_APPLY (PSN_FIRST-2)
352 #define PSN_RESET (PSN_FIRST-3)
353 /* #define PSN_CANCEL (PSN_FIRST-3) */
354 #define PSN_HELP (PSN_FIRST-5)
355 #define PSN_WIZBACK (PSN_FIRST-6)
356 #define PSN_WIZNEXT (PSN_FIRST-7)
357 #define PSN_WIZFINISH (PSN_FIRST-8)
358 #define PSN_QUERYCANCEL (PSN_FIRST-9)
359 #define PSN_GETOBJECT (PSN_FIRST-10)
360 #define PSN_TRANSLATEACCELERATOR (PSN_FIRST-12)
361 #define PSN_QUERYINITIALFOCUS (PSN_FIRST-13)
363 #define PSNRET_NOERROR 0
364 #define PSNRET_INVALID 1
365 #define PSNRET_INVALID_NOCHANGEPAGE 2
368 #define PSM_SETCURSEL (WM_USER + 101)
369 #define PSM_REMOVEPAGE (WM_USER + 102)
370 #define PSM_ADDPAGE (WM_USER + 103)
371 #define PSM_CHANGED (WM_USER + 104)
372 #define PSM_RESTARTWINDOWS (WM_USER + 105)
373 #define PSM_REBOOTSYSTEM (WM_USER + 106)
374 #define PSM_CANCELTOCLOSE (WM_USER + 107)
375 #define PSM_QUERYSIBLINGS (WM_USER + 108)
376 #define PSM_UNCHANGED (WM_USER + 109)
377 #define PSM_APPLY (WM_USER + 110)
378 #define PSM_SETTITLEA (WM_USER + 111)
379 #define PSM_SETTITLEW (WM_USER + 120)
380 #define PSM_SETTITLE WINELIB_NAME_AW(PSM_SETTITLE)
381 #define PSM_SETWIZBUTTONS (WM_USER + 112)
382 #define PSM_PRESSBUTTON (WM_USER + 113)
383 #define PSM_SETCURSELID (WM_USER + 114)
384 #define PSM_SETFINISHTEXTA (WM_USER + 115)
385 #define PSM_SETFINISHTEXTW (WM_USER + 121)
386 #define PSM_SETFINISHTEXT WINELIB_NAME_AW(PSM_SETFINISHTEXT)
387 #define PSM_GETTABCONTROL (WM_USER + 116)
388 #define PSM_ISDIALOGMESSAGE (WM_USER + 117)
389 #define PSM_GETCURRENTPAGEHWND (WM_USER + 118)
390 #define PSM_INSERTPAGE (WM_USER + 119)
391 #define PSM_SETHEADERTITLEA (WM_USER + 125)
392 #define PSM_SETHEADERTITLEW (WM_USER + 126)
393 #define PSM_SETHEADERTITLE WINELIB_NAME_AW(PSM_SETHEADERTITLE)
394 #define PSM_SETHEADERSUBTITLEA (WM_USER + 127)
395 #define PSM_SETHEADERSUBTITLEW (WM_USER + 128)
396 #define PSM_SETHEADERSUBTITLE WINELIB_NAME_AW(PSM_SETHEADERSUBTITLE)
397 #define PSM_HWNDTOINDEX (WM_USER + 129)
398 #define PSM_INDEXTOHWND (WM_USER + 130)
399 #define PSM_PAGETOINDEX (WM_USER + 131)
400 #define PSM_INDEXTOPAGE (WM_USER + 132)
401 #define PSM_IDTOINDEX (WM_USER + 133)
402 #define PSM_INDEXTOID (WM_USER + 134)
403 #define PSM_GETRESULT (WM_USER + 135)
404 #define PSM_RECALCPAGESIZES (WM_USER + 136)
406 #define PSWIZB_BACK 0x00000001
407 #define PSWIZB_NEXT 0x00000002
408 #define PSWIZB_FINISH 0x00000004
409 #define PSWIZB_DISABLEDFINISH 0x00000008
411 #define PSBTN_BACK 0
412 #define PSBTN_NEXT 1
413 #define PSBTN_FINISH 2
414 #define PSBTN_OK 3
415 #define PSBTN_APPLYNOW 4
416 #define PSBTN_CANCEL 5
417 #define PSBTN_HELP 6
418 #define PSBTN_MAX 6
420 #define ID_PSRESTARTWINDOWS 0x2
421 #define ID_PSREBOOTSYSTEM (ID_PSRESTARTWINDOWS | 0x1)
424 #define WIZ_CXDLG 276
425 #define WIZ_CYDLG 140
427 #define WIZ_CXBMP 80
429 #define WIZ_BODYX 92
430 #define WIZ_BODYCX 184
432 #define PROP_SM_CXDLG 212
433 #define PROP_SM_CYDLG 188
435 #define PROP_MED_CXDLG 227
436 #define PROP_MED_CYDLG 215
438 #define PROP_LG_CXDLG 252
439 #define PROP_LG_CYDLG 218
442 * Property sheet support (macros)
445 #define PropSheet_SetCurSel(hDlg, hpage, index) \
446 SendMessageA(hDlg, PSM_SETCURSEL, (WPARAM)index, (LPARAM)hpage)
448 #define PropSheet_RemovePage(hDlg, index, hpage) \
449 SNDMSG(hDlg, PSM_REMOVEPAGE, index, (LPARAM)hpage)
451 #define PropSheet_AddPage(hDlg, hpage) \
452 SNDMSG(hDlg, PSM_ADDPAGE, 0, (LPARAM)hpage)
454 #define PropSheet_Changed(hDlg, hwnd) \
455 SNDMSG(hDlg, PSM_CHANGED, (WPARAM)hwnd, 0)
457 #define PropSheet_RestartWindows(hDlg) \
458 SNDMSG(hDlg, PSM_RESTARTWINDOWS, 0, 0)
460 #define PropSheet_RebootSystem(hDlg) \
461 SNDMSG(hDlg, PSM_REBOOTSYSTEM, 0, 0)
463 #define PropSheet_CancelToClose(hDlg) \
464 PostMessage(hDlg, PSM_CANCELTOCLOSE, 0, 0)
466 #define PropSheet_QuerySiblings(hDlg, wParam, lParam) \
467 SNDMSG(hDlg, PSM_QUERYSIBLINGS, wParam, lParam)
469 #define PropSheet_UnChanged(hDlg, hwnd) \
470 SNDMSG(hDlg, PSM_UNCHANGED, (WPARAM)hwnd, 0)
472 #define PropSheet_Apply(hDlg) \
473 SNDMSG(hDlg, PSM_APPLY, 0, 0)
475 #define PropSheet_SetTitle(hDlg, wStyle, lpszText)\
476 SNDMSG(hDlg, PSM_SETTITLE, wStyle, (LPARAM)(LPCTSTR)lpszText)
478 #define PropSheet_SetWizButtons(hDlg, dwFlags) \
479 PostMessage(hDlg, PSM_SETWIZBUTTONS, 0, (LPARAM)dwFlags)
481 #define PropSheet_PressButton(hDlg, iButton) \
482 PostMessage(hDlg, PSM_PRESSBUTTON, (WPARAM)iButton, 0)
484 #define PropSheet_SetCurSelByID(hDlg, id) \
485 SNDMSG(hDlg, PSM_SETCURSELID, 0, (LPARAM)id)
487 #define PropSheet_SetFinishText(hDlg, lpszText) \
488 SNDMSG(hDlg, PSM_SETFINISHTEXT, 0, (LPARAM)lpszText)
490 #define PropSheet_GetTabControl(hDlg) \
491 (HWND)SNDMSG(hDlg, PSM_GETTABCONTROL, 0, 0)
493 #define PropSheet_IsDialogMessage(hDlg, pMsg) \
494 (BOOL)SNDMSG(hDlg, PSM_ISDIALOGMESSAGE, 0, (LPARAM)pMsg)
496 #define PropSheet_GetCurrentPageHwnd(hDlg) \
497 (HWND)SNDMSG(hDlg, PSM_GETCURRENTPAGEHWND, 0, 0)
499 #define PropSheet_InsertPage(hDlg, index, hpage) \
500 SNDMSG(hDlg, PSM_INSERTPAGE, (WPARAM)(index), (LPARAM)(hpage))
502 #define PropSheet_SetHeaderTitle(hDlg, index, lpszText) \
503 SNDMSG(hDlg, PSM_SETHEADERTITLE, (WPARAM)(index), (LPARAM)(lpszText))
505 #define PropSheet_SetHeaderSubTitle(hDlg, index, lpszText) \
506 SNDMSG(hDlg, PSM_SETHEADERSUBTITLE, (WPARAM)(index), (LPARAM)(lpszText))
508 #define PropSheet_HwndToIndex(hDlg, hwnd) \
509 (int)SNDMSG(hDlg, PSM_HWNDTOINDEX, (WPARAM)(hwnd), 0)
511 #define PropSheet_IndexToHwnd(hDlg, i) \
512 (HWND)SNDMSG(hDlg, PSM_INDEXTOHWND, (WPARAM)(i), 0)
514 #define PropSheet_PageToIndex(hDlg, hpage) \
515 (int)SNDMSG(hDlg, PSM_PAGETOINDEX, 0, (LPARAM)(hpage))
517 #define PropSheet_IndexToPage(hDlg, i) \
518 (HPROPSHEETPAGE)SNDMSG(hDlg, PSM_INDEXTOPAGE, (WPARAM)(i), 0)
520 #define PropSheet_IdToIndex(hDlg, id) \
521 (int)SNDMSG(hDlg, PSM_IDTOINDEX, 0, (LPARAM)(id))
523 #define PropSheet_IndexToId(hDlg, i) \
524 SNDMSG(hDlg, PSM_INDEXTOID, (WPARAM)(i), 0)
526 #define PropSheet_GetResult(hDlg) \
527 SNDMSG(hDlg, PSM_GETRESULT, 0, 0)
529 #define PropSheet_RecalcPageSizes(hDlg) \
530 SNDMSG(hDlg, PSM_RECALCPAGESIZES, 0, 0)
532 #ifdef __cplusplus
534 #endif
536 #endif /* __WINE_PRSHT_H */