分类:
2010-06-10 15:22:15
This function is called to create an object associated with the specified 32-bit ClassID. The object returned must match the interface supported by the ClassID. When successful, ppobj is filled with an object of the specified class and the object is returned with a positive reference count.
int ISHELL_CreateInstance ( * pIShell, cls, void * * ppobj )
pIShell : [in] : Pointer to the Interface object.
cls : [in] : 32-bit ClassID of the requested interface.
ppobj : [out] : Pointer to the memory to fill with the pointer to the object.
SUCCESS: class created.
ENOMEMORY: insufficient memory.
ECLASSNOTSUPPORT: class specified is not supported.
This function sets the title of a menu control object. The text string identifying the title can be specified from a resource file or by using the pText parameter. If pText is a valid string, the function uses this string as the title name. If pText is , the function reads the string corresponding to the given resource identifier, wResID, from resource file and sets it as title name. If the text string and the resource information are invalid, the function fails. If the title string in the pText field and the resource file information are both valid, the pText parameter field takes precedence and is used for the menu title.
boolean IMENUCTL_SetTitle ( * pIMenuCtl, const char * pszResFile, wResID, * pText )
pIMenuCtl : Pointer to the Interface object.
pszResFile : -terminated string containing resource file name.
wResID : Resource identifier.
pText : -terminated character string to be used for the menu title.
: if successful. , if unsuccessful.
This function does not update the device screen when invoked. For the new title to take effect on the device screen, use (). The title of a soft key control menu is not shown.
This function adds an item to a menu, list, or icon view. The new item’s properties are indicated by the parameter. If pai->pText is a valid string, the function uses this string as the item name. If pai->pText is , the function reads the string corresponding to the given resource identifier associated with pai->wText and pai->pszResText. If this fails, the function returns . If pai->pImage is a valid , the function calls IIMAGE_AddRef() and uses the image. This allows the caller to release the image object. If the text string in pai->pText and the resource file information are both valid, pai->pText takes precedence and is used for the menu item name. If pai->pImage is and pai->wImage is specified, the function attempts to load the image from the specified resource. If the image fails to load, the function returns .
boolean IMENUCTL_AddItemEx(IMenuCtl * pIMenuCtl, CtlAddItem * pai)
pIMenuCtl : Pointer to the Interface object.
pai : Pointer to the structure.
: if successful.
: if unsuccessful.
This function does not automatically update the screen. For the new menu item to take effect on the device screen, use (). If the menu is to be activated subsequent to adding menu items, you don’t need to use () because () updates the screen with the new menu items.
Its preferable that control rect and properties are set before adding items.
This function sets the coordinates of the control rectangle of the menu control object. This control rectangle represents the area on the device screen where the menu is drawn. The values of the control rectangle are stored within the menu control object. This function is used to change the value of the control rectangle to a new one.
void IMENUCTL_SetRect(IMenuCtl * pIMenuCtl, const AEERect * prc)
pIMenuCtl : Pointer to the Interface object.
prc : Control rectangle for the menu control object. This rectangle specifies the coordinates on the device screen where the menu is to be drawn.
None
By default, the control rectangle coordinates stored in the menu control object correspond to the entire device display screen. Use IMENUCTL_SetRect() to set the control rectangle coordinates to a new value. If no other menu draw operations follow this function, use () for the new control rectangle coordinates to take effect.
For a soft key menu, the default control rectangle encompasses the entire device screen, and the soft key menu is drawn at the bottom of the device screen. When using IMENUCTL_SetRect() to set the control rectangle to a new area, such as the top half of the device screen, the soft key menu is placed at the bottom of new control rectangle area, in this case in the middle of the screen.
This function makes a menu control object active or inactive. Only an active menu control object handles the event sent to it. An inactive menu control object ignores the events.
NOTE: This function redraws the menu control if the specified active state does not match the current state of the menu. Thus, calling IMENUCTL_SetActive() does not redraw the menu if the state is not changed as a result of the function call.
void IMENUCTL_SetActive(IMenuCtl * pIMenuCtl, boolean bActive)
pIMenuCtl : Pointer to the Interface object.
bActive : Boolean flag that specifies whether to activate () or deactivate () the menu control object.
None
None
The menu control object uses this function to handle events it receives. An active menu control object handles key press, set title, and add item events. An inactive menu control object handles only set title and add item events. The typical key press events processed by the menu control object are called by pressing the UP, DOWN, LEFT, and RIGHT keys. If command sending is enabled for the menu control object, and when it receives the event generated by pressing the SELECT key, the menu control object sends a command event to the AEE Shell.
boolean IMENUCTL_HandleEvent ( * pIMenuCtl, evt, wp, dwp )
pIMenuCtl : Pointer to the Interface object.
evt : Event code.
wp : 16-bit event data.
dwp : 32-bit event data.
: if the event was processed by the Interface object.
: if the event was not processed.
The menu control event handler is used in applets to handle menu related inputs from a device user. For example, when a device user presses the down arrow key to move from one menu item selection to another, this event is handled by the menu control event handler. In this case, the applet event handler function receives the corresponding event. The applet event handler at this time can call the menu control object event handler to process this event. If the applet event handler does not call the menu control event handler, this event remains unprocessed. The SELECT key is located in different physical locations on a device, depending on the manufacturer or model. When a device user presses this key, the applet receives the event word parameter wParam of type AVK_SELECT.
|
chinaunix网友2010-06-29 17:10:35
上海到杭州货运公司http://www.hangzhouzhuanxian.cn 上海至扬州货运http://www.nanjing56.net.cn/zhuanxianfour.htm 上海到义乌货运公司http://www.hangzhouzhuanxian.cn/news/yw_01.htm 上海至江阴货运http://www.nanjing56.net.cn/news/jy_01.htm 上海至扬州货运http://www.nanjingzhuanxian.cn/news/yz_01.htm 上海到常州货运公司http://www.nanjing56.net.cn/zhuanxianeight.htm 上海至江阴货运http://www.nanjingzhuanxian.cn/news/jy_01.htm 上海到义乌货运公司http://www.57156.net.cn 上海到常州货运公司http://www.nanjingzhuanxian.cn/news/cz_01.htm web260x华宜物流公司
chinaunix网友2010-06-29 17:10:09
设备木箱包装http://www.jiaoyib2c.com.cn/ 木箱包装http://www.jiaoyib2c.com.cn/ 木箱包装订做http://www.jiaoyib2c.com.cn/ 包装托运 http://www.jiaoyib2c.com.cn/ 上海包装箱http://www.jiaoyib2c.cn/ 出口包装箱http://www.jiaoyib2c.cn/ 木箱包装http://www.jiaoyib2c.cn/ 免熏蒸木箱包装http://www.jiaoyib2c.cn/ 木盘http://www.jiaoyib2b.com.cn/ 铁木盘http://www.jiaoyib2b.com.cn/ 电缆线木盘http://www.jiaoyib2b.com.cn/web260x华宜物流公司