udpclient.~h
来自「一个用C++ builder6.0做的UDP通信测试程序」· ~H 代码 · 共 41 行
~H
41 行
//---------------------------------------------------------------------------
#ifndef UDPClientH
#define UDPClientH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#define WM_SOCK WM_USER+100
//---------------------------------------------------------------------------
class TLANForm : public TForm
{
__published: // IDE-managed Components
TGroupBox *GroupBox1;
TEdit *Addr;
TLabel *Label1;
TLabel *Label2;
TComboBox *Prot;
TLabel *Label3;
TEdit *Port;
TButton *Button1;
TMemo *TxtEdit;
void __fastcall FormCreate(TObject *Sender);
void __fastcall Button1Click(TObject *Sender);
void __fastcall FormDestroy(TObject *Sender);
private: // User declarations
void __fastcall OnRecv(TMessage &Message);
public: // User declarations
__fastcall TLANForm(TComponent* Owner);
BEGIN_MESSAGE_MAP
VCL_MESSAGE_HANDLER(WM_SOCK,TMessage,OnRecv);
END_MESSAGE_MAP(TForm);
};
//---------------------------------------------------------------------------
extern PACKAGE TLANForm *LANForm;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?