dxgi: Use CRT allocation functions.
[wine.git] / include / prsht.h
blobd3009ef9ac4907c2527e41dddce0a291fb25c984
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
26 #ifndef WINCOMMCTRLAPI
27 #ifdef _COMCTL32_
28 # define WINCOMMCTRLAPI
29 #else
30 # define WINCOMMCTRLAPI DECLSPEC_IMPORT
31 #endif
32 #endif
36 * Property sheet support (callback procs)
40 #define WC_PROPSHEETA "SysPropertySheet"
41 #if defined(_MSC_VER) || defined(__MINGW32__)
42 # define WC_PROPSHEETW L"SysPropertySheet"
43 #else
44 static const WCHAR WC_PROPSHEETW[] = { 'S','y','s',
45 'P','r','o','p','e','r','t','y','S','h','e','e','t',0 };
46 #endif
47 #define WC_PROPSHEET WINELIB_NAME_AW(WC_PROPSHEET)
49 struct _PROPSHEETPAGEA; /** need to forward declare those structs **/
50 struct _PROPSHEETPAGEW;
51 struct _PSP;
52 #ifndef _HPROPSHEETPAGE_DEFINED
53 #define _HPROPSHEETPAGE_DEFINED
54 typedef struct _PSP *HPROPSHEETPAGE;
55 #endif /* _HPROPSHEETPAGE_DEFINED */
58 typedef UINT (CALLBACK *LPFNPSPCALLBACKA)(HWND, UINT, struct _PROPSHEETPAGEA*);
59 typedef UINT (CALLBACK *LPFNPSPCALLBACKW)(HWND, UINT, struct _PROPSHEETPAGEW*);
60 typedef INT (CALLBACK *PFNPROPSHEETCALLBACK)(HWND, UINT, LPARAM);
61 typedef BOOL (CALLBACK *LPFNADDPROPSHEETPAGE)(HPROPSHEETPAGE, LPARAM);
62 typedef BOOL (CALLBACK *LPFNADDPROPSHEETPAGES)(LPVOID, LPFNADDPROPSHEETPAGE, LPARAM);
65 * Property sheet support (structures)
68 typedef LPCDLGTEMPLATEA PROPSHEETPAGE_RESOURCEA;
69 typedef LPCDLGTEMPLATEW PROPSHEETPAGE_RESOURCEW;
70 DECL_WINELIB_TYPE_AW(PROPSHEETPAGE_RESOURCE)
72 #define PROPSHEETPAGEA_V1_FIELDS \
73 DWORD dwSize; \
74 DWORD dwFlags; \
75 HINSTANCE hInstance; \
76 union \
77 { \
78 const char *pszTemplate; \
79 PROPSHEETPAGE_RESOURCEA pResource; \
80 } DUMMYUNIONNAME; \
81 union \
82 { \
83 HICON hIcon; \
84 const char *pszIcon; \
85 } DUMMYUNIONNAME2; \
86 const char *pszTitle; \
87 DLGPROC pfnDlgProc; \
88 LPARAM lParam; \
89 LPFNPSPCALLBACKA pfnCallback; \
90 UINT *pcRefParent;
92 typedef struct _PROPSHEETPAGEA_V1
94 PROPSHEETPAGEA_V1_FIELDS
95 } PROPSHEETPAGEA_V1, *LPPROPSHEETPAGEA_V1;
97 typedef struct _PROPSHEETPAGEA_V2
99 PROPSHEETPAGEA_V1_FIELDS
100 const char *pszHeaderTitle;
101 const char *pszHeaderSubTitle;
102 } PROPSHEETPAGEA_V2, *LPPROPSHEETPAGEA_V2;
104 typedef struct _PROPSHEETPAGEA_V3
106 PROPSHEETPAGEA_V1_FIELDS
107 const char *pszHeaderTitle;
108 const char *pszHeaderSubTitle;
109 HANDLE hActCtx;
110 } PROPSHEETPAGEA_V3, *LPPROPSHEETPAGEA_V3;
112 typedef struct _PROPSHEETPAGEA
114 PROPSHEETPAGEA_V1_FIELDS
115 const char *pszHeaderTitle;
116 const char *pszHeaderSubTitle;
117 HANDLE hActCtx;
118 union
120 HBITMAP hbmHeader;
121 const char *pszbmHeader;
122 } DUMMYUNIONNAME3;
123 } PROPSHEETPAGEA, *LPPROPSHEETPAGEA,
124 PROPSHEETPAGEA_V4, *LPPROPSHEETPAGEA_V4,
125 PROPSHEETPAGEA_LATEST, *LPPROPSHEETPAGEA_LATEST;
127 typedef const PROPSHEETPAGEA_V1 *LPCPROPSHEETPAGEA_V1;
128 typedef const PROPSHEETPAGEA_V2 *LPCPROPSHEETPAGEA_V2;
129 typedef const PROPSHEETPAGEA_V3 *LPCPROPSHEETPAGEA_V3;
130 typedef const PROPSHEETPAGEA_V4 *LPCPROPSHEETPAGEA, *LPCPROPSHEETPAGEA_V4, *LPCPROPSHEETPAGEA_LATEST;
131 #define PROPSHEETPAGEA_V1_SIZE sizeof(PROPSHEETPAGEA_V1)
132 #define PROPSHEETPAGEA_V2_SIZE sizeof(PROPSHEETPAGEA_V2)
133 #define PROPSHEETPAGEA_V3_SIZE sizeof(PROPSHEETPAGEA_V3)
134 #define PROPSHEETPAGEA_V4_SIZE sizeof(PROPSHEETPAGEA_V4)
136 #define PROPSHEETPAGEW_V1_FIELDS \
137 DWORD dwSize; \
138 DWORD dwFlags; \
139 HINSTANCE hInstance; \
140 union \
142 const WCHAR *pszTemplate; \
143 PROPSHEETPAGE_RESOURCEW pResource; \
144 } DUMMYUNIONNAME; \
145 union \
147 HICON hIcon; \
148 const WCHAR *pszIcon; \
149 } DUMMYUNIONNAME2; \
150 const WCHAR *pszTitle; \
151 DLGPROC pfnDlgProc; \
152 LPARAM lParam; \
153 LPFNPSPCALLBACKW pfnCallback; \
154 UINT *pcRefParent;
156 typedef struct _PROPSHEETPAGEW_V1
158 PROPSHEETPAGEW_V1_FIELDS
159 } PROPSHEETPAGEW_V1, *LPPROPSHEETPAGEW_V1;
161 typedef struct _PROPSHEETPAGEW_V2
163 PROPSHEETPAGEW_V1_FIELDS
164 const WCHAR *pszHeaderTitle;
165 const WCHAR *pszHeaderSubTitle;
166 } PROPSHEETPAGEW_V2, *LPPROPSHEETPAGEW_V2;
168 typedef struct _PROPSHEETPAGEW_V3
170 PROPSHEETPAGEW_V1_FIELDS
171 const WCHAR *pszHeaderTitle;
172 const WCHAR *pszHeaderSubTitle;
173 HANDLE hActCtx;
174 } PROPSHEETPAGEW_V3, *LPPROPSHEETPAGEW_V3;
176 typedef struct _PROPSHEETPAGEW
178 PROPSHEETPAGEW_V1_FIELDS
179 const WCHAR *pszHeaderTitle;
180 const WCHAR *pszHeaderSubTitle;
181 HANDLE hActCtx;
182 union
184 HBITMAP hbmHeader;
185 const WCHAR *pszbmHeader;
186 } DUMMYUNIONNAME3;
187 } PROPSHEETPAGEW, *LPPROPSHEETPAGEW,
188 PROPSHEETPAGEW_V4, *LPPROPSHEETPAGEW_V4,
189 PROPSHEETPAGEW_LATEST, *LPPROPSHEETPAGEW_LATEST;
191 typedef const PROPSHEETPAGEW_V1 *LPCPROPSHEETPAGEW_V1;
192 typedef const PROPSHEETPAGEW_V2 *LPCPROPSHEETPAGEW_V2;
193 typedef const PROPSHEETPAGEW_V3 *LPCPROPSHEETPAGEW_V3;
194 typedef const PROPSHEETPAGEW *LPCPROPSHEETPAGEW, *LPCPROPSHEETPAGEW_V4, *LPCPROPSHEETPAGEW_LATEST;
195 #define PROPSHEETPAGEW_V1_SIZE sizeof(PROPSHEETPAGEW_V1)
196 #define PROPSHEETPAGEW_V2_SIZE sizeof(PROPSHEETPAGEW_V2)
197 #define PROPSHEETPAGEW_V3_SIZE sizeof(PROPSHEETPAGEW_V3)
198 #define PROPSHEETPAGEW_V4_SIZE sizeof(PROPSHEETPAGEW_V4)
201 typedef struct _PROPSHEETHEADERA
203 DWORD dwSize;
204 DWORD dwFlags;
205 HWND hwndParent;
206 HINSTANCE hInstance;
207 union
209 HICON hIcon;
210 LPCSTR pszIcon;
211 }DUMMYUNIONNAME;
212 LPCSTR pszCaption;
213 UINT nPages;
214 union
216 UINT nStartPage;
217 LPCSTR pStartPage;
218 }DUMMYUNIONNAME2;
219 union
221 LPCPROPSHEETPAGEA ppsp;
222 HPROPSHEETPAGE* phpage;
223 }DUMMYUNIONNAME3;
224 PFNPROPSHEETCALLBACK pfnCallback;
225 union
227 HBITMAP hbmWatermark;
228 LPCSTR pszbmWatermark;
229 }DUMMYUNIONNAME4;
230 HPALETTE hplWatermark;
231 union
233 HBITMAP hbmHeader;
234 LPCSTR pszbmHeader;
235 }DUMMYUNIONNAME5;
236 } PROPSHEETHEADERA, *LPPROPSHEETHEADERA;
238 typedef const PROPSHEETHEADERA *LPCPROPSHEETHEADERA;
239 #define PROPSHEETHEADERA_V1_SIZE CCSIZEOF_STRUCT(PROPSHEETHEADERA, pfnCallback)
240 #define PROPSHEETHEADERA_V2_SIZE sizeof(PROPSHEETHEADERA)
242 typedef struct _PROPSHEETHEADERW
244 DWORD dwSize;
245 DWORD dwFlags;
246 HWND hwndParent;
247 HINSTANCE hInstance;
248 union
250 HICON hIcon;
251 LPCWSTR pszIcon;
252 }DUMMYUNIONNAME;
253 LPCWSTR pszCaption;
254 UINT nPages;
255 union
257 UINT nStartPage;
258 LPCWSTR pStartPage;
259 }DUMMYUNIONNAME2;
260 union
262 LPCPROPSHEETPAGEW ppsp;
263 HPROPSHEETPAGE* phpage;
264 }DUMMYUNIONNAME3;
265 PFNPROPSHEETCALLBACK pfnCallback;
266 union
268 HBITMAP hbmWatermark;
269 LPCWSTR pszbmWatermark;
270 }DUMMYUNIONNAME4;
271 HPALETTE hplWatermark;
272 union
274 HBITMAP hbmHeader;
275 LPCWSTR pszbmHeader;
276 }DUMMYUNIONNAME5;
277 } PROPSHEETHEADERW, *LPPROPSHEETHEADERW;
279 typedef const PROPSHEETHEADERW *LPCPROPSHEETHEADERW;
280 #define PROPSHEETHEADERW_V1_SIZE CCSIZEOF_STRUCT(PROPSHEETHEADERW, pfnCallback)
281 #define PROPSHEETHEADERW_V2_SIZE sizeof(PROPSHEETHEADERW)
285 * Property sheet support (methods)
287 WINCOMMCTRLAPI INT_PTR WINAPI PropertySheetA(LPCPROPSHEETHEADERA);
288 WINCOMMCTRLAPI INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW);
289 #define PropertySheet WINELIB_NAME_AW(PropertySheet)
290 WINCOMMCTRLAPI HPROPSHEETPAGE WINAPI CreatePropertySheetPageA(LPCPROPSHEETPAGEA);
291 WINCOMMCTRLAPI HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW);
292 #define CreatePropertySheetPage WINELIB_NAME_AW(CreatePropertySheetPage)
293 WINCOMMCTRLAPI BOOL WINAPI DestroyPropertySheetPage(HPROPSHEETPAGE hPropPage);
296 * Property sheet support (UNICODE-Winelib)
299 DECL_WINELIB_TYPE_AW(PROPSHEETPAGE)
300 DECL_WINELIB_TYPE_AW(LPPROPSHEETPAGE)
301 DECL_WINELIB_TYPE_AW(LPCPROPSHEETPAGE)
302 DECL_WINELIB_TYPE_AW(PROPSHEETHEADER)
303 DECL_WINELIB_TYPE_AW(LPPROPSHEETHEADER)
304 DECL_WINELIB_TYPE_AW(LPCPROPSHEETHEADER)
305 DECL_WINELIB_TYPE_AW(LPFNPSPCALLBACK)
307 #ifdef WINE_NO_UNICODE_MACROS
308 # define PRSHT_NAME_AW(base, suffix) \
309 base##_##suffix##_must_use_W_or_A_in_this_context \
310 base##_##suffix##_must_use_W_or_A_in_this_context
311 # define DECL_PRSHT_TYPE_AW(base, suffix) /* nothing */
312 #else /* WINE_NO_UNICODE_MACROS */
313 # ifdef UNICODE
314 # define PRSHT_NAME_AW(base, suffix) base##W_##suffix
315 # else
316 # define PRSHT_NAME_AW(base, suffix) base##A_##suffix
317 # endif
318 # define DECL_PRSHT_TYPE_AW(base, suffix) typedef PRSHT_NAME_AW(base, suffix) base##_##suffix;
319 #endif /* WINE_NO_UNICODE_MACROS */
321 DECL_PRSHT_TYPE_AW(PROPSHEETPAGE, V1)
322 DECL_PRSHT_TYPE_AW(LPPROPSHEETPAGE, V1)
323 DECL_PRSHT_TYPE_AW(LPCPROPSHEETPAGE, V1)
324 DECL_PRSHT_TYPE_AW(PROPSHEETPAGE, V2)
325 DECL_PRSHT_TYPE_AW(LPPROPSHEETPAGE, V2)
326 DECL_PRSHT_TYPE_AW(LPCPROPSHEETPAGE, V2)
327 DECL_PRSHT_TYPE_AW(PROPSHEETPAGE, V3)
328 DECL_PRSHT_TYPE_AW(LPPROPSHEETPAGE, V3)
329 DECL_PRSHT_TYPE_AW(LPCPROPSHEETPAGE, V3)
330 DECL_PRSHT_TYPE_AW(PROPSHEETPAGE, V4)
331 DECL_PRSHT_TYPE_AW(LPPROPSHEETPAGE, V4)
332 DECL_PRSHT_TYPE_AW(LPCPROPSHEETPAGE, V4)
333 DECL_PRSHT_TYPE_AW(PROPSHEETPAGE, LATEST)
334 DECL_PRSHT_TYPE_AW(LPPROPSHEETPAGE, LATEST)
335 DECL_PRSHT_TYPE_AW(LPCPROPSHEETPAGE, LATEST)
336 #define PROPSHEETPAGE_V1_SIZE PRSHT_NAME_AW(PROPSHEETPAGE, V1_SIZE)
337 #define PROPSHEETPAGE_V2_SIZE PRSHT_NAME_AW(PROPSHEETPAGE, V2_SIZE)
338 #define PROPSHEETPAGE_V3_SIZE PRSHT_NAME_AW(PROPSHEETPAGE, V3_SIZE)
339 #define PROPSHEETPAGE_V4_SIZE PRSHT_NAME_AW(PROPSHEETPAGE, V4_SIZE)
340 #define PROPSHEETHEADER_V1_SIZE PRSHT_NAME_AW(PROPSHEETHEADER, V1_SIZE)
341 #define PROPSHEETHEADER_V2_SIZE PRSHT_NAME_AW(PROPSHEETHEADER, V2_SIZE)
343 #undef PRSHT_NAME_AW
344 #undef DECL_PRSHT_TYPE_AW
347 * Property sheet support (defines)
349 #define PSP_DEFAULT 0x0000
350 #define PSP_DLGINDIRECT 0x0001
351 #define PSP_USEHICON 0x0002
352 #define PSP_USEICONID 0x0004
353 #define PSP_USETITLE 0x0008
354 #define PSP_RTLREADING 0x0010
356 #define PSP_HASHELP 0x0020
357 #define PSP_USEREFPARENT 0x0040
358 #define PSP_USECALLBACK 0x0080
359 #define PSP_PREMATURE 0x0400
361 #define PSP_HIDEHEADER 0x00000800
362 #define PSP_USEHEADERTITLE 0x00001000
363 #define PSP_USEHEADERSUBTITLE 0x00002000
364 #define PSP_USEFUSIONCONTEXT 0x00004000
365 #define PSP_COMMANDLINKS 0x00040000
367 #define PSPCB_ADDREF 0
368 #define PSPCB_RELEASE 1
369 #define PSPCB_CREATE 2
371 #define PSH_DEFAULT 0x0000
372 #define PSH_PROPTITLE 0x0001
373 #define PSH_USEHICON 0x0002
374 #define PSH_USEICONID 0x0004
375 #define PSH_PROPSHEETPAGE 0x0008
376 #define PSH_WIZARDHASFINISH 0x0010
377 #define PSH_WIZARD 0x0020
378 #define PSH_USEPSTARTPAGE 0x0040
379 #define PSH_NOAPPLYNOW 0x0080
380 #define PSH_USECALLBACK 0x0100
381 #define PSH_HASHELP 0x0200
382 #define PSH_MODELESS 0x0400
383 #define PSH_RTLREADING 0x0800
384 #define PSH_WIZARDCONTEXTHELP 0x00001000
386 #define PSH_WIZARD97_OLD 0x00002000 /* for IE < 5 */
387 #define PSH_AEROWIZARD 0x00004000
388 #define PSH_WATERMARK 0x00008000
389 #define PSH_USEHBMWATERMARK 0x00010000
390 #define PSH_USEHPLWATERMARK 0x00020000
391 #define PSH_STRETCHWATERMARK 0x00040000
392 #define PSH_HEADER 0x00080000
393 #define PSH_USEHBMHEADER 0x00100000
394 #define PSH_USEPAGELANG 0x00200000
395 #define PSH_WIZARD_LITE 0x00400000
396 #define PSH_WIZARD97_NEW 0x01000000 /* for IE >= 5 */
397 #define PSH_NOCONTEXTHELP 0x02000000
398 #define PSH_RESIZABLE 0x04000000
399 #define PSH_HEADERBITMAP 0x08000000
400 #define PSH_NOMARGIN 0x10000000
401 #ifndef __WINESRC__
402 # if defined(_WIN32_IE) && (_WIN32_IE < 0x0500)
403 # define PSH_WIZARD97 PSH_WIZARD97_OLD
404 # else
405 # define PSH_WIZARD97 PSH_WIZARD97_NEW
406 # endif
407 #endif
409 #define PSCB_INITIALIZED 1
410 #define PSCB_PRECREATE 2
412 typedef struct _PSHNOTIFY
414 NMHDR hdr;
415 LPARAM lParam;
416 } PSHNOTIFY, *LPPSHNOTIFY;
418 #define PSN_FIRST (0U-200U)
419 #define PSN_LAST (0U-299U)
422 #define PSN_SETACTIVE (PSN_FIRST-0)
423 #define PSN_KILLACTIVE (PSN_FIRST-1)
424 /* #define PSN_VALIDATE (PSN_FIRST-1) */
425 #define PSN_APPLY (PSN_FIRST-2)
426 #define PSN_RESET (PSN_FIRST-3)
427 /* #define PSN_CANCEL (PSN_FIRST-3) */
428 #define PSN_HELP (PSN_FIRST-5)
429 #define PSN_WIZBACK (PSN_FIRST-6)
430 #define PSN_WIZNEXT (PSN_FIRST-7)
431 #define PSN_WIZFINISH (PSN_FIRST-8)
432 #define PSN_QUERYCANCEL (PSN_FIRST-9)
433 #define PSN_GETOBJECT (PSN_FIRST-10)
434 #define PSN_TRANSLATEACCELERATOR (PSN_FIRST-12)
435 #define PSN_QUERYINITIALFOCUS (PSN_FIRST-13)
437 #define PSNRET_NOERROR 0
438 #define PSNRET_INVALID 1
439 #define PSNRET_INVALID_NOCHANGEPAGE 2
442 #define PSM_SETCURSEL (WM_USER + 101)
443 #define PSM_REMOVEPAGE (WM_USER + 102)
444 #define PSM_ADDPAGE (WM_USER + 103)
445 #define PSM_CHANGED (WM_USER + 104)
446 #define PSM_RESTARTWINDOWS (WM_USER + 105)
447 #define PSM_REBOOTSYSTEM (WM_USER + 106)
448 #define PSM_CANCELTOCLOSE (WM_USER + 107)
449 #define PSM_QUERYSIBLINGS (WM_USER + 108)
450 #define PSM_UNCHANGED (WM_USER + 109)
451 #define PSM_APPLY (WM_USER + 110)
452 #define PSM_SETTITLEA (WM_USER + 111)
453 #define PSM_SETTITLEW (WM_USER + 120)
454 #define PSM_SETTITLE WINELIB_NAME_AW(PSM_SETTITLE)
455 #define PSM_SETWIZBUTTONS (WM_USER + 112)
456 #define PSM_PRESSBUTTON (WM_USER + 113)
457 #define PSM_SETCURSELID (WM_USER + 114)
458 #define PSM_SETFINISHTEXTA (WM_USER + 115)
459 #define PSM_SETFINISHTEXTW (WM_USER + 121)
460 #define PSM_SETFINISHTEXT WINELIB_NAME_AW(PSM_SETFINISHTEXT)
461 #define PSM_GETTABCONTROL (WM_USER + 116)
462 #define PSM_ISDIALOGMESSAGE (WM_USER + 117)
463 #define PSM_GETCURRENTPAGEHWND (WM_USER + 118)
464 #define PSM_INSERTPAGE (WM_USER + 119)
465 #define PSM_SETHEADERTITLEA (WM_USER + 125)
466 #define PSM_SETHEADERTITLEW (WM_USER + 126)
467 #define PSM_SETHEADERTITLE WINELIB_NAME_AW(PSM_SETHEADERTITLE)
468 #define PSM_SETHEADERSUBTITLEA (WM_USER + 127)
469 #define PSM_SETHEADERSUBTITLEW (WM_USER + 128)
470 #define PSM_SETHEADERSUBTITLE WINELIB_NAME_AW(PSM_SETHEADERSUBTITLE)
471 #define PSM_HWNDTOINDEX (WM_USER + 129)
472 #define PSM_INDEXTOHWND (WM_USER + 130)
473 #define PSM_PAGETOINDEX (WM_USER + 131)
474 #define PSM_INDEXTOPAGE (WM_USER + 132)
475 #define PSM_IDTOINDEX (WM_USER + 133)
476 #define PSM_INDEXTOID (WM_USER + 134)
477 #define PSM_GETRESULT (WM_USER + 135)
478 #define PSM_RECALCPAGESIZES (WM_USER + 136)
480 #define PSWIZB_BACK 0x00000001
481 #define PSWIZB_NEXT 0x00000002
482 #define PSWIZB_FINISH 0x00000004
483 #define PSWIZB_DISABLEDFINISH 0x00000008
485 #define PSBTN_BACK 0
486 #define PSBTN_NEXT 1
487 #define PSBTN_FINISH 2
488 #define PSBTN_OK 3
489 #define PSBTN_APPLYNOW 4
490 #define PSBTN_CANCEL 5
491 #define PSBTN_HELP 6
492 #define PSBTN_MAX 6
494 #define ID_PSRESTARTWINDOWS 0x2
495 #define ID_PSREBOOTSYSTEM (ID_PSRESTARTWINDOWS | 0x1)
498 #define WIZ_CXDLG 276
499 #define WIZ_CYDLG 140
501 #define WIZ_CXBMP 80
503 #define WIZ_BODYX 92
504 #define WIZ_BODYCX 184
506 #define PROP_SM_CXDLG 212
507 #define PROP_SM_CYDLG 188
509 #define PROP_MED_CXDLG 227
510 #define PROP_MED_CYDLG 215
512 #define PROP_LG_CXDLG 252
513 #define PROP_LG_CYDLG 218
516 * Property sheet support (macros)
519 #define PropSheet_SetCurSel(hDlg, hpage, index) \
520 SendMessageA(hDlg, PSM_SETCURSEL, (WPARAM)index, (LPARAM)hpage)
522 #define PropSheet_RemovePage(hDlg, index, hpage) \
523 SNDMSG(hDlg, PSM_REMOVEPAGE, index, (LPARAM)hpage)
525 #define PropSheet_AddPage(hDlg, hpage) \
526 SNDMSG(hDlg, PSM_ADDPAGE, 0, (LPARAM)hpage)
528 #define PropSheet_Changed(hDlg, hwnd) \
529 SNDMSG(hDlg, PSM_CHANGED, (WPARAM)hwnd, 0)
531 #define PropSheet_RestartWindows(hDlg) \
532 SNDMSG(hDlg, PSM_RESTARTWINDOWS, 0, 0)
534 #define PropSheet_RebootSystem(hDlg) \
535 SNDMSG(hDlg, PSM_REBOOTSYSTEM, 0, 0)
537 #define PropSheet_CancelToClose(hDlg) \
538 PostMessage(hDlg, PSM_CANCELTOCLOSE, 0, 0)
540 #define PropSheet_QuerySiblings(hDlg, wParam, lParam) \
541 SNDMSG(hDlg, PSM_QUERYSIBLINGS, wParam, lParam)
543 #define PropSheet_UnChanged(hDlg, hwnd) \
544 SNDMSG(hDlg, PSM_UNCHANGED, (WPARAM)hwnd, 0)
546 #define PropSheet_Apply(hDlg) \
547 SNDMSG(hDlg, PSM_APPLY, 0, 0)
549 #define PropSheet_SetTitle(hDlg, wStyle, lpszText)\
550 SNDMSG(hDlg, PSM_SETTITLE, wStyle, (LPARAM)(LPCTSTR)lpszText)
552 #define PropSheet_SetWizButtons(hDlg, dwFlags) \
553 PostMessage(hDlg, PSM_SETWIZBUTTONS, 0, (LPARAM)dwFlags)
555 #define PropSheet_PressButton(hDlg, iButton) \
556 PostMessage(hDlg, PSM_PRESSBUTTON, (WPARAM)iButton, 0)
558 #define PropSheet_SetCurSelByID(hDlg, id) \
559 SNDMSG(hDlg, PSM_SETCURSELID, 0, (LPARAM)id)
561 #define PropSheet_SetFinishText(hDlg, lpszText) \
562 SNDMSG(hDlg, PSM_SETFINISHTEXT, 0, (LPARAM)lpszText)
564 #define PropSheet_GetTabControl(hDlg) \
565 (HWND)SNDMSG(hDlg, PSM_GETTABCONTROL, 0, 0)
567 #define PropSheet_IsDialogMessage(hDlg, pMsg) \
568 (BOOL)SNDMSG(hDlg, PSM_ISDIALOGMESSAGE, 0, (LPARAM)pMsg)
570 #define PropSheet_GetCurrentPageHwnd(hDlg) \
571 (HWND)SNDMSG(hDlg, PSM_GETCURRENTPAGEHWND, 0, 0)
573 #define PropSheet_InsertPage(hDlg, index, hpage) \
574 SNDMSG(hDlg, PSM_INSERTPAGE, (WPARAM)(index), (LPARAM)(hpage))
576 #define PropSheet_SetHeaderTitle(hDlg, index, lpszText) \
577 SNDMSG(hDlg, PSM_SETHEADERTITLE, (WPARAM)(index), (LPARAM)(lpszText))
579 #define PropSheet_SetHeaderSubTitle(hDlg, index, lpszText) \
580 SNDMSG(hDlg, PSM_SETHEADERSUBTITLE, (WPARAM)(index), (LPARAM)(lpszText))
582 #define PropSheet_HwndToIndex(hDlg, hwnd) \
583 (int)SNDMSG(hDlg, PSM_HWNDTOINDEX, (WPARAM)(hwnd), 0)
585 #define PropSheet_IndexToHwnd(hDlg, i) \
586 (HWND)SNDMSG(hDlg, PSM_INDEXTOHWND, (WPARAM)(i), 0)
588 #define PropSheet_PageToIndex(hDlg, hpage) \
589 (int)SNDMSG(hDlg, PSM_PAGETOINDEX, 0, (LPARAM)(hpage))
591 #define PropSheet_IndexToPage(hDlg, i) \
592 (HPROPSHEETPAGE)SNDMSG(hDlg, PSM_INDEXTOPAGE, (WPARAM)(i), 0)
594 #define PropSheet_IdToIndex(hDlg, id) \
595 (int)SNDMSG(hDlg, PSM_IDTOINDEX, 0, (LPARAM)(id))
597 #define PropSheet_IndexToId(hDlg, i) \
598 SNDMSG(hDlg, PSM_INDEXTOID, (WPARAM)(i), 0)
600 #define PropSheet_GetResult(hDlg) \
601 SNDMSG(hDlg, PSM_GETRESULT, 0, 0)
603 #define PropSheet_RecalcPageSizes(hDlg) \
604 SNDMSG(hDlg, PSM_RECALCPAGESIZES, 0, 0)
606 #ifdef __cplusplus
608 #endif
610 #endif /* __WINE_PRSHT_H */