找回密码
 注册
搜索
查看: 945|回复: 4

[讨论] 请问如何显示动态菜单列表?谢谢!

[复制链接]
发表于 2007-12-25 11:58:41 | 显示全部楼层 |阅读模式
请问如何显示动态菜单列表?谢谢!
发表于 2007-12-26 00:32:28 | 显示全部楼层
写的不明确哦
点评回复

使用道具 举报

发表于 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
点评回复

使用道具 举报

 楼主| 发表于 2008-1-9 21:58:47 | 显示全部楼层

多谢高手指教!

多谢高手指教!
好运!
点评回复

使用道具 举报

发表于 2008-1-14 14:32:19 | 显示全部楼层
还不懂  高人指点我点 [em03]
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-12-26 00:49 , Processed in 0.049160 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表