📄 unit1.h
字号:
//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <NMUDP.hpp>
#include <Psock.hpp>
#include <Dialogs.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
TNMUDP *NMUDP1;
TEdit *Host;
TLabel *Label1;
TGroupBox *GroupBox1;
TEdit *UDPMsg;
TButton *BtSendMsg;
TRichEdit *Output;
TEdit *Port;
TLabel *Label4;
TLabel *Label3;
TGroupBox *GroupBox2;
TEdit *UDPStream;
TButton *BtLoadFile;
TButton *BtSendStream;
TOpenDialog *OpenDialog1;
TStatusBar *StatusBar1;
void __fastcall NMUDP1DataReceived(TComponent *Sender, int NumberBytes,
AnsiString FromIP);
void __fastcall BtSendMsgClick(TObject *Sender);
void __fastcall BtLoadFileClick(TObject *Sender);
void __fastcall BtSendStreamClick(TObject *Sender);
void __fastcall NMUDP1DataSend(TObject *Sender);
void __fastcall NMUDP1InvalidHost(bool &handled);
void __fastcall NMUDP1Status(TComponent *Sender,
AnsiString status);
void __fastcall NMUDP1StreamInvalid(bool &handled,
TStream *Stream);
private: // User declarations
bool ValidStream;
public: // User declarations
__fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -