ad8637a48ef62261f9e5a4954dd7a8df8221c78b
3 extern HINSTANCE hInstance
;
6 /* Property page dialog callback */
8 GeneralPageProc(HWND hwndDlg
,
21 switch(LOWORD(wParam
))
37 LPNMHDR lpnm
= (LPNMHDR
)lParam
;
53 InitPropSheetPage(PROPSHEETPAGE
*psp
, WORD idDlg
, DLGPROC DlgProc
)
55 ZeroMemory(psp
, sizeof(PROPSHEETPAGE
));
56 psp
->dwSize
= sizeof(PROPSHEETPAGE
);
57 psp
->dwFlags
= PSP_DEFAULT
;
58 psp
->hInstance
= hInstance
;
59 psp
->pszTemplate
= MAKEINTRESOURCE(idDlg
);
60 psp
->pfnDlgProc
= DlgProc
;
71 LoadString(hInstance
, IDS_PROP_SHEET
, Caption
, sizeof(Caption
) / sizeof(TCHAR
));
73 ZeroMemory(&psh
, sizeof(PROPSHEETHEADER
));
74 psh
.dwSize
= sizeof(PROPSHEETHEADER
);
75 psh
.dwFlags
= PSH_PROPSHEETPAGE
| PSH_PROPTITLE
;
76 psh
.hwndParent
= NULL
;
77 psh
.hInstance
= hInstance
;
78 psh
.hIcon
= LoadIcon(hInstance
, MAKEINTRESOURCE(IDI_SM_ICON
));
79 psh
.pszCaption
= Caption
;
80 psh
.nPages
= sizeof(psp
) / sizeof(PROPSHEETPAGE
);
84 InitPropSheetPage(&psp
[0], IDD_DLG_GENERAL
, GeneralPageProc
);
89 return (LONG
)(PropertySheet(&psh
) != -1);