HomeFinanceManagerView.h
上传用户:xiaoke98
上传日期:2014-06-29
资源大小:5718k
文件大小:3k
源码类别:

家庭/个人应用

开发平台:

Visual C++

  1. // HomeFinanceManagerView.h : interface of the CHomeFinanceManagerView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_HOMEFINANCEMANAGERVIEW_H__DFCBF72D_939F_4C00_8352_975BAF24ACAE__INCLUDED_)
  5. #define AFX_HOMEFINANCEMANAGERVIEW_H__DFCBF72D_939F_4C00_8352_975BAF24ACAE__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "DialogLogin.h"
  10. #include "DialogBalance.h"
  11. #include "DialogFinanceIn.h"
  12. #include "DialogFinanceOut.h"
  13. //-------------------------------------------------
  14. class CHomeFinanceManagerDoc;
  15. class CHomeFinanceManagerView : public CView
  16. {
  17. protected: // create from serialization only
  18. CHomeFinanceManagerView();
  19. DECLARE_DYNCREATE(CHomeFinanceManagerView)
  20. // Attributes
  21. public:
  22. CHomeFinanceManagerDoc* GetDocument();
  23. void VerifyUser(void);
  24. // Operations
  25. public:
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(CHomeFinanceManagerView)
  29. public:
  30. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  31. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  32. protected:
  33. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  34. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  35. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  36. virtual void OnUpdate( CView* pSender, LPARAM lHint, CObject* pHint );
  37. //}}AFX_VIRTUAL
  38. // Implementation
  39. public:
  40. virtual ~CHomeFinanceManagerView();
  41. #ifdef _DEBUG
  42. virtual void AssertValid() const;
  43. virtual void Dump(CDumpContext& dc) const;
  44. #endif
  45. protected:
  46. // Generated message map functions
  47. protected:
  48. //{{AFX_MSG(CHomeFinanceManagerView)
  49. afx_msg void OnSize(UINT nType, int cx, int cy);
  50. afx_msg BOOL OnEraseBkgnd( CDC* pDC );
  51. //}}AFX_MSG
  52. DECLARE_MESSAGE_MAP()
  53. private:
  54. CDialogLogin m_DialogLogin;
  55. CDialogBalance m_DialogBalance;
  56. CDialogFinanceIn    m_DialogFinanceIn;
  57. CDialogFinanceOut   m_DialogFinanceOut;
  58. CDialog* m_ActiveDialog;
  59. bool                m_bHasClick;
  60. void ShowWindow();
  61. void DisplayBackBmp();
  62. void ShowLoginDialog();
  63. void    ShowBalanceDialog();
  64. void    ShowFinanceIn();
  65. void    ShowFinanceOut();
  66. };
  67. #ifndef _DEBUG  // debug version in HomeFinanceManagerView.cpp
  68. inline CHomeFinanceManagerDoc* CHomeFinanceManagerView::GetDocument()
  69.    { return (CHomeFinanceManagerDoc*)m_pDocument; }
  70. #endif
  71. /////////////////////////////////////////////////////////////////////////////
  72. //{{AFX_INSERT_LOCATION}}
  73. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  74. #endif // !defined(AFX_HOMEFINANCEMANAGERVIEW_H__DFCBF72D_939F_4C00_8352_975BAF24ACAE__INCLUDED_)