📄 main.h
字号:
//----------------------------------------------------------------------------
//Borland C++Builder
//Copyright (c) 1987, 1997-2002 Borland International Inc. All Rights Reserved.
//----------------------------------------------------------------------------
//---------------------------------------------------------------------------
#ifndef mainH
#define mainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "ScktComp.hpp"
#include <Buttons.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
#include <Menus.hpp>
#include <FileCtrl.hpp>
//---------------------------------------------------------------------------
struct str{
AnsiString free;
AnsiString drive_name;
AnsiString volume_size;
AnsiString IP;
}Disk;
class TChatForm : public TForm
{
__published: // IDE-managed Components
TBevel *Bevel1;
TStatusBar *StatusBar1;
TPanel *Panel1;
TSpeedButton *SpeedButton1;
TMainMenu *MainMenu1;
TMenuItem *File1;
TMenuItem *FileListenItem;
TMenuItem *FileConnectItem;
TMenuItem *Disconnect1;
TMenuItem *N1;
TMenuItem *Exit1;
TServerSocket *ServerSocket;
TClientSocket *ClientSocket;
TGroupBox *GroupBox1;
TLabel *Label4;
TLabel *LabelSerialNum;
TLabel *LabelFreeSpace;
TLabel *Label5;
TLabel *Label6;
TLabel *Label7;
TLabel *LabelFileSystemFlags;
TLabel *LabelMaxComponentLength;
TLabel *LabelFileSystemNameBuffer;
TLabel *Label8;
TLabel *Label9;
TLabel *Label10;
TLabel *Label15;
TLabel *LabelVolumeSize;
TLabel *Label16;
TLabel *LabelUsed;
TLabel *Label17;
TLabel *LabelDriveType;
TButton *ButtonGetDriveInfo;
TDriveComboBox *DriveComboBox1;
TButton *ButtonChangeVolumeLabel;
TEdit *EditVolumeInfo;
TButton *Button1;
void __fastcall FileConnectItemClick(TObject *Sender);
AnsiString __fastcall FormatSize(double value);
void __fastcall Exit1Click(TObject *Sender);
void __fastcall ClientSocketConnect(TObject *Sender,
TCustomWinSocket *Socket);
void __fastcall ServerSocketAccept(TObject *Sender,
TCustomWinSocket *Socket);
void __fastcall Disconnect1Click(TObject *Sender);
void __fastcall ClientSocketError(TObject *Sender,
TCustomWinSocket *Socket, TErrorEvent ErrorEvent, int &ErrorCode);
void __fastcall ServerSocketClientDisconnect(TObject *Sender,
TCustomWinSocket *Socket);
void __fastcall ButtonGetDriveInfoClick(TObject *Sender);
void __fastcall Button1Click(TObject *Sender, TCustomWinSocket *Socket);
private: // User declarations
public: // User declarations
bool IsServer;
String Server;
__fastcall TChatForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern TChatForm *ChatForm;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -