- enginevc_evc_v720_src.zip
- EngineVC_EVC_V720_060429_opensrc
- App
- Common
- EngineEVC
- EngineVC
- EVCWorkspace.vcb
- EVCWorkspace.vco
- EVCWorkspace.vcw
- GHdr
- PhoneDevEnv.dsw
- PhoneDevEnv.positions
- PhoneDevEnv.sln
- SampleEVC
- SamplePlayerMfc.dsw
- SamplePlayerMfc.positions
- SamplePlayerMfc
- Simulator
- sample.zip
- Sample_V720_060401
- EVC
- GHdr
- Output
- SmEngineWCE_A4.dll
- SmEngineWCE_A4.lib
- SmEngineWCE_A4D.dll
- SmEngineWCE_A4D.lib
- SmEngineWCE_W.dll
- SmEngineWCE_W.lib
- SmEngineWCE_WD.dll
- SmEngineWCE_WD.lib
- SampleEVC
- VC6_VSNET
- Embedded
- App
- GHdr
- Output
- SmEngineW32.dll
- SmEngineW32.lib
- SmEngineW32_D.dll
- SmEngineW32_D.lib
- PhoneDevEnv.dsw
- PhoneDevEnv.positions
- PhoneDevEnv.sln
- Simulator
- SamplePlayerMfc
|
/* UICtrl.c
*/
#include "UICtrl.h"
void UICtrlPostInternalEvent(long event_id,SME_APP_T *pApp){
SME_EVENT_ID_T nEventId=event_id;
SME_EVENT_T *pInteralEvent;
pInteralEvent=SmeCreateIntEvent(nEventId,0,0,SME_EVENT_CAT_UI,pApp);
SmePostEvent(pInteralEvent);
}
void UICtrlSetSoftkey(SOFTKEY_INFO_T* pSoftkey,
unsigned long sklStrId,SME_EVENT_ID_T sklEventId,
unsigned long skrStrId,SME_EVENT_ID_T skrEventId){
pSoftkey->sklStrId=sklStrId;
pSoftkey->sklEventId=sklEventId;
pSoftkey->skrStrId=skrStrId;
pSoftkey->skrEventId=skrEventId;
pSoftkey->isDefined=TRUE;
}
void UICtrlLeftSoftKeyPress(SOFTKEY_INFO_T* pSoftkey){
if(pSoftkey->isDefined)
UICtrlPostInternalEvent(pSoftkey->sklEventId,NULL);
}
void UICtrlRightSoftKeyPress(SOFTKEY_INFO_T* pSoftkey){
if(pSoftkey->isDefined)
UICtrlPostInternalEvent(pSoftkey->skrEventId,NULL);
}
void UICtrlOnRightSoftKey(SOFTKEY_INFO_T* pSoftkey, SME_APP_T *pParentApp)
{
if(pSoftkey->isDefined)
{
SME_EVENT_ID_T nEventId=pSoftkey->skrEventId;
SME_EVENT_T *pInteralEvent;
pInteralEvent=SmeCreateIntEvent(nEventId,0,0,SME_EVENT_CAT_UI,pParentApp);
SmePostEvent(pInteralEvent);
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Jerome. (Free to speak, free to use.)