www.pudn.com > xxmpx_sjs.rar > xxmpxDoc.cpp
// xxmpxDoc.cpp : implementation of the CXxmpxDoc class
//
#include "stdafx.h"
#include "xxmpx.h"
#include "xxmpxDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CXxmpxDoc
IMPLEMENT_DYNCREATE(CXxmpxDoc, CDocument)
BEGIN_MESSAGE_MAP(CXxmpxDoc, CDocument)
//{{AFX_MSG_MAP(CXxmpxDoc)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CXxmpxDoc construction/destruction
CXxmpxDoc::CXxmpxDoc()
{
// TODO: add one-time construction code here
LOGFONT font;
font.lfCharSet=ANSI_CHARSET;
font.lfClipPrecision=CLIP_DEFAULT_PRECIS;
font.lfEscapement=0;
strcpy(font.lfFaceName,"ËÎÌå");
font.lfHeight=8;
font.lfItalic=0;
font.lfOrientation=0;
font.lfOutPrecision=OUT_DEFAULT_PRECIS;
font.lfPitchAndFamily=DEFAULT_PITCH;
font.lfQuality=DEFAULT_QUALITY;
font.lfStrikeOut=0;
font.lfUnderline=0;
font.lfWeight=FW_NORMAL;
font.lfWidth=0;
Text="";
}
CXxmpxDoc::~CXxmpxDoc()
{
}
BOOL CXxmpxDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CXxmpxDoc serialization
void CXxmpxDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CXxmpxDoc diagnostics
#ifdef _DEBUG
void CXxmpxDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CXxmpxDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CXxmpxDoc commands
void CXxmpxDoc::CSelectFontHeight(int height)
{
m_font.lfHeight=height;
}