12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- /********************************************************************************
- * File Name: ListBox.h
- * Function Describe: ListBox.c declare module
- * Relate Module: GUI.c
- * Writer: Shliangwen
- * Date: 2016-2-1
- *******************************************************************************/
- #ifndef __LIST_BOX_H
- #define __LIST_BOX_H
- /*****************************Begin of Module*********************************************/
- #include "ListBoxSMS.h"
-
- #define LIST_TOPX 0
- #define LIST_TOPY 30
- #define LIST_ROW 5
- #define LIST_BAR_LEN 126
- #define LIST_ITEM_NUM_MAX 200
- //#define LIST_ITEM_TEXT_LEN_MAX 17 //瘥誯★嚗��嚗㗇遬蝷箏�蝚虫葡��憭折鵭摨佗��蓥�摮𡑒�, 撖嫣�銝剜�銝�銝芣�摮𣂼�2銝芸����摨磰������潮��齿遬蝷箄��?
- #define N 100
- #pragma pack(push)
- #pragma pack(1)
- typedef struct SUT_LIST_BOX
- {
- char **item;
- unsigned short itemnum; //item number
- unsigned short handle; //current item
- unsigned short page; //menu page(first item of page)
- unsigned short pgaenum;
- char unicode;//*item ������蝚虫葡蝻𣇉��孵� 0--�𪚩nicode蝻𣇉� 1--unicode蝻𣇉�
- char features[LIST_ITEM_NUM_MAX];//�寞�?�臭誑�冽䔉摮睃��暹��寞�抒�嚗峕�憒�銁蝥選�蝳餌瑪蝑劐縑�?
- //char *item[LIST_ITEM_NUM_MAX];
- const char **icon;//�暹��𡑒”
- unsigned short iconnum;//�暹�銝芣㺭
- /////////////SMS add/////////////////
- SUT_LIST_BOX_SMS_INFO boxinfo[LIST_ROW];
- unsigned char up_down_flag;
- unsigned short totalnum;
- unsigned short notehandle;
- unsigned char pageChange;
- }SUT_LIST_BOX;
- #pragma pack(pop)
- extern SUT_LIST_BOX sutListBox;
- void ListBoxInitSMS(SUT_LIST_BOX *p,unsigned short totalnum,const char **iconlist,char unicode);
- void ListBoxShowSMS(SUT_LIST_BOX *p);
- void ListBoxInit(struct SUT_LIST_BOX *p,char **itemlist,char unicode,const char **iconlist,char *features);
- unsigned long ListBoxResponse(struct SUT_LIST_BOX *p);
- void StrIntercept(char *des,char *src,unsigned short len);
- unsigned long ListBoxResponseSMS(SUT_LIST_BOX *p);
- /*******************************End of Module********************************************/
- #endif
|