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 | * Sun 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, Sun 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
|
---|
32 | extern "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
|
---|
48 | static 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 |
|
---|
53 | struct _PROPSHEETPAGEA; /** need to forward declare those structs **/
|
---|
54 | struct _PROPSHEETPAGEW;
|
---|
55 | struct _PSP;
|
---|
56 | #ifndef _HPROPSHEETPAGE_DEFINED
|
---|
57 | #define _HPROPSHEETPAGE_DEFINED
|
---|
58 | typedef struct _PSP *HPROPSHEETPAGE;
|
---|
59 | #endif /* _HPROPSHEETPAGE_DEFINED */
|
---|
60 |
|
---|
61 |
|
---|
62 | typedef UINT (CALLBACK *LPFNPSPCALLBACKA)(HWND, UINT, struct _PROPSHEETPAGEA*);
|
---|
63 | typedef UINT (CALLBACK *LPFNPSPCALLBACKW)(HWND, UINT, struct _PROPSHEETPAGEW*);
|
---|
64 | typedef INT (CALLBACK *PFNPROPSHEETCALLBACK)(HWND, UINT, LPARAM);
|
---|
65 | typedef BOOL (CALLBACK *LPFNADDPROPSHEETPAGE)(HPROPSHEETPAGE, LPARAM);
|
---|
66 | typedef BOOL (CALLBACK *LPFNADDPROPSHEETPAGES)(LPVOID, LPFNADDPROPSHEETPAGE, LPARAM);
|
---|
67 |
|
---|
68 | /*
|
---|
69 | * Property sheet support (structures)
|
---|
70 | */
|
---|
71 | typedef struct _PROPSHEETPAGEA
|
---|
72 | {
|
---|
73 | DWORD dwSize;
|
---|
74 | DWORD dwFlags;
|
---|
75 | HINSTANCE hInstance;
|
---|
76 | union
|
---|
77 | {
|
---|
78 | LPCSTR pszTemplate;
|
---|
79 | LPCDLGTEMPLATEA pResource;
|
---|
80 | }DUMMYUNIONNAME;
|
---|
81 | union
|
---|
82 | {
|
---|
83 | HICON hIcon;
|
---|
84 | LPCSTR pszIcon;
|
---|
85 | }DUMMYUNIONNAME2;
|
---|
86 | LPCSTR pszTitle;
|
---|
87 | DLGPROC pfnDlgProc;
|
---|
88 | LPARAM lParam;
|
---|
89 | LPFNPSPCALLBACKA pfnCallback;
|
---|
90 | UINT* pcRefParent;
|
---|
91 | LPCSTR pszHeaderTitle;
|
---|
92 | LPCSTR pszHeaderSubTitle;
|
---|
93 | } PROPSHEETPAGEA, *LPPROPSHEETPAGEA;
|
---|
94 |
|
---|
95 | typedef const PROPSHEETPAGEA *LPCPROPSHEETPAGEA;
|
---|
96 |
|
---|
97 | typedef struct _PROPSHEETPAGEW
|
---|
98 | {
|
---|
99 | DWORD dwSize;
|
---|
100 | DWORD dwFlags;
|
---|
101 | HINSTANCE hInstance;
|
---|
102 | union
|
---|
103 | {
|
---|
104 | LPCWSTR pszTemplate;
|
---|
105 | LPCDLGTEMPLATEW pResource;
|
---|
106 | }DUMMYUNIONNAME;
|
---|
107 | union
|
---|
108 | {
|
---|
109 | HICON hIcon;
|
---|
110 | LPCWSTR pszIcon;
|
---|
111 | }DUMMYUNIONNAME2;
|
---|
112 | LPCWSTR pszTitle;
|
---|
113 | DLGPROC pfnDlgProc;
|
---|
114 | LPARAM lParam;
|
---|
115 | LPFNPSPCALLBACKW pfnCallback;
|
---|
116 | UINT* pcRefParent;
|
---|
117 | LPCWSTR pszHeaderTitle;
|
---|
118 | LPCWSTR pszHeaderSubTitle;
|
---|
119 | } PROPSHEETPAGEW, *LPPROPSHEETPAGEW;
|
---|
120 |
|
---|
121 | typedef const PROPSHEETPAGEW *LPCPROPSHEETPAGEW;
|
---|
122 |
|
---|
123 |
|
---|
124 | typedef struct _PROPSHEETHEADERA
|
---|
125 | {
|
---|
126 | DWORD dwSize;
|
---|
127 | DWORD dwFlags;
|
---|
128 | HWND hwndParent;
|
---|
129 | HINSTANCE hInstance;
|
---|
130 | union
|
---|
131 | {
|
---|
132 | HICON hIcon;
|
---|
133 | LPCSTR pszIcon;
|
---|
134 | }DUMMYUNIONNAME;
|
---|
135 | LPCSTR pszCaption;
|
---|
136 | UINT nPages;
|
---|
137 | union
|
---|
138 | {
|
---|
139 | UINT nStartPage;
|
---|
140 | LPCSTR pStartPage;
|
---|
141 | }DUMMYUNIONNAME2;
|
---|
142 | union
|
---|
143 | {
|
---|
144 | LPCPROPSHEETPAGEA ppsp;
|
---|
145 | HPROPSHEETPAGE* phpage;
|
---|
146 | }DUMMYUNIONNAME3;
|
---|
147 | PFNPROPSHEETCALLBACK pfnCallback;
|
---|
148 | union
|
---|
149 | {
|
---|
150 | HBITMAP hbmWatermark;
|
---|
151 | LPCSTR pszbmWatermark;
|
---|
152 | }DUMMYUNIONNAME4;
|
---|
153 | HPALETTE hplWatermark;
|
---|
154 | union
|
---|
155 | {
|
---|
156 | HBITMAP hbmHeader;
|
---|
157 | LPCSTR pszbmHeader;
|
---|
158 | }DUMMYUNIONNAME5;
|
---|
159 | } PROPSHEETHEADERA, *LPPROPSHEETHEADERA;
|
---|
160 |
|
---|
161 | typedef const PROPSHEETHEADERA *LPCPROPSHEETHEADERA;
|
---|
162 |
|
---|
163 | typedef struct _PROPSHEETHEADERW
|
---|
164 | {
|
---|
165 | DWORD dwSize;
|
---|
166 | DWORD dwFlags;
|
---|
167 | HWND hwndParent;
|
---|
168 | HINSTANCE hInstance;
|
---|
169 | union
|
---|
170 | {
|
---|
171 | HICON hIcon;
|
---|
172 | LPCWSTR pszIcon;
|
---|
173 | }DUMMYUNIONNAME;
|
---|
174 | LPCWSTR pszCaption;
|
---|
175 | UINT nPages;
|
---|
176 | union
|
---|
177 | {
|
---|
178 | UINT nStartPage;
|
---|
179 | LPCWSTR pStartPage;
|
---|
180 | }DUMMYUNIONNAME2;
|
---|
181 | union
|
---|
182 | {
|
---|
183 | LPCPROPSHEETPAGEW ppsp;
|
---|
184 | HPROPSHEETPAGE* phpage;
|
---|
185 | }DUMMYUNIONNAME3;
|
---|
186 | PFNPROPSHEETCALLBACK pfnCallback;
|
---|
187 | union
|
---|
188 | {
|
---|
189 | HBITMAP hbmWatermark;
|
---|
190 | LPCWSTR pszbmWatermark;
|
---|
191 | }DUMMYUNIONNAME4;
|
---|
192 | HPALETTE hplWatermark;
|
---|
193 | union
|
---|
194 | {
|
---|
195 | HBITMAP hbmHeader;
|
---|
196 | LPCWSTR pszbmHeader;
|
---|
197 | }DUMMYUNIONNAME5;
|
---|
198 | } PROPSHEETHEADERW, *LPPROPSHEETHEADERW;
|
---|
199 |
|
---|
200 | typedef const PROPSHEETHEADERW *LPCPROPSHEETHEADERW;
|
---|
201 |
|
---|
202 |
|
---|
203 | /*
|
---|
204 | * Property sheet support (methods)
|
---|
205 | */
|
---|
206 | INT_PTR WINAPI PropertySheetA(LPCPROPSHEETHEADERA);
|
---|
207 | INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW);
|
---|
208 | #define PropertySheet WINELIB_NAME_AW(PropertySheet)
|
---|
209 | HPROPSHEETPAGE WINAPI CreatePropertySheetPageA(LPCPROPSHEETPAGEA);
|
---|
210 | HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW);
|
---|
211 | #define CreatePropertySheetPage WINELIB_NAME_AW(CreatePropertySheetPage)
|
---|
212 | BOOL WINAPI DestroyPropertySheetPage(HPROPSHEETPAGE hPropPage);
|
---|
213 |
|
---|
214 | /*
|
---|
215 | * Property sheet support (UNICODE-Winelib)
|
---|
216 | */
|
---|
217 |
|
---|
218 | DECL_WINELIB_TYPE_AW(PROPSHEETPAGE)
|
---|
219 | DECL_WINELIB_TYPE_AW(LPPROPSHEETPAGE)
|
---|
220 | DECL_WINELIB_TYPE_AW(LPCPROPSHEETPAGE)
|
---|
221 | DECL_WINELIB_TYPE_AW(PROPSHEETHEADER)
|
---|
222 | DECL_WINELIB_TYPE_AW(LPPROPSHEETHEADER)
|
---|
223 | DECL_WINELIB_TYPE_AW(LPCPROPSHEETHEADER)
|
---|
224 | DECL_WINELIB_TYPE_AW(LPFNPSPCALLBACK)
|
---|
225 |
|
---|
226 |
|
---|
227 | /*
|
---|
228 | * Property sheet support (defines)
|
---|
229 | */
|
---|
230 | #define PSP_DEFAULT 0x0000
|
---|
231 | #define PSP_DLGINDIRECT 0x0001
|
---|
232 | #define PSP_USEHICON 0x0002
|
---|
233 | #define PSP_USEICONID 0x0004
|
---|
234 | #define PSP_USETITLE 0x0008
|
---|
235 | #define PSP_RTLREADING 0x0010
|
---|
236 |
|
---|
237 | #define PSP_HASHELP 0x0020
|
---|
238 | #define PSP_USEREFPARENT 0x0040
|
---|
239 | #define PSP_USECALLBACK 0x0080
|
---|
240 | #define PSP_PREMATURE 0x0400
|
---|
241 |
|
---|
242 | #define PSP_HIDEHEADER 0x00000800
|
---|
243 | #define PSP_USEHEADERTITLE 0x00001000
|
---|
244 | #define PSP_USEHEADERSUBTITLE 0x00002000
|
---|
245 | #define PSP_USEFUSIONCONTEXT 0x00004000
|
---|
246 | #define PSP_COMMANDLINKS 0x00040000
|
---|
247 |
|
---|
248 | #define PSPCB_RELEASE 1
|
---|
249 | #define PSPCB_CREATE 2
|
---|
250 |
|
---|
251 | #define PSH_DEFAULT 0x0000
|
---|
252 | #define PSH_PROPTITLE 0x0001
|
---|
253 | #define PSH_USEHICON 0x0002
|
---|
254 | #define PSH_USEICONID 0x0004
|
---|
255 | #define PSH_PROPSHEETPAGE 0x0008
|
---|
256 | #define PSH_WIZARDHASFINISH 0x0010
|
---|
257 | #define PSH_WIZARD 0x0020
|
---|
258 | #define PSH_USEPSTARTPAGE 0x0040
|
---|
259 | #define PSH_NOAPPLYNOW 0x0080
|
---|
260 | #define PSH_USECALLBACK 0x0100
|
---|
261 | #define PSH_HASHELP 0x0200
|
---|
262 | #define PSH_MODELESS 0x0400
|
---|
263 | #define PSH_RTLREADING 0x0800
|
---|
264 | #define PSH_WIZARDCONTEXTHELP 0x00001000
|
---|
265 |
|
---|
266 | #define PSH_WIZARD97_OLD 0x00002000 /* for IE < 5 */
|
---|
267 | #define PSH_WATERMARK 0x00008000
|
---|
268 | #define PSH_USEHBMWATERMARK 0x00010000
|
---|
269 | #define PSH_USEHPLWATERMARK 0x00020000
|
---|
270 | #define PSH_STRETCHWATERMARK 0x00040000
|
---|
271 | #define PSH_HEADER 0x00080000
|
---|
272 | #define PSH_USEHBMHEADER 0x00100000
|
---|
273 | #define PSH_USEPAGELANG 0x00200000
|
---|
274 | #define PSH_WIZARD_LITE 0x00400000
|
---|
275 | #define PSH_WIZARD97_NEW 0x01000000 /* for IE >= 5 */
|
---|
276 | #define PSH_NOCONTEXTHELP 0x02000000
|
---|
277 | #ifndef __WINESRC__
|
---|
278 | # if defined(_WIN32_IE) && (_WIN32_IE < 0x0500)
|
---|
279 | # define PSH_WIZARD97 PSH_WIZARD97_OLD
|
---|
280 | # else
|
---|
281 | # define PSH_WIZARD97 PSH_WIZARD97_NEW
|
---|
282 | # endif
|
---|
283 | #endif
|
---|
284 |
|
---|
285 | #define PSCB_INITIALIZED 1
|
---|
286 | #define PSCB_PRECREATE 2
|
---|
287 |
|
---|
288 | typedef struct _PSHNOTIFY
|
---|
289 | {
|
---|
290 | NMHDR hdr;
|
---|
291 | LPARAM lParam;
|
---|
292 | } PSHNOTIFY, *LPPSHNOTIFY;
|
---|
293 |
|
---|
294 | #define PSN_FIRST (0U-200U)
|
---|
295 | #define PSN_LAST (0U-299U)
|
---|
296 |
|
---|
297 |
|
---|
298 | #define PSN_SETACTIVE (PSN_FIRST-0)
|
---|
299 | #define PSN_KILLACTIVE (PSN_FIRST-1)
|
---|
300 | /* #define PSN_VALIDATE (PSN_FIRST-1) */
|
---|
301 | #define PSN_APPLY (PSN_FIRST-2)
|
---|
302 | #define PSN_RESET (PSN_FIRST-3)
|
---|
303 | /* #define PSN_CANCEL (PSN_FIRST-3) */
|
---|
304 | #define PSN_HELP (PSN_FIRST-5)
|
---|
305 | #define PSN_WIZBACK (PSN_FIRST-6)
|
---|
306 | #define PSN_WIZNEXT (PSN_FIRST-7)
|
---|
307 | #define PSN_WIZFINISH (PSN_FIRST-8)
|
---|
308 | #define PSN_QUERYCANCEL (PSN_FIRST-9)
|
---|
309 | #define PSN_GETOBJECT (PSN_FIRST-10)
|
---|
310 | #define PSN_TRANSLATEACCELERATOR (PSN_FIRST-12)
|
---|
311 | #define PSN_QUERYINITIALFOCUS (PSN_FIRST-13)
|
---|
312 |
|
---|
313 | #define PSNRET_NOERROR 0
|
---|
314 | #define PSNRET_INVALID 1
|
---|
315 | #define PSNRET_INVALID_NOCHANGEPAGE 2
|
---|
316 |
|
---|
317 |
|
---|
318 | #define PSM_SETCURSEL (WM_USER + 101)
|
---|
319 | #define PSM_REMOVEPAGE (WM_USER + 102)
|
---|
320 | #define PSM_ADDPAGE (WM_USER + 103)
|
---|
321 | #define PSM_CHANGED (WM_USER + 104)
|
---|
322 | #define PSM_RESTARTWINDOWS (WM_USER + 105)
|
---|
323 | #define PSM_REBOOTSYSTEM (WM_USER + 106)
|
---|
324 | #define PSM_CANCELTOCLOSE (WM_USER + 107)
|
---|
325 | #define PSM_QUERYSIBLINGS (WM_USER + 108)
|
---|
326 | #define PSM_UNCHANGED (WM_USER + 109)
|
---|
327 | #define PSM_APPLY (WM_USER + 110)
|
---|
328 | #define PSM_SETTITLEA (WM_USER + 111)
|
---|
329 | #define PSM_SETTITLEW (WM_USER + 120)
|
---|
330 | #define PSM_SETTITLE WINELIB_NAME_AW(PSM_SETTITLE)
|
---|
331 | #define PSM_SETWIZBUTTONS (WM_USER + 112)
|
---|
332 | #define PSM_PRESSBUTTON (WM_USER + 113)
|
---|
333 | #define PSM_SETCURSELID (WM_USER + 114)
|
---|
334 | #define PSM_SETFINISHTEXTA (WM_USER + 115)
|
---|
335 | #define PSM_SETFINISHTEXTW (WM_USER + 121)
|
---|
336 | #define PSM_SETFINISHTEXT WINELIB_NAME_AW(PSM_SETFINISHTEXT)
|
---|
337 | #define PSM_GETTABCONTROL (WM_USER + 116)
|
---|
338 | #define PSM_ISDIALOGMESSAGE (WM_USER + 117)
|
---|
339 | #define PSM_GETCURRENTPAGEHWND (WM_USER + 118)
|
---|
340 | #define PSM_INSERTPAGE (WM_USER + 119)
|
---|
341 | #define PSM_SETHEADERTITLEA (WM_USER + 125)
|
---|
342 | #define PSM_SETHEADERTITLEW (WM_USER + 126)
|
---|
343 | #define PSM_SETHEADERTITLE WINELIB_NAME_AW(PSM_SETHEADERTITLE)
|
---|
344 | #define PSM_SETHEADERSUBTITLEA (WM_USER + 127)
|
---|
345 | #define PSM_SETHEADERSUBTITLEW (WM_USER + 128)
|
---|
346 | #define PSM_SETHEADERSUBTITLE WINELIB_NAME_AW(PSM_SETHEADERSUBTITLE)
|
---|
347 | #define PSM_HWNDTOINDEX (WM_USER + 129)
|
---|
348 | #define PSM_INDEXTOHWND (WM_USER + 130)
|
---|
349 | #define PSM_PAGETOINDEX (WM_USER + 131)
|
---|
350 | #define PSM_INDEXTOPAGE (WM_USER + 132)
|
---|
351 | #define PSM_IDTOINDEX (WM_USER + 133)
|
---|
352 | #define PSM_INDEXTOID (WM_USER + 134)
|
---|
353 | #define PSM_GETRESULT (WM_USER + 135)
|
---|
354 | #define PSM_RECALCPAGESIZES (WM_USER + 136)
|
---|
355 |
|
---|
356 | #define PSWIZB_BACK 0x00000001
|
---|
357 | #define PSWIZB_NEXT 0x00000002
|
---|
358 | #define PSWIZB_FINISH 0x00000004
|
---|
359 | #define PSWIZB_DISABLEDFINISH 0x00000008
|
---|
360 |
|
---|
361 | #define PSBTN_BACK 0
|
---|
362 | #define PSBTN_NEXT 1
|
---|
363 | #define PSBTN_FINISH 2
|
---|
364 | #define PSBTN_OK 3
|
---|
365 | #define PSBTN_APPLYNOW 4
|
---|
366 | #define PSBTN_CANCEL 5
|
---|
367 | #define PSBTN_HELP 6
|
---|
368 | #define PSBTN_MAX 6
|
---|
369 |
|
---|
370 | #define ID_PSRESTARTWINDOWS 0x2
|
---|
371 | #define ID_PSREBOOTSYSTEM (ID_PSRESTARTWINDOWS | 0x1)
|
---|
372 |
|
---|
373 |
|
---|
374 | #define WIZ_CXDLG 276
|
---|
375 | #define WIZ_CYDLG 140
|
---|
376 |
|
---|
377 | #define WIZ_CXBMP 80
|
---|
378 |
|
---|
379 | #define WIZ_BODYX 92
|
---|
380 | #define WIZ_BODYCX 184
|
---|
381 |
|
---|
382 | #define PROP_SM_CXDLG 212
|
---|
383 | #define PROP_SM_CYDLG 188
|
---|
384 |
|
---|
385 | #define PROP_MED_CXDLG 227
|
---|
386 | #define PROP_MED_CYDLG 215
|
---|
387 |
|
---|
388 | #define PROP_LG_CXDLG 252
|
---|
389 | #define PROP_LG_CYDLG 218
|
---|
390 |
|
---|
391 | /*
|
---|
392 | * Property sheet support (macros)
|
---|
393 | */
|
---|
394 |
|
---|
395 | #define PropSheet_SetCurSel(hDlg, hpage, index) \
|
---|
396 | SendMessageA(hDlg, PSM_SETCURSEL, (WPARAM)index, (LPARAM)hpage)
|
---|
397 |
|
---|
398 | #define PropSheet_RemovePage(hDlg, index, hpage) \
|
---|
399 | SNDMSG(hDlg, PSM_REMOVEPAGE, index, (LPARAM)hpage)
|
---|
400 |
|
---|
401 | #define PropSheet_AddPage(hDlg, hpage) \
|
---|
402 | SNDMSG(hDlg, PSM_ADDPAGE, 0, (LPARAM)hpage)
|
---|
403 |
|
---|
404 | #define PropSheet_Changed(hDlg, hwnd) \
|
---|
405 | SNDMSG(hDlg, PSM_CHANGED, (WPARAM)hwnd, 0L)
|
---|
406 |
|
---|
407 | #define PropSheet_RestartWindows(hDlg) \
|
---|
408 | SNDMSG(hDlg, PSM_RESTARTWINDOWS, 0, 0L)
|
---|
409 |
|
---|
410 | #define PropSheet_RebootSystem(hDlg) \
|
---|
411 | SNDMSG(hDlg, PSM_REBOOTSYSTEM, 0, 0L)
|
---|
412 |
|
---|
413 | #define PropSheet_CancelToClose(hDlg) \
|
---|
414 | PostMessage(hDlg, PSM_CANCELTOCLOSE, 0, 0L)
|
---|
415 |
|
---|
416 | #define PropSheet_QuerySiblings(hDlg, wParam, lParam) \
|
---|
417 | SNDMSG(hDlg, PSM_QUERYSIBLINGS, wParam, lParam)
|
---|
418 |
|
---|
419 | #define PropSheet_UnChanged(hDlg, hwnd) \
|
---|
420 | SNDMSG(hDlg, PSM_UNCHANGED, (WPARAM)hwnd, 0L)
|
---|
421 |
|
---|
422 | #define PropSheet_Apply(hDlg) \
|
---|
423 | SNDMSG(hDlg, PSM_APPLY, 0, 0L)
|
---|
424 |
|
---|
425 | #define PropSheet_SetTitle(hDlg, wStyle, lpszText)\
|
---|
426 | SNDMSG(hDlg, PSM_SETTITLE, wStyle, (LPARAM)(LPCTSTR)lpszText)
|
---|
427 |
|
---|
428 | #define PropSheet_SetWizButtons(hDlg, dwFlags) \
|
---|
429 | PostMessage(hDlg, PSM_SETWIZBUTTONS, 0, (LPARAM)dwFlags)
|
---|
430 |
|
---|
431 | #define PropSheet_PressButton(hDlg, iButton) \
|
---|
432 | PostMessage(hDlg, PSM_PRESSBUTTON, (WPARAM)iButton, 0)
|
---|
433 |
|
---|
434 | #define PropSheet_SetCurSelByID(hDlg, id) \
|
---|
435 | SNDMSG(hDlg, PSM_SETCURSELID, 0, (LPARAM)id)
|
---|
436 |
|
---|
437 | #define PropSheet_SetFinishText(hDlg, lpszText) \
|
---|
438 | SNDMSG(hDlg, PSM_SETFINISHTEXT, 0, (LPARAM)lpszText)
|
---|
439 |
|
---|
440 | #define PropSheet_GetTabControl(hDlg) \
|
---|
441 | (HWND)SNDMSG(hDlg, PSM_GETTABCONTROL, 0, 0)
|
---|
442 |
|
---|
443 | #define PropSheet_IsDialogMessage(hDlg, pMsg) \
|
---|
444 | (BOOL)SNDMSG(hDlg, PSM_ISDIALOGMESSAGE, 0, (LPARAM)pMsg)
|
---|
445 |
|
---|
446 | #define PropSheet_GetCurrentPageHwnd(hDlg) \
|
---|
447 | (HWND)SNDMSG(hDlg, PSM_GETCURRENTPAGEHWND, 0, 0L)
|
---|
448 |
|
---|
449 | #define PropSheet_InsertPage(hDlg, index, hpage) \
|
---|
450 | SNDMSG(hDlg, PSM_INSERTPAGE, (WPARAM)(index), (LPARAM)(hpage))
|
---|
451 |
|
---|
452 | #define PropSheet_SetHeaderTitle(hDlg, index, lpszText) \
|
---|
453 | SNDMSG(hDlg, PSM_SETHEADERTITLE, (WPARAM)(index), (LPARAM)(lpszText))
|
---|
454 |
|
---|
455 | #define PropSheet_SetHeaderSubTitle(hDlg, index, lpszText) \
|
---|
456 | SNDMSG(hDlg, PSM_SETHEADERSUBTITLE, (WPARAM)(index), (LPARAM)(lpszText))
|
---|
457 |
|
---|
458 | #define PropSheet_HwndToIndex(hDlg, hwnd) \
|
---|
459 | (int)SNDMSG(hDlg, PSM_HWNDTOINDEX, (WPARAM)(hwnd), 0)
|
---|
460 |
|
---|
461 | #define PropSheet_IndexToHwnd(hDlg, i) \
|
---|
462 | (HWND)SNDMSG(hDlg, PSM_INDEXTOHWND, (WPARAM)(i), 0)
|
---|
463 |
|
---|
464 | #define PropSheet_PageToIndex(hDlg, hpage) \
|
---|
465 | (int)SNDMSG(hDlg, PSM_PAGETOINDEX, 0, (LPARAM)(hpage))
|
---|
466 |
|
---|
467 | #define PropSheet_IndexToPage(hDlg, i) \
|
---|
468 | (HPROPSHEETPAGE)SNDMSG(hDlg, PSM_INDEXTOPAGE, (WPARAM)(i), 0)
|
---|
469 |
|
---|
470 | #define PropSheet_IdToIndex(hDlg, id) \
|
---|
471 | (int)SNDMSG(hDlg, PSM_IDTOINDEX, 0, (LPARAM)(id))
|
---|
472 |
|
---|
473 | #define PropSheet_IndexToId(hDlg, i) \
|
---|
474 | SNDMSG(hDlg, PSM_INDEXTOID, (WPARAM)(i), 0)
|
---|
475 |
|
---|
476 | #define PropSheet_GetResult(hDlg) \
|
---|
477 | SNDMSG(hDlg, PSM_GETRESULT, 0, 0)
|
---|
478 |
|
---|
479 | #define PropSheet_RecalcPageSizes(hDlg) \
|
---|
480 | SNDMSG(hDlg, PSM_RECALCPAGESIZES, 0, 0)
|
---|
481 |
|
---|
482 | #ifdef __cplusplus
|
---|
483 | }
|
---|
484 | #endif
|
---|
485 |
|
---|
486 | #endif /* __WINE_PRSHT_H */
|
---|