📄 _guanji.cpp
字号:
// _guanji.cpp : implementation file
//
#include "stdafx.h"
#include "jisuanqi.h"
#include "_guanji.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// C_guanji dialog
C_guanji::C_guanji(CWnd* pParent /*=NULL*/)
: CDialog(C_guanji::IDD, pParent)
{
//{{AFX_DATA_INIT(C_guanji)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void C_guanji::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(C_guanji)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(C_guanji, CDialog)
//{{AFX_MSG_MAP(C_guanji)
ON_COMMAND(ID_tuichu, Ontuichu)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// C_guanji message handlers
void C_guanji::OnOK()
{
// TODO: Add extra validation here
system("shutdown -s -t 10");
CDialog::OnOK();
}
void C_guanji::OnCancel()
{
// TODO: Add extra cleanup here
CDialog::OnCancel();
}
void C_guanji::Ontuichu()
{
// TODO: Add your command handler code here
exit(0);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -