?? 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+4, 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+4,pGui->nY,0,0,APHSSET_BTN32_TEXT1);
}
GraphEnableRefresh();
return nRet;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -