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

📄 pagetabs.cpp

📁 微型文本编辑器. 多文档界面
💻 CPP
字号:
// Pagetabs.cpp : implementation file
//

#include "stdafx.h"
#include "Wediter.h"
#include "Pagetabs.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CPagetabs property page

IMPLEMENT_DYNCREATE(CPagetabs, CPropertyPage)

CPagetabs::CPagetabs() : CPropertyPage(CPagetabs::IDD)
{
	//{{AFX_DATA_INIT(CPagetabs)
	m_tabs = 0;
	//}}AFX_DATA_INIT
}

CPagetabs::~CPagetabs()
{
}

void CPagetabs::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CPagetabs)
	DDX_Text(pDX, IDC_EDITTAB, m_tabs);
	DDV_MinMaxInt(pDX, m_tabs, 1, 16);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CPagetabs, CPropertyPage)
	//{{AFX_MSG_MAP(CPagetabs)
	ON_EN_CHANGE(IDC_EDITTAB, OnChangeEdittab)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPagetabs message handlers

void CPagetabs::OnChangeEdittab() 
{
	// TODO: If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CPropertyPage::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.
	
	// TODO: Add your control notification handler code here
	Setapplay();
}

void CPagetabs::Setapplay()
{
	CButton* papply=(CButton*)
	GetParent()->GetDescendantWindow(ID_APPLY_NOW);
	if(papply)
		papply->EnableWindow(TRUE);
	papply=NULL;
	delete papply;
}

⌨️ 快捷键说明

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