You have probably wrong Control IDs (there are in *.rc- File).
Then You can have wrong Property Pages in Your sheet.
If all that is ok, them You have probably wrong overrided any functions in PropertySheet.
A right sample:
class CPropertySheetEng : public CPropertySheet
{
public:
CPropertySheetEng();
CPropertySheetEng(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
CPropertySheetEng(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
protected:
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
DECLARE_MESSAGE_MAP()
};
// CPropertySheetEng - to have Cancel button for all languages
CPropertySheetEng::CPropertySheetEng()
: CPropertySheet()
{
}
CPropertySheetEng::CPropertySheetEng(UINT nIDCaption, CWnd* pParentWnd,
UINT iSelectPage)
:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
}
CPropertySheetEng::CPropertySheetEng(LPCTSTR pszCaption, CWnd* pParentWnd,
UINT iSelectPage)
:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
}
BEGIN_MESSAGE_MAP(CPropertySheetEng, CPropertySheet)
ON_WM_SHOWWINDOW()
END_MESSAGE_MAP()
void CPropertySheetEng::OnShowWindow(BOOL bShow, UINT nStatus)
{
CPropertySheet::OnShowWindow(bShow, nStatus);
if(!bShow)
return;
GetDlgItem( IDCANCEL)->SetWindowText("Cancel"

;
}