VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/prsht.h@ 78046

Last change on this file since 78046 was 53206, checked in by vboxsync, 10 years ago

Devices/vmsvga: header fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 17.9 KB
Line 
1/*
2 * Copyright (C) the Wine project
3 *
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.
8 *
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.
13 *
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
17 */
18
19/*
20 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef __WINE_PRSHT_H
29#define __WINE_PRSHT_H
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35
36/*
37 * Property sheet support (callback procs)
38 */
39
40
41#define WC_PROPSHEETA "SysPropertySheet"
42#if defined(__GNUC__)
43# define WC_PROPSHEETW (const WCHAR []){ 'S','y','s', \
44 'P','r','o','p','e','r','t','y','S','h','e','e','t',0 }
45#elif defined(_MSC_VER)
46# define WC_PROPSHEETW L"SysPropertySheet"
47#else
48static const WCHAR WC_PROPSHEETW[] = { 'S','y','s',
49 'P','r','o','p','e','r','t','y','S','h','e','e','t',0 };
50#endif
51#define WC_PROPSHEET WINELIB_NAME_AW(WC_PROPSHEET)
52
53struct _PROPSHEETPAGEA; /** need to forward declare those structs **/
54struct _PROPSHEETPAGEW;
55struct _PSP;
56#ifndef _HPROPSHEETPAGE_DEFINED
57#define _HPROPSHEETPAGE_DEFINED
58typedef struct _PSP *HPROPSHEETPAGE;
59#endif /* _HPROPSHEETPAGE_DEFINED */
60
61
62typedef UINT (CALLBACK *LPFNPSPCALLBACKA)(HWND, UINT, struct _PROPSHEETPAGEA*);
63typedef UINT (CALLBACK *LPFNPSPCALLBACKW)(HWND, UINT, struct _PROPSHEETPAGEW*);
64typedef INT (CALLBACK *PFNPROPSHEETCALLBACK)(HWND, UINT, LPARAM);
65typedef BOOL (CALLBACK *LPFNADDPROPSHEETPAGE)(HPROPSHEETPAGE, LPARAM);
66typedef BOOL (CALLBACK *LPFNADDPROPSHEETPAGES)(LPVOID, LPFNADDPROPSHEETPAGE, LPARAM);
67
68/*
69 * Property sheet support (structures)
70 */
71
72typedef LPCDLGTEMPLATEA PROPSHEETPAGE_RESOURCEA;
73typedef LPCDLGTEMPLATEW PROPSHEETPAGE_RESOURCEW;
74DECL_WINELIB_TYPE_AW(PROPSHEETPAGE_RESOURCE)
75
76typedef struct _PROPSHEETPAGEA
77{
78 DWORD dwSize;
79 DWORD dwFlags;
80 HINSTANCE hInstance;
81 union
82 {
83 LPCSTR pszTemplate;
84 PROPSHEETPAGE_RESOURCEA pResource;
85 } DUMMYUNIONNAME;
86 union
87 {
88 HICON hIcon;
89 LPCSTR pszIcon;
90 } DUMMYUNIONNAME2;
91 LPCSTR pszTitle;
92 DLGPROC pfnDlgProc;
93 LPARAM lParam;
94 LPFNPSPCALLBACKA pfnCallback;
95 UINT* pcRefParent;
96 LPCSTR pszHeaderTitle;
97 LPCSTR pszHeaderSubTitle;
98 HANDLE hActCtx;
99 union
100 {
101 HBITMAP hbmHeader;
102 LPCSTR pszbmHeader;
103 } DUMMYUNIONNAME3;
104} PROPSHEETPAGEA, *LPPROPSHEETPAGEA,
105 PROPSHEETPAGEA_LATEST, *LPPROPSHEETPAGEA_LATEST;
106
107typedef const PROPSHEETPAGEA *LPCPROPSHEETPAGEA, *LPCPROPSHEETPAGEA_LATEST;
108#define PROPSHEETPAGEA_V1_SIZE CCSIZEOF_STRUCT(PROPSHEETPAGEA, pcRefParent)
109#define PROPSHEETPAGEA_V2_SIZE CCSIZEOF_STRUCT(PROPSHEETPAGEA, pszHeaderSubTitle)
110#define PROPSHEETPAGEA_V3_SIZE CCSIZEOF_STRUCT(PROPSHEETPAGEA, hActCtx)
111#define PROPSHEETPAGEA_V4_SIZE sizeof(PROPSHEETHEADERA)
112
113typedef struct _PROPSHEETPAGEW
114{
115 DWORD dwSize;
116 DWORD dwFlags;
117 HINSTANCE hInstance;
118 union
119 {
120 LPCWSTR pszTemplate;
121 PROPSHEETPAGE_RESOURCEW pResource;
122 } DUMMYUNIONNAME;
123 union
124 {
125 HICON hIcon;
126 LPCWSTR pszIcon;
127 } DUMMYUNIONNAME2;
128 LPCWSTR pszTitle;
129 DLGPROC pfnDlgProc;
130 LPARAM lParam;
131 LPFNPSPCALLBACKW pfnCallback;
132 UINT* pcRefParent;
133 LPCWSTR pszHeaderTitle;
134 LPCWSTR pszHeaderSubTitle;
135 HANDLE hActCtx;
136 union
137 {
138 HBITMAP hbmHeader;
139 LPCWSTR pszbmHeader;
140 } DUMMYUNIONNAME3;
141} PROPSHEETPAGEW, *LPPROPSHEETPAGEW,
142 PROPSHEETPAGEW_LATEST, *LPPROPSHEETPAGEW_LATEST;
143
144typedef const PROPSHEETPAGEW *LPCPROPSHEETPAGEW, *LPCPROPSHEETPAGEW_LATEST;
145#define PROPSHEETPAGEW_V1_SIZE CCSIZEOF_STRUCT(PROPSHEETPAGEW, pcRefParent)
146#define PROPSHEETPAGEW_V2_SIZE CCSIZEOF_STRUCT(PROPSHEETPAGEW, pszHeaderSubTitle)
147#define PROPSHEETPAGEW_V3_SIZE CCSIZEOF_STRUCT(PROPSHEETPAGEW, hActCtx)
148#define PROPSHEETPAGEW_V4_SIZE sizeof(PROPSHEETHEADERA)
149
150
151typedef struct _PROPSHEETHEADERA
152{
153 DWORD dwSize;
154 DWORD dwFlags;
155 HWND hwndParent;
156 HINSTANCE hInstance;
157 union
158 {
159 HICON hIcon;
160 LPCSTR pszIcon;
161 }DUMMYUNIONNAME;
162 LPCSTR pszCaption;
163 UINT nPages;
164 union
165 {
166 UINT nStartPage;
167 LPCSTR pStartPage;
168 }DUMMYUNIONNAME2;
169 union
170 {
171 LPCPROPSHEETPAGEA ppsp;
172 HPROPSHEETPAGE* phpage;
173 }DUMMYUNIONNAME3;
174 PFNPROPSHEETCALLBACK pfnCallback;
175 union
176 {
177 HBITMAP hbmWatermark;
178 LPCSTR pszbmWatermark;
179 }DUMMYUNIONNAME4;
180 HPALETTE hplWatermark;
181 union
182 {
183 HBITMAP hbmHeader;
184 LPCSTR pszbmHeader;
185 }DUMMYUNIONNAME5;
186} PROPSHEETHEADERA, *LPPROPSHEETHEADERA;
187
188typedef const PROPSHEETHEADERA *LPCPROPSHEETHEADERA;
189#define PROPSHEETHEADERA_V1_SIZE CCSIZEOF_STRUCT(PROPSHEETHEADERA, pfnCallback)
190#define PROPSHEETHEADERA_V2_SIZE sizeof(PROPSHEETHEADERA)
191
192typedef struct _PROPSHEETHEADERW
193{
194 DWORD dwSize;
195 DWORD dwFlags;
196 HWND hwndParent;
197 HINSTANCE hInstance;
198 union
199 {
200 HICON hIcon;
201 LPCWSTR pszIcon;
202 }DUMMYUNIONNAME;
203 LPCWSTR pszCaption;
204 UINT nPages;
205 union
206 {
207 UINT nStartPage;
208 LPCWSTR pStartPage;
209 }DUMMYUNIONNAME2;
210 union
211 {
212 LPCPROPSHEETPAGEW ppsp;
213 HPROPSHEETPAGE* phpage;
214 }DUMMYUNIONNAME3;
215 PFNPROPSHEETCALLBACK pfnCallback;
216 union
217 {
218 HBITMAP hbmWatermark;
219 LPCWSTR pszbmWatermark;
220 }DUMMYUNIONNAME4;
221 HPALETTE hplWatermark;
222 union
223 {
224 HBITMAP hbmHeader;
225 LPCWSTR pszbmHeader;
226 }DUMMYUNIONNAME5;
227} PROPSHEETHEADERW, *LPPROPSHEETHEADERW;
228
229typedef const PROPSHEETHEADERW *LPCPROPSHEETHEADERW;
230#define PROPSHEETHEADERW_V1_SIZE CCSIZEOF_STRUCT(PROPSHEETHEADERW, pfnCallback)
231#define PROPSHEETHEADERW_V2_SIZE sizeof(PROPSHEETHEADERW)
232
233
234/*
235 * Property sheet support (methods)
236 */
237INT_PTR WINAPI PropertySheetA(LPCPROPSHEETHEADERA);
238INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW);
239#define PropertySheet WINELIB_NAME_AW(PropertySheet)
240HPROPSHEETPAGE WINAPI CreatePropertySheetPageA(LPCPROPSHEETPAGEA);
241HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW);
242#define CreatePropertySheetPage WINELIB_NAME_AW(CreatePropertySheetPage)
243BOOL WINAPI DestroyPropertySheetPage(HPROPSHEETPAGE hPropPage);
244
245/*
246 * Property sheet support (UNICODE-Winelib)
247 */
248
249DECL_WINELIB_TYPE_AW(PROPSHEETPAGE)
250DECL_WINELIB_TYPE_AW(LPPROPSHEETPAGE)
251DECL_WINELIB_TYPE_AW(LPCPROPSHEETPAGE)
252DECL_WINELIB_TYPE_AW(PROPSHEETHEADER)
253DECL_WINELIB_TYPE_AW(LPPROPSHEETHEADER)
254DECL_WINELIB_TYPE_AW(LPCPROPSHEETHEADER)
255DECL_WINELIB_TYPE_AW(LPFNPSPCALLBACK)
256
257#ifdef WINE_NO_UNICODE_MACROS
258# define PRSHT_NAME_AW(base, suffix) \
259 base##_##suffix##_must_use_W_or_A_in_this_context \
260 base##_##suffix##_must_use_W_or_A_in_this_context
261# define DECL_PRSHT_TYPE_AW(base, suffix) /* nothing */
262#else /* WINE_NO_UNICODE_MACROS */
263# ifdef UNICODE
264# define PRSHT_NAME_AW(base, suffix) base##W_##suffix
265# else
266# define PRSHT_NAME_AW(base, suffix) base##A_##suffix
267# endif
268# define DECL_PRSHT_TYPE_AW(base, suffix) typedef PRSHT_NAME_AW(base, suffix) base##_##suffix;
269#endif /* WINE_NO_UNICODE_MACROS */
270
271DECL_PRSHT_TYPE_AW(PROPSHEETPAGE, LATEST)
272DECL_PRSHT_TYPE_AW(LPPROPSHEETPAGE, LATEST)
273DECL_PRSHT_TYPE_AW(LPCPROPSHEETPAGE, LATEST)
274#define PROPSHEETPAGE_V1_SIZE PRSHT_NAME_AW(PROPSHEETPAGE, V1_SIZE)
275#define PROPSHEETPAGE_V2_SIZE PRSHT_NAME_AW(PROPSHEETPAGE, V2_SIZE)
276#define PROPSHEETPAGE_V3_SIZE PRSHT_NAME_AW(PROPSHEETPAGE, V3_SIZE)
277#define PROPSHEETPAGE_V4_SIZE PRSHT_NAME_AW(PROPSHEETPAGE, V4_SIZE)
278#define PROPSHEETHEADER_V1_SIZE PRSHT_NAME_AW(PROPSHEETHEADER, V1_SIZE)
279#define PROPSHEETHEADER_V2_SIZE PRSHT_NAME_AW(PROPSHEETHEADER, V2_SIZE)
280
281#undef PRSHT_NAME_AW
282#undef DECL_PRSHT_TYPE_AW
283
284/*
285 * Property sheet support (defines)
286 */
287#define PSP_DEFAULT 0x0000
288#define PSP_DLGINDIRECT 0x0001
289#define PSP_USEHICON 0x0002
290#define PSP_USEICONID 0x0004
291#define PSP_USETITLE 0x0008
292#define PSP_RTLREADING 0x0010
293
294#define PSP_HASHELP 0x0020
295#define PSP_USEREFPARENT 0x0040
296#define PSP_USECALLBACK 0x0080
297#define PSP_PREMATURE 0x0400
298
299#define PSP_HIDEHEADER 0x00000800
300#define PSP_USEHEADERTITLE 0x00001000
301#define PSP_USEHEADERSUBTITLE 0x00002000
302#define PSP_USEFUSIONCONTEXT 0x00004000
303#define PSP_COMMANDLINKS 0x00040000
304
305#define PSPCB_RELEASE 1
306#define PSPCB_CREATE 2
307
308#define PSH_DEFAULT 0x0000
309#define PSH_PROPTITLE 0x0001
310#define PSH_USEHICON 0x0002
311#define PSH_USEICONID 0x0004
312#define PSH_PROPSHEETPAGE 0x0008
313#define PSH_WIZARDHASFINISH 0x0010
314#define PSH_WIZARD 0x0020
315#define PSH_USEPSTARTPAGE 0x0040
316#define PSH_NOAPPLYNOW 0x0080
317#define PSH_USECALLBACK 0x0100
318#define PSH_HASHELP 0x0200
319#define PSH_MODELESS 0x0400
320#define PSH_RTLREADING 0x0800
321#define PSH_WIZARDCONTEXTHELP 0x00001000
322
323#define PSH_WIZARD97_OLD 0x00002000 /* for IE < 5 */
324#define PSH_AEROWIZARD 0x00004000
325#define PSH_WATERMARK 0x00008000
326#define PSH_USEHBMWATERMARK 0x00010000
327#define PSH_USEHPLWATERMARK 0x00020000
328#define PSH_STRETCHWATERMARK 0x00040000
329#define PSH_HEADER 0x00080000
330#define PSH_USEHBMHEADER 0x00100000
331#define PSH_USEPAGELANG 0x00200000
332#define PSH_WIZARD_LITE 0x00400000
333#define PSH_WIZARD97_NEW 0x01000000 /* for IE >= 5 */
334#define PSH_NOCONTEXTHELP 0x02000000
335#define PSH_RESIZABLE 0x04000000
336#define PSH_HEADERBITMAP 0x08000000
337#define PSH_NOMARGIN 0x10000000
338#ifndef __WINESRC__
339# if defined(_WIN32_IE) && (_WIN32_IE < 0x0500)
340# define PSH_WIZARD97 PSH_WIZARD97_OLD
341# else
342# define PSH_WIZARD97 PSH_WIZARD97_NEW
343# endif
344#endif
345
346#define PSCB_INITIALIZED 1
347#define PSCB_PRECREATE 2
348
349typedef struct _PSHNOTIFY
350{
351 NMHDR hdr;
352 LPARAM lParam;
353} PSHNOTIFY, *LPPSHNOTIFY;
354
355#define PSN_FIRST (0U-200U)
356#define PSN_LAST (0U-299U)
357
358
359#define PSN_SETACTIVE (PSN_FIRST-0)
360#define PSN_KILLACTIVE (PSN_FIRST-1)
361/* #define PSN_VALIDATE (PSN_FIRST-1) */
362#define PSN_APPLY (PSN_FIRST-2)
363#define PSN_RESET (PSN_FIRST-3)
364/* #define PSN_CANCEL (PSN_FIRST-3) */
365#define PSN_HELP (PSN_FIRST-5)
366#define PSN_WIZBACK (PSN_FIRST-6)
367#define PSN_WIZNEXT (PSN_FIRST-7)
368#define PSN_WIZFINISH (PSN_FIRST-8)
369#define PSN_QUERYCANCEL (PSN_FIRST-9)
370#define PSN_GETOBJECT (PSN_FIRST-10)
371#define PSN_TRANSLATEACCELERATOR (PSN_FIRST-12)
372#define PSN_QUERYINITIALFOCUS (PSN_FIRST-13)
373
374#define PSNRET_NOERROR 0
375#define PSNRET_INVALID 1
376#define PSNRET_INVALID_NOCHANGEPAGE 2
377
378
379#define PSM_SETCURSEL (WM_USER + 101)
380#define PSM_REMOVEPAGE (WM_USER + 102)
381#define PSM_ADDPAGE (WM_USER + 103)
382#define PSM_CHANGED (WM_USER + 104)
383#define PSM_RESTARTWINDOWS (WM_USER + 105)
384#define PSM_REBOOTSYSTEM (WM_USER + 106)
385#define PSM_CANCELTOCLOSE (WM_USER + 107)
386#define PSM_QUERYSIBLINGS (WM_USER + 108)
387#define PSM_UNCHANGED (WM_USER + 109)
388#define PSM_APPLY (WM_USER + 110)
389#define PSM_SETTITLEA (WM_USER + 111)
390#define PSM_SETTITLEW (WM_USER + 120)
391#define PSM_SETTITLE WINELIB_NAME_AW(PSM_SETTITLE)
392#define PSM_SETWIZBUTTONS (WM_USER + 112)
393#define PSM_PRESSBUTTON (WM_USER + 113)
394#define PSM_SETCURSELID (WM_USER + 114)
395#define PSM_SETFINISHTEXTA (WM_USER + 115)
396#define PSM_SETFINISHTEXTW (WM_USER + 121)
397#define PSM_SETFINISHTEXT WINELIB_NAME_AW(PSM_SETFINISHTEXT)
398#define PSM_GETTABCONTROL (WM_USER + 116)
399#define PSM_ISDIALOGMESSAGE (WM_USER + 117)
400#define PSM_GETCURRENTPAGEHWND (WM_USER + 118)
401#define PSM_INSERTPAGE (WM_USER + 119)
402#define PSM_SETHEADERTITLEA (WM_USER + 125)
403#define PSM_SETHEADERTITLEW (WM_USER + 126)
404#define PSM_SETHEADERTITLE WINELIB_NAME_AW(PSM_SETHEADERTITLE)
405#define PSM_SETHEADERSUBTITLEA (WM_USER + 127)
406#define PSM_SETHEADERSUBTITLEW (WM_USER + 128)
407#define PSM_SETHEADERSUBTITLE WINELIB_NAME_AW(PSM_SETHEADERSUBTITLE)
408#define PSM_HWNDTOINDEX (WM_USER + 129)
409#define PSM_INDEXTOHWND (WM_USER + 130)
410#define PSM_PAGETOINDEX (WM_USER + 131)
411#define PSM_INDEXTOPAGE (WM_USER + 132)
412#define PSM_IDTOINDEX (WM_USER + 133)
413#define PSM_INDEXTOID (WM_USER + 134)
414#define PSM_GETRESULT (WM_USER + 135)
415#define PSM_RECALCPAGESIZES (WM_USER + 136)
416
417#define PSWIZB_BACK 0x00000001
418#define PSWIZB_NEXT 0x00000002
419#define PSWIZB_FINISH 0x00000004
420#define PSWIZB_DISABLEDFINISH 0x00000008
421
422#define PSBTN_BACK 0
423#define PSBTN_NEXT 1
424#define PSBTN_FINISH 2
425#define PSBTN_OK 3
426#define PSBTN_APPLYNOW 4
427#define PSBTN_CANCEL 5
428#define PSBTN_HELP 6
429#define PSBTN_MAX 6
430
431#define ID_PSRESTARTWINDOWS 0x2
432#define ID_PSREBOOTSYSTEM (ID_PSRESTARTWINDOWS | 0x1)
433
434
435#define WIZ_CXDLG 276
436#define WIZ_CYDLG 140
437
438#define WIZ_CXBMP 80
439
440#define WIZ_BODYX 92
441#define WIZ_BODYCX 184
442
443#define PROP_SM_CXDLG 212
444#define PROP_SM_CYDLG 188
445
446#define PROP_MED_CXDLG 227
447#define PROP_MED_CYDLG 215
448
449#define PROP_LG_CXDLG 252
450#define PROP_LG_CYDLG 218
451
452/*
453 * Property sheet support (macros)
454 */
455
456#define PropSheet_SetCurSel(hDlg, hpage, index) \
457 SendMessageA(hDlg, PSM_SETCURSEL, (WPARAM)index, (LPARAM)hpage)
458
459#define PropSheet_RemovePage(hDlg, index, hpage) \
460 SNDMSG(hDlg, PSM_REMOVEPAGE, index, (LPARAM)hpage)
461
462#define PropSheet_AddPage(hDlg, hpage) \
463 SNDMSG(hDlg, PSM_ADDPAGE, 0, (LPARAM)hpage)
464
465#define PropSheet_Changed(hDlg, hwnd) \
466 SNDMSG(hDlg, PSM_CHANGED, (WPARAM)hwnd, 0)
467
468#define PropSheet_RestartWindows(hDlg) \
469 SNDMSG(hDlg, PSM_RESTARTWINDOWS, 0, 0)
470
471#define PropSheet_RebootSystem(hDlg) \
472 SNDMSG(hDlg, PSM_REBOOTSYSTEM, 0, 0)
473
474#define PropSheet_CancelToClose(hDlg) \
475 PostMessage(hDlg, PSM_CANCELTOCLOSE, 0, 0)
476
477#define PropSheet_QuerySiblings(hDlg, wParam, lParam) \
478 SNDMSG(hDlg, PSM_QUERYSIBLINGS, wParam, lParam)
479
480#define PropSheet_UnChanged(hDlg, hwnd) \
481 SNDMSG(hDlg, PSM_UNCHANGED, (WPARAM)hwnd, 0)
482
483#define PropSheet_Apply(hDlg) \
484 SNDMSG(hDlg, PSM_APPLY, 0, 0)
485
486#define PropSheet_SetTitle(hDlg, wStyle, lpszText)\
487 SNDMSG(hDlg, PSM_SETTITLE, wStyle, (LPARAM)(LPCTSTR)lpszText)
488
489#define PropSheet_SetWizButtons(hDlg, dwFlags) \
490 PostMessage(hDlg, PSM_SETWIZBUTTONS, 0, (LPARAM)dwFlags)
491
492#define PropSheet_PressButton(hDlg, iButton) \
493 PostMessage(hDlg, PSM_PRESSBUTTON, (WPARAM)iButton, 0)
494
495#define PropSheet_SetCurSelByID(hDlg, id) \
496 SNDMSG(hDlg, PSM_SETCURSELID, 0, (LPARAM)id)
497
498#define PropSheet_SetFinishText(hDlg, lpszText) \
499 SNDMSG(hDlg, PSM_SETFINISHTEXT, 0, (LPARAM)lpszText)
500
501#define PropSheet_GetTabControl(hDlg) \
502 (HWND)SNDMSG(hDlg, PSM_GETTABCONTROL, 0, 0)
503
504#define PropSheet_IsDialogMessage(hDlg, pMsg) \
505 (BOOL)SNDMSG(hDlg, PSM_ISDIALOGMESSAGE, 0, (LPARAM)pMsg)
506
507#define PropSheet_GetCurrentPageHwnd(hDlg) \
508 (HWND)SNDMSG(hDlg, PSM_GETCURRENTPAGEHWND, 0, 0)
509
510#define PropSheet_InsertPage(hDlg, index, hpage) \
511 SNDMSG(hDlg, PSM_INSERTPAGE, (WPARAM)(index), (LPARAM)(hpage))
512
513#define PropSheet_SetHeaderTitle(hDlg, index, lpszText) \
514 SNDMSG(hDlg, PSM_SETHEADERTITLE, (WPARAM)(index), (LPARAM)(lpszText))
515
516#define PropSheet_SetHeaderSubTitle(hDlg, index, lpszText) \
517 SNDMSG(hDlg, PSM_SETHEADERSUBTITLE, (WPARAM)(index), (LPARAM)(lpszText))
518
519#define PropSheet_HwndToIndex(hDlg, hwnd) \
520 (int)SNDMSG(hDlg, PSM_HWNDTOINDEX, (WPARAM)(hwnd), 0)
521
522#define PropSheet_IndexToHwnd(hDlg, i) \
523 (HWND)SNDMSG(hDlg, PSM_INDEXTOHWND, (WPARAM)(i), 0)
524
525#define PropSheet_PageToIndex(hDlg, hpage) \
526 (int)SNDMSG(hDlg, PSM_PAGETOINDEX, 0, (LPARAM)(hpage))
527
528#define PropSheet_IndexToPage(hDlg, i) \
529 (HPROPSHEETPAGE)SNDMSG(hDlg, PSM_INDEXTOPAGE, (WPARAM)(i), 0)
530
531#define PropSheet_IdToIndex(hDlg, id) \
532 (int)SNDMSG(hDlg, PSM_IDTOINDEX, 0, (LPARAM)(id))
533
534#define PropSheet_IndexToId(hDlg, i) \
535 SNDMSG(hDlg, PSM_INDEXTOID, (WPARAM)(i), 0)
536
537#define PropSheet_GetResult(hDlg) \
538 SNDMSG(hDlg, PSM_GETRESULT, 0, 0)
539
540#define PropSheet_RecalcPageSizes(hDlg) \
541 SNDMSG(hDlg, PSM_RECALCPAGESIZES, 0, 0)
542
543#ifdef __cplusplus
544}
545#endif
546
547#endif /* __WINE_PRSHT_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette