Files
StyleTools/Src/ProgressFormUnit.h
2026-09-13 11:54:43 +08:00

76 lines
2.3 KiB
C++

//---------------------------------------------------------------------------
#ifndef ProgressFormUnitH
#define ProgressFormUnitH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.ExtCtrls.hpp>
#include "GlobalUnit.h"
#include <Vcl.Graphics.hpp>
#include <Vcl.ComCtrls.hpp>
//---------------------------------------------------------------------------
class TProgressForm : public TForm
{
__published: // IDE-managed Components
TProgressBar *m_pgProgBar;
TButton *m_btnCancel;
void __fastcall ProgressPaint(TObject *Sender);
void __fastcall FormCreate(TObject *Sender);
void __fastcall OnCancelClick(TObject *Sender);
private: // User declarations
TThread *m_pThread;
TTimer *m_pTimer;
int m_nMaxPos,
m_nPos,
m_iOperation;
int m_iParam;
void* m_pParam;
TCHAR m_strFileName[256];
int m_nNextMinPos,
m_nNextMaxPos;
UINT m_nStyleNum, *m_paIdStyle;
double* m_paOriginPrice, *m_paCurrentPrice, *m_pUserBalance;
void __fastcall TimerProc(TObject* Sender);
MESSAGE void __fastcall WMNCHitTest(TWMNCHitTest &Msg);
MESSAGE void __fastcall UMOperateFailed(TMessage &Message);
MESSAGE void __fastcall UMOperatePercent(TMessage &Message);
MESSAGE void __fastcall UMOperateComplete(TMessage &Message);
MESSAGE void __fastcall UMOperateNextRange(TMessage &Message);
BEGIN_MESSAGE_MAP
MESSAGE_HANDLER(WM_NCHITTEST, TWMNCHitTest, WMNCHitTest)
MESSAGE_HANDLER(MSG_OPERATE_FAILED, TMessage, UMOperateFailed)
MESSAGE_HANDLER(MSG_OPERATE_PERCENT, TMessage, UMOperatePercent)
MESSAGE_HANDLER(MSG_OPERATE_COMPLETE, TMessage, UMOperateComplete)
MESSAGE_HANDLER(MSG_OPERATE_NEXTRANGE, TMessage, UMOperateNextRange)
END_MESSAGE_MAP(TForm)
public: // User declarations
__fastcall TProgressForm(TComponent* Owner);
__fastcall ~TProgressForm();
void __fastcall Operation();
int __fastcall User_Login();
int __fastcall Style_Update();
int __fastcall Compare_Style( int idStyle );
int __fastcall GetOpertaionResult() { return m_iOperationResult; };
int m_iOperationResult;
HWND m_hMain;
private:
};
//---------------------------------------------------------------------------
extern PACKAGE TProgressForm *ProgressForm;
//---------------------------------------------------------------------------
#endif