Question about PropertySheet
I succesfully create wizard style app..
But I have a question:
See my screeny:
mywizard
Now, I'd like to see like M$ ones:
M$
part of my code:
Code:
void CreateWizard(HINSTANCE hInst, HWND hwnd) {
PROPSHEETPAGE psp;
PROPSHEETHEADER psh;
HPROPSHEETPAGE hp[1];
psp.dwSize = sizeof(PROPSHEETPAGE);
psp.dwFlags = PSP_DEFAULT|PSP_HIDEHEADER;
psp.hInstance = hInst;
// DLG-01 (Welcome page)
psp.pszTemplate = MAKEINTRESOURCE(IDD_DIALOG1);
psp.pfnDlgProc = (DLGPROC)Page1Proc;
hp[0] = CreatePropertySheetPage(&psp);
// DLG-02 (inner dialog beta page)
psp.pszHeaderTitle = "Cabecera";
psp.pszHeaderSubTitle = "Subtitulo";
psp.dwFlags = PSP_DEFAULT|PSP_USEHEADERTITLE|PSP_USEHEADERSUBTITLE;
psp.pszTemplate = MAKEINTRESOURCE(IDD_DIALOG2);
psp.pfnDlgProc = (DLGPROC)Page1Proc;
hp[1] = CreatePropertySheetPage(&psp);
ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
psh.dwSize = sizeof(PROPSHEETHEADER);
psh.dwFlags = PSH_WIZARD97|PSH_USEHEADER|PSH_WATERMARK;
psh.pszbmHeader = MAKEINTRESOURCE(IDB_BITMAP1);
psh.pszbmWatermark = MAKEINTRESOURCE(IDB_BITMAP2);
psh.hInstance = hInst;
psh.hwndParent = hwnd;
psh.nStartPage = 0;
psh.nPages = 2;
psh.phpage = hp;
PropertySheet(&psh);
return;
}
Any ideas? Right now...my possible solution is to make the welcome bitmap as large as the dialog and add the controls to the inner dialog as far right I can...but I think there's a easier way...does it?