亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? text.c

?? 在brew中實現中文輸入法
?? C
字號:
/*===========================================================================

FILE: Text.c
===========================================================================*/


/*===============================================================================
INCLUDES AND VARIABLE DEFINITIONS
=============================================================================== */
#include "AEEModGen.h"          // Module interface definitions
#include "AEEAppGen.h"          // Applet interface definitions
#include "AEEShell.h"           // Shell interface definitions

#include "Text.bid"
#include "AEEText.h"
#include "AEEStdlib.h"
#include "Text_res.h"


/*-------------------------------------------------------------------
Applet structure. All variables in here are reference via "pMe->"
-------------------------------------------------------------------*/
// create an applet structure that's passed around. All variables in
// here will be able to be referenced as static.
typedef struct _Text {
	AEEApplet      a ;	       // First element of this structure must be AEEApplet
    AEEDeviceInfo  DeviceInfo; // always have access to the hardware device information
    IDisplay      *pIDisplay;  // give a standard way to access the Display interface
    IShell        *pIShell;    // give a standard way to access the Shell interface

    // add your own variables here...
	ITextCtl *pITextCtl;
	AEEDeviceInfo info;
	AEERect rc;
	int posX;
	int posY;
	int posW;
	int posH;
	AECHAR * pName;
} Text;

/*-------------------------------------------------------------------
Function Prototypes
-------------------------------------------------------------------*/
static  boolean Text_HandleEvent(Text* pMe, AEEEvent eCode, 
                                             uint16 wParam, uint32 dwParam);
boolean Text_InitAppData(Text* pMe);
void    Text_FreeAppData(Text* pMe);
void    Text_start(Text *pMe);
/*===============================================================================
FUNCTION DEFINITIONS
=============================================================================== */

/*===========================================================================
FUNCTION: AEEClsCreateInstance

DESCRIPTION
	This function is invoked while the app is being loaded. All Modules must provide this 
	function. Ensure to retain the same name and parameters for this function.
	In here, the module must verify the ClassID and then invoke the AEEApplet_New() function
	that has been provided in AEEAppGen.c. 

   After invoking AEEApplet_New(), this function can do app specific initialization. In this
   example, a generic structure is provided so that app developers need not change app specific
   initialization section every time except for a call to IDisplay_InitAppData(). 
   This is done as follows: InitAppData() is called to initialize AppletData 
   instance. It is app developers responsibility to fill-in app data initialization 
   code of InitAppData(). App developer is also responsible to release memory 
   allocated for data contained in AppletData -- this can be done in 
   IDisplay_FreeAppData().

PROTOTYPE:
   int AEEClsCreateInstance(AEECLSID ClsId,IShell * pIShell,IModule * po,void ** ppObj)

PARAMETERS:
	clsID: [in]: Specifies the ClassID of the applet which is being loaded

	pIShell: [in]: Contains pointer to the IShell object. 

	pIModule: pin]: Contains pointer to the IModule object to the current module to which
	this app belongs

	ppObj: [out]: On return, *ppObj must point to a valid IApplet structure. Allocation
	of memory for this structure and initializing the base data members is done by AEEApplet_New().

DEPENDENCIES
  none

RETURN VALUE
  AEE_SUCCESS: If the app needs to be loaded and if AEEApplet_New() invocation was
     successful
  EFAILED: If the app does not need to be loaded or if errors occurred in 
     AEEApplet_New(). If this function returns FALSE, the app will not be loaded.

SIDE EFFECTS
  none
===========================================================================*/
int AEEClsCreateInstance(AEECLSID ClsId, IShell *pIShell, IModule *po, void **ppObj)
{
	*ppObj = NULL;

	if( ClsId == AEECLSID_TEXT )
	{
		// Create the applet and make room for the applet structure
		if( AEEApplet_New(sizeof(Text),
                          ClsId,
                          pIShell,
                          po,
                          (IApplet**)ppObj,
                          (AEEHANDLER)Text_HandleEvent,
                          (PFNFREEAPPDATA)Text_FreeAppData) ) // the FreeAppData function is called after sending EVT_APP_STOP to the HandleEvent function
                          
		{
			//Initialize applet data, this is called before sending EVT_APP_START
            // to the HandleEvent function
			if(Text_InitAppData((Text*)*ppObj))
			{
				//Data initialized successfully
				return(AEE_SUCCESS);
			}
			else
			{
				//Release the applet. This will free the memory allocated for the applet when
				// AEEApplet_New was called.
				IAPPLET_Release((IApplet*)*ppObj);
				return EFAILED;
			}

        } // end AEEApplet_New

    }

	return(EFAILED);
}


