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 / TestGeneral.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2000-03-06  |  1.7 KB  |  75 lines

  1. // TestGeneral.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "TestVC.h"
  6. #include "TestGeneral.h"
  7. #include "TestSheet.h"
  8.  
  9. #ifdef _DEBUG
  10. #define new DEBUG_NEW
  11. #undef THIS_FILE
  12. static char THIS_FILE[] = __FILE__;
  13. #endif
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CTestGeneral property page
  17.  
  18. IMPLEMENT_DYNCREATE(CTestGeneral, CPropertyPage)
  19.  
  20. CTestGeneral::CTestGeneral() : CPropertyPage(CTestGeneral::IDD)
  21. {
  22.     //{{AFX_DATA_INIT(CTestGeneral)
  23.     //}}AFX_DATA_INIT
  24. }
  25.  
  26. CTestGeneral::~CTestGeneral()
  27. {
  28. }
  29.  
  30. void CTestGeneral::DoDataExchange(CDataExchange* pDX)
  31. {
  32.     CPropertyPage::DoDataExchange(pDX);
  33.     //{{AFX_DATA_MAP(CTestGeneral)
  34.     DDX_Control(pDX, IDC_SPIN1, m_ur);
  35.     DDX_Control(pDX, IDC_EDIT1, m_tdir);
  36.     //}}AFX_DATA_MAP
  37. }
  38.  
  39.  
  40. BEGIN_MESSAGE_MAP(CTestGeneral, CPropertyPage)
  41.     //{{AFX_MSG_MAP(CTestGeneral)
  42.     ON_EN_CHANGE(IDC_EDIT1, OnChangeEdit1)
  43.     ON_EN_CHANGE(IDC_EDIT2, OnChangeEdit2)
  44.     //}}AFX_MSG_MAP
  45. END_MESSAGE_MAP()
  46.  
  47. /////////////////////////////////////////////////////////////////////////////
  48. // CTestGeneral message handlers
  49.  
  50. BOOL CTestGeneral::OnInitDialog() 
  51. {
  52.     CPropertyPage::OnInitDialog();
  53.  
  54.     CPropertySheet* pSheet = STATIC_DOWNCAST(CPropertySheet, GetParent());
  55.     CTestSheet* pts = DYNAMIC_DOWNCAST(CTestSheet,pSheet);
  56.     m_player=pts->m_player; 
  57.  
  58.     m_tdir.SetWindowText(m_player->GetTempDirectory()); 
  59.     m_ur.SetRange(1,10); 
  60.     m_ur.SetPos(m_player->GetUndoRedoCount());
  61.     
  62.     return TRUE;  // return TRUE unless you set the focus to a control
  63.                   // EXCEPTION: OCX Property Pages should return FALSE
  64. }
  65.  
  66. void CTestGeneral::OnChangeEdit1() 
  67. {
  68.     SetModified(); 
  69. }
  70.  
  71. void CTestGeneral::OnChangeEdit2() 
  72. {
  73.     SetModified(); 
  74. }
  75.