settingsheet.cpp

来自「代码格式化工具。 其实就是linux下indent的windows版本。」· C++ 代码 · 共 68 行

CPP
68
字号
// SettingSheet.cpp : 实现文件
//

#include "stdafx.h"
#include "windent.h"
#include "SettingSheet.h"
#include ".\settingsheet.h"


// CSettingSheet

IMPLEMENT_DYNAMIC(CSettingSheet, CPropertySheet)
CSettingSheet::CSettingSheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
	m_StdPage=new CStdPage;
	m_BlkPage=new CBlanklines;
	m_IndPage=new CIndentPage;
	AddPage(m_StdPage);
	AddPage(m_BlkPage);
	AddPage(m_IndPage);
	m_psh.dwFlags|=PSH_NOAPPLYNOW;
	m_psh.dwFlags&=~PSH_HASHELP;
}

CSettingSheet::CSettingSheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
	m_StdPage=new CStdPage;
	m_BlkPage=new CBlanklines;
	m_IndPage=new CIndentPage;
	
	m_psh.dwFlags|=PSH_NOAPPLYNOW;
	m_psh.dwFlags&=~PSH_HASHELP;
	AddPage(m_StdPage);
	AddPage(m_BlkPage);
	AddPage(m_IndPage);
}

CSettingSheet::~CSettingSheet()
{
	delete m_StdPage;
	delete m_BlkPage;
	delete m_IndPage;
}


BEGIN_MESSAGE_MAP(CSettingSheet, CPropertySheet)
END_MESSAGE_MAP()


// CSettingSheet 消息处理程序

BOOL CSettingSheet::Create(CWnd* pParentWnd , DWORD dwStyle , DWORD dwExStyle)
{
	return CPropertySheet::Create(pParentWnd, dwStyle, dwExStyle);
}

BOOL CSettingSheet::OnInitDialog()
{
	BOOL bResult = CPropertySheet::OnInitDialog();

	//this->GetDlgItem(1)->DestroyWindow();
	//this->GetDlgItem(2)->DestroyWindow();

	return bResult;
}

⌨️ 快捷键说明

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