home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 15: Shareware / PC Actual CDT 15.iso / files / Windows_95_98 / Programacion / ActiveX / NCTWavPlayer.exe / Main / TestSheet.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2000-03-06  |  1.4 KB  |  64 lines

  1. // TestSheet.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "TestVC.h"
  6. #include "TestSheet.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CTestSheet
  16.  
  17. IMPLEMENT_DYNAMIC(CTestSheet, CPropertySheet)
  18.  
  19. CTestSheet::CTestSheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
  20.     :CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
  21. {
  22.     AddControlPages();
  23. }
  24.  
  25. CTestSheet::CTestSheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
  26.     :CPropertySheet(pszCaption, pParentWnd, iSelectPage)
  27. {
  28.     AddControlPages();
  29. }
  30.  
  31. CTestSheet::~CTestSheet()
  32. {
  33. }
  34.  
  35. void CTestSheet::AddControlPages()
  36. {
  37.     m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
  38.     m_psh.dwFlags |= PSP_USEHICON;
  39.     m_psh.dwFlags &= ~PSH_HASHELP;  // Lose the Help button
  40.     m_psh.hIcon = m_hIcon;
  41.  
  42.     AddPage(&m_device);
  43.     AddPage(&m_scale);
  44.     AddPage(&m_color);
  45.     AddPage(&m_general);
  46. }
  47.  
  48.  
  49. BEGIN_MESSAGE_MAP(CTestSheet, CPropertySheet)
  50.     //{{AFX_MSG_MAP(CTestSheet)
  51.         // NOTE - the ClassWizard will add and remove mapping macros here.
  52.     //}}AFX_MSG_MAP
  53. END_MESSAGE_MAP()
  54.  
  55. /////////////////////////////////////////////////////////////////////////////
  56. // CTestSheet message handlers
  57.  
  58. BOOL CTestSheet::OnInitDialog() 
  59. {
  60.     BOOL bResult = CPropertySheet::OnInitDialog();
  61.     
  62.     return bResult;
  63. }
  64.