MTK创建菜单的过程
//Step 1, Create menu
create_fixed_list();
Create_fixed_matrix();
//step2, Create menuitems();
create_fixed_text_menuitems();
create_fixed_icontext_menuitems();
create_fixed_icontext_list_menuitems();
create_fixed_twostate_menuitems();
//step3, Associate menu and menuitems
associate_fixed_icontext_list();
associate_fixed_icontext_list_list();
associate_fixed_icontext_list_matrix();
associate_fixed_icontext_matrix();
associate_fixed_multirow_list_list();
associate_fixed_text_list();
associate_fixed_text_matrix();
associate_fixed_twostate_list();
associate_fixed_twostate_matrix();
//step4, Set menuitems date
For(i=0;i<number_of_items;i++)
add_fixed_icontext_item(list_of_items[i],list_of_icon[i]);
add_fixed_icontext_items();
add_location_fixed_icontext_item();
add_fixed_text_item();
add_fixed_text_items();
add_location_fixed_text_item();
add_fixed_twostate_item();
add_fixed_twostate_items();
add_location_fixed_twostate_item();
add_fixed_icontext_list_item_icon();
add_fixed_icontext_list_item_text();
//step5, Register menu key handler
register_fixed_list_keys();
register_fixed_list_shortcut_handler();
register_fixed_matrix_keys();
register_fixed_matrix_shortcut_handler();
//step6, Rigister menu highlight handler
register_fixed_list_highlight_handler(standard_list_highlight_handler);
register_fixed_list_unhighlight_handler
MTK菜单处理 来自淘豆网m.daumloan.com转载请标明出处.