GME
13
|
00001 00002 #ifndef MGA_MGAPROGRESSDLG_H 00003 #define MGA_MGAPROGRESSDLG_H 00004 00005 // --------------------------- CMgaProgressDlg 00006 00007 class ATL_NO_VTABLE CMgaProgressDlg : 00008 public CComObjectRootEx<CComSingleThreadModel>, 00009 public CComCoClass<CMgaProgressDlg, &__uuidof(MgaProgressDlg)>, 00010 public IMgaProgressDlg 00011 { 00012 public: 00013 CMgaProgressDlg(); 00014 ~CMgaProgressDlg(); 00015 00016 DECLARE_REGISTRY_RESOURCEID(IDR_MGAPROGRESSDLG) 00017 DECLARE_PROTECT_FINAL_CONSTRUCT() 00018 00019 BEGIN_COM_MAP(CMgaProgressDlg) 00020 COM_INTERFACE_ENTRY(IMgaProgressDlg) 00021 END_COM_MAP() 00022 00023 // ------- Properties 00024 00025 STDMETHOD(SetTitle)(BSTR title); 00026 STDMETHOD(SetLine)(int line, BSTR msg); 00027 STDMETHOD(StartProgressDialog)(HWND hwndParent); 00028 STDMETHOD(HasUserCancelled)(VARIANT_BOOL *p); 00029 STDMETHOD(SetProgress)(long completed, long total); 00030 STDMETHOD(StopProgressDialog)(); 00031 00032 // ------- Attributes 00033 00034 protected: 00035 CString title; 00036 CString lines[2]; 00037 00038 CDialog dlg; 00039 }; 00040 00041 #endif//MGA_MGAPROGRESSDLG_H