transactionrecord.h

来自「企业办公管理系统」· C头文件 代码 · 共 69 行

H
69
字号
#if !defined(AFX_TRANSACTIONRECORD_H__C6AA5923_6714_433C_9C9B_7D30103B6B6C__INCLUDED_)
#define AFX_TRANSACTIONRECORD_H__C6AA5923_6714_433C_9C9B_7D30103B6B6C__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CTransactionRecord dialog
class CTransactionRecord : public CDialog
{
// Construction
public:
	void Refresh();
	//以下的指针变量分别指向对应控件的指针(在OnInitDialog()中赋值);
	CWnd* cwnd_list;//
	CWnd* cwnd_transactionType;
	CWnd* cwnd_transactionDate;
	CWnd* cwnd_transactionSubject;
	CWnd* cwnd_content;
	CWnd* cwnd_add;
	CWnd* cwnd_delete;
	CWnd* cwnd_modify;
	CWnd* cwnd_save;
	CWnd* cwnd_cancel;
	int   flag;//为增加和修改的标志,当增加时flag=1,当修改时为2,没增加或者修改时候为0
	CTransactionRecord(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CTransactionRecord)
	enum { IDD = IDD_TRANSACTIONRECORD };
	CListCtrl	m_list;
	CString	m_content;
	CString	m_transactionType;
	COleDateTime	m_transactionDate;
	CString	m_transactionSubject;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTransactionRecord)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CTransactionRecord)
	virtual BOOL OnInitDialog();
	afx_msg void OnAdd();
	afx_msg void OnClickList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDelete();
	afx_msg void OnSave();
	afx_msg void OnModify();
	afx_msg void OnCancellation();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_TRANSACTIONRECORD_H__C6AA5923_6714_433C_9C9B_7D30103B6B6C__INCLUDED_)

⌨️ 快捷键说明

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