inputbox.cpp
来自「wince下交警执法程序源码,使用evc编写」· C++ 代码 · 共 67 行
CPP
67 行
// 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 + =
减小字号Ctrl + -
显示快捷键?