📄 staticssheet.cpp
字号:
// StaticsSheet.cpp : implementation file
//
#include "stdafx.h"
#include "IPCount.h"
#include "StaticsSheet.h"
#include "IPCountDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CStaticsSheet
IMPLEMENT_DYNAMIC(CStaticsSheet, CPropertySheet)
CStaticsSheet::CStaticsSheet()
:CPropertySheet("话费统计", NULL, 0)
{
}
CStaticsSheet::~CStaticsSheet()
{
}
BEGIN_MESSAGE_MAP(CStaticsSheet, CPropertySheet)
//{{AFX_MSG_MAP(CStaticsSheet)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CStaticsSheet message handlers
void CStaticsSheet::PostNcDestroy()
{
// TODO: Add your specialized code here and/or call the base class
for(int i=0;i<GetPageCount();i++)
{
CPropertyPage* pPage=GetPage(i);
delete pPage;
}
CPropertySheet::PostNcDestroy();
}
BOOL CStaticsSheet::OnInitDialog()
{
BOOL bResult = CPropertySheet::OnInitDialog();
// TODO: Add your specialized code here
SetIcon(AfxGetApp()->LoadIcon(IDI_ICON_STATICS),TRUE);
SetIcon(AfxGetApp()->LoadIcon(IDI_ICON_STATICS),FALSE);
return bResult;
}
BOOL CStaticsSheet::DestroyWindow()
{
// TODO: Add your specialized code here and/or call the base class
CIPCountDlg *Ipdlg;
Ipdlg=(CIPCountDlg *)GetParent();
Ipdlg->bOpenStatics=FALSE;
return CPropertySheet::DestroyWindow();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -