controlsprop.cpp

来自「本文件包包含了大量用VC++开发的应用程序界面」· C++ 代码 · 共 71 行

CPP
71
字号
// ControlsProp.cpp : implementation file
//

#include "stdafx.h"
#include "Controls.h"
#include "ControlsProp.h"

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

/////////////////////////////////////////////////////////////////////////////
// CControlsProp

IMPLEMENT_DYNAMIC(CControlsProp, CPropertySheet)

CControlsProp::CControlsProp(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
	AddPage (&m_StaticPage);
	AddPage (&m_EditPage);
	AddPage (&m_ButtonPage);
	AddPage (&m_ListBoxPage);
	AddPage (&m_ComboBoxPage);
	AddPage (&m_ScrollBarPage);
	m_psh.dwFlags |= PSH_NOAPPLYNOW;
	m_psh.dwFlags &= ~PSH_HASHELP;
}

CControlsProp::CControlsProp(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
	AddPage (&m_StaticPage);
	AddPage (&m_EditPage);
	AddPage (&m_ButtonPage);
	AddPage (&m_ListBoxPage);
	AddPage (&m_ComboBoxPage);
	AddPage (&m_ScrollBarPage);
	m_psh.dwFlags |= PSH_NOAPPLYNOW;
	m_psh.dwFlags &= ~PSH_HASHELP;
}

CControlsProp::~CControlsProp()
{
}


BEGIN_MESSAGE_MAP(CControlsProp, CPropertySheet)
	//{{AFX_MSG_MAP(CControlsProp)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CControlsProp message handlers

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

	CWnd *button = GetDlgItem (IDOK);
	button->ShowWindow (SW_HIDE);
	button = GetDlgItem (IDHELP);
	button->ShowWindow (SW_HIDE);
	button = GetDlgItem (IDCANCEL);
	button->SetWindowText (_T("Close"));
	return bResult;
}

⌨️ 快捷键说明

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