forked from xarzhi/iClick
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGapModal.h
More file actions
42 lines (32 loc) · 829 Bytes
/
Copy pathGapModal.h
File metadata and controls
42 lines (32 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include "afxdialogex.h"
// GapModal 对话框
class GapModal : public CDialogEx
{
DECLARE_DYNAMIC(GapModal)
public:
GapModal(CWnd* pParent = nullptr,UINT gap=0); // 标准构造函数
virtual ~GapModal();
virtual void OnFinalRelease();
virtual BOOL PreTranslateMessage(MSG* pMsg) {
if (pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_ESCAPE) {
return TRUE;
}
if (pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_RETURN) {
return TRUE;
}
return CDialogEx::PreTranslateMessage(pMsg);
}
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_GAP_DIALOG };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnEnChangeEdit1();
CEdit gap_ipt;
UINT gap = 0;
};