1998-12-10 16:49:22 +01:00
|
|
|
/*
|
|
|
|
* Property Sheets
|
|
|
|
*
|
|
|
|
* Copyright 1998 Francis Beaudet
|
|
|
|
*
|
|
|
|
* TODO:
|
|
|
|
* - All the functions are simply stubs
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "commctrl.h"
|
1999-02-11 17:22:12 +01:00
|
|
|
#include "prsht.h"
|
1999-01-17 17:32:32 +01:00
|
|
|
#include "propsheet.h"
|
1998-12-10 16:49:22 +01:00
|
|
|
#include "win.h"
|
|
|
|
#include "debug.h"
|
|
|
|
|
1999-01-24 20:14:58 +01:00
|
|
|
|
1999-01-17 17:32:32 +01:00
|
|
|
LRESULT WINAPI
|
|
|
|
PROPSHEET_WindowProc (HWND32 hwnd, UINT32 uMsg, WPARAM32 wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1998-12-10 16:49:22 +01:00
|
|
|
/*****************************************************************
|
1999-01-24 20:14:58 +01:00
|
|
|
* PropertySheet32A (COMCTL32.84)(COMCTL32.83)
|
1998-12-10 16:49:22 +01:00
|
|
|
*/
|
1999-01-17 17:32:32 +01:00
|
|
|
INT32 WINAPI PropertySheet32A(LPCPROPSHEETHEADER32A lppsh)
|
1998-12-10 16:49:22 +01:00
|
|
|
{
|
1999-01-17 17:32:32 +01:00
|
|
|
HWND32 hwnd;
|
1998-12-10 16:49:22 +01:00
|
|
|
|
1999-01-17 17:32:32 +01:00
|
|
|
FIXME(propsheet, "(%p): stub\n", lppsh);
|
|
|
|
|
|
|
|
if (lppsh->dwFlags & PSH_MODELESS) {
|
|
|
|
hwnd = CreateDialogParam32A ( lppsh->hInstance, WC_PROPSHEET32A,
|
1999-01-28 11:06:38 +01:00
|
|
|
lppsh->hwndParent, (DLGPROC32)PROPSHEET_WindowProc,
|
|
|
|
(LPARAM) lppsh );
|
1999-01-17 17:32:32 +01:00
|
|
|
ShowWindow32 (hwnd, TRUE);
|
|
|
|
} else {
|
|
|
|
hwnd = DialogBoxParam32A ( lppsh->hInstance, WC_PROPSHEET32A,
|
1999-01-28 11:06:38 +01:00
|
|
|
lppsh->hwndParent, (DLGPROC32)PROPSHEET_WindowProc,
|
|
|
|
(LPARAM) lppsh );
|
1999-01-17 17:32:32 +01:00
|
|
|
}
|
|
|
|
return hwnd;
|
1998-12-10 16:49:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************************
|
|
|
|
* PropertySheet32W (COMCTL32.85)
|
|
|
|
*/
|
|
|
|
INT32 WINAPI PropertySheet32W(LPCPROPSHEETHEADER32W propertySheetHeader)
|
|
|
|
{
|
1999-01-17 17:32:32 +01:00
|
|
|
FIXME(propsheet, "(%p): stub\n", propertySheetHeader);
|
1998-12-10 16:49:22 +01:00
|
|
|
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
1999-01-17 17:32:32 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************
|
1999-01-24 20:14:58 +01:00
|
|
|
* CreatePropertySheetPage32A (COMCTL32.19)(COMCTL32.18)
|
1998-12-10 16:49:22 +01:00
|
|
|
*/
|
|
|
|
HPROPSHEETPAGE WINAPI CreatePropertySheetPage32A(LPCPROPSHEETPAGE32A lpPropSheetPage)
|
|
|
|
{
|
1999-01-17 17:32:32 +01:00
|
|
|
FIXME(propsheet, "(%p): stub\n", lpPropSheetPage);
|
1998-12-10 16:49:22 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************************
|
|
|
|
* CreatePropertySheetPage32W (COMCTL32.20)
|
|
|
|
*/
|
|
|
|
HPROPSHEETPAGE WINAPI CreatePropertySheetPage32W(LPCPROPSHEETPAGE32W lpPropSheetPage)
|
|
|
|
{
|
1999-01-17 17:32:32 +01:00
|
|
|
FIXME(propsheet, "(%p): stub\n", lpPropSheetPage);
|
1998-12-10 16:49:22 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************************
|
|
|
|
* DestroyPropertySheetPage32 (COMCTL32.24)
|
|
|
|
*/
|
|
|
|
BOOL32 WINAPI DestroyPropertySheetPage32(HPROPSHEETPAGE hPropPage)
|
|
|
|
{
|
1999-01-28 11:06:38 +01:00
|
|
|
FIXME(propsheet, "(0x%08lx): stub\n", (DWORD)hPropPage);
|
1998-12-10 16:49:22 +01:00
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
1999-01-17 17:32:32 +01:00
|
|
|
|
|
|
|
|
|
|
|
LRESULT WINAPI
|
|
|
|
PROPSHEET_WindowProc (HWND32 hwnd, UINT32 uMsg, WPARAM32 wParam, LPARAM lParam)
|
|
|
|
{
|
1999-01-28 17:33:44 +01:00
|
|
|
/* WND *wndPtr = WIN_FindWndPtr(hwnd); */
|
1999-01-17 17:32:32 +01:00
|
|
|
|
1999-01-24 20:14:58 +01:00
|
|
|
switch (uMsg) {
|
1999-01-17 17:32:32 +01:00
|
|
|
case PSM_SETCURSEL:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_SETCURSEL\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_REMOVEPAGE:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_REMOVEPAGE\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_ADDPAGE:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_ADDPAGE\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_CHANGED:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_CHANGED\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_RESTARTWINDOWS:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_RESTARTWINDOWS\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_REBOOTSYSTEM:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_REBOOTSYSTEM\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_CANCELTOCLOSE:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_CANCELTOCLOSE\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_QUERYSIBLINGS:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_QUERYSIBLINGS\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_UNCHANGED:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_UNCHANGED\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_APPLY:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_APPLY\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_SETTITLE32A:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_SETTITLE32A\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_SETTITLE32W:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_SETTITLE32W\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_SETWIZBUTTONS:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_SETWIZBUTTONS\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_PRESSBUTTON:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_PRESSBUTTON\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_SETCURSELID:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_SETCURSELID\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_SETFINISHTEXT32A:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_SETFINISHTEXT32A\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_SETFINISHTEXT32W:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_SETFINISHTEXT32W\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_GETTABCONTROL:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_GETTABCONTROL\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_ISDIALOGMESSAGE:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_ISDIALOGMESSAGE\n");
|
|
|
|
return 0;
|
|
|
|
case PSM_GETCURRENTPAGEHWND:
|
|
|
|
FIXME (propsheet, "Unimplemented msg PSM_GETCURRENTPAGEHWND\n");
|
|
|
|
return 0;
|
|
|
|
|
1999-01-24 20:14:58 +01:00
|
|
|
default:
|
1999-01-17 17:32:32 +01:00
|
|
|
if (uMsg >= WM_USER)
|
1999-01-24 20:14:58 +01:00
|
|
|
ERR (propsheet, "unknown msg %04x wp=%08x lp=%08lx\n",
|
|
|
|
uMsg, wParam, lParam);
|
|
|
|
return DefWindowProc32A (hwnd, uMsg, wParam, lParam);
|
|
|
|
}
|
1999-01-17 17:32:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
VOID
|
|
|
|
PROPSHEET_Register (VOID)
|
|
|
|
{
|
|
|
|
WNDCLASS32A wndClass;
|
|
|
|
|
|
|
|
if (GlobalFindAtom32A (WC_PROPSHEET32A)) return;
|
|
|
|
|
|
|
|
ZeroMemory (&wndClass, sizeof(WNDCLASS32A));
|
|
|
|
wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS | CS_SAVEBITS;
|
|
|
|
wndClass.lpfnWndProc = (WNDPROC32)PROPSHEET_WindowProc;
|
|
|
|
wndClass.cbClsExtra = 0;
|
|
|
|
wndClass.cbWndExtra = sizeof(PROPSHEET_INFO *);
|
|
|
|
wndClass.hCursor = LoadCursor32A (0, IDC_ARROW32A);
|
|
|
|
wndClass.hbrBackground = 0;
|
|
|
|
wndClass.lpszClassName = WC_PROPSHEET32A;
|
|
|
|
|
|
|
|
RegisterClass32A (&wndClass);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
VOID
|
|
|
|
PROPSHEET_UnRegister (VOID)
|
|
|
|
{
|
|
|
|
if (GlobalFindAtom32A (WC_PROPSHEET32A))
|
1999-01-24 20:14:58 +01:00
|
|
|
UnregisterClass32A (WC_PROPSHEET32A, (HINSTANCE32)NULL);
|
1999-01-17 17:32:32 +01:00
|
|
|
}
|