📄 dlgexcel2.cpp
字号:
// dlgExcel2.cpp : implementation file
//
#include "stdafx.h"
#include "EquipManage2.h"
#include "dlgExcel2.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// dlgExcel2 dialog
dlgExcel2::dlgExcel2(CWnd* pParent /*=NULL*/)
: CDialog(dlgExcel2::IDD, pParent)
{
//{{AFX_DATA_INIT(dlgExcel2)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void dlgExcel2::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(dlgExcel2)
DDX_Control(pDX, IDC_MSFLEXGRID1, m_Grid);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(dlgExcel2, CDialog)
//{{AFX_MSG_MAP(dlgExcel2)
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// dlgExcel2 message handlers
void dlgExcel2::OnButton1()
{
// TODO: Add your control notification handler code here
OnOK();
}
void dlgExcel2::OnButton2()
{
// TODO: Add your control notification handler code here
OnCancel();
}
BOOL dlgExcel2::OnInitDialog()
{
CDialog::OnInitDialog();
m_Grid.SetTextArray(0," 序号 ");
m_Grid.SetTextArray(1," 专业 ");
m_Grid.SetTextArray(2,"器材名称");
m_Grid.SetTextArray(3,"器材编码");
m_Grid.SetTextArray(4,"规格型号");
m_Grid.SetTextArray(5,"技术参量");
m_Grid.SetTextArray(6,"计量单位");
m_Grid.SetTextArray(7,"入库数量");
m_Grid.SetTextArray(8,"备注");
int i;
for(i=1;i<15;i++)
{
CString tstr;
tstr.Format("%d",i);
m_Grid.SetTextMatrix(i,0,tstr);
}
////
m_Grid.SetTextMatrix(3,3,"123");
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -