Menu

[r124]: / MyMessageBox.h  Maximize  Restore  History

Download this file

32 lines (25 with data), 671 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
#pragma once
#include "afxwin.h"
// MyMessageBox – dialog
class MyMessageBox : public CDialogEx
{
DECLARE_DYNAMIC(MyMessageBox)
public:
MyMessageBox(CWnd* pParent = NULL, bool yes_no=true); // standardní konstruktor
virtual ~MyMessageBox();
BOOL Create();
// Data dialogu
//#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_DIALOG_MESSAGE };
//#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // Podpora DDX/DDV
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedOk();
afx_msg void OnBnClickedCancel();
CEdit m_message;
CString message;
bool m_yes_no;
};