53 lines
1.6 KiB
C++
53 lines
1.6 KiB
C++
//---------------------------------------------------------------------------
|
|
|
|
#ifndef UpdateFormUnitH
|
|
#define UpdateFormUnitH
|
|
//---------------------------------------------------------------------------
|
|
#include <System.Classes.hpp>
|
|
#include <Vcl.Controls.hpp>
|
|
#include <Vcl.StdCtrls.hpp>
|
|
#include <Vcl.Forms.hpp>
|
|
#include <Vcl.ExtCtrls.hpp>
|
|
#include <Vcl.Graphics.hpp>
|
|
#include <Vcl.Imaging.jpeg.hpp>
|
|
#include "PNGButton.hpp"
|
|
#include <Vcl.Imaging.pngimage.hpp>
|
|
#include "UpdateListBoxUnit.h"
|
|
|
|
//---------------------------------------------------------------------------
|
|
class TUpdateForm : public TForm
|
|
{
|
|
__published: // IDE-managed Components
|
|
TImage *m_ImgBkg;
|
|
TPNGButton *m_btnClose;
|
|
TImage *m_ImgFlag;
|
|
UpdateListBoxUnit::TListBox *m_lbUpdateMsg;
|
|
TLabel *m_lbTitle;
|
|
TLabel *m_lbDownloadMsg;
|
|
TLabel *m_lbDownload;
|
|
TLabel *m_lbCurrentVer;
|
|
TLabel *m_lbNewVer;
|
|
void __fastcall FormCreate(TObject *Sender);
|
|
void __fastcall m_lbDownloadMouseEnter(TObject *Sender);
|
|
void __fastcall m_lbDownloadMouseLeave(TObject *Sender);
|
|
void __fastcall m_lbDownloadClick(TObject *Sender);
|
|
void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
|
|
private: // User declarations
|
|
|
|
//ÏûÏ¢´¦Àí
|
|
void __fastcall WMNCHitTest(TWMNCHitTest &Msg);
|
|
BEGIN_MESSAGE_MAP
|
|
MESSAGE_HANDLER(WM_NCHITTEST, TWMNCHitTest, WMNCHitTest)
|
|
END_MESSAGE_MAP(TForm)
|
|
public: // User declarations
|
|
__fastcall TUpdateForm(TComponent* Owner);
|
|
|
|
void ShowMSG();
|
|
|
|
|
|
};
|
|
//---------------------------------------------------------------------------
|
|
extern PACKAGE TUpdateForm *UpdateForm;
|
|
//---------------------------------------------------------------------------
|
|
#endif
|