⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 accobook_ceview.h

📁 本源代码是基于嵌入式平台WinCE上的家庭理财程序
💻 H
字号:
// Accobook_CEView.h : interface of the CAccobook_CEView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_ACCOBOOK_CEVIEW_H__8312E04D_A530_11D2_83D1_0000210056C3__INCLUDED_)
#define AFX_ACCOBOOK_CEVIEW_H__8312E04D_A530_11D2_83D1_0000210056C3__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "MyEdit.h"
#include "FloatEdit2.h"
#include "ListCtrlEx.h"
class CSearchDlg;

class CMyTime:public CObject
{
public:
	CMyTime();
	CMyTime(double&,double&,double&);
	CMyTime(CString&);
	~CMyTime();
	//operator CMyTime();
	//CMyTime operator =(CMyTime &f);
	CString GetStrBeforePoint(CString&);
	BOOL YearMonthDayIn(CMyTime,CMyTime,CMyTime);
	double m_dYear;
	double m_dMonth;
	double m_dDay;
};

class CAccobook_CEView : public CFormView
{
protected: // create from serialization only
	CAccobook_CEView();
	DECLARE_DYNCREATE(CAccobook_CEView)

public:
	CSearchDlg* p_SearchDlg;

	//{{AFX_DATA(CAccobook_CEView)
	enum { IDD = IDD_ACCOBOOK_CE_FORM };
	CMyEdit	m_BeiZhuCtrl;
	CFloatEdit2	m_RiQiCtrl;
	CFloatEdit2	m_ShuECtrl;
	BOOL	m_bShouRu;
	BOOL	m_bZhiChu;
	CString	m_s2;
	CString	m_s1;
	//}}AFX_DATA

// Attributes
public:
	BOOL IsLeapYear(int AYear);
	int CalcYangDays(int y1,int m1,int d1);
	int CalcNewYangWithDays(int days,int& y,int& m,int& d);
	int CalcNewYangWithDaysLess365(int year,int days,int& y,int& m,int& d);

	CAccobook_CEDoc* GetDocument();
	void ShowAll();
	void ReShow();
	void MyUpdate();
	int UpdateList(int nField,CString s);
	int UpdateList2(int nField,CString s1,CString s2);
	int UpdateListByTime(int nField,CString s1,CString s2);
	int UpdateListWithAll(CString sType,
							CString sShuE1,CString sShuE2,
							CString sRIQI1,CString sRIQI2,
							CString sBeiZhu);
	void RefreshCtrl();
	void InitCtrl();
	int StationIn(PBYTE cc,CString s);
	int StationIn2(const char* cc,const char* c);
	BOOL YearMonthDayIn(double y1,double m1,double d1,
						double y2,double m2,double d2,
						double y3,double m3,double d3);
	//CString GetInstallDir();

// Operations
public:
//	BOOL m_bLiuLan;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAccobook_CEView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CAccobook_CEView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CAccobook_CEView)
	afx_msg void OnButton1();
	afx_msg void OnButton2();
	afx_msg void OnButton4();
	afx_msg void OnCheck1();
	afx_msg void OnCheck2();
	afx_msg void OnButtonPrev();
	afx_msg void OnButtonNext();
	afx_msg void OnFileDeleteall();
	afx_msg void OnButtonListall();
	afx_msg void OnButtonDelete();
	afx_msg void OnButtonModify();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in Accobook_CEView.cpp
inline CAccobook_CEDoc* CAccobook_CEView::GetDocument()
   { return (CAccobook_CEDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ACCOBOOK_CEVIEW_H__8312E04D_A530_11D2_83D1_0000210056C3__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -