www.gusucode.com > VC++制作一个可自动停靠的菜单工具条-源码程序 > VC++制作一个可自动停靠的菜单工具条-源码程序/code/BarViewDoc.cpp
// BarViewDoc.cpp : implementation of the CBarViewDoc class // Download by http://www.NewXing.com #include "stdafx.h" #include "BarView.h" #include "BarViewDoc.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CBarViewDoc IMPLEMENT_DYNCREATE(CBarViewDoc, CDocument) BEGIN_MESSAGE_MAP(CBarViewDoc, CDocument) //{{AFX_MSG_MAP(CBarViewDoc) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CBarViewDoc construction/destruction CBarViewDoc::CBarViewDoc() { // TODO: add one-time construction code here } CBarViewDoc::~CBarViewDoc() { } BOOL CBarViewDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE; } ///////////////////////////////////////////////////////////////////////////// // CBarViewDoc serialization void CBarViewDoc::Serialize(CArchive& ar) { if (ar.IsStoring()) { // TODO: add storing code here } else { // TODO: add loading code here } } ///////////////////////////////////////////////////////////////////////////// // CBarViewDoc diagnostics #ifdef _DEBUG void CBarViewDoc::AssertValid() const { CDocument::AssertValid(); } void CBarViewDoc::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CBarViewDoc commands