LoginReg2.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #if !defined(AFX_LoginReg2_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)
  2. #define AFX_LoginReg2_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // LoginReg2.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // LoginReg2 form view
  10. #ifndef __AFXEXT_H__
  11. #include <afxext.h>
  12. #endif
  13. class LoginReg2 : public MyFormView
  14. {
  15. CString m_curname;
  16. BOOL m_bInit;
  17. CString m_scurdate;
  18. CString m_scurdate2;
  19. CArray<CStringArray, CStringArray>m_List1array;
  20. protected:
  21. CString GetWeekName(CString date);
  22. LoginReg2(); // protected constructor used by dynamic creation
  23. DECLARE_DYNCREATE(LoginReg2)
  24. // Form Data
  25. public:
  26. //{{AFX_DATA(LoginReg2)
  27. enum { IDD = IDD_DLGLoginReg2 };
  28. CSortListCtrl3 m_List1;
  29. CStatic m_static1;
  30. CSpinButtonCtrl m_spinday;
  31. CSpinButtonCtrl m_spinmonth;
  32. CSpinButtonCtrl m_spinyear;
  33. UINT m_year;
  34. UINT m_month;
  35. //}}AFX_DATA
  36. // Attributes
  37. public:
  38. // Operations
  39. public:
  40. int GetWeekPos(CString weekname);
  41. int FindName(CString name);
  42. void GetTimeRange();
  43. void ShowLoginData();
  44. void FillGrid(BOOL bStatus=0);
  45. // Overrides
  46. // ClassWizard generated virtual function overrides
  47. //{{AFX_VIRTUAL(LoginReg2)
  48. public:
  49. virtual void OnInitialUpdate();
  50. virtual BOOL PreTranslateMessage(MSG* pMsg);
  51. protected:
  52. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  53. //}}AFX_VIRTUAL
  54. // Implementation
  55. protected:
  56. virtual ~LoginReg2();
  57. #ifdef _DEBUG
  58. virtual void AssertValid() const;
  59. virtual void Dump(CDumpContext& dc) const;
  60. #endif
  61. // Generated message map functions
  62. //{{AFX_MSG(LoginReg2)
  63. afx_msg void OnBUTclose();
  64. afx_msg void OnChangeEDITyear();
  65. afx_msg void OnChangeEDITmonth();
  66. afx_msg void OnBUTmoney();
  67. afx_msg void OnBUTmoney5();
  68. afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult);
  69. afx_msg void OnButton5();
  70. //}}AFX_MSG
  71. afx_msg void OnCustomdrawList ( NMHDR* pNMHDR, LRESULT* pResult );
  72. DECLARE_MESSAGE_MAP()
  73. };
  74. /////////////////////////////////////////////////////////////////////////////
  75. //{{AFX_INSERT_LOCATION}}
  76. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  77. #endif // !defined(AFX_LoginReg2_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)