picedt.h

来自「一套及时通讯的原码」· C头文件 代码 · 共 42 行

H
42
字号
//---------------------------------------------------------------------------
#ifndef PicEdtH
#define PicEdtH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Dialogs.hpp>
#include <ExtCtrls.hpp>
#include <ExtDlgs.hpp>
//---------------------------------------------------------------------------
class TfcPicEditor : public TForm
{
__published:	// IDE-managed Components
        TButton *OKButton;
        TButton *CancelButton;
        TPanel *Panel;
        TPanel *ImagePanel;
        TImage *Image;
        TButton *LoadButton;
        TButton *SaveButton;
        TButton *ClearButton;
        TOpenPictureDialog *OpenDialog;
        TSavePictureDialog *SaveDialog;
        void __fastcall LoadButtonClick(TObject *Sender);
        void __fastcall SaveButtonClick(TObject *Sender);
        void __fastcall ClearButtonClick(TObject *Sender);
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall FormDestroy(TObject *Sender);
private:	// User declarations
        void UpdateImage();
public:		// User declarations
        __fastcall TfcPicEditor(TComponent* Owner);
        TPicture* StoredImage;
        static bool ExecutePictureEditor(TGraphic* AGraphic, TPersistent* DestGraphic);
};
//---------------------------------------------------------------------------
extern PACKAGE TfcPicEditor *fcPicEditor;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?