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

📄 herbalattriview.cpp

📁 VC6开发的用于进行色谱分析的示例
💻 CPP
字号:
// herbalattriView.cpp : implementation file
//

#include "stdafx.h"
#include "MyWork.h"
#include "herbalattriView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CherbalattriView

IMPLEMENT_DYNCREATE(CherbalattriView, CFormView)

CherbalattriView::CherbalattriView()
	: CFormView(CherbalattriView::IDD)
{
	//{{AFX_DATA_INIT(CherbalattriView)
	m_attriview_cname = _T("");
	m_attriview_ename = _T("");
	m_attriview_gnzz = _T("");
	m_attriview_zwxt = _T("");
	//}}AFX_DATA_INIT
}

CherbalattriView::~CherbalattriView()
{
}

void CherbalattriView::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CherbalattriView)
	DDX_Text(pDX, IDC_CNAME, m_attriview_cname);
	DDX_Text(pDX, IDC_ENAME, m_attriview_ename);
	DDX_Text(pDX, IDC_GNZZ, m_attriview_gnzz);
	DDX_Text(pDX, IDC_ZWXT, m_attriview_zwxt);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CherbalattriView, CFormView)
	//{{AFX_MSG_MAP(CherbalattriView)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CherbalattriView diagnostics

#ifdef _DEBUG
void CherbalattriView::AssertValid() const
{
	CFormView::AssertValid();
}

void CherbalattriView::Dump(CDumpContext& dc) const
{
	CFormView::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CherbalattriView message handlers

CMyWorkDoc * CherbalattriView::GetDocument()
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMyWorkDoc)));
	return (CMyWorkDoc*)m_pDocument;

}

void CherbalattriView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) 
{
	// TODO: Add your specialized code here and/or call the base class
	m_attriview_cname=GetDocument()->m_cname;
	m_attriview_ename=GetDocument()->m_ename;
	m_attriview_gnzz=GetDocument()->m_gnzz;
	m_attriview_zwxt=GetDocument()->m_zwxt;
    
	UpdateData(false);

}

⌨️ 快捷键说明

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