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

55 lines
1.8 KiB
C++

//---------------------------------------------------------------------------
#ifndef VerifyCodeFormUnitH
#define VerifyCodeFormUnitH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include "PNGButton.hpp"
#include <Vcl.ExtCtrls.hpp>
#include <Vcl.Imaging.jpeg.hpp>
#include <Data.Bind.Components.hpp>
#include <Data.Bind.ObjectScope.hpp>
#include <REST.Client.hpp>
#include <REST.Types.hpp>
#include "TransparentEditUnit.h"
//---------------------------------------------------------------------------
class TVerifyCodeForm : public TForm
{
__published: // IDE-managed Components
TPNGButton *m_btnOk;
TImage *m_imgBk;
TPNGButton *m_btnClose;
TLabel *m_lblTitle;
TImage *m_imgCode;
Vcl::Stdctrls::TEdit *m_editCode;
TRESTClient *RESTClient;
TRESTRequest *RESTRequest;
TRESTResponse *RESTResponse;
void __fastcall FormCreate(TObject *Sender);
void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall CodeImgClick(TObject *Sender);
void __fastcall OkClick(TObject *Sender);
private: // User declarations
String m_sKey;
String m_sCode;
void __fastcall RefreshCode();
void __fastcall WMNCHitTest(TWMNCHitTest &Msg);
BEGIN_MESSAGE_MAP
MESSAGE_HANDLER(WM_NCHITTEST, TWMNCHitTest, WMNCHitTest)
END_MESSAGE_MAP(TForm)
public: // User declarations
String __fastcall GetCode(){return m_sCode;};
String __fastcall GetKey(){return m_sKey;};
__fastcall TVerifyCodeForm(TComponent* Owner, String baseUrl);
};
//---------------------------------------------------------------------------
extern PACKAGE TVerifyCodeForm *VerifyCodeForm;
//---------------------------------------------------------------------------
#endif