form_Progress.cpp
上传用户:gelin96
上传日期:2017-01-08
资源大小:20993k
文件大小:1k
- //---------------------------------------------------------------------------
- #include <vcl.h>
- #pragma hdrstop
- #include "form_Progress.h"
- //---------------------------------------------------------------------------
- #pragma package(smart_init)
- #pragma resource "*.dfm"
- Tm_frmProgress *m_frmProgress;
- //---------------------------------------------------------------------------
- __fastcall Tm_frmProgress::Tm_frmProgress(TComponent* Owner)
- : TForm(Owner)
- {
- }
- //---------------------------------------------------------------------------
- void __fastcall Tm_frmProgress::m_TimerTimer(TObject *Sender)
- {
- if (m_pbStatus->Position < 100)
- {
- m_pbStatus->Position++;
- }
- }
- //---------------------------------------------------------------------------
- void __fastcall Tm_frmProgress::FormShow(TObject *Sender)
- {
- m_pbStatus->Position = 0;
- }
- //---------------------------------------------------------------------------
- void __fastcall Tm_frmProgress::FormHide(TObject *Sender)
- {
- m_pbStatus->Position = 0;
- }
- //===========================================================================
- ////////////////////////////// Global information /////////////////////////
- //===========================================================================
- bool Tm_frmProgress::Get_FormShow(void)
- {
- return m_frmProgress->Visible;
- }
- //---------------------------------------------------------------------------