forked from yuanyuanxiang/RemoteController
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNoticeDlg.cpp
More file actions
47 lines (32 loc) · 739 Bytes
/
NoticeDlg.cpp
File metadata and controls
47 lines (32 loc) · 739 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// NoticeDlg.cpp : 实现文件
//
#include "stdafx.h"
#include "RemoteController.h"
#include "NoticeDlg.h"
#include "afxdialogex.h"
// CNoticeDlg 对话框
IMPLEMENT_DYNAMIC(CNoticeDlg, CDialog)
CNoticeDlg::CNoticeDlg(CWnd* pParent /*=NULL*/)
: CDialog(CNoticeDlg::IDD, pParent)
, m_strNotice(_T(""))
{
}
CNoticeDlg::~CNoticeDlg()
{
}
void CNoticeDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Text(pDX, IDC_EDIT_NOTICE, m_strNotice);
}
BEGIN_MESSAGE_MAP(CNoticeDlg, CDialog)
END_MESSAGE_MAP()
// CNoticeDlg 消息处理程序
BOOL CNoticeDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CEdit *pEdit = (CEdit*)GetDlgItem(IDC_EDIT_NOTICE);
// 最多输入100个字
pEdit->SetLimitText(100);
return TRUE;
}