📄 strlrview.h
字号:
#ifndef _STR_VIEW_
#define _STR_VIEW_
#include "StrList.h"
#define ITEM_POINTOR 1 /*指针型ITEM*/
#define ITEM_NOD 0 /*内存块类型ITEM*/
/*struct _VIEW_STRUCT_;*/ /*预定义*/
/*typedef _VIEW_STRUCT_ *pLRVIEW;*/
typedef struct _VIEW_STRUCT_
{
pSTRLIST strlist;
short localx;
short localy;
short width;
short high;
short coursorx;
short baseindex;/*用以翻叶控制*/
int ospnum;/*当前可以显示的ITEM数量*/
int cellnum;
int locked;
int itemmode;
void (*OwnerDrawCell)( void * ,int ,int ,int ,int ,int ,int );/*绘画单元表格*/
void (*OwnerDrawFrame)(void * );
void (*OwnerDrawLrText)(void * , int,int,int,int);
void (*OwnerDrawLrArows)(void * );
void (*OwnerDrawLrArrow)(void * ,int )/*left == 1:左箭头 left==0:右箭头*/;
}LRVIEW,*pLRVIEW ;
#ifdef __cplusplus
extern "C"{
#endif
extern pLRVIEW CreateLrList(int x,int y,int width,int high,int itemnum,int ptrmode);/*ptrmode :是否建立指针缓冲*/
extern void DeleteLrList(pLRVIEW pview);
extern void FreeLrListItems(pLRVIEW pview);
extern void ShowLrList(pLRVIEW pview);
extern int MoveLrCursor(pLRVIEW pview,int xstep,int ystep);
extern int AddToLrList(pLRVIEW pview,char *data);
extern int InsertToLrListt(pLRVIEW pview,char *data,int cellx,int celly);
extern void DelFromLrList(pLRVIEW pview,int index);
extern char * GetLrListData(pLRVIEW pview,int index);
extern void LockLrList(pLRVIEW pview);
extern void UnLockLrList(pLRVIEW pview);
extern int IsLrLocked(pLRVIEW pview);
/*可被控件实例的函数替换*/
void DrawLrArrow(pLRVIEW pview ,int leftenable)/*left == 1:左箭头 left==0:右箭头*/;
void DrawLrArows(pLRVIEW pview);
void DrawLrText(void *,int ,int ,int ,int );
void DrawLrCell(void *,int ,int ,int ,int ,int ,int );
void DrawLrFrame(pLRVIEW pview);
#ifdef __cplusplus
}
#endif
#define LR_CELL_WIDTH (64)
#define LR_CELL_HIGH 24
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -