Files
winapp/ActCodeFormUnit.h
T
2026-06-23 21:59:23 +08:00

45 lines
1.4 KiB
C++

//---------------------------------------------------------------------------
#ifndef ActCodeFormUnitH
#define ActCodeFormUnitH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <Vcl.Mask.hpp>
#define UR_RESET 0x00
#define UR_VERIFY 0x01
//---------------------------------------------------------------------------
class TActCodeForm : public TForm
{
__published: // IDE-managed Components
TLabeledEdit *m_leActCode;
TButton *m_btnOk;
TLabel *m_lbTips;
TButton *m_btnReset;
void __fastcall FormCreate(TObject *Sender);
void __fastcall OnCodeChange(TObject *Sender);
void __fastcall OnCodeKeyPress(TObject *Sender, System::WideChar &Key);
void __fastcall OnOkClick(TObject *Sender);
void __fastcall OnResetClick(TObject *Sender);
private: // User declarations
int m_tExpire;
MESSAGE void __fastcall UMUserConfirm(TMessage &msg);
BEGIN_MESSAGE_MAP
MESSAGE_HANDLER(UM_USERCONFIRM, TMessage, UMUserConfirm)
END_MESSAGE_MAP(TForm)
public: // User declarations
String m_sCode;
__fastcall TActCodeForm(TComponent* Owner, String code, int exp);
};
//---------------------------------------------------------------------------
extern PACKAGE TActCodeForm *ActCodeForm;
//---------------------------------------------------------------------------
#endif