📄 woff.c
字号:
#include "wOff.h"
int AEEClsCreateInstance(AEECLSID ClsId, IShell *pIShell, IModule *po, void **ppObj)
{
*ppObj = NULL;
if( ClsId == AEECLSID_WOFF )
{
if( AEEApplet_New(sizeof(wOff),
ClsId,
pIShell,
po,
(IApplet**)ppObj,
(AEEHANDLER)wOff_HandleEvent,
(PFNFREEAPPDATA)wOff_FreeAppData) )
{
if(wOff_InitAppData((wOff*)*ppObj))
{
return(AEE_SUCCESS);
}
else
{
IAPPLET_Release((IApplet*)*ppObj);
return EFAILED;
}
}
}
return(EFAILED);
}
static boolean wOff_HandleEvent(wOff* pMe, AEEEvent eCode, uint16 wParam, uint32 dwParam)
{
AECHAR Buf[128];
char tmpBuf[256];
char * str = tmpBuf;
char font;
uint32 valR, valG, valB;
ITypeface *pitf = NULL;
int result;
switch (eCode)
{
case EVT_APP_START:
ISHELL_RegisterNotify(pMe->a.m_pIShell, AEECLSID_WOFF, AEECLSID_TAPI, 0xFFFF0000L | NMASK_TAPI_STATUS);
ISHELL_LoadResString( pMe->a.m_pIShell, "res/common/woff_common.bar", 1009, Buf, sizeof( Buf ));
WSTRTOSTR( Buf, tmpBuf, sizeof( tmpBuf ));
pMe->font_size = ATOI( str );
result=ISHELL_LoadResString( pMe->a.m_pIShell, "res/common/woff_common.bar", 1010, Buf, sizeof( Buf ));
pMe->ttf_font = MALLOC (result);
WSTRTOSTR( Buf, pMe->ttf_font, result+128);
ISHELL_LoadResString( pMe->a.m_pIShell, "res/common/woff_common.bar", 1011, Buf, sizeof( Buf ));
WSTRTOSTR( Buf, tmpBuf, sizeof( tmpBuf ));
pMe->time = ATOI( str );
// LOG_TEXT(pMe->m_pLog, 4, "EVT_APP_START");
ISHELL_LoadResString( pMe->a.m_pIShell, "res/common/woff_common.bar", 1000, Buf, sizeof( Buf )); // 阻蜞屐
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -