home *** CD-ROM | disk | FTP | other *** search
- // TestGeneral.cpp : implementation file
- //
-
- #include "stdafx.h"
- #include "TestVC.h"
- #include "TestGeneral.h"
- #include "TestSheet.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CTestGeneral property page
-
- IMPLEMENT_DYNCREATE(CTestGeneral, CPropertyPage)
-
- CTestGeneral::CTestGeneral() : CPropertyPage(CTestGeneral::IDD)
- {
- //{{AFX_DATA_INIT(CTestGeneral)
- //}}AFX_DATA_INIT
- }
-
- CTestGeneral::~CTestGeneral()
- {
- }
-
- void CTestGeneral::DoDataExchange(CDataExchange* pDX)
- {
- CPropertyPage::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CTestGeneral)
- DDX_Control(pDX, IDC_SPIN1, m_ur);
- DDX_Control(pDX, IDC_EDIT1, m_tdir);
- //}}AFX_DATA_MAP
- }
-
-
- BEGIN_MESSAGE_MAP(CTestGeneral, CPropertyPage)
- //{{AFX_MSG_MAP(CTestGeneral)
- ON_EN_CHANGE(IDC_EDIT1, OnChangeEdit1)
- ON_EN_CHANGE(IDC_EDIT2, OnChangeEdit2)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CTestGeneral message handlers
-
- BOOL CTestGeneral::OnInitDialog()
- {
- CPropertyPage::OnInitDialog();
-
- CPropertySheet* pSheet = STATIC_DOWNCAST(CPropertySheet, GetParent());
- CTestSheet* pts = DYNAMIC_DOWNCAST(CTestSheet,pSheet);
- m_player=pts->m_player;
-
- m_tdir.SetWindowText(m_player->GetTempDirectory());
- m_ur.SetRange(1,10);
- m_ur.SetPos(m_player->GetUndoRedoCount());
-
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
-
- void CTestGeneral::OnChangeEdit1()
- {
- SetModified();
- }
-
- void CTestGeneral::OnChangeEdit2()
- {
- SetModified();
- }
-