home *** CD-ROM | disk | FTP | other *** search
- // StatBDoc.cpp : implementation of the CStatusBarsDoc class
- //
-
- #include "stdafx.h"
- #include "StatBar.h"
-
- #include "StatBDoc.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CStatusBarsDoc
-
- IMPLEMENT_DYNCREATE(CStatusBarsDoc, CDocument)
-
- BEGIN_MESSAGE_MAP(CStatusBarsDoc, CDocument)
- //{{AFX_MSG_MAP(CStatusBarsDoc)
- // 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()
-
- /////////////////////////////////////////////////////////////////////////////
- // CStatusBarsDoc construction/destruction
-
- CStatusBarsDoc::CStatusBarsDoc()
- :m_color(RGB(0,0,0))
- {
- m_phrase.LoadString(IDS_WELCOME_MSG);
- }
-
- CStatusBarsDoc::~CStatusBarsDoc()
- {
- }
-
- BOOL CStatusBarsDoc::OnNewDocument()
- {
- if (!CDocument::OnNewDocument())
- return FALSE;
-
- // TODO: add reinitialization code here
- // (SDI documents will reuse this document)
-
- return TRUE;
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CStatusBarsDoc serialization
-
- void CStatusBarsDoc::Serialize(CArchive& ar)
- {
- if (ar.IsStoring())
- {
- // TODO: add storing code here
- }
- else
- {
- // TODO: add loading code here
- }
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CStatusBarsDoc diagnostics
-
- #ifdef _DEBUG
- void CStatusBarsDoc::AssertValid() const
- {
- CDocument::AssertValid();
- }
-
- void CStatusBarsDoc::Dump(CDumpContext& dc) const
- {
- CDocument::Dump(dc);
- }
- #endif //_DEBUG
-
- /////////////////////////////////////////////////////////////////////////////
- // CStatusBarsDoc commands
-