mtk动态添加菜单

    动态添加菜单,即不是以编译资源的形式在编译资源的时候写死的菜单,而是在手机起来后可以随时增删修改菜单项。比如我要根据一条短信内容,在某个菜单下的增加一个新的菜单项。这里要用到一个category,如下:

/*****************************************************************************
 * FUNCTION
 *  ShowCategory184Screen
 * DESCRIPTION
 *  Displays the category184 screen
 * PARAMETERS
 *  title                   [IN]        Title for the screen
 *  title_icon              [IN]        Icon shown with the title
 *  left_softkey            [IN]        Left softkey label
 *  left_softkey_icon       [IN]        Icon for the Left softkey
 *  right_softkey           [IN]        Right softkey label
 *  right_softkey_icon      [IN]        Icon for the right softkey
 *  number_of_items         [IN]        Number of items to be displayed
 *  get_item_func           [IN]        Function pointer to get next displayed items
 *  get_hint_func           [IN]        Function pointer to get next displayed hint data
 *  highlighted_item        [IN]        Index of item to be highlighted
 *  history_buffer          [IN]        History buffer
 * RETURNS
 *  void
 *****************************************************************************/
void ShowCategory184Screen(
        U16 title,
        U16 title_icon,
        U16 left_softkey,
        U16 left_softkey_icon,
        U16 right_softkey,
        U16 right_softkey_icon,
        S32 number_of_items,
        GetItemFuncPtr get_item_func,
        GetHintFuncPtr get_hint_func,
        S32 highlighted_item,
        U8 *history_buffer);


 

posted @ 2012-09-17 16:22  $逝水无痕$  阅读(170)  评论(0编辑  收藏  举报