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

📄 shutdowndlg.cpp

📁 Programming the Microsoft Windows driver model.2nd 随书光盘。内有很多作者送的实用工具和随书源码。WDM编程
💻 CPP
字号:
// ShutdownDlg.cpp : implementation file

// Copyright (C) 1999 by Walter Oney

// All rights reserved



#include "stdafx.h"

#include "ShutdownDlg.h"



#ifdef NTSERVICE

	#error This file should not be included in the service build!

#endif



#ifdef _DEBUG

#define new DEBUG_NEW

#undef THIS_FILE

static char THIS_FILE[] = __FILE__;

#endif



/////////////////////////////////////////////////////////////////////////////

// CShutdownDlg dialog





CShutdownDlg::CShutdownDlg(CWnd* pParent /*=NULL*/)

{

	//{{AFX_DATA_INIT(CShutdownDlg)

		// NOTE: the ClassWizard will add member initialization here

	//}}AFX_DATA_INIT



	Create(IDD, pParent);

}





void CShutdownDlg::DoDataExchange(CDataExchange* pDX)

{

	CDialog::DoDataExchange(pDX);

	//{{AFX_DATA_MAP(CShutdownDlg)

		// NOTE: the ClassWizard will add DDX and DDV calls here

	//}}AFX_DATA_MAP

}





BEGIN_MESSAGE_MAP(CShutdownDlg, CDialog)

	//{{AFX_MSG_MAP(CShutdownDlg)

	ON_BN_CLICKED(IDNO, OnNo)

	ON_BN_CLICKED(IDYES, OnYes)

	//}}AFX_MSG_MAP

END_MESSAGE_MAP()



/////////////////////////////////////////////////////////////////////////////

// CShutdownDlg message handlers



void CShutdownDlg::OnNo() 

{

	ShowWindow(SW_HIDE);

}



void CShutdownDlg::OnYes() 

{

	ShowWindow(SW_HIDE);

	GetParent()->DestroyWindow();

}



BOOL CShutdownDlg::OnInitDialog() 

{

	CDialog::OnInitDialog();

	CenterWindow(GetDesktopWindow());

	return TRUE;

}

⌨️ 快捷键说明

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