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

📄 widthsetup.cpp

📁 这是我用ARX做的一段画多段线的程序,并能实现图形消隐.
💻 CPP
字号:
// WidthSetup.cpp : 实现文件
//

#include "stdafx.h"
//#include "ToPline6.h"
#include "WidthSetup.h"


// CWidthSetup 对话框

IMPLEMENT_DYNCREATE(CWidthSetup, CDHtmlDialog)

CWidthSetup::CWidthSetup(CWnd* pParent /*=NULL*/)
	: CDHtmlDialog(CWidthSetup::IDD, CWidthSetup::IDH, pParent)
{
	thick_width = 0;
	thin_width = 0;
}

CWidthSetup::~CWidthSetup()
{
}

void CWidthSetup::DoDataExchange(CDataExchange* pDX)
{
	CDHtmlDialog::DoDataExchange(pDX);
	DDX_Text(pDX,IDC_EDIT1,thick_width);
	DDX_Text(pDX,IDC_EDIT2,thin_width);
}

BOOL CWidthSetup::OnInitDialog()
{
	//CDHtmlDialog::OnInitDialog();
	return TRUE;  // 除非将焦点设置到控件,否则返回 TRUE
}

BEGIN_MESSAGE_MAP(CWidthSetup, CDHtmlDialog)
END_MESSAGE_MAP()

BEGIN_DHTML_EVENT_MAP(CWidthSetup)
	DHTML_EVENT_ONCLICK(_T("ButtonOK"), OnButtonOK)
	DHTML_EVENT_ONCLICK(_T("ButtonCancel"), OnButtonCancel)
END_DHTML_EVENT_MAP()



// CWidthSetup 消息处理程序

HRESULT CWidthSetup::OnButtonOK(IHTMLElement* /*pElement*/)
{
	OnOK();
	return S_OK;  // 除非将焦点设置到控件,否则返回 TRUE
}

HRESULT CWidthSetup::OnButtonCancel(IHTMLElement* /*pElement*/)
{
	OnCancel();
	return S_OK;  // 除非将焦点设置到控件,否则返回 TRUE
}

⌨️ 快捷键说明

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