home *** CD-ROM | disk | FTP | other *** search
- // TestSheet.cpp : implementation file
- //
-
- #include "stdafx.h"
- #include "TestVC.h"
- #include "TestSheet.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CTestSheet
-
- IMPLEMENT_DYNAMIC(CTestSheet, CPropertySheet)
-
- CTestSheet::CTestSheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
- :CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
- {
- AddControlPages();
- }
-
- CTestSheet::CTestSheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
- :CPropertySheet(pszCaption, pParentWnd, iSelectPage)
- {
- AddControlPages();
- }
-
- CTestSheet::~CTestSheet()
- {
- }
-
- void CTestSheet::AddControlPages()
- {
- m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
- m_psh.dwFlags |= PSP_USEHICON;
- m_psh.dwFlags &= ~PSH_HASHELP; // Lose the Help button
- m_psh.hIcon = m_hIcon;
-
- AddPage(&m_device);
- AddPage(&m_scale);
- AddPage(&m_color);
- AddPage(&m_general);
- }
-
-
- BEGIN_MESSAGE_MAP(CTestSheet, CPropertySheet)
- //{{AFX_MSG_MAP(CTestSheet)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CTestSheet message handlers
-
- BOOL CTestSheet::OnInitDialog()
- {
- BOOL bResult = CPropertySheet::OnInitDialog();
-
- return bResult;
- }
-