2 * PROJECT: ReactOS Services
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: subsys/system/servman/propsheet.c
5 * PURPOSE: Property dialog box message handler
6 * COPYRIGHT: Copyright 2005 Ged Murphy <gedmurphy@gmail.com>
12 extern HINSTANCE hInstance
;
15 #pragma warning(disable : 4100)
17 /* Property page dialog callback */
19 GeneralPageProc(HWND hwndDlg
,
32 switch(LOWORD(wParam
))
48 LPNMHDR lpnm
= (LPNMHDR
)lParam
;
64 InitPropSheetPage(PROPSHEETPAGE
*psp
, WORD idDlg
, DLGPROC DlgProc
)
66 ZeroMemory(psp
, sizeof(PROPSHEETPAGE
));
67 psp
->dwSize
= sizeof(PROPSHEETPAGE
);
68 psp
->dwFlags
= PSP_DEFAULT
;
69 psp
->hInstance
= hInstance
;
70 psp
->pszTemplate
= MAKEINTRESOURCE(idDlg
);
71 psp
->pfnDlgProc
= DlgProc
;
82 LoadString(hInstance
, IDS_PROP_SHEET
, Caption
, sizeof(Caption
) / sizeof(TCHAR
));
84 ZeroMemory(&psh
, sizeof(PROPSHEETHEADER
));
85 psh
.dwSize
= sizeof(PROPSHEETHEADER
);
86 psh
.dwFlags
= PSH_PROPSHEETPAGE
| PSH_PROPTITLE
;
87 psh
.hwndParent
= NULL
;
88 psh
.hInstance
= hInstance
;
89 psh
.hIcon
= LoadIcon(hInstance
, MAKEINTRESOURCE(IDI_SM_ICON
));
90 psh
.pszCaption
= Caption
;
91 psh
.nPages
= sizeof(psp
) / sizeof(PROPSHEETPAGE
);
95 InitPropSheetPage(&psp
[0], IDD_DLG_GENERAL
, GeneralPageProc
);
100 return (LONG
)(PropertySheet(&psh
) != -1);