📄 cform.cpp
字号:
#include "CForm.h"
CForm::CForm(AEEApplet* p)
{
pAEEApplet = p;
ISHELL_CreateInstance( p->m_pIShell, AEECLSID_FORM, (void**)&pIForm);
}
CForm::~CForm()
{
RELEASEIF( this->pIForm);
}
int CForm::getWidget(CForm *po, uint16 wid, IWidget **ppo)
{
return(IFORM_GetWidget(po->pIForm, wid, ppo));
}
void CForm::setHandler(CForm *p, HandlerDesc *pd)
{
IFORM_SetHandler(p->pIForm, pd);
}
int setResText(CForm *p, uint16 f, const char *r, uint16 i)
{
return(IFORM_SetResText(p->pIForm, f, r, i));
}
int setSoftkeys(CForm *po, const char *pszResFile, uint16 idSoftkey1, uint16 idSoftkey2)
{
return(IFORM_SetSoftkeys(po->pIForm, pszResFile, idSoftkey1, idSoftkey2));
}
int CForm::setText(CForm *po, uint16 fid, AECHAR *txt)
{
return(IFORM_SetText(po->pIForm, fid, txt));
}
int CForm::setWidget(CForm *po, uint16 wid, IWidget *ppo)
{
return(IFORM_SetWidget(po->pIForm, wid, ppo));
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -