Hi,
I am trying to create a CMFCPropertySheet described in: http://msdn.microsoft.com/en-us/library/bb981937.aspx
I declared a CMFCPropertySheet derived class called CPreferencesSheet m_PreferencesSheet in CMainFrame.
I created a CMFCPropertyPage derived class called CPieceMovementPage and added it in:
CPreferencesSheet::CPreferencesSheet()
{
SetLook(CMFCPropertySheet::PropSheetLook_OutlookBar);
SetIconsList(IDR_MAINFRAME,32);
AddPage(&m_PieceMovementPage);
}
In an menu-eventhandler i call:
void CMainFrame::OnFilePreferences()
{
m_PreferencesSheet.DoModal();
}
When i click the preferences menu item i get a messagebox saying: a required resource was unavailable.
The propertysheet is not shown.
Does anyone know how to create a CMFCPropertySheet ? Are there samples i can look at somewhere.