void ExecuteCurrHiliteHandler(S32 hiliteid)
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
{
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
…
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
ExecuteCurrHiliteHandler_Ext(hiliteid);
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
…
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
}
void ExecuteCurrHiliteHandler_Ext(S32 hiliteid)
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
{
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
FuncPtr currFuncPtr = NULL;
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
S32 hiliteItemID;
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
currHiliteID = (U16) hiliteid;
if (g_mask_hilite_mask != 0xFFFFFFFF)
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
{
/* If the screen uses MaskHiliteItems */ ![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
U8 i;
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
U8 noOfChild = (U8) GetNumOfChild(g_mask_hilite_partent_id);
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
S32 index = -1;
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
MMI_ASSERT(noOfChild <= 32);
/* calculate the real index of the menu */
for (i = 0; i < noOfChild; i++)
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
{
if (IsBitSet(g_mask_hilite_mask, i))
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
{
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
index++;
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
}
if (index == hiliteid)
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
{
break;
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
}
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
}
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
hiliteItemID = GetSeqItemId_Ext((U16) currParentID, (S16) i);
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
currFuncPtr = mmi_frm_get_hilite_hdlr((U16)hiliteItemID);
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
}
else ![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
#endif
/* __MMI_FRAMEWORK_BACKWARD_COMPATIBLE__ */ ![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
{
/* check if menuitem is hidden */ ![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
hiliteItemID = GetSeqItemId_Ext((U16) currParentID, (S16) hiliteid);
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
currFuncPtr = mmi_frm_get_hilite_hdlr((U16)hiliteItemID);
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
}
if (currFuncPtr)
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
{
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
(*currFuncPtr) ();
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
}
![菜单响应函数_菜单函数](https://s2.51cto.com/images/editer/InBlock.gif)
}