/*===========================================================================
FUNCTION SampleAppWizard_HandleEvent

DESCRIPTION
	This is the EventHandler for this app. All events to this app are handled in this
	function. All APPs must supply an Event Handler.

PROTOTYPE:
	boolean SampleAppWizard_HandleEvent(IApplet * pi, AEEEvent eCode, uint16 wParam, uint32 dwParam)

PARAMETERS:
	pi: Pointer to the AEEApplet structure. This structure contains information specific
	to this applet. It was initialized during the AEEClsCreateInstance() function.

	ecode: Specifies the Event sent to this applet

   wParam, dwParam: Event specific data.

DEPENDENCIES
  none

RETURN VALUE
  TRUE: If the app has processed the event
  FALSE: If the app did not process the event

SIDE EFFECTS
  none

===========================================================================*/
		
static boolean Text_HandleEvent(Text* pMe, AEEEvent eCode, uint16 wParam, uint32 dwParam)
{  

    switch (eCode) 
	{
        // App is told it is starting up
        case EVT_APP_START:                        
		    // Add your code here...
			ISHELL_CreateInstance(pMe->pIShell,AEECLSID_TEXTCTL,(void **)&(pMe->pITextCtl));
			Text_start(pMe);

            return(TRUE);


        // App is told it is exiting
        case EVT_APP_STOP:
            // Add your code here...
			ITEXTCTL_Release(pMe->pITextCtl) ;
      		return(TRUE);


        // App is being suspended 
        case EVT_APP_SUSPEND:
		    // Add your code here...

      		return(TRUE);


        // App is being resumed
        case EVT_APP_RESUME:
		    // Add your code here...

      		return(TRUE);


        // An SMS message has arrived for this app. Message is in the dwParam above as (char *)
        // sender simply uses this format "//BREW:ClassId:Message", example //BREW:0x00000001:Hello World
        case EVT_APP_MESSAGE:
		    // Add your code here...

      		return(TRUE);

        // A key was pressed. Look at the wParam above to see which key was pressed. The key
        // codes are in AEEVCodes.h. Example "AVK_1" means that the "1" key was pressed.
        case EVT_KEY:
		    // Add your code here...
	ITEXTCTL_HandleEvent (pMe->pITextCtl,eCode, wParam, dwParam); 

      		return(TRUE);


        // If nothing fits up to this point then we'll just break out
        default:
            break;
   }

   return FALSE;
}


// this function is called when your application is starting up
boolean Text_InitAppData(Text* pMe)
{
    // Get the device information for this handset.
    // Reference all the data by looking at the pMe->DeviceInfo structure
    // Check the API reference guide for all the handy device info you can get
    pMe->DeviceInfo.wStructSize = sizeof(pMe->DeviceInfo);
    ISHELL_GetDeviceInfo(pMe->a.m_pIShell,&pMe->DeviceInfo);

    // The display and shell interfaces are always created by
    // default, so we'll asign them so that you can access
    // them via the standard "pMe->" without the "a."
    pMe->pIDisplay = pMe->a.m_pIDisplay;
    pMe->pIShell   = pMe->a.m_pIShell;

    // Insert your code here for initializing or allocating resources...

//	pMe->posX = 0;
//	pMe->posY = 0;
//	pMe->posW = pMe->info.cxScreen;
//	pMe->posH = pMe->info.cyScreen;
//	ISHELL_GetDeviceInfo(pMe->pIShell,&pMe->info);

	

	

    // if there have been no failures up to this point then return success
    return TRUE;
}

