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

📄 accountview.h

📁 一个用MFC编写的家庭财务管理系统.采用了Sqlserver数据库.压缩包中已包括了所需的数据库文件.可直接附加到SQL服务器.
💻 H
字号:
#if !defined(AFX_ACCOUNTVIEW_H__AA2188E6_11A2_4358_B6A1_B7A6E12D0AC1__INCLUDED_)
#define AFX_ACCOUNTVIEW_H__AA2188E6_11A2_4358_B6A1_B7A6E12D0AC1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// AccountView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CAccountView form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

class CAccountView : public CFormView
{
protected:
	CAccountView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CAccountView)

// Form Data
public:
	//{{AFX_DATA(CAccountView)
	enum { IDD = IDD_ACC_FORM };
	CListCtrl	m_listExch;
	CListCtrl	m_listAcc;
	CString	m_strACNum;
	CString	m_strName;
	CString	m_strCard;
	CString	m_strBank;
	CTime	m_dtAcc;
	CTime	m_dtExch;
	int		m_nType;
	double	m_dbACMoney;
	double	m_dbExMoney;
	CString	m_strDescrip;
	//}}AFX_DATA

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAccountView)
	public:
	virtual void OnInitialUpdate();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
private:
	int m_nCurrIndex;//当前选择的帐户所在的行
	CString m_strCurrAcc;//当前已选择的帐户名
	double m_dbCurrMoney;//当前帐户余额
	void InitControl();//初始化列表框控件
	//向帐户列表框控件中插入数据
	void InsertAcCtrlItem(CString item0,CString item1,CString item2,
		CString item3,CString item4,CString item5,CString item6);
	//向交易列表框控件中插入数据
	void InsertExCtrlItem(CString item0,CString item1,CString item2,CString item3);
	void InitCtrlData();//从数据库获取帐户和交易信息并更新到控件中
	void RefreshExchData(CString currAcc);//刷新当前帐户的交易信息

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

	// Generated message map functions
	//{{AFX_MSG(CAccountView)
	afx_msg void OnBtnAccAdd();
	afx_msg void OnBtnAccDel();
	afx_msg void OnBtnExchAdd();
	afx_msg void OnBtnExchDel();
	afx_msg void OnItemchangedListAcc(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ACCOUNTVIEW_H__AA2188E6_11A2_4358_B6A1_B7A6E12D0AC1__INCLUDED_)

⌨️ 快捷键说明

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