2002-03-10 00:29:33 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) the Wine project
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
1999-06-12 20:36:54 +02:00
|
|
|
#ifndef __WINE_PRSHT_H
|
|
|
|
#define __WINE_PRSHT_H
|
1999-02-11 17:22:12 +01:00
|
|
|
|
2000-02-10 20:03:02 +01:00
|
|
|
#include "windef.h"
|
|
|
|
#include "wingdi.h"
|
1999-02-17 14:51:06 +01:00
|
|
|
#include "winuser.h"
|
1999-02-11 17:22:12 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Property sheet support (callback procs)
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
#define WC_PROPSHEETA "SysPropertySheet"
|
2002-09-16 21:29:36 +02:00
|
|
|
#if defined(__GNUC__)
|
|
|
|
# define WC_PROPSHEETW (const WCHAR []){ 'S','y','s', \
|
|
|
|
'P','r','o','p','e','r','t','y','S','h','e','e','t',0 }
|
|
|
|
#elif defined(_MSC_VER)
|
|
|
|
# define WC_PROPSHEETW L"SysPropertySheet"
|
|
|
|
#else
|
2001-01-22 03:13:58 +01:00
|
|
|
static const WCHAR WC_PROPSHEETW[] = { 'S','y','s',
|
|
|
|
'P','r','o','p','e','r','t','y','S','h','e','e','t',0 };
|
2002-09-16 21:29:36 +02:00
|
|
|
#endif
|
1999-02-11 17:22:12 +01:00
|
|
|
#define WC_PROPSHEET WINELIB_NAME_AW(WC_PROPSHEET)
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
struct _PROPSHEETPAGEA; /** need to forward declare those structs **/
|
|
|
|
struct _PROPSHEETPAGEW;
|
1999-02-11 17:22:12 +01:00
|
|
|
struct _PSP;
|
|
|
|
typedef struct _PSP *HPROPSHEETPAGE;
|
|
|
|
|
|
|
|
|
2002-02-01 00:22:07 +01:00
|
|
|
typedef UINT (CALLBACK *LPFNPSPCALLBACKA)(HWND, UINT, struct _PROPSHEETPAGEA*);
|
|
|
|
typedef UINT (CALLBACK *LPFNPSPCALLBACKW)(HWND, UINT, struct _PROPSHEETPAGEW*);
|
|
|
|
typedef INT (CALLBACK *PFNPROPSHEETCALLBACK)(HWND, UINT, LPARAM);
|
|
|
|
typedef BOOL (CALLBACK *LPFNADDPROPSHEETPAGE)(HPROPSHEETPAGE, LPARAM);
|
|
|
|
typedef BOOL (CALLBACK *LPFNADDPROPSHEETPAGES)(LPVOID, LPFNADDPROPSHEETPAGE, LPARAM);
|
1999-02-11 17:22:12 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Property sheet support (structures)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
typedef struct _PROPSHEETPAGEA
|
1999-02-11 17:22:12 +01:00
|
|
|
{
|
|
|
|
DWORD dwSize;
|
|
|
|
DWORD dwFlags;
|
1999-02-26 12:11:13 +01:00
|
|
|
HINSTANCE hInstance;
|
2002-06-01 01:06:46 +02:00
|
|
|
union
|
1999-02-11 17:22:12 +01:00
|
|
|
{
|
|
|
|
LPCSTR pszTemplate;
|
1999-03-13 18:09:13 +01:00
|
|
|
LPCDLGTEMPLATEA pResource;
|
2000-09-19 04:43:00 +02:00
|
|
|
}DUMMYUNIONNAME;
|
1999-02-11 17:22:12 +01:00
|
|
|
union
|
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
HICON hIcon;
|
1999-02-11 17:22:12 +01:00
|
|
|
LPCSTR pszIcon;
|
|
|
|
}DUMMYUNIONNAME2;
|
|
|
|
LPCSTR pszTitle;
|
1999-02-26 12:11:13 +01:00
|
|
|
DLGPROC pfnDlgProc;
|
1999-02-11 17:22:12 +01:00
|
|
|
LPARAM lParam;
|
1999-02-26 12:11:13 +01:00
|
|
|
LPFNPSPCALLBACKA pfnCallback;
|
|
|
|
UINT* pcRefParent;
|
2000-10-13 19:10:24 +02:00
|
|
|
LPCSTR pszHeaderTitle;
|
|
|
|
LPCSTR pszHeaderSubTitle;
|
1999-02-26 12:11:13 +01:00
|
|
|
} PROPSHEETPAGEA, *LPPROPSHEETPAGEA;
|
1999-02-11 17:22:12 +01:00
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
typedef const PROPSHEETPAGEA *LPCPROPSHEETPAGEA;
|
1999-02-11 17:22:12 +01:00
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
typedef struct _PROPSHEETPAGEW
|
1999-02-11 17:22:12 +01:00
|
|
|
{
|
|
|
|
DWORD dwSize;
|
|
|
|
DWORD dwFlags;
|
1999-02-26 12:11:13 +01:00
|
|
|
HINSTANCE hInstance;
|
2002-06-01 01:06:46 +02:00
|
|
|
union
|
1999-02-11 17:22:12 +01:00
|
|
|
{
|
|
|
|
LPCWSTR pszTemplate;
|
1999-03-13 18:09:13 +01:00
|
|
|
LPCDLGTEMPLATEW pResource;
|
2000-09-19 04:43:00 +02:00
|
|
|
}DUMMYUNIONNAME;
|
1999-02-11 17:22:12 +01:00
|
|
|
union
|
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
HICON hIcon;
|
1999-02-11 17:22:12 +01:00
|
|
|
LPCWSTR pszIcon;
|
|
|
|
}DUMMYUNIONNAME2;
|
|
|
|
LPCWSTR pszTitle;
|
1999-02-26 12:11:13 +01:00
|
|
|
DLGPROC pfnDlgProc;
|
1999-02-11 17:22:12 +01:00
|
|
|
LPARAM lParam;
|
1999-02-26 12:11:13 +01:00
|
|
|
LPFNPSPCALLBACKW pfnCallback;
|
|
|
|
UINT* pcRefParent;
|
1999-02-11 17:22:12 +01:00
|
|
|
LPCWSTR pszHeaderTitle;
|
|
|
|
LPCWSTR pszHeaderSubTitle;
|
1999-02-26 12:11:13 +01:00
|
|
|
} PROPSHEETPAGEW, *LPPROPSHEETPAGEW;
|
1999-02-11 17:22:12 +01:00
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
typedef const PROPSHEETPAGEW *LPCPROPSHEETPAGEW;
|
1999-02-11 17:22:12 +01:00
|
|
|
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
typedef struct _PROPSHEETHEADERA
|
1999-02-11 17:22:12 +01:00
|
|
|
{
|
|
|
|
DWORD dwSize;
|
|
|
|
DWORD dwFlags;
|
1999-02-26 12:11:13 +01:00
|
|
|
HWND hwndParent;
|
|
|
|
HINSTANCE hInstance;
|
1999-02-11 17:22:12 +01:00
|
|
|
union
|
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
HICON hIcon;
|
1999-02-11 17:22:12 +01:00
|
|
|
LPCSTR pszIcon;
|
2000-09-19 04:43:00 +02:00
|
|
|
}DUMMYUNIONNAME;
|
1999-02-11 17:22:12 +01:00
|
|
|
LPCSTR pszCaption;
|
1999-02-26 12:11:13 +01:00
|
|
|
UINT nPages;
|
1999-02-11 17:22:12 +01:00
|
|
|
union
|
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
UINT nStartPage;
|
1999-02-11 17:22:12 +01:00
|
|
|
LPCSTR pStartPage;
|
|
|
|
}DUMMYUNIONNAME2;
|
|
|
|
union
|
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
LPCPROPSHEETPAGEA ppsp;
|
1999-02-11 17:22:12 +01:00
|
|
|
HPROPSHEETPAGE* phpage;
|
|
|
|
}DUMMYUNIONNAME3;
|
1999-02-26 12:11:13 +01:00
|
|
|
PFNPROPSHEETCALLBACK pfnCallback;
|
1999-02-11 17:22:12 +01:00
|
|
|
union
|
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
HBITMAP hbmWatermark;
|
1999-02-11 17:22:12 +01:00
|
|
|
LPCSTR pszbmWatermark;
|
|
|
|
}DUMMYUNIONNAME4;
|
1999-02-26 12:11:13 +01:00
|
|
|
HPALETTE hplWatermark;
|
1999-02-11 17:22:12 +01:00
|
|
|
union
|
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
HBITMAP hbmHeader;
|
1999-02-11 17:22:12 +01:00
|
|
|
LPCSTR pszbmHeader;
|
|
|
|
}DUMMYUNIONNAME5;
|
1999-02-26 12:11:13 +01:00
|
|
|
} PROPSHEETHEADERA, *LPPROPSHEETHEADERA;
|
1999-02-11 17:22:12 +01:00
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
typedef const PROPSHEETHEADERA *LPCPROPSHEETHEADERA;
|
1999-02-11 17:22:12 +01:00
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
typedef struct _PROPSHEETHEADERW
|
1999-02-11 17:22:12 +01:00
|
|
|
{
|
|
|
|
DWORD dwSize;
|
|
|
|
DWORD dwFlags;
|
1999-02-26 12:11:13 +01:00
|
|
|
HWND hwndParent;
|
|
|
|
HINSTANCE hInstance;
|
1999-02-11 17:22:12 +01:00
|
|
|
union
|
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
HICON hIcon;
|
2002-01-29 18:14:53 +01:00
|
|
|
LPCWSTR pszIcon;
|
|
|
|
}DUMMYUNIONNAME;
|
1999-02-11 17:22:12 +01:00
|
|
|
LPCWSTR pszCaption;
|
1999-02-26 12:11:13 +01:00
|
|
|
UINT nPages;
|
1999-02-11 17:22:12 +01:00
|
|
|
union
|
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
UINT nStartPage;
|
1999-02-11 17:22:12 +01:00
|
|
|
LPCWSTR pStartPage;
|
|
|
|
}DUMMYUNIONNAME2;
|
|
|
|
union
|
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
LPCPROPSHEETPAGEW ppsp;
|
1999-02-11 17:22:12 +01:00
|
|
|
HPROPSHEETPAGE* phpage;
|
|
|
|
}DUMMYUNIONNAME3;
|
1999-02-26 12:11:13 +01:00
|
|
|
PFNPROPSHEETCALLBACK pfnCallback;
|
1999-02-11 17:22:12 +01:00
|
|
|
union
|
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
HBITMAP hbmWatermark;
|
1999-02-11 17:22:12 +01:00
|
|
|
LPCWSTR pszbmWatermark;
|
|
|
|
}DUMMYUNIONNAME4;
|
1999-02-26 12:11:13 +01:00
|
|
|
HPALETTE hplWatermark;
|
1999-02-11 17:22:12 +01:00
|
|
|
union
|
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
HBITMAP hbmHeader;
|
1999-02-11 17:22:12 +01:00
|
|
|
LPCWSTR pszbmHeader;
|
|
|
|
}DUMMYUNIONNAME5;
|
1999-02-26 12:11:13 +01:00
|
|
|
} PROPSHEETHEADERW, *LPPROPSHEETHEADERW;
|
1999-02-11 17:22:12 +01:00
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
typedef const PROPSHEETHEADERW *LPCPROPSHEETHEADERW;
|
1999-02-11 17:22:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Property sheet support (methods)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
INT WINAPI PropertySheetA(LPCPROPSHEETHEADERA);
|
|
|
|
INT WINAPI PropertySheetW(LPCPROPSHEETHEADERW);
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PropertySheet WINELIB_NAME_AW(PropertySheet)
|
1999-02-26 12:11:13 +01:00
|
|
|
HPROPSHEETPAGE WINAPI CreatePropertySheetPageA(LPCPROPSHEETPAGEA);
|
|
|
|
HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW);
|
1999-02-11 17:22:12 +01:00
|
|
|
#define CreatePropertySheetPage WINELIB_NAME_AW(CreatePropertySheetPage)
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI DestroyPropertySheetPage(HPROPSHEETPAGE hPropPage);
|
1999-02-11 17:22:12 +01:00
|
|
|
|
|
|
|
/*
|
2000-12-02 21:17:13 +01:00
|
|
|
* Property sheet support (UNICODE-Winelib)
|
1999-02-11 17:22:12 +01:00
|
|
|
*/
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
DECL_WINELIB_TYPE_AW(PROPSHEETPAGE)
|
|
|
|
DECL_WINELIB_TYPE_AW(LPPROPSHEETPAGE)
|
|
|
|
DECL_WINELIB_TYPE_AW(LPCPROPSHEETPAGE)
|
|
|
|
DECL_WINELIB_TYPE_AW(PROPSHEETHEADER)
|
|
|
|
DECL_WINELIB_TYPE_AW(LPPROPSHEETHEADER)
|
|
|
|
DECL_WINELIB_TYPE_AW(LPCPROPSHEETHEADER)
|
|
|
|
DECL_WINELIB_TYPE_AW(LPFNPSPCALLBACK)
|
1999-02-11 17:22:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 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
|
1999-11-28 22:01:47 +01:00
|
|
|
#define PSP_PREMATURE 0x0400
|
1999-02-11 17:22:12 +01:00
|
|
|
|
1999-11-28 22:01:47 +01:00
|
|
|
#define PSP_HIDEHEADER 0x00000800
|
|
|
|
#define PSP_USEHEADERTITLE 0x00001000
|
|
|
|
#define PSP_USEHEADERSUBTITLE 0x00002000
|
1999-02-11 17:22:12 +01:00
|
|
|
|
|
|
|
#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
|
2002-01-29 18:14:53 +01:00
|
|
|
#define PSH_WIZARDHASFINISH 0x0010
|
1999-02-11 17:22:12 +01:00
|
|
|
#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
|
1999-11-28 22:01:47 +01:00
|
|
|
#define PSH_WIZARDCONTEXTHELP 0x00001000
|
|
|
|
|
2002-01-29 18:14:53 +01:00
|
|
|
/*
|
2002-06-01 01:06:46 +02:00
|
|
|
* for below IE 5
|
2002-01-29 18:14:53 +01:00
|
|
|
* PSH_WIZARD97 0x00002000
|
|
|
|
*/
|
1999-11-28 22:01:47 +01:00
|
|
|
#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
|
2002-01-29 18:14:53 +01:00
|
|
|
#define PSH_WIZARD_LITE 0x00400000
|
|
|
|
/*
|
|
|
|
* for IE 5 and above
|
|
|
|
* PSH_WIZARD97 0x01000000
|
|
|
|
*/
|
|
|
|
#define PSH_NOCONTEXTHELP 0x02000000
|
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PSCB_INITIALIZED 1
|
|
|
|
#define PSCB_PRECREATE 2
|
|
|
|
|
1999-11-28 22:01:47 +01:00
|
|
|
typedef struct _PSHNOTIFY
|
|
|
|
{
|
|
|
|
NMHDR hdr;
|
|
|
|
LPARAM lParam;
|
|
|
|
} PSHNOTIFY, *LPPSHNOTIFY;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PSN_FIRST (0U-200U)
|
|
|
|
#define PSN_LAST (0U-299U)
|
|
|
|
|
|
|
|
|
|
|
|
#define PSN_SETACTIVE (PSN_FIRST-0)
|
|
|
|
#define PSN_KILLACTIVE (PSN_FIRST-1)
|
|
|
|
/* #define PSN_VALIDATE (PSN_FIRST-1) */
|
|
|
|
#define PSN_APPLY (PSN_FIRST-2)
|
|
|
|
#define PSN_RESET (PSN_FIRST-3)
|
|
|
|
/* #define PSN_CANCEL (PSN_FIRST-3) */
|
|
|
|
#define PSN_HELP (PSN_FIRST-5)
|
|
|
|
#define PSN_WIZBACK (PSN_FIRST-6)
|
|
|
|
#define PSN_WIZNEXT (PSN_FIRST-7)
|
|
|
|
#define PSN_WIZFINISH (PSN_FIRST-8)
|
|
|
|
#define PSN_QUERYCANCEL (PSN_FIRST-9)
|
2001-01-22 20:25:05 +01:00
|
|
|
#define PSN_GETOBJECT (PSN_FIRST-10)
|
1999-02-11 17:22:12 +01:00
|
|
|
|
|
|
|
#define PSNRET_NOERROR 0
|
|
|
|
#define PSNRET_INVALID 1
|
|
|
|
#define PSNRET_INVALID_NOCHANGEPAGE 2
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
|
|
|
|
#define PSM_SETCURSEL (WM_USER + 101)
|
|
|
|
#define PSM_REMOVEPAGE (WM_USER + 102)
|
|
|
|
#define PSM_ADDPAGE (WM_USER + 103)
|
|
|
|
#define PSM_CHANGED (WM_USER + 104)
|
|
|
|
#define PSM_RESTARTWINDOWS (WM_USER + 105)
|
|
|
|
#define PSM_REBOOTSYSTEM (WM_USER + 106)
|
|
|
|
#define PSM_CANCELTOCLOSE (WM_USER + 107)
|
|
|
|
#define PSM_QUERYSIBLINGS (WM_USER + 108)
|
|
|
|
#define PSM_UNCHANGED (WM_USER + 109)
|
|
|
|
#define PSM_APPLY (WM_USER + 110)
|
1999-02-26 12:11:13 +01:00
|
|
|
#define PSM_SETTITLEA (WM_USER + 111)
|
|
|
|
#define PSM_SETTITLEW (WM_USER + 120)
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PSM_SETTITLE WINELIB_NAME_AW(PSM_SETTITLE)
|
|
|
|
#define PSM_SETWIZBUTTONS (WM_USER + 112)
|
|
|
|
#define PSM_PRESSBUTTON (WM_USER + 113)
|
|
|
|
#define PSM_SETCURSELID (WM_USER + 114)
|
1999-02-26 12:11:13 +01:00
|
|
|
#define PSM_SETFINISHTEXTA (WM_USER + 115)
|
|
|
|
#define PSM_SETFINISHTEXTW (WM_USER + 121)
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PSM_SETFINISHTEXT WINELIB_NAME_AW(PSM_SETFINISHTEXT)
|
|
|
|
#define PSM_GETTABCONTROL (WM_USER + 116)
|
|
|
|
#define PSM_ISDIALOGMESSAGE (WM_USER + 117)
|
|
|
|
#define PSM_GETCURRENTPAGEHWND (WM_USER + 118)
|
|
|
|
|
|
|
|
#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 ID_PSREBOOTSYSTEM (ID_PSRESTARTWINDOWS | 0x1)
|
|
|
|
|
|
|
|
|
|
|
|
#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_SetCurSel(hDlg, hpage, index) \
|
1999-03-13 19:15:29 +01:00
|
|
|
SendMessageA(hDlg, PSM_SETCURSEL, (WPARAM)index, (LPARAM)hpage)
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PropSheet_RemovePage(hDlg, index, hpage) \
|
|
|
|
SNDMSG(hDlg, PSM_REMOVEPAGE, index, (LPARAM)hpage)
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PropSheet_AddPage(hDlg, hpage) \
|
|
|
|
SNDMSG(hDlg, PSM_ADDPAGE, 0, (LPARAM)hpage)
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PropSheet_Changed(hDlg, hwnd) \
|
|
|
|
SNDMSG(hDlg, PSM_CHANGED, (WPARAM)hwnd, 0L)
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PropSheet_RestartWindows(hDlg) \
|
|
|
|
SNDMSG(hDlg, PSM_RESTARTWINDOWS, 0, 0L)
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PropSheet_RebootSystem(hDlg) \
|
|
|
|
SNDMSG(hDlg, PSM_REBOOTSYSTEM, 0, 0L)
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PropSheet_CancelToClose(hDlg) \
|
|
|
|
PostMessage(hDlg, PSM_CANCELTOCLOSE, 0, 0L)
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PropSheet_QuerySiblings(hDlg, wParam, lParam) \
|
|
|
|
SNDMSG(hDlg, PSM_QUERYSIBLINGS, wParam, lParam)
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PropSheet_UnChanged(hDlg, hwnd) \
|
|
|
|
SNDMSG(hDlg, PSM_UNCHANGED, (WPARAM)hwnd, 0L)
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PropSheet_Apply(hDlg) \
|
|
|
|
SNDMSG(hDlg, PSM_APPLY, 0, 0L)
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PropSheet_SetTitle(hDlg, wStyle, lpszText)\
|
|
|
|
SNDMSG(hDlg, PSM_SETTITLE, wStyle, (LPARAM)(LPCTSTR)lpszText)
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PropSheet_SetWizButtons(hDlg, dwFlags) \
|
|
|
|
PostMessage(hDlg, PSM_SETWIZBUTTONS, 0, (LPARAM)dwFlags)
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PropSheet_PressButton(hDlg, iButton) \
|
|
|
|
PostMessage(hDlg, PSM_PRESSBUTTON, (WPARAM)iButton, 0)
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PropSheet_SetCurSelByID(hDlg, id) \
|
|
|
|
SNDMSG(hDlg, PSM_SETCURSELID, 0, (LPARAM)id)
|
|
|
|
|
|
|
|
#define PropSheet_SetFinishText(hDlg, lpszText) \
|
|
|
|
SNDMSG(hDlg, PSM_SETFINISHTEXT, 0, (LPARAM)lpszText)
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PropSheet_GetTabControl(hDlg) \
|
|
|
|
(HWND)SNDMSG(hDlg, PSM_GETTABCONTROL, 0, 0)
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PropSheet_IsDialogMessage(hDlg, pMsg) \
|
|
|
|
(BOOL)SNDMSG(hDlg, PSM_ISDIALOGMESSAGE, 0, (LPARAM)pMsg)
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
#define PropSheet_GetCurrentPageHwnd(hDlg) \
|
|
|
|
(HWND)SNDMSG(hDlg, PSM_GETCURRENTPAGEHWND, 0, 0L)
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-11 17:22:12 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
1999-06-12 20:36:54 +02:00
|
|
|
#endif /* __WINE_PRSHT_H */
|