?? inputdialog.cpp
字號:
// InputDialog.cpp : implementation file
//
#include "stdafx.h"
#include "cube.h"
#include "InputDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CInputDialog dialog
CInputDialog::CInputDialog(CWnd* pParent /*=NULL*/)
: CDialog(CInputDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CInputDialog)
m_strPassword = _T("");
//}}AFX_DATA_INIT
}
void CInputDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CInputDialog)
DDX_Text(pDX, IDC_EDIT_PASSWORD, m_strPassword);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CInputDialog, CDialog)
//{{AFX_MSG_MAP(CInputDialog)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CInputDialog message handlers
void CInputDialog::OnOK()
{
// TODO: Add extra validation here
UpdateData();
memset(m_szPassword, 0, 256);
memcpy(m_szPassword, m_strPassword.GetBuffer(m_strPassword.GetLength()), m_strPassword.GetLength());
m_strPassword.ReleaseBuffer();
CDialog::OnOK();
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -