Example #1
0
static PRESULT cryptowork_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_cryptowork_check_focusID(OSD_GetObjID(newBmp));
		break;
	}

	return ret;

}
Example #2
0
static PRESULT cryptowork_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_cryptowork_check_focusID(1);
		win_cryptowork_load_select();
		wincom_open_subtitle1(pObj,RS_CODE_EDIT,0);
		break;
	case EVN_POST_OPEN:
		wincom_open_help(pObj,cryptowork_helpinfo , HELP_CNT);
		break;
	case EVN_PRE_CLOSE:
		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;
}