?? configview.cpp
字號(hào):
// 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,"序號(hào)",LVCFMT_LEFT,40);
m_ListCess.InsertColumn(1,"全月應(yīng)納稅所得額(元)",LVCFMT_LEFT,150);
m_ListCess.InsertColumn(2,"稅率(%)",LVCFMT_LEFT,80);
m_ListCess.InsertColumn(3,"速算扣除數(shù)(元)",LVCFMT_LEFT,120);
m_ListArea.InsertColumn(0,"所在地",LVCFMT_LEFT,100);
m_ListArea.InsertColumn(1,"起征點(diǎn)(元)",LVCFMT_LEFT,100);
m_ListArea.m_ColType.Add("4");
m_ListArea.m_ColType.Add("4");
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -