📄 userlogin.cpp
字号:
// UserLogin.cpp : implementation file
//
#include "stdafx.h"
#include "DominoMinder.h"
#include "UserLogin.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CUserLogin dialog
CUserLogin::CUserLogin(CWnd* pParent /*=NULL*/)
: CDialog(CUserLogin::IDD, pParent)
{
//{{AFX_DATA_INIT(CUserLogin)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CUserLogin::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CUserLogin)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CUserLogin, CDialog)
//{{AFX_MSG_MAP(CUserLogin)
ON_BN_CLICKED(IDC_SETUP, OnSetup)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CUserLogin message handlers
void CUserLogin::OnSetup()
{
//把用户登陆名保存到配置文档
CConfig *pCfg = CConfig::GetInstance();
pCfg->SaveLoginUserInfo( this );
EndDialog( IDC_SETUP );
}
BOOL CUserLogin::OnInitDialog()
{
CDialog::OnInitDialog();
//从配置文档中取登陆用户名
CConfig *pCfg = CConfig::GetInstance();
pCfg->LoadLoginUserInfo( this );
//任务栏显示
ModifyStyleEx(0, WS_EX_APPWINDOW);
return TRUE;
}
void CUserLogin::OnOK()
{
//把用户登陆名保存到配置文档
CConfig *pCfg = CConfig::GetInstance();
pCfg->SaveLoginUserInfo( this );
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -