Files
AccompanyCube/VerifyFormUnit.h
T
2026-06-13 00:10:11 +08:00

67 lines
1.9 KiB
C++

//---------------------------------------------------------------------------
#ifndef VerifyFormUnitH
#define VerifyFormUnitH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <Vcl.Imaging.pngimage.hpp>
#include "PNGButton.hpp"
#include "GlobalUnit.h"
#include <Vcl.Graphics.hpp>
//---------------------------------------------------------------------------
class TVerifyForm : public TForm
{
__published: // IDE-managed Components
TImage *m_imgBk;
TLabel *m_lblCaption;
Vcl::Extctrls::TPanel *m_panelProgress;
TPaintBox *m_pbProgress;
void __fastcall ProgressPaint(TObject *Sender);
void __fastcall FormCreate(TObject *Sender);
private: // User declarations
TBitmap *m_bmpTileLeft,
*m_bmpTileRight;
TThread *m_pThread;
TTimer *m_pTimer;
int m_nTileWidth,
m_nTileHeight,
m_nMaxPos,
m_nPos,
m_iOperation,
m_iSaveType,
m_iFileType;
TCHAR m_strFileName[256];
int m_nNextMinPos,
m_nNextMaxPos;
MESSAGE void __fastcall WMNCHitTest(TWMNCHitTest &Msg);
MESSAGE void __fastcall UMOperateFailed(TMessage &Message);
MESSAGE void __fastcall UMOperatePercent(TMessage &Message);
MESSAGE void __fastcall UMOperateComplete(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)
END_MESSAGE_MAP(TForm)
public: // User declarations
__fastcall TVerifyForm(TComponent* Owner);
__fastcall ~TVerifyForm();
void __fastcall Operation();
};
//---------------------------------------------------------------------------
extern PACKAGE TVerifyForm *VerifyForm;
//---------------------------------------------------------------------------
#endif