listbox_impl.h

来自「minigui 1.6.10 8.1开源版」· C头文件 代码 · 共 88 行

H
88
字号
/*** $Id: listbox_impl.h 7960 2007-10-25 05:59:51Z xwyan $**** listbox.h: the head file of ListBox control.**** Copyright (C) 2003 ~ 2007 Feynman Software.** Copyright (C) 1999 ~ 2002, Wei Yongming.**** Create date: 1999/8/31*/#ifndef __LISTBOX_IMPL_H_#define __LISTBOX_IMPL_H_#ifdef  __cplusplusextern  "C" {#endif#define LBIF_NORMAL         0x0000L#define LBIF_SELECTED       0x0001L#define LBIF_USEBITMAP      0x0002L#define LBIF_DISABLE        0x0004L#define LBIF_BOLDSTYLE      0x0008L#define LBIF_BLANK          0x0000L#define LBIF_CHECKED        0x0010L#define LBIF_PARTCHECKED    0x0020L#define LBIF_CHECKMARKMASK  0x00F0Ltypedef struct _LISTBOXITEM {    char*   key;                // item sort key    DWORD   dwFlags;            // item flags    DWORD   dwImage;            // item image    DWORD   dwAddData;          // item additional data    struct  _LISTBOXITEM* next; // next item} LISTBOXITEM;typedef LISTBOXITEM* PLISTBOXITEM;#ifdef _LITE_VERSION    #define DEF_LB_BUFFER_LEN       8#else    #define DEF_LB_BUFFER_LEN       16#endif#define LBF_FOCUS               0x0001typedef struct tagLISTBOXDATA{    DWORD dwFlags;          // listbox flags    STRCMP str_cmp;         // function to compare two string    int itemLeft;           // display left of item    int itemWidth;          // display width of item     int itemMaxWidth;       // max width of all items        int itemCount;          // items count    int itemTop;            // start display item    int itemVisibles;       // number of visible items    int itemHilighted;      // current hilighted item    int itemHeight;         // item height    int selItem;            // record last selected item when use LBS_MOUSEFOLLOW style     LISTBOXITEM* head;      // items linked list head    int buffLen;            // buffer length    LISTBOXITEM* buffStart; // buffer start    LISTBOXITEM* buffEnd;   // buffer end    LISTBOXITEM* freeList;  // free list in buffer     SBPolicyType sbPolicy;  // scrollbar policy type        PLOGFONT lst_font;       // logic font for bold display } LISTBOXDATA;typedef LISTBOXDATA* PLISTBOXDATA;   BOOL RegisterListboxControl (void);void ListboxControlCleanup (void);#ifdef  __cplusplus}#endif#endif  // __LISTBOX_IMPL_H__

⌨️ 快捷键说明

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