-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDlgMyMessageBox.cpp
50 lines (40 loc) · 979 Bytes
/
DlgMyMessageBox.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 "DlgMyMessageBox.h"
// CDlgMyMessageBox dialog
IMPLEMENT_DYNAMIC(CDlgMyMessageBox, CDialog)
CDlgMyMessageBox::CDlgMyMessageBox(CWnd* pParent /*=NULL*/)
: CDialog(CDlgMyMessageBox::IDD, pParent)
{
}
CDlgMyMessageBox::~CDlgMyMessageBox()
{
}
void CDlgMyMessageBox::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_STATIC_MYMESSAGE, 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(CDlgMyMessageBox, CDialog)
ON_WM_SETCURSOR()
END_MESSAGE_MAP()
void CDlgMyMessageBox::Initialize( LPCTSTR mess )
{
m_mess = mess;
}