📄 smileppg.cpp
字号:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
// SmilePpg.cpp : Implementation of the CSmilePropPage property page class.
#include "stdafx.h"
#include "Smile.h"
#include "SmilePpg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CSmilePropPage, COlePropertyPage)
/////////////////////////////////////////////////////////////////////////////
// Message map
BEGIN_MESSAGE_MAP(CSmilePropPage, COlePropertyPage)
//{{AFX_MSG_MAP(CSmilePropPage)
// NOTE - ClassWizard will add and remove message map entries
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// Initialize class factory and guid
IMPLEMENT_OLECREATE_EX(CSmilePropPage, "SMILE.SmilePropPage.1",
0xc01fa304, 0xb475, 0x11d1, 0x87, 0xe8, 0x0, 0x60, 0x97, 0xba, 0x8d, 0x75)
/////////////////////////////////////////////////////////////////////////////
// CSmilePropPage::CSmilePropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CSmilePropPage
BOOL CSmilePropPage::CSmilePropPageFactory::UpdateRegistry(BOOL bRegister)
{
if (bRegister)
return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
m_clsid, IDS_Smile_PPG);
else
return AfxOleUnregisterClass(m_clsid, NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CSmilePropPage::CSmilePropPage - Constructor
CSmilePropPage::CSmilePropPage() :
COlePropertyPage(IDD, IDS_Smile_PPG_CAPTION)
{
//{{AFX_DATA_INIT(CSmilePropPage)
m_strCaption = _T("");
m_bSad = FALSE;
//}}AFX_DATA_INIT
}
/////////////////////////////////////////////////////////////////////////////
// CSmilePropPage::DoDataExchange - Moves data between page and properties
void CSmilePropPage::DoDataExchange(CDataExchange* pDX)
{
//{{AFX_DATA_MAP(CSmilePropPage)
DDP_Text(pDX, IDC_EDIT1, m_strCaption, _T("Caption") );
DDX_Text(pDX, IDC_EDIT1, m_strCaption);
DDP_Check(pDX, IDC_CHECK1, m_bSad, _T("Sad") );
DDX_Check(pDX, IDC_CHECK1, m_bSad);
//}}AFX_DATA_MAP
DDP_PostProcessing(pDX);
}
/////////////////////////////////////////////////////////////////////////////
// CSmilePropPage message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -