SourceCodeSky QQ客服 SourceCodeSky 400电话 客服电话 暂无

ShutdownComputerDlg.cpp ( 文件浏览 )

  • keepall 发布于 2016-08-23 22:14
  • 浏览次数:453
  • 下载次数: 1
  • 下载需 10 积分
  • 侵权举报
// ShutdownComputerDlg.cpp : implementation file
//

#include "stdafx.h"
#include "ShutdownComputer.h"
#include "ShutdownComputerDlg.h"
#include "Shutdown.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#pragma comment(lib,"user32.lib")
/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About

class CAboutDlg : public CDialog
{
public:
    CAboutDlg();

// Dialog Data
    //{{AFX_DATA(CAboutDlg)
    enum { IDD = IDD_ABOUTBOX };
    //}}AFX_DATA

    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CAboutDlg)
    protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
    //}}AFX_VIRTUAL

// Implementation
protected:
    //{{AFX_MSG(CAboutDlg)
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP()
};

CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
    //{{AFX_DATA_INIT(CAboutDlg)
    //}}AFX_DATA_INIT
}

void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
    CDialog::DoDataExchange(pDX);
    //{{AFX_DATA_MAP(CAboutDlg)
    //}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
    //{{AFX_MSG_MAP(CAboutDlg)
        // No message handlers
    //}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CShutdownComputerDlg dialog

CShutdownComputerDlg::CShutdownComputerDlg(CWnd* pParent /*=NULL*/)
    : CDialog(CShutdownComputerDlg::IDD, pParent)
{
    //{{AFX_DATA_INIT(CShutdownComputerDlg)
        // NOTE: the ClassWizard will add member initialization here
    //}}AFX_DATA_INIT
    // Note that LoadIcon does not require a subsequent DestroyIcon in Win32
    m_hIcon = AfxGetApp()->LoadIcon(IDI_LOCK);
}

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

BEGIN_MESSAGE_MAP(CShutdownComputerDlg, CDialog)
    //{{AFX_MSG_MAP(CShutdownComputerDlg)
    ON_WM_SYSCOMMAND()
    ON_WM_PAINT()
    ON_WM_QUERYDRAGICON()
    ON_BN_CLICKED(IDC_SHUTDOWN, OnShutdown)
    ON_BN_CLICKED(IDC_REBOOT, OnReboot)
    ON_BN_CLICKED(IDC_LOGOFF, OnLogoff)
    ON_BN_CLICKED(IDC_LOCKSCREEN, OnLockscreen)
    ON_BN_CLICKED(IDC_HIBERNATE, OnHibernate)
    ON_BN_CLICKED(IDC_SUSPEND, OnSuspend)
    ON_MESSAGE(WM_HOTKEY,OnHotKey)
    //}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CShutdownComputerDlg message handlers

BOOL CShutdownComputerDlg::OnInitDialog()
{
    CDialog::OnInitDialog();

    // Add "About..." menu item to system menu.

    // IDM_ABOUTBOX must be in the system command range.
    ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
    ASSERT(IDM_ABOUTBOX < 0xF000);

    CMenu* pSysMenu = GetSystemMenu(FALSE);
    if (pSysMenu != NULL)
    {
        CString strAboutMenu;
        strAboutMenu.LoadString(IDS_ABOUTBOX);
        if (!strAboutMenu.IsEmpty())
        {
            pSysMenu->A[!==More==!]			
...
展开> <收缩

下载源码到电脑,阅读使用更方便

1 积分

快速下载
还剩0行未阅读,继续阅读
免费下载源码
Sponsored links

源码文件列表

温馨提示: 点击源码文件名可预览文件内容哦 ^_^
...
名称 大小 修改日期
/ShutdownComputer/ 0 Bytes 2009-06-07 23:36:32
/ShutdownComputer/resource.h 969 Bytes 2009-05-08 14:04:44
/ShutdownComputer/Shutdown.cpp 1.52 KB 2009-06-07 23:33:40
/ShutdownComputer/Shutdown.h 203 Bytes 2009-05-08 07:51:02
/ShutdownComputer/ShutdownComputer.cpp 2.15 KB 2009-05-07 20:14:56
/ShutdownComputer/ShutdownComputer.h 1.40 KB 2009-05-07 20:14:56
/ShutdownComputer/ShutdownComputer.rc 5.58 KB 2009-05-08 14:07:34
/ShutdownComputer/ShutdownComputer.sln 897 Bytes 2009-06-07 23:26:14
/ShutdownComputer/ShutdownComputer.suo 10.50 KB 2009-06-07 23:35:26
/ShutdownComputer/ShutdownComputer.vcproj 8.09 KB 2009-06-07 23:26:12
/ShutdownComputer/ShutdownComputerDlg.cpp 5.58 KB 2009-06-07 23:30:38
/ShutdownComputer/ShutdownComputerDlg.h 1.70 KB 2009-06-07 23:29:44
/ShutdownComputer/StdAfx.cpp 218 Bytes 2009-05-07 20:14:56
/ShutdownComputer/StdAfx.h 1.07 KB 2009-05-07 20:57:54
/ShutdownComputer/Debug/ 0 Bytes 2009-06-07 23:35:38
/ShutdownComputer/Release/ 0 Bytes 2009-06-07 23:35:32
/ShutdownComputer/res/ 0 Bytes 2009-05-08 14:04:26
/ShutdownComputer/res/bitmap1.bmp 1.24 KB 2009-05-08 11:19:52
/ShutdownComputer/res/lock.ico 51.44 KB 2009-05-08 14:04:26
/ShutdownComputer/res/me1.bmp 334.74 KB 2009-05-08 11:21:56
/ShutdownComputer/res/ShutdownComputer.ico 1.05 KB 2009-05-07 20:14:56
/ShutdownComputer/res/ShutdownComputer.rc2 408 Bytes 2009-05-07 20:14:56
Sponsored links
正在加载中……

Switch to the English version?

Yes
SourceCodeSky 英文版
No
SourceCodeSky 中文版

完善个人资料,获价值¥30元积分奖励!