httpdown.h
来自「一款类似于熊猫烧香的下载者」· C头文件 代码 · 共 60 行
H
60 行
//---------------------------------------------------------------------------
#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 + =
减小字号Ctrl + -
显示快捷键?