📄 inputbox.cpp
字号:
// InputBox.cpp : implementation file
//
#include "stdafx.h"
#include "TrafficExecLaw.h"
#include "InputBox.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CInputBox dialog
CInputBox::CInputBox(LPCTSTR strCaption,
LPCTSTR strTitle,
LPCTSTR strText,
CWnd* pParent /*=NULL*/)
: CDialog(CInputBox::IDD, pParent)
{
//{{AFX_DATA_INIT(CInputBox)
m_text = strText;
m_title = strTitle;
m_caption =strCaption;
//}}AFX_DATA_INIT
}
void CInputBox::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CInputBox)
DDX_Text(pDX, IDC_EDIT_TEXT, m_text);
DDX_Text(pDX, IDC_STATIC_TITLE, m_title);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CInputBox, CDialog)
//{{AFX_MSG_MAP(CInputBox)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CInputBox message handlers
void CInputBox::GetInputText(CString &str)
{
str=this->m_text;
}
BOOL CInputBox::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
this->SetWindowText (this->m_caption);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -