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

📄 mypropertysheet.cpp

📁 Visual_C++[1].NET_Bible1 Visual_C++宝典书中的全部源码
💻 CPP
字号:
// MyPropertySheet.cpp : implementation file
//

#include "stdafx.h"
#include "PropertySheetDemo.h"
#include "MyPropertySheet.h"

// CMyPropertySheet

IMPLEMENT_DYNAMIC(CMyPropertySheet, CPropertySheet)
CMyPropertySheet::CMyPropertySheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
}

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

CMyPropertySheet::~CMyPropertySheet()
{
}


BEGIN_MESSAGE_MAP(CMyPropertySheet, CPropertySheet)
END_MESSAGE_MAP()


// CMyPropertySheet message handlers

void CMyPropertySheet::PostNcDestroy()
{
  int nPages = GetPageCount();
  for (int i = (nPages - 1); i >= 0; i--)
  {
    CPropertyPage* pPage = GetPage(i);
    ASSERT(pPage);
    if (pPage)
    {
      delete pPage;
      RemovePage(i);
      TRACE("[CMyPropertySheet::OnDestroy] Removing page %ld\n", i);
    }
  }
 
  CPropertySheet::PostNcDestroy();
}

⌨️ 快捷键说明

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