⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unit1.h

📁 与Action相结合,可以解决中文件显示乱码
💻 H
字号:
//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <vcl\Classes.hpp>
#include <vcl\Controls.hpp>
#include <vcl\StdCtrls.hpp>
#include <vcl\Forms.hpp>
#include <vcl\ComCtrls.hpp>
#include "RichView.hpp"
#include "RVScroll.hpp"
#include "RVPP.hpp"
#include "CRVPP.hpp"
#include "CtrlImg.hpp"
#include <vcl\ExtCtrls.hpp>
#include "RVStyle.hpp"
#include "PtblRV.hpp"
#include <vcl\Dialogs.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
    TPageControl *PageControl1;
    TTabSheet *TabSheet1;
    TRichView *RichView1;
    TTabSheet *TabSheet2;
    TRVPrintPreview *RVPrintPreview1;
    TPanel *Panel3;
    TScrollBar *ScrollBar1;
    TPanel *Panel1;
    TImage *Image1;
    TImage *Image2;
    TPanel *Panel2;
    TLabel *Label1;
    TButton *Button1;
    TEdit *Edit1;
    TButton *btnPrint;
    TRVStyle *RVStyle1;
    TRVPrint *RVPrint1;
    TPrintDialog *PrintDialog1;
    TStatusBar *StatusBar1;
    void __fastcall PageControl1Change(TObject *Sender);
    void __fastcall ScrollBar1Change(TObject *Sender);
    void __fastcall btnPrintClick(TObject *Sender);
    void __fastcall RVPrint1Formatting(TCustomRichView *Sender,
    int PageCompleted, TRVPrintingStep Step);
    void __fastcall RVPrint1SendingToPrinter(TCustomRichView *Sender,
    int PageCompleted, TRVPrintingStep Step);
    void __fastcall RVPrint1PagePrepaint(TRVPrint *Sender, int PageNo,
    TCanvas *Canvas, bool Preview, TRect &PageRect, TRect &PrintAreaRect);
    void __fastcall Panel3Resize(TObject *Sender);
private:	// User declarations
    void __fastcall RVPrint1PrintComponent(TCustomRVPrint *Sender, TControl *PrintMe,
    Graphics::TBitmap *&ComponentImage);
    bool PreviewCreated;
    void UpdatePreview();
public:		// User declarations
    __fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern TForm1 *Form1;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

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