00001 #if !defined(AFX_PROGRESSDLG_H__E11A32AE_F997_4222_95D7_348EA0CADBCC__INCLUDED_) 00002 #define AFX_PROGRESSDLG_H__E11A32AE_F997_4222_95D7_348EA0CADBCC__INCLUDED_ 00003 /*######################################################################## 00004 ProgressDlg.h 00005 00006 Copyright 2002 Mark Williams, all rights reserved. 00007 Contact: mark@extrabit.com 00008 http://www.extrabit.com 00009 00010 This program is free software; you can redistribute it and/or 00011 modify it under the terms of the GNU General Public License 00012 as published by the Free Software Foundation; either version 2 00013 of the License, or (at your option) any later version. 00014 00015 This program is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU General Public License for more details. 00019 00020 ########################################################################*/ 00021 00022 #if _MSC_VER > 1000 00023 #pragma once 00024 #endif // _MSC_VER > 1000 00025 00027 // CProgressDlg dialog 00028 00032 class CProgressDlg : public CDialog 00033 { 00034 // Construction 00035 public: 00036 CProgressDlg(CWnd* pParent = NULL); // standard constructor 00037 00038 bool inq_abort (void) ; 00039 void set_progress (int) ; 00040 void set_text (int ids) ; 00041 00042 // Dialog Data 00043 //{{AFX_DATA(CProgressDlg) 00044 enum { IDD = IDD_PROGRESS_DLG }; 00045 CProgressCtrl m_progress_ctrl; 00046 CStatic m_msg_static; 00047 //}}AFX_DATA 00048 00049 00050 // Overrides 00051 // ClassWizard generated virtual function overrides 00052 //{{AFX_VIRTUAL(CProgressDlg) 00053 protected: 00054 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00055 //}}AFX_VIRTUAL 00056 00057 // Implementation 00058 protected: 00059 00060 // Generated message map functions 00061 //{{AFX_MSG(CProgressDlg) 00062 virtual void OnCancel(); 00063 //}}AFX_MSG 00064 DECLARE_MESSAGE_MAP() 00065 00066 private: 00067 bool m_abort ; 00068 }; 00069 00070 //{{AFX_INSERT_LOCATION}} 00071 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 00072 00073 #endif // !defined(AFX_PROGRESSDLG_H__E11A32AE_F997_4222_95D7_348EA0CADBCC__INCLUDED_)
1.2.16