12 * Property sheet support (callback procs)
16 #define WC_PROPSHEETA "SysPropertySheet"
17 #define WC_PROPSHEETW L"SysPropertySheet"
18 #define WC_PROPSHEET WINELIB_NAME_AW(WC_PROPSHEET)
20 struct _PROPSHEETPAGEA; /** need to forward declare those structs **/
21 struct _PROPSHEETPAGEW;
23 typedef struct _PSP *HPROPSHEETPAGE;
26 typedef UINT (CALLBACK *LPFNPSPCALLBACKA)(HWND, UINT, struct _PROPSHEETPAGEA*);
27 typedef UINT (CALLBACK *LPFNPSPCALLBACKW)(HWND, UINT, struct _PROPSHEETPAGEW*);
28 typedef INT (CALLBACK *PFNPROPSHEETCALLBACK)(HWND, UINT, LPARAM);
29 typedef BOOL (CALLBACK *LPFNADDPROPSHEETPAGE)(HPROPSHEETPAGE, LPARAM);
30 typedef BOOL (CALLBACK *LPFNADDPROPSHEETPAGES)(LPVOID, LPFNADDPROPSHEETPAGE, LPARAM);
33 * Property sheet support (structures)
35 typedef struct _PROPSHEETPAGEA
43 LPCDLGTEMPLATEA pResource;
53 LPFNPSPCALLBACKA pfnCallback;
55 LPCWSTR pszHeaderTitle;
56 LPCWSTR pszHeaderSubTitle;
57 } PROPSHEETPAGEA, *LPPROPSHEETPAGEA;
59 typedef const PROPSHEETPAGEA *LPCPROPSHEETPAGEA;
61 typedef struct _PROPSHEETPAGEW
69 LPCDLGTEMPLATEW pResource;
79 LPFNPSPCALLBACKW pfnCallback;
81 LPCWSTR pszHeaderTitle;
82 LPCWSTR pszHeaderSubTitle;
83 } PROPSHEETPAGEW, *LPPROPSHEETPAGEW;
85 typedef const PROPSHEETPAGEW *LPCPROPSHEETPAGEW;
88 typedef struct _PROPSHEETHEADERA
108 LPCPROPSHEETPAGEA ppsp;
109 HPROPSHEETPAGE* phpage;
111 PFNPROPSHEETCALLBACK pfnCallback;
114 HBITMAP hbmWatermark;
115 LPCSTR pszbmWatermark;
117 HPALETTE hplWatermark;
123 } PROPSHEETHEADERA, *LPPROPSHEETHEADERA;
125 typedef const PROPSHEETHEADERA *LPCPROPSHEETHEADERA;
127 typedef struct _PROPSHEETHEADERW
147 LPCPROPSHEETPAGEW ppsp;
148 HPROPSHEETPAGE* phpage;
150 PFNPROPSHEETCALLBACK pfnCallback;
153 HBITMAP hbmWatermark;
154 LPCWSTR pszbmWatermark;
156 HPALETTE hplWatermark;
162 } PROPSHEETHEADERW, *LPPROPSHEETHEADERW;
164 typedef const PROPSHEETHEADERW *LPCPROPSHEETHEADERW;
168 * Property sheet support (methods)
170 INT WINAPI PropertySheetA(LPCPROPSHEETHEADERA);
171 INT WINAPI PropertySheetW(LPCPROPSHEETHEADERW);
172 #define PropertySheet WINELIB_NAME_AW(PropertySheet)
173 HPROPSHEETPAGE WINAPI CreatePropertySheetPageA(LPCPROPSHEETPAGEA);
174 HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW);
175 #define CreatePropertySheetPage WINELIB_NAME_AW(CreatePropertySheetPage)
176 BOOL WINAPI DestroyPropertySheetPage(HPROPSHEETPAGE hPropPage);
179 * Property sheet support (UNICODE-WineLib)
182 DECL_WINELIB_TYPE_AW(PROPSHEETPAGE)
183 DECL_WINELIB_TYPE_AW(LPPROPSHEETPAGE)
184 DECL_WINELIB_TYPE_AW(LPCPROPSHEETPAGE)
185 DECL_WINELIB_TYPE_AW(PROPSHEETHEADER)
186 DECL_WINELIB_TYPE_AW(LPPROPSHEETHEADER)
187 DECL_WINELIB_TYPE_AW(LPCPROPSHEETHEADER)
188 DECL_WINELIB_TYPE_AW(LPFNPSPCALLBACK)
192 * Property sheet support (defines)
194 #define PSP_DEFAULT 0x0000
195 #define PSP_DLGINDIRECT 0x0001
196 #define PSP_USEHICON 0x0002
197 #define PSP_USEICONID 0x0004
198 #define PSP_USETITLE 0x0008
199 #define PSP_RTLREADING 0x0010
201 #define PSP_HASHELP 0x0020
202 #define PSP_USEREFPARENT 0x0040
203 #define PSP_USECALLBACK 0x0080
206 #define PSPCB_RELEASE 1
207 #define PSPCB_CREATE 2
209 #define PSH_DEFAULT 0x0000
210 #define PSH_PROPTITLE 0x0001
211 #define PSH_USEHICON 0x0002
212 #define PSH_USEICONID 0x0004
213 #define PSH_PROPSHEETPAGE 0x0008
214 #define PSH_WIZARD 0x0020
215 #define PSH_USEPSTARTPAGE 0x0040
216 #define PSH_NOAPPLYNOW 0x0080
217 #define PSH_USECALLBACK 0x0100
218 #define PSH_HASHELP 0x0200
219 #define PSH_MODELESS 0x0400
220 #define PSH_RTLREADING 0x0800
222 #define PSCB_INITIALIZED 1
223 #define PSCB_PRECREATE 2
225 #define PSN_FIRST (0U-200U)
226 #define PSN_LAST (0U-299U)
229 #define PSN_SETACTIVE (PSN_FIRST-0)
230 #define PSN_KILLACTIVE (PSN_FIRST-1)
231 /* #define PSN_VALIDATE (PSN_FIRST-1) */
232 #define PSN_APPLY (PSN_FIRST-2)
233 #define PSN_RESET (PSN_FIRST-3)
234 /* #define PSN_CANCEL (PSN_FIRST-3) */
235 #define PSN_HELP (PSN_FIRST-5)
236 #define PSN_WIZBACK (PSN_FIRST-6)
237 #define PSN_WIZNEXT (PSN_FIRST-7)
238 #define PSN_WIZFINISH (PSN_FIRST-8)
239 #define PSN_QUERYCANCEL (PSN_FIRST-9)
241 #define PSNRET_NOERROR 0
242 #define PSNRET_INVALID 1
243 #define PSNRET_INVALID_NOCHANGEPAGE 2
246 #define PSM_SETCURSEL (WM_USER + 101)
247 #define PSM_REMOVEPAGE (WM_USER + 102)
248 #define PSM_ADDPAGE (WM_USER + 103)
249 #define PSM_CHANGED (WM_USER + 104)
250 #define PSM_RESTARTWINDOWS (WM_USER + 105)
251 #define PSM_REBOOTSYSTEM (WM_USER + 106)
252 #define PSM_CANCELTOCLOSE (WM_USER + 107)
253 #define PSM_QUERYSIBLINGS (WM_USER + 108)
254 #define PSM_UNCHANGED (WM_USER + 109)
255 #define PSM_APPLY (WM_USER + 110)
256 #define PSM_SETTITLEA (WM_USER + 111)
257 #define PSM_SETTITLEW (WM_USER + 120)
258 #define PSM_SETTITLE WINELIB_NAME_AW(PSM_SETTITLE)
259 #define PSM_SETWIZBUTTONS (WM_USER + 112)
260 #define PSM_PRESSBUTTON (WM_USER + 113)
261 #define PSM_SETCURSELID (WM_USER + 114)
262 #define PSM_SETFINISHTEXTA (WM_USER + 115)
263 #define PSM_SETFINISHTEXTW (WM_USER + 121)
264 #define PSM_SETFINISHTEXT WINELIB_NAME_AW(PSM_SETFINISHTEXT)
265 #define PSM_GETTABCONTROL (WM_USER + 116)
266 #define PSM_ISDIALOGMESSAGE (WM_USER + 117)
267 #define PSM_GETCURRENTPAGEHWND (WM_USER + 118)
269 #define PSWIZB_BACK 0x00000001
270 #define PSWIZB_NEXT 0x00000002
271 #define PSWIZB_FINISH 0x00000004
272 #define PSWIZB_DISABLEDFINISH 0x00000008
276 #define PSBTN_FINISH 2
278 #define PSBTN_APPLYNOW 4
279 #define PSBTN_CANCEL 5
283 #define ID_PSRESTARTWINDOWS 0x2
284 #define ID_PSREBOOTSYSTEM (ID_PSRESTARTWINDOWS | 0x1)
287 #define WIZ_CXDLG 276
288 #define WIZ_CYDLG 140
293 #define WIZ_BODYCX 184
295 #define PROP_SM_CXDLG 212
296 #define PROP_SM_CYDLG 188
298 #define PROP_MED_CXDLG 227
299 #define PROP_MED_CYDLG 215
301 #define PROP_LG_CXDLG 252
302 #define PROP_LG_CYDLG 218
305 * Property sheet support (macros)
308 #define PropSheet_SetCurSel(hDlg, hpage, index) \
309 SendMessageA(hDlg, PSM_SETCURSEL, (WPARAM)index, (LPARAM)hpage)
311 #define PropSheet_RemovePage(hDlg, index, hpage) \
312 SNDMSG(hDlg, PSM_REMOVEPAGE, index, (LPARAM)hpage)
314 #define PropSheet_AddPage(hDlg, hpage) \
315 SNDMSG(hDlg, PSM_ADDPAGE, 0, (LPARAM)hpage)
317 #define PropSheet_Changed(hDlg, hwnd) \
318 SNDMSG(hDlg, PSM_CHANGED, (WPARAM)hwnd, 0L)
320 #define PropSheet_RestartWindows(hDlg) \
321 SNDMSG(hDlg, PSM_RESTARTWINDOWS, 0, 0L)
323 #define PropSheet_RebootSystem(hDlg) \
324 SNDMSG(hDlg, PSM_REBOOTSYSTEM, 0, 0L)
326 #define PropSheet_CancelToClose(hDlg) \
327 PostMessage(hDlg, PSM_CANCELTOCLOSE, 0, 0L)
329 #define PropSheet_QuerySiblings(hDlg, wParam, lParam) \
330 SNDMSG(hDlg, PSM_QUERYSIBLINGS, wParam, lParam)
332 #define PropSheet_UnChanged(hDlg, hwnd) \
333 SNDMSG(hDlg, PSM_UNCHANGED, (WPARAM)hwnd, 0L)
335 #define PropSheet_Apply(hDlg) \
336 SNDMSG(hDlg, PSM_APPLY, 0, 0L)
338 #define PropSheet_SetTitle(hDlg, wStyle, lpszText)\
339 SNDMSG(hDlg, PSM_SETTITLE, wStyle, (LPARAM)(LPCTSTR)lpszText)
341 #define PropSheet_SetWizButtons(hDlg, dwFlags) \
342 PostMessage(hDlg, PSM_SETWIZBUTTONS, 0, (LPARAM)dwFlags)
344 #define PropSheet_PressButton(hDlg, iButton) \
345 PostMessage(hDlg, PSM_PRESSBUTTON, (WPARAM)iButton, 0)
347 #define PropSheet_SetCurSelByID(hDlg, id) \
348 SNDMSG(hDlg, PSM_SETCURSELID, 0, (LPARAM)id)
350 #define PropSheet_SetFinishText(hDlg, lpszText) \
351 SNDMSG(hDlg, PSM_SETFINISHTEXT, 0, (LPARAM)lpszText)
353 #define PropSheet_GetTabControl(hDlg) \
354 (HWND)SNDMSG(hDlg, PSM_GETTABCONTROL, 0, 0)
356 #define PropSheet_IsDialogMessage(hDlg, pMsg) \
357 (BOOL)SNDMSG(hDlg, PSM_ISDIALOGMESSAGE, 0, (LPARAM)pMsg)
359 #define PropSheet_GetCurrentPageHwnd(hDlg) \
360 (HWND)SNDMSG(hDlg, PSM_GETCURRENTPAGEHWND, 0, 0L)
367 #endif /* __WINE_PRSHT_H */