?? mso_button.c
字號(hào):
/* **************************************************************************************
* Copyright (c) 2004 ZORAN Corporation, All Rights Reserved
* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
*
* File: $Workfile: o_button.c $
*
* Description:
* ============
* Project definition of the MSO_BUTTON functions
*
****************************************************************************************/
#include "Config.h" // Global Configuration - do not remove!
#ifdef DEBUG_UI_TRACE
#undef IFTRACE
#define IFTRACE if (gTraceUI)
#include "Debug\DbgMain.h"
#endif //DEBUG_UI_TRACE
#include "Include\SysDefs.h"
/***************************************************************************************
* Include files
****************************************************************************************/
#include <stdio.h>
#include <string.h>
// Included UI MENU SYSTEM files
#include "GUI\Menu_system\ms_object.h"
#include "gui\menu_system\osd_rendering.h"
#include "gui\menu_system\ms_display.h"
#include "GUI\Menu_system\ms_screen.h"
#include "GUI\Object_class\Button\mso_button.h"
#include "GUI\Resource\Bitmap\bitmap.h"
#include "Menu\menu_operation_def.h"
#ifndef DEBUG_UI_TRACE
#undef dbg_printf(sMsg)
#define dbg_printf(sMsg)
#undef dbgm_printf(sMsg, mode)
#define dbgm_printf(sMsg, mode)
#endif
/***************************************************************************************
* Operation functions
****************************************************************************************/
#define pDescriptorButton ((MS_DESCRIPTOR_BUTTON*)(pThis->mpDescriptor))
/***************************************************************************************
* Function : ButtonOperation
*
* In : pThis = Pointer to the MSO_BUTTON object.
*
* MsOp = Operation ID.
*
* lParam = Parameter associated with an MS_OP if any.
*
* Out : None.
*
* Return : ID of the operation that is to be propagated once processing is done,
* otherwise MS_OP_NONE.
*
* Desc : This is the default operation function for all MSO_BUTTON objects.
****************************************************************************************/
#pragma argsused
MS_OP OBUTTON_Operation(MSO_OBJECT __NEAR* pThis, MS_OP MsOp, UINT32 lParam)
{
switch (MsOp)
{
case MS_OP_ENTER: // Fall Through !!!
{
if(MS_IsRadioButton(pThis))
{
((MS_IsSetRadio(pThis)) ? (MS_ResetRadio(pThis)) : (MS_SetRadio(pThis)));
MS_DisplayAddObject(pThis);
}
MsOp = pDescriptorButton->mMsOp;
}
break;
default:
break;
}
return OTEXT_Operation(pThis, MsOp, lParam);
}
/***************************************************************************************
* Display functions
****************************************************************************************/
/***************************************************************************************
* Function : ButtonFillOSDSeg
*
* In : pThis = Pointer to button object.
* pAbsArea = Absolute area of pThis object.
*
* Out : None.
*
* Return : None.
*
* Desc : Default display function of all button objects. same as text display function
****************************************************************************************/
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -