prsht.h revision b955672b950093ff7416d1269dd4d3b69983bd8f
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright (C) the Wine project
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * other than GPL or LGPL is available it will apply instead, Sun elects to use only
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * a choice of LGPL license versions is made available with the language indicating
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * of the LGPL is applied is otherwise unspecified.
af062818b47340eef15700d2f0211576ba3506eevboxsyncextern "C" {
af062818b47340eef15700d2f0211576ba3506eevboxsync * Property sheet support (callback procs)
af062818b47340eef15700d2f0211576ba3506eevboxsync# define WC_PROPSHEETW (const WCHAR []){ 'S','y','s', \
af062818b47340eef15700d2f0211576ba3506eevboxsync 'P','r','o','p','e','r','t','y','S','h','e','e','t',0 }
af062818b47340eef15700d2f0211576ba3506eevboxsync 'P','r','o','p','e','r','t','y','S','h','e','e','t',0 };
af062818b47340eef15700d2f0211576ba3506eevboxsyncstruct _PROPSHEETPAGEA; /** need to forward declare those structs **/
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif /* _HPROPSHEETPAGE_DEFINED */
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef UINT (CALLBACK *LPFNPSPCALLBACKA)(HWND, UINT, struct _PROPSHEETPAGEA*);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef UINT (CALLBACK *LPFNPSPCALLBACKW)(HWND, UINT, struct _PROPSHEETPAGEW*);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef INT (CALLBACK *PFNPROPSHEETCALLBACK)(HWND, UINT, LPARAM);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef BOOL (CALLBACK *LPFNADDPROPSHEETPAGE)(HPROPSHEETPAGE, LPARAM);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef BOOL (CALLBACK *LPFNADDPROPSHEETPAGES)(LPVOID, LPFNADDPROPSHEETPAGE, LPARAM);
af062818b47340eef15700d2f0211576ba3506eevboxsync * Property sheet support (structures)
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef const PROPSHEETHEADERA *LPCPROPSHEETHEADERA;
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef const PROPSHEETHEADERW *LPCPROPSHEETHEADERW;
af062818b47340eef15700d2f0211576ba3506eevboxsync * Property sheet support (methods)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define PropertySheet WINELIB_NAME_AW(PropertySheet)
af062818b47340eef15700d2f0211576ba3506eevboxsyncHPROPSHEETPAGE WINAPI CreatePropertySheetPageA(LPCPROPSHEETPAGEA);
af062818b47340eef15700d2f0211576ba3506eevboxsyncHPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define CreatePropertySheetPage WINELIB_NAME_AW(CreatePropertySheetPage)
af062818b47340eef15700d2f0211576ba3506eevboxsyncBOOL WINAPI DestroyPropertySheetPage(HPROPSHEETPAGE hPropPage);
af062818b47340eef15700d2f0211576ba3506eevboxsync * Property sheet support (UNICODE-Winelib)
af062818b47340eef15700d2f0211576ba3506eevboxsync * Property sheet support (defines)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define PSH_WIZARD97_OLD 0x00002000 /* for IE < 5 */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define PSH_WIZARD97_NEW 0x01000000 /* for IE >= 5 */
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct _PSHNOTIFY
af062818b47340eef15700d2f0211576ba3506eevboxsync/* #define PSN_VALIDATE (PSN_FIRST-1) */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* #define PSN_CANCEL (PSN_FIRST-3) */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define PSM_SETFINISHTEXT WINELIB_NAME_AW(PSM_SETFINISHTEXT)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define PSM_SETHEADERTITLE WINELIB_NAME_AW(PSM_SETHEADERTITLE)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define PSM_SETHEADERSUBTITLE WINELIB_NAME_AW(PSM_SETHEADERSUBTITLE)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ID_PSREBOOTSYSTEM (ID_PSRESTARTWINDOWS | 0x1)
af062818b47340eef15700d2f0211576ba3506eevboxsync * Property sheet support (macros)
af062818b47340eef15700d2f0211576ba3506eevboxsync SendMessageA(hDlg, PSM_SETCURSEL, (WPARAM)index, (LPARAM)hpage)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define PropSheet_QuerySiblings(hDlg, wParam, lParam) \
af062818b47340eef15700d2f0211576ba3506eevboxsync SNDMSG(hDlg, PSM_SETTITLE, wStyle, (LPARAM)(LPCTSTR)lpszText)
af062818b47340eef15700d2f0211576ba3506eevboxsync PostMessage(hDlg, PSM_SETWIZBUTTONS, 0, (LPARAM)dwFlags)
af062818b47340eef15700d2f0211576ba3506eevboxsync PostMessage(hDlg, PSM_PRESSBUTTON, (WPARAM)iButton, 0)
af062818b47340eef15700d2f0211576ba3506eevboxsync SNDMSG(hDlg, PSM_SETFINISHTEXT, 0, (LPARAM)lpszText)
af062818b47340eef15700d2f0211576ba3506eevboxsync (BOOL)SNDMSG(hDlg, PSM_ISDIALOGMESSAGE, 0, (LPARAM)pMsg)
af062818b47340eef15700d2f0211576ba3506eevboxsync SNDMSG(hDlg, PSM_INSERTPAGE, (WPARAM)(index), (LPARAM)(hpage))
af062818b47340eef15700d2f0211576ba3506eevboxsync#define PropSheet_SetHeaderTitle(hDlg, index, lpszText) \
af062818b47340eef15700d2f0211576ba3506eevboxsync SNDMSG(hDlg, PSM_SETHEADERTITLE, (WPARAM)(index), (LPARAM)(lpszText))
af062818b47340eef15700d2f0211576ba3506eevboxsync#define PropSheet_SetHeaderSubTitle(hDlg, index, lpszText) \
af062818b47340eef15700d2f0211576ba3506eevboxsync SNDMSG(hDlg, PSM_SETHEADERSUBTITLE, (WPARAM)(index), (LPARAM)(lpszText))
af062818b47340eef15700d2f0211576ba3506eevboxsync (int)SNDMSG(hDlg, PSM_HWNDTOINDEX, (WPARAM)(hwnd), 0)
af062818b47340eef15700d2f0211576ba3506eevboxsync (HWND)SNDMSG(hDlg, PSM_INDEXTOHWND, (WPARAM)(i), 0)
af062818b47340eef15700d2f0211576ba3506eevboxsync (int)SNDMSG(hDlg, PSM_PAGETOINDEX, 0, (LPARAM)(hpage))
af062818b47340eef15700d2f0211576ba3506eevboxsync (HPROPSHEETPAGE)SNDMSG(hDlg, PSM_INDEXTOPAGE, (WPARAM)(i), 0)
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif /* __WINE_PRSHT_H */