📄 logon.cpp
字号:
// LogOn.cpp : implementation file
//
#include "stdafx.h"
#include "CDown.h"
#include "LogOn.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// LogOn dialog
LogOn::LogOn(CWnd* pParent /*=NULL*/)
: CDialog(LogOn::IDD, pParent)
{
//{{AFX_DATA_INIT(LogOn)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void LogOn::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(LogOn)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(LogOn, CDialog)
//{{AFX_MSG_MAP(LogOn)
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// LogOn message handlers
BOOL LogOn::OnInitDialog()
{
CDialog::OnInitDialog();
SetWindowText("免责与使用声明");
}
void LogOn::OnButton1()
{
// TODO: Add your control notification handler code here
bIfAllowed = TRUE;
OnOK();
}
void LogOn::OnButton2()
{
bIfAllowed = FALSE;
OnOK();
// TODO: Add your control notification handler code here
// PostQuitMessage(0);
}
BOOL LogOn::GetAllowedValue()
{
return bIfAllowed;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -