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

📄 logindlg.cpp

📁 chuxuxitong 功能很强 大家多多支持呀 哈哈后
💻 CPP
字号:
// LoginDlg.cpp : implementation file
//

#include "stdafx.h"
#include "储蓄系统.h"
#include "LoginDlg.h"

//#include "储蓄系统View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CLoginDlg dialog


CLoginDlg::CLoginDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CLoginDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CLoginDlg)
	m_Account = 0;
	m_Password = _T("");
	//}}AFX_DATA_INIT
}


void CLoginDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CLoginDlg)
	DDX_Text(pDX, IDC_ACCOUNT1, m_Account);
	DDX_Text(pDX, IDC_PSSWORD1, m_Password);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CLoginDlg, CDialog)
	//{{AFX_MSG_MAP(CLoginDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CLoginDlg message handlers


    
 
 
 //}

void  CLoginDlg::OnOK() 
{  UpdateData();  
    Login(m_Account, m_Password);	
	CDialog::OnOK();
}

void CLoginDlg::Login(int a, CString s)
{
   //int account;
//	CString password;
//	CRecordset m_Set;
//	m_Set.Open();
   // CLoginDlg m_dlg;
//	if(m_dlg.DoModal() == IDOK)
	//{
	// while(!m_Set.IsEOF())
	// {
     //  account = m_Set.m_account ;

	  //  password = m_Set.m_password;
	  //    if((a == account)&&(s == password))
	//	  {
//	    f = 1;
//			m_Set.Close();
//			AfxMessageBox("登录成功");
//			 break;
//		  }
//		   else
//		   {
//		     m_Set.MoveNext();
//		  }   
//	 }  
   //}
}

⌨️ 快捷键说明

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