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

📄 namepalte.cpp

📁 变压器监控程序
💻 CPP
字号:
// NamePalte.cpp : implementation file
//

#include "stdafx.h"
#include "trans.h"
#include "NamePalte.h"
#include "RepTabDlg.h"
#include "column.h"

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

/////////////////////////////////////////////////////////////////////////////
// CNamePalte dialog


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


void CNamePalte::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CNamePalte)
	DDX_Control(pDX, IDC_DATAGRID1, m_datagrid);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CNamePalte, CDialog)
	//{{AFX_MSG_MAP(CNamePalte)
	ON_BN_CLICKED(IDC_PRINT, OnPrint)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CNamePalte message handlers

void CNamePalte::OnPrint() 
{
	
	CString str;
	CRepTabDlg dlg;
	dlg.strTitle="铭牌参数";
	dlg.nColCount=8;
	dlg.nRowCount=5;
	dlg.arrTxt.Add("变压器编号");
	dlg.arrTxt.Add("型号");
	dlg.arrTxt.Add("联结组标号");
	dlg.arrTxt.Add("额定容量");
	dlg.arrTxt.Add("输入电压");
	dlg.arrTxt.Add("输出电压");
	dlg.arrTxt.Add("总重量");
	dlg.arrTxt.Add("出厂日期");
    for(int i=0;i<4;i++)
	{
		m_datagrid.SetRow(i);
		for(long j=0;j<8;j++)
		{
			str=m_datagrid.GetItem(j);
			dlg.arrTxt.Add(str);
		}
	}
	dlg.DoModal();
	

}

⌨️ 快捷键说明

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