58 lines
1.3 KiB
C++
58 lines
1.3 KiB
C++
// BlockNum.cpp : implementation file
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "BlockNum.h"
|
|
|
|
#ifdef _DEBUG
|
|
#define new DEBUG_NEW
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CBlockNum dialog
|
|
|
|
|
|
CBlockNum::CBlockNum(int iRowNum,int iColNum,CWnd* pParent /*=NULL*/)
|
|
: CDialog(CBlockNum::IDD, pParent)
|
|
{
|
|
//{{AFX_DATA_INIT(CBlockNum)
|
|
m_iRow = iRowNum;
|
|
m_iCol = iColNum;
|
|
//}}AFX_DATA_INIT
|
|
}
|
|
|
|
|
|
void CBlockNum::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
//{{AFX_DATA_MAP(CBlockNum)
|
|
DDX_Control(pDX, IDC_SPIN_COL, m_spinCol);
|
|
DDX_Control(pDX, IDC_SPIN_ROW, m_spinRow);
|
|
DDX_Text(pDX, IDC_EDIT_COL, m_iCol);
|
|
DDV_MinMaxUInt(pDX, m_iCol, 1, 20);
|
|
DDX_Text(pDX, IDC_EDIT_ROW, m_iRow);
|
|
DDV_MinMaxUInt(pDX, m_iRow, 1, 20);
|
|
//}}AFX_DATA_MAP
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CBlockNum, CDialog)
|
|
//{{AFX_MSG_MAP(CBlockNum)
|
|
//}}AFX_MSG_MAP
|
|
END_MESSAGE_MAP()
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CBlockNum message handlers
|
|
|
|
BOOL CBlockNum::OnInitDialog()
|
|
{
|
|
CDialog::OnInitDialog();
|
|
|
|
m_spinCol.SetRange(1,20);
|
|
m_spinRow.SetRange(1,20);
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
// EXCEPTION: OCX Property Pages should return FALSE
|
|
}
|