home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / chkbook / chkbkdoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  2.0 KB  |  78 lines

  1. // ChkBkDoc.h : interface of the CCheckBookDoc class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1999 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #ifndef __INC_CHKBKDOC_H__
  14. #define __INC_CHKBKDOC_H__
  15.  
  16. #include "chkrec.h"
  17.  
  18. class CCheckBookDoc : public CDocument
  19. {
  20. protected: // create from serialization only
  21.     CCheckBookDoc();
  22.     DECLARE_DYNCREATE(CCheckBookDoc)
  23.  
  24. // Attributes
  25. public:
  26.     BOOL        m_bCheckView;
  27.     CCheckBook    m_CheckBook;
  28.     CView*        m_pView;
  29.     UINT        m_nNewCheckNo;
  30.     UINT        m_nCurrentCheckNo;
  31. // Operations
  32. public:
  33.  
  34. // Overrides
  35.     // ClassWizard generated virtual function overrides
  36.     //{{AFX_VIRTUAL(CCheckBookDoc)
  37.     public:
  38.     virtual BOOL OnNewDocument();
  39.     virtual void Serialize(CArchive& ar);
  40.     //}}AFX_VIRTUAL
  41.  
  42. // Implementation
  43. public:
  44.     virtual ~CCheckBookDoc();
  45. #ifdef _DEBUG
  46.     virtual void AssertValid() const;
  47.     virtual void Dump(CDumpContext& dc) const;
  48. #endif
  49.     CCheckBook* GetCheckBook();
  50.     void UpdateRecord();
  51.  
  52. protected:
  53.     UINT CheckThisCheck();
  54.     void FileOpenHelper(BOOL bFileOpen);
  55.  
  56. // Generated message map functions
  57. protected:
  58.     //{{AFX_MSG(CCheckBookDoc)
  59.     afx_msg void OnViewBook();
  60.     afx_msg void OnViewCheck();
  61.     afx_msg void OnEditNewCheck();
  62.     afx_msg void OnNextCheck();
  63.     afx_msg void OnPrevCheck();
  64.     afx_msg void OnEditCommit();
  65.     afx_msg void OnFileOpen();
  66.     afx_msg void OnAppExit();
  67.     afx_msg void OnUpdateNextCheck(CCmdUI* pCmdUI);
  68.     afx_msg void OnUpdatePrevCheck(CCmdUI* pCmdUI);
  69.     afx_msg void OnUpdateViewBook(CCmdUI* pCmdUI);
  70.     afx_msg void OnUpdateViewCheck(CCmdUI* pCmdUI);
  71.     afx_msg void OnFileNew();
  72.     //}}AFX_MSG
  73.     DECLARE_MESSAGE_MAP()
  74. };
  75.  
  76. #endif // __INC_CHKBKDOC_H__
  77. /////////////////////////////////////////////////////////////////////////////
  78.