www.gusucode.com > VC++实现控制窗体标题栏的显示与隐藏功能-源码程序 > VC++实现控制窗体标题栏的显示与隐藏功能-源码程序/code/ViewTitleBarDoc.cpp

    //Download by http://www.NewXing.com
// ViewTitleBarDoc.cpp : implementation of the CViewTitleBarDoc class
//

#include "stdafx.h"
#include "ViewTitleBar.h"

#include "ViewTitleBarDoc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CViewTitleBarDoc

IMPLEMENT_DYNCREATE(CViewTitleBarDoc, CDocument)

BEGIN_MESSAGE_MAP(CViewTitleBarDoc, CDocument)
	//{{AFX_MSG_MAP(CViewTitleBarDoc)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CViewTitleBarDoc construction/destruction

CViewTitleBarDoc::CViewTitleBarDoc()
{
	// TODO: add one-time construction code here

}

CViewTitleBarDoc::~CViewTitleBarDoc()
{
}

BOOL CViewTitleBarDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CViewTitleBarDoc serialization

void CViewTitleBarDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CViewTitleBarDoc diagnostics

#ifdef _DEBUG
void CViewTitleBarDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CViewTitleBarDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CViewTitleBarDoc commands