📄 listbox.h
字号:
/*
*******************************************************************************
* The real-time kernel "rtCell" *
* Copyright 2005 taowentao, allrights reserved. *
* File : Listbox.h *
* By : taowentao 2006-09-02, 2007-05-12 *
*******************************************************************************
*/
#if !defined(LISTBOX_H)
#define LISTBOX_H
#if !defined(CONTROL_H)
#include "giCell\Wins\include\Control.h"
#endif
#if !defined(SCROLLBAR_H)
#include "giCell\Wins\include\Scrolbar.h"
#endif
/*
*******************************************************************************
* *
*******************************************************************************
*/
#define CTRL_LISTBOX_COMB (0x0200)
#define LISTBOX_ITEM_HEIHGT (CharHeight('J')+1)
#define LISTBOX_COFF (3)
#define LISTBOX_STR_LEN (63)
typedef struct {
VIEW *pView;
PLISTBOXSEL OnListboxSel;
COLOR ObjColor;
COLOR selectColor;
COLOR textColor[2];
CWORD ItemSel;
CWORD Status;
CWORD Count, MaxItems;
OBJ_SCROLBAR Scrolbar;
BYTE** ppStr;
} LISTBOX;
/*
*******************************************************************************
* *
*******************************************************************************
*/
LISTBOX* CreateListbox(int left, int top, int width, int height, VIEW* pParent,
PLISTBOXSEL OnListboxSel, CWORD Style, CWORD Count);
const BYTE * GetListboxSelItem(LISTBOX *pListbox);
void DeleteListbox(LISTBOX *pListbox);
void ListboxDelete(LISTBOX *pList, int item);
void ListboxInsert(LISTBOX *pList, BYTE *s, int item);
void ListboxInsertCurrent(LISTBOX *pList, BYTE *s);
void ListboxAppend(LISTBOX *pList, BYTE *s);
/*
*******************************************************************************
* *
*******************************************************************************
*/
#endif /* end of Listbox.h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -