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

📄 optionsheet.cpp

📁 磁盘容量扫描、但界面和程序结构非常不错
💻 CPP
字号:
// OptionSheet.cpp : implementation file
//

#include "stdafx.h"
#include "resource.h"
#include "OptionSheet.h"

#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// COptionSheet

IMPLEMENT_DYNAMIC(COptionSheet, CPropertySheet)

COptionSheet::COptionSheet(CWnd* pWndParent)
	 : CPropertySheet(IDS_PROPSHT_CAPTION, pWndParent)
{
	// Add all of the property pages here.  Note that
	// the order that they appear in here will be
	// the order they appear in on screen.  By default,
	// the first page of the set is the active one.
	// One way to make a different property page the 
	// active one is to call SetActivePage().

	AddPage(&m_Page1);
	AddPage(&m_Page2);
	AddPage(&m_Page3);
	AddPage(&m_Page4);
}

COptionSheet::~COptionSheet()
{
}


BEGIN_MESSAGE_MAP(COptionSheet, CPropertySheet)
//{{AFX_MSG_MAP(COptionSheet)
ON_COMMAND(ID_APPLY_NOW, OnApplyNow)
ON_COMMAND(IDOK, OnOK)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// COptionSheet message handlers


void COptionSheet::OnOK()
{
	OnApplyNow();
	EndDialog(IDOK);
	//SendMessage(WM_CLOSE, 0,0);
}

void COptionSheet::OnApplyNow()
{
	//Default();

	m_Page1.SetModified(false);
	m_Page2.SetModified(false);
	m_Page3.SetModified(false);
	m_Page4.SetModified(false);

	m_Page1.Apply();
	m_Page2.Apply();
	m_Page3.Apply();
	m_Page4.Apply();

	SendMessage(PSM_CANCELTOCLOSE);
}

⌨️ 快捷键说明

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