Blame view

central_clearing_system/ETradeClient/mfc_ui/pay_dlg.h 1.15 KB
1
2
#pragma once
#include "afxwin.h"
3
#include "etrade_edit_control.h"
4
5
6
7
8
9
10
11
12


// PayDlg 对话框

class PayDlg : public CDialogEx
{
	DECLARE_DYNAMIC(PayDlg)

public:
13
	PayDlg(long statement_id, CString total_money, int card_type, CWnd* pParent = NULL);   // 标准构造函数
14
15
16
17
18
19
20
21
22
23
24
	virtual ~PayDlg();

// 对话框数据
	enum { IDD = IDD_DIALOG_PAY };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
25
26
27
	afx_msg void OnBnClickedPayButtonClose();
	afx_msg void OnBnClickedPayButtonPay();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
28
29
30
	afx_msg LRESULT OnSessionExpired(WPARAM wParam, LPARAM lParam);
	afx_msg void OnBnClickedPayButtonPassword();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
31
	afx_msg void OnBnClickedEnter();
32
33
34
35
36
37

private:
	void SetCtrlPos();
	void SetErrorMsg(CString error);

private:
38
39
40
	CStatic total_money_static_;
	CStatic real_money_static_;
	CStatic password_static_;
41
	CEditBox password_edit_;
42
43
44
	CButton pay_button_;
	CButton close_button_;
	CButton password_button_;
45
46
47
48
49
	CStatic error_msg_static_;

	long statement_id_;
	CString total_money_;
	int card_type_;
50
51

	HACCEL acce_;
52
};