-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomMsgDlg.h
79 lines (61 loc) · 2.04 KB
/
CustomMsgDlg.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*******************************************************************************
Copyright (c) 1999-2010 by Text Analysis International, Inc.
All rights reserved.
*******************************************************************************/
#if !defined(AFX_CUSTOMMSGDLG_H__89CF7351_6EE2_11D4_A6E6_00105A99059F__INCLUDED_)
#define AFX_CUSTOMMSGDLG_H__89CF7351_6EE2_11D4_A6E6_00105A99059F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CustomMsgDlg.h : header file
//
#include "resource.h"
/////////////////////////////////////////////////////////////////////////////
// CCustomMsgDlg dialog
class CCustomMsgDlg : public CDialog
{
// Construction
public:
CCustomMsgDlg(CWnd* pParent = NULL); // standard constructor
void SetData(CString msgStr, int numButtons, int defaultChoice,
CString butt1Str, CString butt2Str, CString butt3Str);
// Dialog Data
//{{AFX_DATA(CCustomMsgDlg)
enum { IDD = IDD_CUSTOM_MSG_DLG };
CString m_strMsg;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCustomMsgDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CCustomMsgDlg)
virtual BOOL OnInitDialog();
afx_msg void OnButtonPushed1();
afx_msg void OnButtonPushed2();
afx_msg void OnButtonPushed3();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CFont m_fontButton;
CDC *m_pDC;
TEXTMETRIC m_tm;
CString m_strButton1;
CString m_strButton2;
CString m_strButton3;
int m_intNumButtons;
int m_intDefaultChoice;
CButton m_button1;
CButton m_button2;
CButton m_button3;
void CreateButtons();
int ButtonWidthFromStr(CString buttonStr);
void OuttaHere(int buttonNum);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CUSTOMMSGDLG_H__89CF7351_6EE2_11D4_A6E6_00105A99059F__INCLUDED_)