prsht.h revision 5112e32d7072e280613921c982a6672f2c859cf3
/*
* Copyright (C) the Wine project
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
* Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Sun elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
#ifndef __WINE_PRSHT_H
#define __WINE_PRSHT_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Property sheet support (callback procs)
*/
#define WC_PROPSHEETA "SysPropertySheet"
#if defined(__GNUC__)
'P','r','o','p','e','r','t','y','S','h','e','e','t',0 }
# define WC_PROPSHEETW L"SysPropertySheet"
#else
'P','r','o','p','e','r','t','y','S','h','e','e','t',0 };
#endif
struct _PROPSHEETPAGEA; /** need to forward declare those structs **/
struct _PROPSHEETPAGEW;
struct _PSP;
#ifndef _HPROPSHEETPAGE_DEFINED
#define _HPROPSHEETPAGE_DEFINED
typedef struct _PSP *HPROPSHEETPAGE;
#endif /* _HPROPSHEETPAGE_DEFINED */
/*
* Property sheet support (structures)
*/
typedef struct _PROPSHEETPAGEA
{
union
{
union
{
typedef const PROPSHEETPAGEA *LPCPROPSHEETPAGEA;
typedef struct _PROPSHEETPAGEW
{
union
{
union
{
typedef const PROPSHEETPAGEW *LPCPROPSHEETPAGEW;
typedef struct _PROPSHEETHEADERA
{
union
{
union
{
union
{
union
{
union
{
typedef const PROPSHEETHEADERA *LPCPROPSHEETHEADERA;
typedef struct _PROPSHEETHEADERW
{
union
{
union
{
union
{
union
{
union
{
typedef const PROPSHEETHEADERW *LPCPROPSHEETHEADERW;
/*
* Property sheet support (methods)
*/
/*
* Property sheet support (UNICODE-Winelib)
*/
/*
* Property sheet support (defines)
*/
#define PSP_DEFAULT 0x0000
#define PSP_DLGINDIRECT 0x0001
#define PSP_USEHICON 0x0002
#define PSP_USEICONID 0x0004
#define PSP_USETITLE 0x0008
#define PSP_RTLREADING 0x0010
#define PSP_HASHELP 0x0020
#define PSP_USEREFPARENT 0x0040
#define PSP_USECALLBACK 0x0080
#define PSP_PREMATURE 0x0400
#define PSP_HIDEHEADER 0x00000800
#define PSP_USEHEADERTITLE 0x00001000
#define PSP_USEHEADERSUBTITLE 0x00002000
#define PSP_USEFUSIONCONTEXT 0x00004000
#define PSP_COMMANDLINKS 0x00040000
#define PSPCB_RELEASE 1
#define PSPCB_CREATE 2
#define PSH_DEFAULT 0x0000
#define PSH_PROPTITLE 0x0001
#define PSH_USEHICON 0x0002
#define PSH_USEICONID 0x0004
#define PSH_PROPSHEETPAGE 0x0008
#define PSH_WIZARDHASFINISH 0x0010
#define PSH_WIZARD 0x0020
#define PSH_USEPSTARTPAGE 0x0040
#define PSH_NOAPPLYNOW 0x0080
#define PSH_USECALLBACK 0x0100
#define PSH_HASHELP 0x0200
#define PSH_MODELESS 0x0400
#define PSH_RTLREADING 0x0800
#define PSH_WIZARDCONTEXTHELP 0x00001000
#define PSH_WATERMARK 0x00008000
#define PSH_USEHBMWATERMARK 0x00010000
#define PSH_USEHPLWATERMARK 0x00020000
#define PSH_STRETCHWATERMARK 0x00040000
#define PSH_HEADER 0x00080000
#define PSH_USEHBMHEADER 0x00100000
#define PSH_USEPAGELANG 0x00200000
#define PSH_WIZARD_LITE 0x00400000
#define PSH_NOCONTEXTHELP 0x02000000
#ifndef __WINESRC__
# define PSH_WIZARD97 PSH_WIZARD97_OLD
# else
# define PSH_WIZARD97 PSH_WIZARD97_NEW
# endif
#endif
#define PSCB_INITIALIZED 1
#define PSCB_PRECREATE 2
typedef struct _PSHNOTIFY
{
} PSHNOTIFY, *LPPSHNOTIFY;
#define PSN_FIRST (0U-200U)
#define PSN_LAST (0U-299U)
#define PSN_SETACTIVE (PSN_FIRST-0)
/* #define PSN_VALIDATE (PSN_FIRST-1) */
/* #define PSN_CANCEL (PSN_FIRST-3) */
#define PSNRET_NOERROR 0
#define PSNRET_INVALID 1
#define PSNRET_INVALID_NOCHANGEPAGE 2
#define PSWIZB_BACK 0x00000001
#define PSWIZB_NEXT 0x00000002
#define PSWIZB_FINISH 0x00000004
#define PSWIZB_DISABLEDFINISH 0x00000008
#define PSBTN_BACK 0
#define PSBTN_NEXT 1
#define PSBTN_FINISH 2
#define PSBTN_OK 3
#define PSBTN_APPLYNOW 4
#define PSBTN_CANCEL 5
#define PSBTN_HELP 6
#define PSBTN_MAX 6
#define ID_PSRESTARTWINDOWS 0x2
#define WIZ_CXDLG 276
#define WIZ_CYDLG 140
#define WIZ_CXBMP 80
#define WIZ_BODYX 92
#define WIZ_BODYCX 184
#define PROP_SM_CXDLG 212
#define PROP_SM_CYDLG 188
#define PROP_MED_CXDLG 227
#define PROP_MED_CYDLG 215
#define PROP_LG_CXDLG 252
#define PROP_LG_CYDLG 218
/*
* Property sheet support (macros)
*/
#define PropSheet_RestartWindows(hDlg) \
#define PropSheet_RebootSystem(hDlg) \
#define PropSheet_CancelToClose(hDlg) \
#define PropSheet_Apply(hDlg) \
#define PropSheet_GetTabControl(hDlg) \
#define PropSheet_GetCurrentPageHwnd(hDlg) \
#define PropSheet_IndexToHwnd(hDlg, i) \
#define PropSheet_IndexToPage(hDlg, i) \
#define PropSheet_IndexToId(hDlg, i) \
#define PropSheet_GetResult(hDlg) \
#define PropSheet_RecalcPageSizes(hDlg) \
#ifdef __cplusplus
}
#endif
#endif /* __WINE_PRSHT_H */