📄 aphearsaysetbar.c
字号:
/****************************************************************************/
/* */
/* Copyright (C) 2005 SHENZHEN MEIJIN CO.LTD */
/* */
/* FILE NAME: ApHearSaySetBar.c */
/* MODULE NAME: AP应用程序 */
/* DESCRIPTION: 本文件定义了听说教程设置编辑窗口函数 */
/* */
/* FUNCTIONS: */
/* */
/****************************************************************************/
/* NAME DATE REMARKS */
/* ========== ============ ==============================================*/
/* DennyHan 2006-03-10 V1.00B */
/****************************************************************************/
#include "Ap.h"
#include "ApHearsaySet.h"
#define APHSSET_BTN11_ICON1 0//IDB_NUM1
#define APHSSET_BTN11_ICON2 0//IDB_NUM1
#define APHSSET_BTN12_ICON1 0//IDB_NUM2
#define APHSSET_BTN12_ICON2 0//IDB_NUM2
#define APHSSET_BTN21_ICON1 0//IDB_NUM1
#define APHSSET_BTN21_ICON2 0//IDB_NUM1
#define APHSSET_BTN22_ICON1 0//IDB_NUM2
#define APHSSET_BTN22_ICON2 0//IDB_NUM2
#define APHSSET_BTN31_TEXT1 "确定"
#define APHSSET_BTN32_TEXT1 "取消"
#define APHSSET_BTN31_ICON1 IDB_NUM1
#define APHSSET_BTN31_ICON2 IDB_NUM1_SELECTED
#define APHSSET_BTN32_ICON1 IDB_NUM2
#define APHSSET_BTN32_ICON2 IDB_NUM2_SELECTED
/****************************************************************************/
/* FUNCTION: INT ApHearsaySetBar11Proc( APGUI_STRUCT *pGui, */
/* UINT uEvent, UINT uParam ) */
/* INPUTS: NONE */
/* OUTPUTS: NONE */
/* RETURN: 事件处理结束后的的返回值 */
/****************************************************************************/
/* NAME DATE REMARKS */
/* ========== ============ ==============================================*/
/* DennyHan 2006-03-10 V1.00B */
/****************************************************************************/
INT ApHearsaySetBar11Proc( APGUI_STRUCT *pGui, UINT uEvent, UINT uParam )
{
return 0;
}
/****************************************************************************/
/* FUNCTION: INT ApHearsaySetBar12Proc( APGUI_STRUCT *pGui, */
/* UINT uEvent, UINT uParam ) */
/* INPUTS: NONE */
/* OUTPUTS: NONE */
/* RETURN: 事件处理结束后的的返回值 */
/****************************************************************************/
/* NAME DATE REMARKS */
/* ========== ============ ==============================================*/
/* DennyHan 2006-03-10 V1.00B */
/****************************************************************************/
INT ApHearsaySetBar12Proc( APGUI_STRUCT *pGui, UINT uEvent, UINT uParam )
{
return 0;
}
//****************************************************************************/
/* FUNCTION: INT ApHearsaySetBar21Proc( APGUI_STRUCT *pGui, */
/* UINT uEvent, UINT uParam ) */
/* INPUTS: NONE */
/* OUTPUTS: NONE */
/* RETURN: 事件处理结束后的的返回值 */
/****************************************************************************/
/* NAME DATE REMARKS */
/* ========== ============ ==============================================*/
/* DennyHan 2006-03-10 V1.00B */
/****************************************************************************/
INT ApHearsaySetBar21Proc( APGUI_STRUCT *pGui, UINT uEvent, UINT uParam )
{
return 0;
}
/****************************************************************************/
/* FUNCTION: INT ApHearsaySetBar22Proc( APGUI_STRUCT *pGui, */
/* UINT uEvent, UINT uParam ) */
/* INPUTS: NONE */
/* OUTPUTS: NONE */
/* RETURN: 事件处理结束后的的返回值 */
/****************************************************************************/
/* NAME DATE REMARKS */
/* ========== ============ ==============================================*/
/* DennyHan 2006-03-10 V1.00B */
/****************************************************************************/
INT ApHearsaySetBar22Proc( APGUI_STRUCT *pGui, UINT uEvent, UINT uParam )
{
return 0;
}
/****************************************************************************/
/* FUNCTION: INT ApHearsaySetBar31Proc( APGUI_STRUCT *pGui, */
/* UINT uEvent, UINT uParam ) */
/* INPUTS: NONE */
/* OUTPUTS: NONE */
/* RETURN: 事件处理结束后的的返回值 */
/****************************************************************************/
/* NAME DATE REMARKS */
/* ========== ============ ==============================================*/
/* DennyHan 2006-03-10 V1.00B */
/****************************************************************************/
INT ApHearsaySetBar31Proc( APGUI_STRUCT *pGui, UINT uEvent, UINT uParam )
{
MButtonResId aBarRes;
MButtonIconRes aBarIcon;
INT nRet;
aBarIcon.btIconUpID=(UINT8*)MAKE_ID(APHSSET_BTN31_ICON1);
aBarIcon.btIconDnID=(UINT8*)MAKE_ID(APHSSET_BTN31_ICON2);
aBarRes.btIconID=&aBarIcon;
pGui->nCtrlParam2=(INT)&aBarRes;
GraphDisableRefresh();
nRet=ButtonHandleEvent( (APGUI_STRUCT_MODEL *)pGui,uEvent,uParam);
if (uEvent==EVENT_DRAW)
{
GraphDrawText(pGui->nX+pGui->uWidth+APHSSET_BTN3_TXSP,
pGui->nY,0,0,APHSSET_BTN31_TEXT1);
}
GraphEnableRefresh();
return nRet;
}
/****************************************************************************/
/* FUNCTION: INT ApHearsaySetBar32Proc( APGUI_STRUCT *pGui, */
/* UINT uEvent, UINT uParam ) */
/* INPUTS: NONE */
/* OUTPUTS: NONE */
/* RETURN: 事件处理结束后的的返回值 */
/****************************************************************************/
/* NAME DATE REMARKS */
/* ========== ============ ==============================================*/
/* DennyHan 2006-03-10 V1.00B */
/****************************************************************************/
INT ApHearsaySetBar32Proc( APGUI_STRUCT *pGui, UINT uEvent, UINT uParam )
{
MButtonResId aBarRes;
MButtonIconRes aBarIcon;
INT nRet;
aBarIcon.btIconUpID=(UINT8*)MAKE_ID(APHSSET_BTN32_ICON1);
aBarIcon.btIconDnID=(UINT8*)MAKE_ID(APHSSET_BTN32_ICON2);
aBarRes.btIconID=&aBarIcon;
pGui->nCtrlParam2=(INT)&aBarRes;
GraphDisableRefresh();
nRet=ButtonHandleEvent( (APGUI_STRUCT_MODEL *)pGui,uEvent,uParam);
if (uEvent==EVENT_DRAW)
{
GraphDrawText(pGui->nX+pGui->uWidth+APHSSET_BTN3_TXSP,
pGui->nY,0,0,APHSSET_BTN32_TEXT1);
}
GraphEnableRefresh();
return nRet;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -