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

📄 multiline.h

📁 VTMultiLineDemoCB6下载的都知道是什么用的
💻 H
字号:
//---------------------------------------------------------------------------
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -