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

📄 tableproperties.cpp

📁 用visual c++写的一个超文本编辑器
💻 CPP
字号:

#include "stdafx.h"
#include "DHtmlEditDemo.h"
#include "TableProperties.h"


// Dialog to enter properties of a <TABLE>

IMPLEMENT_DYNCREATE(CTableProperties, CDialog)

CTableProperties::CTableProperties(CWnd* pParent /*=NULL*/)
	: CDialog(CTableProperties::IDD, pParent)
{
}

CTableProperties::~CTableProperties()
{
}

BEGIN_MESSAGE_MAP(CTableProperties, CDialog)
END_MESSAGE_MAP()

void CTableProperties::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT_BorderWidth, ms_BorderWidth);
	DDX_Text(pDX, IDC_EDIT_BORDERCOLOR, ms_BorderColor);
	DDX_Text(pDX, IDC_EDIT_BACKGCOLOR,  ms_BackgColor);
	DDX_Text(pDX, IDC_EDIT_WIDTH,       ms_Width);
	DDX_Text(pDX, IDC_EDIT_HEIGHT,      ms_Height);
	DDX_Text(pDX, IDC_EDIT_CELLPADDING, ms_CellPadding);
	DDX_Text(pDX, IDC_EDIT_CELLSPACING, ms_CellSpacing);
	DDX_Control(pDX, IDC_COMBO_RULE, mCtrl_ComboRules);
}

BOOL CTableProperties::OnInitDialog()
{
	CDialog::OnInitDialog();
	
	mCtrl_ComboRules.SetCurSel(mu32_Rules);
	return TRUE;
}

void CTableProperties::OnOK() 
{
	mu32_Rules = mCtrl_ComboRules.GetCurSel();
	
	CDialog::OnOK();
}




⌨️ 快捷键说明

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