?? widthsetup.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 + -