📄 logindialog.cpp
字号:
// LoginDialog.cpp : implementation file
//
#include "stdafx.h"
#include "MarketManager.h"
#include "LoginDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CLoginDialog dialog
CLoginDialog::CLoginDialog(CWnd* pParent /*=NULL*/)
: CDialog(CLoginDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CLoginDialog)
m_uid = _T("");
m_code = _T("");
// m_time = _T("");
//}}AFX_DATA_INIT
//////////////////////////////////////////////////////////
//peter statements
CTime ct=CTime::GetCurrentTime();
m_time=ct.Format("%B-%d-%Y");
//peter statements
/////////////////////////////////////////////////////////
}
void CLoginDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CLoginDialog)
DDX_Text(pDX, ID_DIALOG_UID, m_uid);
DDV_MaxChars(pDX, m_uid, 10);
DDX_Text(pDX, ID_DIALOG_CODE, m_code);
DDV_MaxChars(pDX, m_code, 10);
DDX_Text(pDX, ID_DIAlOG_TIME, m_time);
DDV_MaxChars(pDX, m_time, 30);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CLoginDialog, CDialog)
//{{AFX_MSG_MAP(CLoginDialog)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CLoginDialog message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -