// CEquipmentPage1.cpp: 实现文件
|
//
|
|
#include "stdafx.h"
|
#include "Servo.h"
|
#include "CEquipmentPage1.h"
|
#include "afxdialogex.h"
|
|
|
// CEquipmentPage1 对话框
|
|
IMPLEMENT_DYNAMIC(CEquipmentPage1, CHMPropertyPage)
|
|
CEquipmentPage1::CEquipmentPage1(CWnd* pParent /*=nullptr*/)
|
: CHMPropertyPage(IDD_PAGE_EQUIPMENT1, pParent)
|
{
|
m_pEquipment = nullptr;
|
}
|
|
CEquipmentPage1::~CEquipmentPage1()
|
{
|
}
|
|
void CEquipmentPage1::DoDataExchange(CDataExchange* pDX)
|
{
|
CHMPropertyPage::DoDataExchange(pDX);
|
}
|
|
|
BEGIN_MESSAGE_MAP(CEquipmentPage1, CHMPropertyPage)
|
ON_WM_CTLCOLOR()
|
ON_WM_DESTROY()
|
ON_WM_SIZE()
|
END_MESSAGE_MAP()
|
|
|
// CEquipmentPage1 消息处理程序
|
void CEquipmentPage1::OnApply()
|
{
|
__super::OnApply();
|
}
|
|
void CEquipmentPage1::setEquipment(SERVO::CEquipment* pEquipment)
|
{
|
m_pEquipment = pEquipment;
|
}
|
|
BOOL CEquipmentPage1::OnInitDialog()
|
{
|
CHMPropertyPage::OnInitDialog();
|
|
// TODO: 在此添加额外的初始化
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
// 异常: OCX 属性页应返回 FALSE
|
}
|
|
HBRUSH CEquipmentPage1::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
|
{
|
HBRUSH hbr = CHMPropertyPage::OnCtlColor(pDC, pWnd, nCtlColor);
|
|
// TODO: 在此更改 DC 的任何特性
|
|
// TODO: 如果默认的不是所需画笔,则返回另一个画笔
|
return hbr;
|
}
|
|
void CEquipmentPage1::OnDestroy()
|
{
|
CHMPropertyPage::OnDestroy();
|
|
// TODO: 在此处添加消息处理程序代码
|
}
|
|
void CEquipmentPage1::OnSize(UINT nType, int cx, int cy)
|
{
|
CHMPropertyPage::OnSize(nType, cx, cy);
|
|
// TODO: 在此处添加消息处理程序代码
|
}
|