clidemo1.h
来自「文件名称:新曦 我的资源 搜索软件 源程序(Borland Delphi 7)说」· C头文件 代码 · 共 46 行
H
46 行
//---------------------------------------------------------------------------
#ifndef CliDemo1H
#define CliDemo1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include "WSocket.hpp"
//---------------------------------------------------------------------------
class TClientForm : public TForm
{
__published: // IDE-managed Components
TMemo *DisplayMemo;
TPanel *Panel1;
TLabel *LineLabel;
TLabel *Label1;
TLabel *Label2;
TEdit *SendEdit;
TButton *SendButton;
TButton *DisconnectButton;
TEdit *PortEdit;
TEdit *ServerEdit;
TWSocket *CliSocket;
void __fastcall DisconnectButtonClick(TObject *Sender);
void __fastcall SendButtonClick(TObject *Sender);
void __fastcall CliSocketDataAvailable(TObject *Sender, WORD Error);
void __fastcall CliSocketSessionConnected(TObject *Sender, WORD Error);
void __fastcall CliSocketSessionClosed(TObject *Sender, WORD Error);
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
void __fastcall FormShow(TObject *Sender);
private: // User declarations
char Buffer[1024];
int Count;
WORD ConnectError;
BOOL Initialized;
void __fastcall ProcessCommand(AnsiString Cmd);
public: // User declarations
__fastcall TClientForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern TClientForm *ClientForm;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?