_guanji.cpp

来自「计算器源代码」· C++ 代码 · 共 63 行

CPP
63
字号
// _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 + =
减小字号Ctrl + -
显示快捷键?