www.pudn.com > HTTP协议分析器开发源码.rar > BPONDoc.cpp
// BPONDoc.cpp : implementation of the CBPONDoc class
//
#include "stdafx.h"
#include "BPON.h"
#include "BPONDoc.h"
#include "PageDlg1.h"
#include "PageDlg2.h"
#include "PageDlg3.h"
//#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBPONDoc
IMPLEMENT_DYNCREATE(CBPONDoc, CDocument)
BEGIN_MESSAGE_MAP(CBPONDoc, CDocument)
//{{AFX_MSG_MAP(CBPONDoc)
ON_COMMAND(ID_EDIT, OnEdit)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CBPONDoc construction/destruction
CBPONDoc::CBPONDoc()
{
// TODO: add one-time construction code here
}
CBPONDoc::~CBPONDoc()
{
}
BOOL CBPONDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CBPONDoc serialization
void CBPONDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
}
else
{
}
}
/////////////////////////////////////////////////////////////////////////////
// CBPONDoc diagnostics
#ifdef _DEBUG
void CBPONDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CBPONDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CBPONDoc commands
void CBPONDoc::OnEdit()
{
CPropertySheet sheet("佳实(RealGood)");
CPageDlg1 page1;
CPageDlg2 page2;
CPageDlg3 page3;
sheet.AddPage(&page1);
sheet.AddPage(&page2);
sheet.AddPage(&page3);
ShowWindow(GetActiveWindow(),SW_HIDE);
sheet.DoModal();
ShowWindow(GetActiveWindow(),SW_SHOW);
}