⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dlgexcel3.cpp

📁 一个器材管理系统界面
💻 CPP
字号:
// dlgExcel3.cpp : implementation file
//

#include "stdafx.h"
#include "EquipManage2.h"
#include "dlgExcel3.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// dlgExcel3 dialog


dlgExcel3::dlgExcel3(CWnd* pParent /*=NULL*/)
	: CDialog(dlgExcel3::IDD, pParent)
{
	//{{AFX_DATA_INIT(dlgExcel3)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void dlgExcel3::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(dlgExcel3)
	DDX_Control(pDX, IDC_MSFLEXGRID1, m_Grid);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(dlgExcel3, CDialog)
	//{{AFX_MSG_MAP(dlgExcel3)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// dlgExcel3 message handlers

BOOL dlgExcel3::OnInitDialog() 
{
	CDialog::OnInitDialog();
	


	
	// TODO: Add extra initialization here
    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,"申请数量");
    m_Grid.SetTextArray(9,"批准数量");
    m_Grid.SetTextArray(10,"备注");




	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
}

void dlgExcel3::OnButton1() 
{
	// TODO: Add your control notification handler code here
	OnOK();
}

void dlgExcel3::OnButton2() 
{
	// TODO: Add your control notification handler code here
	OnCancel();
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -