-
Notifications
You must be signed in to change notification settings - Fork 0
/
TipsDlg.h
45 lines (36 loc) · 907 Bytes
/
TipsDlg.h
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
43
44
45
#pragma once
#include "afxwin.h"
enum ENUM_BTNTYPE
{
BTNTYPE_ONLYOK,
BTNTYPE_OKCANCEL,
};
// CTipsDlg 对话框
class CTipsDlg : public CDialogEx
{
DECLARE_DYNAMIC(CTipsDlg)
public:
CTipsDlg(CWnd* pParent = NULL); // 标准构造函数
virtual ~CTipsDlg();
void SetTips(const TCHAR* msg, ENUM_BTNTYPE type = BTNTYPE_ONLYOK);
// 对话框数据
enum { IDD = IDD_DLG_TIPS };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESSAGE_MAP()
private:
CStatic m_staticTipsLable;
CButton m_btnOK;
CButton m_btnCancel;
CStatic m_static_pic1;
CBrush m_brush;
CFont m_font;
CString m_strTips;
ENUM_BTNTYPE m_iBtnType;
public:
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnBnClickedBtnTipsok();
afx_msg void OnBnClickedBtnTipcancel();
};