static PRESULT seca_list_item_con_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2) { PRESULT ret = PROC_PASS; VACTION unact; BITMAP *newBmp,*curBmp,*bmp; UINT8 bID ; UINT16 icon_id; bID = OSD_GetObjID(pObj); bmp = (BITMAP*)OSD_GetFocusObject(pObj); switch(event) { case EVN_ITEM_PRE_CHANGE: newBmp = (BITMAP*)param1; curBmp = (BITMAP*)param2; if(newBmp != curBmp) { newBmp->head.style.bHLIdx = BMP_HLEDIT_IDX; curBmp->head.style.bHLIdx = BMP_HL_IDX; } win_seca_check_focusID(OSD_GetObjID(newBmp)); break; } return ret; }
static PRESULT seca_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2) { PRESULT ret = PROC_PASS; switch(event) { case EVN_PRE_OPEN: //patch_softcam_key_init(); win_init_pstring(30); win_seca_check_focusID(1); win_seca_load_select(); //wincom_open_subtitle(pObj,RS_CODE_EDIT,0); wincom_open_subtitle_ex(pObj,RS_CODE_EDIT,0,(W_L -SUBMENU_W_L ),-4,(W_W-SUBMENU_W_W)); break; case EVN_POST_OPEN: //wincom_open_help(pObj,seca_helpinfo , HELP_CNT); wincom_open_commen_help2(pObj,seca_helpinfo , HELP_CNT); break; case EVN_PRE_CLOSE: //win_seca_save_sat_select(); softcam_save_keydata_to_flash_1(); /* Make OSD not flickering */ *((UINT32*)param2) &= ~C_CLOSE_CLRBACK_FLG; break; case EVN_POST_CLOSE: wincom_close_subtitle(); wincom_close_help(); OSD_TrackObject( (POBJECT_HEAD) &g_win_mainmenu, C_UPDATE_ALL); break; case EVN_MSG_GOT: default: break; } return ret; }