-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDlgMyMessageBox2.cpp
50 lines (40 loc) · 994 Bytes
/
DlgMyMessageBox2.cpp
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
// DlgMyMessageBox.cpp : implementation file
//
#include "stdafx.h"
#include "FreePcb.h"
#include "DlgMyMessageBox2.h"
// CDlgMyMessageBox dialog
IMPLEMENT_DYNAMIC(CDlgMyMessageBox2, CDialog)
CDlgMyMessageBox2::CDlgMyMessageBox2(CWnd* pParent /*=NULL*/)
: CDialog(CDlgMyMessageBox2::IDD, pParent)
{
}
CDlgMyMessageBox2::~CDlgMyMessageBox2()
{
}
void CDlgMyMessageBox2::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_STATIC_MYMESSAGE_2, m_message);
DDX_Control(pDX, IDC_CHECK1, m_check_dont_show);
if( !pDX->m_bSaveAndValidate )
{
// incoming
m_message.SetWindowText( *m_mess );
// show cursor
::ShowCursor( TRUE );
}
else
{
// outgoing
bDontShowBoxState = m_check_dont_show.GetCheck();
::ShowCursor( FALSE );
}
}
BEGIN_MESSAGE_MAP(CDlgMyMessageBox2, CDialog)
ON_WM_SETCURSOR()
END_MESSAGE_MAP()
void CDlgMyMessageBox2::Initialize( CString * mess )
{
m_mess = mess;
}