myproperty.cpp

来自「通讯录程序」· C++ 代码 · 共 51 行

CPP
51
字号
// MyProperty.cpp : implementation file
//

#include "stdafx.h"
#include "tbvc.h"
#include "MyProperty.h"


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

/////////////////////////////////////////////////////////////////////////////
// CMyProperty

IMPLEMENT_DYNAMIC(CMyProperty, CPropertySheet)

CMyProperty::CMyProperty():CPropertySheet("私人通讯录",NULL,0)
{

}

CMyProperty::~CMyProperty()
{
	
}


BEGIN_MESSAGE_MAP(CMyProperty, CPropertySheet)
	//{{AFX_MSG_MAP(CMyProperty)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


void CMyProperty::PostNcDestroy() 
{
	for(int i=0;i<GetPageCount();i++)
	{
		CPropertyPage* pPage=GetPage(i);
		delete pPage;
	}
	//if DEBUG ,comment the line delete this;
    delete this;
    CPropertySheet::PostNcDestroy();
	
}


⌨️ 快捷键说明

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