aliasinputdlg.cpp
来自「本人买的<<VC++项目开发实例>>源代码配套光盘.」· C++ 代码 · 共 63 行
CPP
63 行
// AliasInputDlg.cpp : implementation file
//
#include "stdafx.h"
#include "DBExp.h"
#include "AliasInputDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAliasInputDlg dialog
//##ModelId=3C5B9BA001B8
CAliasInputDlg::CAliasInputDlg(CWnd* pParent /*=NULL*/)
: CDialog(CAliasInputDlg::IDD, pParent)
{
m_strCaption = _T("输入别名");
//{{AFX_DATA_INIT(CAliasInputDlg)
m_strName = _T("");
m_strPrompt = _T("");
//}}AFX_DATA_INIT
}
//##ModelId=3C5B9BA001C2
void CAliasInputDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAliasInputDlg)
DDX_Text(pDX, IDC_NAME_EDIT, m_strName);
DDX_Text(pDX, IDC_PROMPT, m_strPrompt);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAliasInputDlg, CDialog)
//{{AFX_MSG_MAP(CAliasInputDlg)
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAliasInputDlg message handlers
void CAliasInputDlg::SetCaption(const char *szCaption)
{
m_strCaption = szCaption;
}
int CAliasInputDlg::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CDialog::OnCreate(lpCreateStruct) == -1)
return -1;
SetWindowText(m_strCaption);
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?