|
发表于 2007-12-26 09:55:09
|
显示全部楼层
定义几个结构体,同样按照showcategory写就是了.参考如下:
#if defined(__STOCK_MARKET)
typedef struct
{
U8 Menu;
U16 StringId;
S8 Content[70];
S8 Number_to_send[20];
U16 InstructionID;
}msg_stock_market;
typedef enum
{
Menu_stock_market_1,
Menu_stock_market_2,
Menu_stock_market_3,
Menu_stock_market_4,
Menu_stock_market_5,
Menu_stock_market_6,
Menu_stock_market_7,
Menu_stock_market_8,
Menu_stock_market_9,
Menu_stock_market_10
}stock_market_menu_list;
U8 stock_market_index=0;
U8 stock_market_index_next_level=0;
#define NUM_OF_STOCKMARKET_ITEM 10
msg_stock_market stock_market_menu[NUM_OF_STOCKMARKET_ITEM]=
{
{Menu_stock_market_1, STR_ID_STOCK_MARKET_1, "http://143.lexiu.net/istywap", "", STR_ID_STOCK_MARKET_INSTRUCTION_1},
{Menu_stock_market_2, STR_ID_STOCK_MARKET_2, "49567", "5014114",STR_ID_STOCK_MARKET_INSTRUCTION_2},
{Menu_stock_market_3, STR_ID_STOCK_MARKET_3, "49568", "5014114",STR_ID_STOCK_MARKET_INSTRUCTION_3},
{Menu_stock_market_4, STR_ID_STOCK_MARKET_4, "49569", "5014114",STR_ID_STOCK_MARKET_INSTRUCTION_4},
{Menu_stock_market_5, STR_ID_STOCK_MARKET_5, "ZX70495", "50141", STR_ID_STOCK_MARKET_INSTRUCTION_5},
{Menu_stock_market_6, STR_ID_STOCK_MARKET_6, "49571", "5014114",STR_ID_STOCK_MARKET_INSTRUCTION_6},
{Menu_stock_market_7, STR_ID_STOCK_MARKET_7, "zx72495", "50141", STR_ID_STOCK_MARKET_INSTRUCTION_7},
{Menu_stock_market_8, STR_ID_STOCK_MARKET_8, "49573", "5014114",STR_ID_STOCK_MARKET_INSTRUCTION_8},
{Menu_stock_market_9, STR_ID_STOCK_MARKET_9, "ZX74495", "50141", STR_ID_STOCK_MARKET_INSTRUCTION_9},
{Menu_stock_market_10, STR_ID_STOCK_MARKET_10,"ZX75495", "50141", STR_ID_STOCK_MARKET_INSTRUCTION_10}
};
#define NUM_OF_STOCKMARKET_NEXT_LEVEL 2
U16 LIST_OF_STOCKMARKET_NEXT_LEVEL[NUM_OF_STOCKMARKET_NEXT_LEVEL]={STR_ID_STOCK_ORDER,STR_ID_STOCK_INSTRUCTION};
/*u16 LIST_OF_INSTRUCTION[NUM_OF_STOCKMARKET_NEXT_LEVEL]=
{
STR_ID_STOCK_MARKET_INSTRUCTION_1,
STR_ID_STOCK_MARKET_INSTRUCTION_2,
STR_ID_STOCK_MARKET_INSTRUCTION_3,
STR_ID_STOCK_MARKET_INSTRUCTION_4,
STR_ID_STOCK_MARKET_INSTRUCTION_5,
STR_ID_STOCK_MARKET_INSTRUCTION_6,
STR_ID_STOCK_MARKET_INSTRUCTION_7,
STR_ID_STOCK_MARKET_INSTRUCTION_8,
STR_ID_STOCK_MARKET_INSTRUCTION_9,
STR_ID_STOCK_MARKET_INSTRUCTION_10
};
*/
#endif |
|