controlsprop.cpp

来自「vc的一些原码,对于帮助学习和提高很有帮助」· C++ 代码 · 共 52 行

CPP
52
字号
// 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)
{
}

CControlsProp::CControlsProp(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
}

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 (IDCANCEL);
    button->SetWindowText (_T("Close"));
    return (bResult);
}

⌨️ 快捷键说明

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