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

📄 adminlogoutdlg.cpp

📁 mysql+visual C++编写的mini图书馆数据库管理系统
💻 CPP
字号:
// AdminLogoutDlg.cpp : implementation file
//

#include "stdafx.h"
#include "Library.h"
#include "AdminLogoutDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CAdminLogoutDlg dialog


CAdminLogoutDlg::CAdminLogoutDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CAdminLogoutDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CAdminLogoutDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CAdminLogoutDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAdminLogoutDlg)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CAdminLogoutDlg message handlers

void CAdminLogoutDlg::OnOK() 
{
	// TODO: Add extra validation here
	if(flag==0)
	{
		AfxMessageBox("当前无管理员登录,无需执行登出操作!");
	    CDialog::OnOK();
        return;
	}
	CString s="管理员 ";
	s+=GlobalAdminID;
	s+=" 已顺利登出此系统!";
	AfxMessageBox(s);
	flag=0;
    GlobalAdminID="";
	CDialog::OnOK();
}

⌨️ 快捷键说明

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