userlogin.cpp
来自「基于domino系统邮件数据库编写的邮件助手程序」· C++ 代码 · 共 75 行
CPP
75 行
// 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 + =
减小字号Ctrl + -
显示快捷键?