// this function is called when your application is exiting
void Text_FreeAppData(Text* pMe)
{
    // insert your code here for freeing any resources you have allocated...

    // example to use for releasing each interface:
    // if ( pMe->pIMenuCtl != NULL )         // check for NULL first
    // {
    //    IMENUCTL_Release(pMe->pIMenuCtl)   // release the interface
    //    pMe->pIMenuCtl = NULL;             // set to NULL so no problems trying to free later
    // }
    //


}

void Text_start(Text *pMe)
{
	pMe->rc.x = 30;
	pMe->rc.y = 27;
	pMe->rc.dx =117;
	pMe->rc.dy = 150;
	pMe->DeviceInfo.wEncoding = AEE_ENC_UNICODE;
	ITEXTCTL_SetRect(pMe->pITextCtl, &pMe->rc);//
	ITEXTCTL_SetTitle(pMe->pITextCtl, TEXT_RES_FILE, STR_NAME,pMe->pName);
	ITEXTCTL_SetProperties(pMe->pITextCtl, TP_T9_MODE|TP_MULTILINE |TP_FRAME| TP_FIXSETRECT );

//	ITEXTCTL_Redraw(pMe->pITextCtl); 
	ITEXTCTL_SetInputMode(pMe->pITextCtl,AEE_TM_PINYIN   );//AEE_TM_RAPID//AEE_TM_PINYIN
	ITEXTCTL_SetActive(pMe->pITextCtl, TRUE);
//	ITEXTCTL_SetSoftKeyMenu(pMe->pITextCtl, IMenuCtl * pm);
	
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品少妇一区二区三区免费观看| 国内精品国产成人国产三级粉色 | 中文字幕巨乱亚洲| 久久精子c满五个校花| 久久久久99精品国产片| 久久久久久久久蜜桃| 国产日韩欧美激情| 国产精品的网站| 综合久久一区二区三区| 亚洲人成在线观看一区二区| 亚洲一区在线观看免费观看电影高清| 亚洲啪啪综合av一区二区三区| 亚洲乱码中文字幕| 一区二区不卡在线播放| 午夜影院久久久| 久久国产精品无码网站| 国产一区二区三区香蕉| 成人av在线资源网| 3atv在线一区二区三区| 欧美一级高清大全免费观看| 337p粉嫩大胆色噜噜噜噜亚洲| 国产亚洲精品aa| 亚洲综合自拍偷拍| 麻豆精品一区二区av白丝在线| 国产精品一二三区| 91久久国产综合久久| 欧美一级欧美三级在线观看| 国产免费观看久久| 午夜亚洲福利老司机| 国内精品免费在线观看| 色欧美88888久久久久久影院| 欧美年轻男男videosbes| 久久精品人人做人人综合| 亚洲人成伊人成综合网小说| 奇米精品一区二区三区在线观看一| 国产成人av一区二区三区在线观看| av一区二区三区在线| 日韩欧美在线不卡| 国产精品卡一卡二卡三| 亚洲国产成人porn| 成人国产视频在线观看| 日韩欧美亚洲另类制服综合在线| 中文字幕一区二区三区不卡在线| 五月婷婷激情综合| 成人av一区二区三区| 日韩免费在线观看| 亚洲一区在线观看网站| www.久久久久久久久| 精品国产三级电影在线观看| 亚洲一区欧美一区| 91美女福利视频| 国产肉丝袜一区二区| 久久精品国产免费看久久精品| 一本一道久久a久久精品| 国产欧美视频一区二区三区| 伦理电影国产精品| 欧美人牲a欧美精品| 亚洲欧洲国产日本综合| 成人爽a毛片一区二区免费| 欧美r级在线观看| 日本色综合中文字幕| 欧美日韩国产在线播放网站| 一区二区成人在线视频| 色婷婷一区二区三区四区| 国产精品三级久久久久三级| 极品少妇xxxx偷拍精品少妇| 日韩一区国产二区欧美三区| 久久久精品影视| 韩国三级中文字幕hd久久精品| 欧美电视剧免费观看| 毛片基地黄久久久久久天堂| 欧美妇女性影城| 日本不卡中文字幕| 欧美tickle裸体挠脚心vk| 久久精品国产一区二区三区免费看| 91精品国产综合久久久蜜臀粉嫩 | 国内精品久久久久影院薰衣草 | 中文字幕在线播放不卡一区| 成人一区在线观看| 亚洲图片欧美激情| 在线观看区一区二| 日韩国产精品91| 日韩一区二区影院| 国产精品资源在线看| 亚洲国产高清在线观看视频| 不卡免费追剧大全电视剧网站| 亚洲欧美在线视频| 欧美视频完全免费看| 亚洲成人动漫一区| www成人在线观看| 99精品黄色片免费大全| 亚洲精品第1页| 欧美一区二区三区视频免费| 国产精品一区在线观看乱码| 国产精品国模大尺度视频| 色综合久久久久综合99| 日韩高清不卡在线| 久久久久久免费| 久久久高清一区二区三区| 成人app网站| 日韩黄色免费网站| 欧美精品一区二区久久婷婷| 一本色道亚洲精品aⅴ| 偷窥少妇高潮呻吟av久久免费| 精品久久久久久久久久久久久久久久久| 国产一区二区三区香蕉 | 欧美大片免费久久精品三p| 国产+成+人+亚洲欧洲自线| 亚洲精品中文在线影院| 日韩一区二区三区在线视频| 99视频精品全部免费在线| 天天操天天色综合| 国产精品久久影院| 欧美va亚洲va香蕉在线| 色综合天天综合在线视频| 另类小说色综合网站| 一区二区三区精品在线| 久久久久免费观看| 欧美日韩黄色影视| 91麻豆精东视频| 国产精品一级在线| 免费成人美女在线观看.| 一区2区3区在线看| 亚洲国产成人自拍| 精品三级在线观看| 欧美电影在线免费观看| 99精品国产热久久91蜜凸| 国产乱码精品一区二区三区五月婷| 一区二区不卡在线视频 午夜欧美不卡在| 精品久久久久久亚洲综合网| 欧美日韩高清在线| 日本韩国欧美国产| av中文一区二区三区| 国产乱码字幕精品高清av| 麻豆成人久久精品二区三区红| 亚洲一区二区在线视频| 亚洲欧美福利一区二区| 国产亚洲精品中文字幕| 久久综合九色综合97婷婷女人 | www.欧美色图| 粉嫩嫩av羞羞动漫久久久| 国产在线精品一区二区| 黄色成人免费在线| 日韩av一区二区三区四区| 日韩精品成人一区二区三区| 亚洲高清不卡在线| 一区二区三区在线不卡| 亚洲综合在线免费观看| 一区二区三区免费在线观看| 亚洲人午夜精品天堂一二香蕉| 亚洲图片欧美激情| 一区二区不卡在线视频 午夜欧美不卡在| 国产精品久久久久毛片软件| 中文字幕精品一区| 亚洲色图清纯唯美| 亚洲影视在线观看| 调教+趴+乳夹+国产+精品| 日日夜夜精品视频免费| 看片的网站亚洲| 国产成人自拍网| 成人动漫一区二区三区| 91视频com| 欧美日韩一区二区三区四区| 欧美精品1区2区| 久久精品在线免费观看| 成人免费在线视频| 亚洲国产va精品久久久不卡综合| 日韩av一二三| 国产永久精品大片wwwapp | 美女免费视频一区二区| 国产主播一区二区三区| 懂色av一区二区三区蜜臀| 99精品一区二区| 欧美日韩一区二区在线观看| 精品日韩一区二区| 中文字幕一区二区视频| 亚洲不卡一区二区三区| 极品瑜伽女神91| 91免费国产在线| 精品国产亚洲一区二区三区在线观看| 久久精品欧美一区二区三区麻豆 | 91美女在线观看| 欧美一级黄色大片| 国产精品不卡在线| 午夜精品视频在线观看| 国产精品亚洲一区二区三区妖精 | 国产激情视频一区二区在线观看 | 日韩中文字幕1| 成人精品一区二区三区中文字幕| 欧美综合一区二区| 精品久久久久久久久久久久包黑料| 国产精品美女久久久久aⅴ国产馆| 亚洲风情在线资源站| 国产成人精品三级麻豆| 欧美高清激情brazzers| 中文字幕中文在线不卡住| 六月丁香综合在线视频| 日本道精品一区二区三区| 久久久亚洲综合| 免费成人在线播放|