📄 accountview.h
字号:
#if !defined(AFX_ACCOUNTVIEW_H__09996E87_227C_4A33_A72B_C09EAE27C537__INCLUDED_)
#define AFX_ACCOUNTVIEW_H__09996E87_227C_4A33_A72B_C09EAE27C537__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_strBank;
COleDateTime m_dtAcc;
COleDateTime m_dtExch;
double m_dbACMoney;
CString m_strACNum;
CString m_strCard;
CString m_strDescrip;
CString m_strName;
int m_nType;
double m_dbExMoney;
//}}AFX_DATA
// Attributes
public:
//当前选择的账户所在的行
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);
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAccountView)
public:
virtual void OnInitialUpdate();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnDraw(CDC* pDC);
//}}AFX_VIRTUAL
// 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__09996E87_227C_4A33_A72B_C09EAE27C537__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -