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

📄 strview.h

📁 汉字在计算机内存放分为两种情况
💻 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 _LISTVIEW_STRUCT_
{
  pSTRLIST  strlist; 
    short       	localx;
    short		localy; 
    short		width;
    short		high;
    short		coursory;/*单列表*/
    short		baseindex;/*用以翻叶控制*/
    int        		ospnum;/*当前可以显示的ITEM数量*/
    int			cellnum;
    int			locked;
    int        		itemmode;
    int			cellwidth;
    int 		cellhigh;
    
  void     		(*OwnerDrawCell)( void *   ,int ,int ,int ,int ,int ,int );/*绘画单元表格*/
  void	   		(*OwnerDrawFrame)(void * );
  void	   		(*OwnerDrawLrText)(void * , int,int,int,int);  
  
}STRVIEW,*pSTRVIEW ;
 



#ifdef __cplusplus

extern "C"{

#endif

extern pSTRVIEW  CreateStrView(int x,int y,int width,int high,int ospnum,int itemnum,int ptrmode);/*ptrmode :是否建立指针缓冲*/
extern void     DeleteStrView(pSTRVIEW pview);
extern void     FreeStrViewItems(pSTRVIEW pview);
extern void     ShowStrView(pSTRVIEW pview);
extern int      MoveStrViewCursor(pSTRVIEW pview,int xstep,int ystep);
extern int      AddToStrViewEx(pSTRVIEW pview,char *data);
extern int      AddToStrView(pSTRVIEW pview,char *data);

extern int      InsertToStrView(pSTRVIEW pview,char *data,int cellx,int celly);
extern void     DelFromStrView(pSTRVIEW pview,int index);
extern char	*	GetStrViewData(pSTRVIEW pview,int index);
extern void	LockStrView(pSTRVIEW pview);
extern void     UnLockStrView(pSTRVIEW pview);
extern int	IsStrViewLocked(pSTRVIEW pview);

/*可被控件实例的函数替换*/

void DrawStrViewText(void *,int ,int  ,int ,int );
void DrawStrViewCell(void *,int ,int ,int ,int ,int ,int );
void DrawStrViewFrame(pSTRVIEW pview);

#ifdef __cplusplus
}
#endif


#endif

⌨️ 快捷键说明

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