mainattr.h
来自「用C++ builer 实现的关于文件操作经典实例 里面有所有工程需要的源代码」· C头文件 代码 · 共 62 行
H
62 行
//---------------------------------------------------------------------------
#ifndef MainAttrH
#define MainAttrH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <FileCtrl.hpp>
//---------------------------------------------------------------------------
class TMainForm : public TForm
{
__published: // IDE-managed Components
TPanel *Panel1;
TFileListBox *FileListBox1;
TDirectoryListBox *DirectoryListBox1;
TDriveComboBox *DriveComboBox1;
TEdit *Edit1;
TGroupBox *GroupBox1;
TCheckBox *CheckBox1;
TCheckBox *CheckBox2;
TCheckBox *CheckBox3;
TCheckBox *CheckBox4;
TButton *ReadButton;
TButton *ModifyButton;
TButton *ExitButton;
TLabel *Label1;
TLabel *Label2;
TLabel *Label5;
TLabel *FileName;
TLabel *FilePathName;
TLabel *ChangeDate;
TLabel *Label3;
TLabel *FileSize;
TLabel *CreateDate;
TLabel *AccessDate;
TLabel *Label4;
TLabel *Label6;
void __fastcall ReadButtonClick(TObject *Sender);
void __fastcall ModifyButtonClick(TObject *Sender);
void __fastcall ExitButtonClick(TObject *Sender);
void __fastcall FormDestroy(TObject *Sender);
void __fastcall FormCreate(TObject *Sender);
private: // User declarations
FILETIME *CreationTime;
FILETIME *LastAccessTime;
FILETIME *LastWriteTime;
SYSTEMTIME *STime;
AnsiString filename;
int AttrByte;
AnsiString __fastcall TimeToString(SYSTEMTIME *Time);
public: // User declarations
__fastcall TMainForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TMainForm *MainForm;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?