Changing MFC property sheet look

  • Thread starter Thread starter rameshdk
  • Start date Start date
R

rameshdk

Guest
I have the following code which does not show my property sheet in the OutlookBar Style.

AppPropSheet derives from CMFCPropertySheet
CRunJobPage and CCreateJobPage Derives from CMFCPropertyPage

AppPropSheet sht(_T("Backup"));

CRunJobPage runjobpg;
CCreateJobPage crjobpg;
sht.AddPage(&crjobpg);
sht.AddPage(&runjobpg);

sht.m_shtSelImages.Create(IDB_BITMAP28, 32, 1, RGB(128, 128, 128));
sht.SetIconsList(sht.m_shtSelImages.m_hImageList);
sht.SetLook(CMFCPropertySheet::PropSheetLook_OutlookBar, 32);

sht.m_psh.dwFlags |= PSH_NOAPPLYNOW;
sht.DoModal();

Regards,

Ramesh D

Continue reading...
 

Similar threads

Back
Top