liuye
authored
|
1
2
|
#pragma once
#include "afxwin.h"
|
liuye
authored
|
3
|
#include "etrade_edit_control.h"
|
liuye
authored
|
4
5
6
7
8
9
10
11
12
|
// PayDlg 对话框
class PayDlg : public CDialogEx
{
DECLARE_DYNAMIC(PayDlg)
public:
|
liuye
authored
|
13
|
PayDlg(long statement_id, CString total_money, int card_type, CWnd* pParent = NULL); // 标准构造函数
|
liuye
authored
|
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();
|
liuye
authored
|
25
26
27
|
afx_msg void OnBnClickedPayButtonClose();
afx_msg void OnBnClickedPayButtonPay();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
|
liuye
authored
|
28
29
30
|
afx_msg LRESULT OnSessionExpired(WPARAM wParam, LPARAM lParam);
afx_msg void OnBnClickedPayButtonPassword();
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
liuye
authored
|
31
|
afx_msg void OnBnClickedEnter();
|
liuye
authored
|
32
33
34
35
36
37
|
private:
void SetCtrlPos();
void SetErrorMsg(CString error);
private:
|
liuye
authored
|
38
39
40
|
CStatic total_money_static_;
CStatic real_money_static_;
CStatic password_static_;
|
liuye
authored
|
41
|
CEditBox password_edit_;
|
liuye
authored
|
42
43
44
|
CButton pay_button_;
CButton close_button_;
CButton password_button_;
|
liuye
authored
|
45
46
47
48
49
|
CStatic error_msg_static_;
long statement_id_;
CString total_money_;
int card_type_;
|
liuye
authored
|
50
51
|
HACCEL acce_;
|
liuye
authored
|
52
|
};
|