📄 configview.cpp
字号:
// ConfigView.cpp : implementation file
//
#include "stdafx.h"
#include "pitc.h"
#include "ConfigView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CConfigView
IMPLEMENT_DYNCREATE(CConfigView, CFormView)
CConfigView::CConfigView()
: CFormView(CConfigView::IDD)
{
//{{AFX_DATA_INIT(CConfigView)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
CConfigView::~CConfigView()
{
}
void CConfigView::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CConfigView)
DDX_Control(pDX, IDC_LIST_CESS, m_ListCess);
DDX_Control(pDX, IDC_LIST_AREA, m_ListArea);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CConfigView, CFormView)
//{{AFX_MSG_MAP(CConfigView)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CConfigView diagnostics
#ifdef _DEBUG
void CConfigView::AssertValid() const
{
CFormView::AssertValid();
}
void CConfigView::Dump(CDumpContext& dc) const
{
CFormView::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CConfigView message handlers
void CConfigView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
// TODO: Add your specialized code here and/or call the base class
m_ListCess.SetExtendedStyle(LVS_EX_GRIDLINES|LVS_EX_FULLROWSELECT);
m_ListArea.SetExtendedStyle(LVS_EX_GRIDLINES|LVS_EX_FULLROWSELECT);
m_ListCess.InsertColumn(0,"序号",LVCFMT_LEFT,40);
m_ListCess.InsertColumn(1,"全月应纳税所得额(元)",LVCFMT_LEFT,150);
m_ListCess.InsertColumn(2,"税率(%)",LVCFMT_LEFT,80);
m_ListCess.InsertColumn(3,"速算扣除数(元)",LVCFMT_LEFT,120);
m_ListArea.InsertColumn(0,"所在地",LVCFMT_LEFT,100);
m_ListArea.InsertColumn(1,"起征点(元)",LVCFMT_LEFT,100);
m_ListArea.m_ColType.Add("4");
m_ListArea.m_ColType.Add("4");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -