Files
envi-code/SourceCode/Code2026/tg_shs/shs_TwtKernal/BlockNum.cpp
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

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
}