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

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

?? ihtmlviewerdemo.c

?? b Rew book for brew phone design
?? C
字號:
 /*===========================================================================

FILE: IHtmlviewerdemo.c
===========================================================================*/


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

#include "IHtmlviewerdemo.bid"

#define MaxChar 2000

//define my own structure
typedef struct _htmldemo
{
	AEEApplet a;
    IHtmlViewer * html;
    IFile * file;
	IFileMgr * file_mgr;
}MyHtmldemo;
/*-------------------------------------------------------------------
Function Prototypes
-------------------------------------------------------------------*/
static boolean IHtmlviewerdemo_HandleEvent(IApplet * pi, AEEEvent eCode, 
                                      uint16 wParam, uint32 dwParam);

/*===============================================================================
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_IHTMLVIEWERDEMO){
      if(AEEApplet_New(sizeof(MyHtmldemo), ClsId, pIShell,po,(IApplet**)ppObj,
         (AEEHANDLER)IHtmlviewerdemo_HandleEvent,NULL)
         == TRUE)
      {
		 // Add your code here .....

         return (AEE_SUCCESS);
      }
   }
	return (EFAILED);
}

/*===========================================================================

FUNCTION IHtmlviewerdemo_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 IHtmlviewerdemo_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 IHtmlviewerdemo_HandleEvent(IApplet * pi, AEEEvent eCode, uint16 wParam, uint32 dwParam)
{  
	MyHtmldemo * pMe = (MyHtmldemo*)pi;
	
	const char char1[] = "help.htm";
	char char2[MaxChar];
	AEERect rect;
	AEEDeviceInfo bi;
	AEEFileInfo file_info;

	switch (eCode) 
	{
      case EVT_APP_START:                        
		  //create the htmlviewer pointer
	      if (ISHELL_CreateInstance(pMe->a.m_pIShell,AEECLSID_HTML,(void**)&(pMe->html)) != SUCCESS) 
		  {
		      return FALSE;
		  }
		  //create the Filelmanager pointer
	      if (ISHELL_CreateInstance(pMe->a.m_pIShell,AEECLSID_FILEMGR,(void**)&pMe->file_mgr) != SUCCESS) 
		  {
		      return FALSE;
		  }
   		  //clear the screen
 		  IDISPLAY_ClearScreen(pMe->a.m_pIDisplay);

		  //set the File pointer
		  if ((pMe->file = IFILEMGR_OpenFile(pMe->file_mgr, char1, _OFM_READ)) ==NULL)
			  return FALSE;
		  
		  //get the fileinfo
		  IFILE_GetInfo(pMe->file, &file_info);
		  //read the file,first fill the target with 0.
          //MEMSET(char2 , 0 , sizeof(char2));
		  if (IFILE_Read(pMe->file, char2, file_info.dwSize) == 0)   
			  return FALSE;
		  char2[file_info.dwSize] = '\0';

          //set the rect
		  rect.x = 0;
		  rect.y = 0;
		  //get divice info
  		  ISHELL_GetDeviceInfo(pMe->a.m_pIShell,&bi);
		  rect.dx = bi.cxScreen;
		  rect.dy = bi.cyScreen;
		  IHTMLVIEWER_SetRect(pMe->html,&rect); 
          //set the data to the html control 
		  IHTMLVIEWER_SetData(pMe->html, char2, -1); 
		  //IHTMLVIEWER_ParseBuffer(pMe->html,char2);
		  //set property
		  IHTMLVIEWER_SetProperties(pMe->html,HVP_SCROLLBAR);
          //redraw
 		  IHTMLVIEWER_Redraw(pMe->html);

		  IHTMLVIEWER_SetActive(pMe->html,TRUE);
		  IDISPLAY_Update(pMe->a.m_pIDisplay);

      	  return(TRUE);

      case EVT_APP_STOP:

		  // release the pointer
		  if (pMe->html) {
			  IHTMLVIEWER_Release(pMe->html);
		  }
		  if (pMe->file_mgr) {
			  IFILEMGR_Release(pMe->file_mgr);
		  }
		  if (pMe->file) {
			  IFILE_Release(pMe->file);
		  }
         return TRUE;

	  case EVT_KEY:

		  if (IHTMLVIEWER_HandleEvent(pMe->html,eCode,wParam,dwParam))
			  return TRUE;


      default:
         break;
   }
   return FALSE;
}


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一级黄色片| 成人午夜大片免费观看| 亚洲午夜影视影院在线观看| 久久精品人人做人人综合| 久久久久久久综合色一本| 亚洲精品一区二区三区精华液| 精品三级av在线| 欧美精品一区二区三| 国产精品三级av在线播放| 国产精品视频看| 亚洲高清不卡在线观看| 久久国产精品99精品国产| 国产经典欧美精品| 色婷婷久久久亚洲一区二区三区 | 欧美曰成人黄网| 日韩精品一区二区三区三区免费| 久久精品无码一区二区三区| 中文av字幕一区| 久久爱www久久做| 色呦呦网站一区| 国产拍欧美日韩视频二区| 亚洲免费观看高清完整版在线观看 | 国产精品久久久久久久第一福利| 最近日韩中文字幕| 精品在线免费视频| 欧美日产国产精品| 成人欧美一区二区三区小说| 日本欧美肥老太交大片| 成人h精品动漫一区二区三区| 91精品国产91综合久久蜜臀| 中文字幕免费一区| 豆国产96在线|亚洲| 日韩二区三区在线观看| 国产毛片精品国产一区二区三区| 欧美在线一二三四区| 国产精品美女久久久久aⅴ国产馆| 日韩高清一区二区| 欧美精品第一页| 一区二区三区在线免费视频| 成人国产亚洲欧美成人综合网| 日韩视频一区二区三区| 奇米精品一区二区三区四区| 欧美日韩电影在线播放| 亚洲免费av在线| 欧美写真视频网站| 日韩中文字幕亚洲一区二区va在线| 在线精品国精品国产尤物884a| 国产精品久久网站| 在线观看亚洲精品视频| 一区二区成人在线观看| 91精品福利在线一区二区三区| 日韩精品视频网站| 国产女主播一区| 在线精品视频一区二区| 人人精品人人爱| 久久久五月婷婷| 在线观看网站黄不卡| 免费三级欧美电影| 国产日韩三级在线| 欧美日韩午夜影院| 国产精品一区二区男女羞羞无遮挡 | 4438x亚洲最大成人网| 韩国女主播一区二区三区| 欧美激情一区二区三区全黄| 欧美日韩另类一区| 国产精品一区二区久久精品爱涩| 亚洲综合色区另类av| 久久亚洲精华国产精华液| 91黄视频在线观看| 国产成人在线视频网站| 中日韩免费视频中文字幕| proumb性欧美在线观看| 日本欧美在线观看| 亚洲猫色日本管| 中文字幕乱码日本亚洲一区二区| 欧美视频一区二区在线观看| 粉嫩av亚洲一区二区图片| 午夜欧美2019年伦理| 中文字幕亚洲在| ㊣最新国产の精品bt伙计久久| 欧美mv日韩mv| 日韩区在线观看| 欧美一区二区三区视频| 欧美精品一级二级三级| 欧美在线小视频| 欧美日韩国产综合久久| 日本韩国一区二区三区| 日本精品一级二级| 欧美日韩视频在线观看一区二区三区| 91在线云播放| 欧美日韩综合色| 欧美精品在线一区二区三区| 日本韩国视频一区二区| 欧美撒尿777hd撒尿| 91精品欧美综合在线观看最新 | 国产亚洲美州欧州综合国| 久久午夜羞羞影院免费观看| 国产亚洲一区二区三区| 国产欧美日韩精品在线| 亚洲天堂中文字幕| 亚洲国产日产av| 国产精品影视在线| 欧美午夜电影网| 欧美激情一二三区| 亚洲超丰满肉感bbw| 韩国毛片一区二区三区| 91免费观看视频| 67194成人在线观看| 国产精品久久久久精k8| 日韩不卡一区二区三区| jvid福利写真一区二区三区| 粉嫩13p一区二区三区| 国产高清不卡一区| 欧美乱妇15p| 亚洲视频小说图片| 激情综合色综合久久| 色欧美88888久久久久久影院| 日韩精品一区二区三区swag| 亚洲人一二三区| 成人不卡免费av| 26uuu色噜噜精品一区| 五月婷婷激情综合网| 91麻豆蜜桃一区二区三区| 久久久青草青青国产亚洲免观| 午夜久久福利影院| 欧美写真视频网站| 一区二区三区四区亚洲| 国产91精品一区二区麻豆网站| 日韩欧美另类在线| 日本91福利区| 久久亚洲欧美国产精品乐播| 日韩成人免费看| 日韩亚洲欧美在线| 国产中文一区二区三区| 久久夜色精品一区| 成+人+亚洲+综合天堂| 国产精品久久久久久久久搜平片 | 欧美激情一区二区在线| 国产精品影视网| 国产精品久久久久久久久久免费看| 国产精品一卡二卡| 亚洲美女在线国产| 在线不卡中文字幕| 狠狠色丁香婷综合久久| 久久亚洲春色中文字幕久久久| 国产在线视频精品一区| 国产视频一区二区在线| 97精品久久久午夜一区二区三区 | 成人污视频在线观看| 亚洲品质自拍视频网站| 欧美日韩精品一区二区天天拍小说| 亚洲成av人综合在线观看| 欧美高清www午色夜在线视频| 一区二区三区在线观看网站| 欧美一区二区视频在线观看2020| 精品一区二区三区免费观看| 亚洲免费观看在线视频| 日韩欧美视频一区| 欧美午夜精品免费| 国产成人免费9x9x人网站视频| 亚洲精品日日夜夜| 国产精品网站一区| 精品久久久久香蕉网| 日本韩国一区二区三区视频| 国产精品一二三区在线| 午夜精品福利一区二区三区蜜桃| 亚洲国产成人午夜在线一区 | 夜夜操天天操亚洲| 国产精品区一区二区三| 久久精品亚洲麻豆av一区二区| 欧美日韩国产不卡| 成人精品电影在线观看| 激情五月播播久久久精品| 亚洲精品亚洲人成人网| 国产精品不卡在线观看| 久久久久国产成人精品亚洲午夜| 欧美精品一卡两卡| 宅男噜噜噜66一区二区66| 欧美日韩中字一区| 在线观看日韩高清av| 欧美日本韩国一区二区三区视频| 99国内精品久久| 91黄色小视频| 91精品国产综合久久久蜜臀图片| 欧美性生活一区| 欧美大片国产精品| 久久久久国产一区二区三区四区 | 成人高清视频在线观看| 99热这里都是精品| 欧美性xxxxxxxx| 久久综合色综合88| 1000精品久久久久久久久| 亚洲成人免费在线观看| 麻豆极品一区二区三区| av亚洲产国偷v产偷v自拍| 欧美日韩国产欧美日美国产精品| 日韩精品一区二区三区在线观看 | 一本久道中文字幕精品亚洲嫩| 国内精品国产成人| 91在线观看高清|