multiline.h

来自「VTMultiLineDemoCB6下载的都知道是什么用的」· C头文件 代码 · 共 41 行

H
41 行
字号
//---------------------------------------------------------------------------
#ifndef MultiLineH
#define MultiLineH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "VirtualTrees.hpp"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// This is a test record. Although it contains the node address of each node,
//    this information is not used in this demo.
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
typedef struct {
   TVirtualNode *Node;                    // Node Address.
   AnsiString NodeTitle;                  // Label for the node.
} TestRec, *ptrTestRec;
//---------------------------------------------------------------------------
class TForm1:public TForm {
__published:                                       // IDE-managed Components
   TVirtualStringTree *vst;
   void __fastcall FormCreate(TObject *Sender);
   void __fastcall vstGetNodeDataSize(TBaseVirtualTree *Sender,
          int &NodeDataSize);
   void __fastcall vstGetText(TBaseVirtualTree *Sender, PVirtualNode Node,
          TColumnIndex Column, TVSTTextType TextType,
          WideString &CellText);
   void __fastcall vstInitNode(TBaseVirtualTree *Sender,
          PVirtualNode ParentNode, PVirtualNode Node,
          TVirtualNodeInitStates &InitialStates);
   void __fastcall vstMeasureItem(TBaseVirtualTree *Sender,
          TCanvas *TargetCanvas, PVirtualNode Node, int &NodeHeight);
private:                                           // User declarations
public:                                            // User declarations
   __fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

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