-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathAskDlg.h
37 lines (28 loc) · 790 Bytes
/
AskDlg.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
#pragma once
// AskDlg dialog
class AskDlg : public CDialog
{
DECLARE_DYNAMIC(AskDlg)
public:
AskDlg(CWnd* pParent = NULL); // standard constructor
virtual ~AskDlg();
// Dialog Data
enum { IDD = IDD_DLG_ASK };
void SetQuestion(CString cstrQuestion);
void SetButtons(CString cstrButton1, CString cstrButton2);
void SetCaption(CString cstrCaption);
bool NeverAskAgain();
int ButtonClicked();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnBnClickedButton1();
afx_msg void OnBnClickedButton2();
CString m_cstrCaption;
CString m_cstrQuestion;
CString m_cstrButton1;
CString m_cstrButton2;
bool m_bNeverAskAgain;
int m_iButtonClicked;
};