progressdialog.h

来自「AES, 即Advanced Encryption Standard高级加密标准」· C头文件 代码 · 共 49 行

H
49
字号
/*
 *  ProgressDialog.cpp
 *
 *  Copyright (C) 2006
 *  Paul E. Jones <paulej@arid.us>
 *  All Rights Reserved.
 *
 ******************************************************************************
 *  $Id: ProgressDialog.h,v 1.1.1.1 2006/05/30 08:04:59 paulej Exp $
 ******************************************************************************
 *
 *  This file defines a simple progress box class for showing the progress
 *  of file encryption and decryption.
 *
 */

#pragma once

#include "resource.h"       // main symbols
#include <atlhost.h>

class ProgressDialog : public CAxDialogImpl<ProgressDialog>
{
    public:
        ProgressDialog();

        ~ProgressDialog();

        enum { IDD = IDD_PROGRESSDIALOG };

        bool abort_processing;

        BEGIN_MSG_MAP(ProgressDialog)
            MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
            COMMAND_HANDLER(IDCANCEL, BN_CLICKED, OnClickedCancel)
            CHAIN_MSG_MAP(CAxDialogImpl<ProgressDialog>)
        END_MSG_MAP()

        // Handler prototypes:
        //  LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
        //  LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
        //  LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);

        LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);

        LRESULT OnClickedCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
};

⌨️ 快捷键说明

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