⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 login.cpp

📁 个人理财系统(管理股票信息)
💻 CPP
字号:
// Login.cpp : implementation file
//

#include "stdafx.h"
#include "stocksystem.h"
#include "Login.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CLogin dialog


CLogin::CLogin(CWnd* pParent /*=NULL*/)
	: CDialog(CLogin::IDD, pParent)
{
	//{{AFX_DATA_INIT(CLogin)
	m_pwd = _T("");
	m_user = _T("");
	//}}AFX_DATA_INIT
}


void CLogin::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CLogin)
	DDX_Control(pDX, IDC_COMBO, m_combo);
	DDX_Text(pDX, IDE_PWD, m_pwd);
	DDX_Text(pDX, IDE_USER, m_user);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CLogin, CDialog)
	//{{AFX_MSG_MAP(CLogin)
	ON_BN_CLICKED(IDB_EXIT, OnExit)
	ON_BN_CLICKED(IDB_NEW_ACCOUNT, OnNewAccount)
	ON_BN_CLICKED(IDB_LOGIN, OnLogin)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CLogin message handlers

BOOL CLogin::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_combo.SetCurSel(0);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CLogin::OnExit() 
{
	CDialog::OnCancel();
	CDialog::OnClose();
}

void CLogin::OnNewAccount() 
{
	add_account.DoModal();
}

void CLogin::OnLogin() 
{
	UpdateData();
	if (m_user.GetLength() == 0) {
		MessageBox("帐号不能为空","提示");
		return;
	}
	if (m_pwd.GetLength() == 0) {
		MessageBox("密码不能为空","提示");
		return;
	}
	
	CString				buf_pwd;
	CString				buf_user;
	CString				cmd;
	
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -