📄 propersheet2.cpp
字号:
// propersheet2.cpp : implementation file
//
#include "stdafx.h"
#include "MFCpl0.h"
#include "propersheet2.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// Cpropersheet2
IMPLEMENT_DYNAMIC(Cpropersheet2, CPropertySheet)
Cpropersheet2::Cpropersheet2(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
AddPage(&prop5);
AddPage(&prop6);
AddPage(&prop7);
}
Cpropersheet2::Cpropersheet2(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
AddPage(&prop5);
AddPage(&prop6);
AddPage(&prop7);
}
Cpropersheet2::~Cpropersheet2()
{
}
BEGIN_MESSAGE_MAP(Cpropersheet2, CPropertySheet)
//{{AFX_MSG_MAP(Cpropersheet2)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// Cpropersheet2 message handlers
void Cpropersheet2::DoDataExchange(CDataExchange* pDX)
{
// TODO: Add your specialized code here and/or call the base class
CPropertySheet::DoDataExchange(pDX);
}
void Cpropersheet2::Addtable(tablestruct table2[])
{
for(int i=0;i<txmax;i++)
{
table[i]=table2[i];
}
prop5.Addtable(table);
}
void Cpropersheet2::Addcode(instruction code2[])
{
for(int i=0;i<cxmax;i++)
{
code[i]=code2[i];
}
prop6.Addcodetable(code);
}
void Cpropersheet2::Adderrmsg(errm allerr[],int errnum)
{
err=errnum;
for(int i=0;i<err;i++)
{
allerrmsg[i]=allerr[i];
}
prop7.Adderrmsg(allerrmsg,err);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -