home *** CD-ROM | disk | FTP | other *** search
- // Pitch.cpp : implementation file
- //
-
- #include "stdafx.h"
- #include "TabDemo.h"
- #include "Pitch.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CPitch property page
-
- IMPLEMENT_DYNCREATE(CPitch, CPropertyPage)
-
- CPitch::CPitch() : CPropertyPage(CPitch::IDD)
- {
- //{{AFX_DATA_INIT(CPitch)
- m_Pitch = -1;
- m_Spacing = 0;
- //}}AFX_DATA_INIT
- }
-
- CPitch::~CPitch()
- {
- }
-
- void CPitch::DoDataExchange(CDataExchange* pDX)
- {
- CPropertyPage::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CPitch)
- DDX_Control(pDX, IDC_SPACING, m_SpacingEdit);
- DDX_Radio(pDX, IDC_VARIABLE, m_Pitch);
- DDX_Text(pDX, IDC_SPACING, m_Spacing);
- DDV_MinMaxInt(pDX, m_Spacing, 1, 3);
- //}}AFX_DATA_MAP
- }
-
-
- BEGIN_MESSAGE_MAP(CPitch, CPropertyPage)
- //{{AFX_MSG_MAP(CPitch)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CPitch message handlers
-
- BOOL CPitch::OnInitDialog()
- {
- CPropertyPage::OnInitDialog();
-
- // TODO: Add extra initialization here
-
- m_SpacingEdit.LimitText (1);
-
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
-