mGNCS API Reference  v1.5.0
A new control set and a new framework for MiniGUI apps
mItemClass Struct Reference

The virtual function table of mItemClass. More...

#include <mitem.h>

Detailed Description

The virtual function table of mItemClass.

 - BOOL (*\b setProperty)(mItem *self, int id, DWORD value);\n
   The function sets the value of the specified properties.
     \param id         The property id.
     \param value      The property value.
     \return TRUE on success, otherwise FALSE. 

 - DWORD (*\b getProperty)(mItem *self, int id); \n
   The function gets the value of the specified properties. 
     \param id         The property id. 
     \return the property value on success, otherwise -1. 

 - BOOL (*\b isSelectedItem)(mItem *self);\n
   The function is used to decide whether the item is selected or not. 
     \return TRUE for selected status, otherwise FALSE. 

 - BOOL (*\b isEnabledItem)(mItem *self);\n
   The function is used to terminate whether the item is enabled or not. 
     \return TRUE for enabled status, otherwise FALSE. 

 - void (*\b setItemEditor)(mItem *self, \ref hEditor editor); \n
   The function is used to set the item editor. 
     \param editor     The handle of editor. 

 - hEditor (*\b getItemEditor)(mItem *self);\n
   The function is used to get the item editor. 
     \return The editor handle on success, otherwise HWND_NULL.

 - void (*\b setItemAddData)(mItem *self, DWORD addData);\n
   The function is used to set the addtional data. 
     \param addData    The additional data. 

 - DWORD (*\b getItemAddData)(mItem *self);\n
   The function is used to get the additional data. 
     \return The additional data. 

 - void (*\b setItemImage)(mItem *self, DWORD image);\n
   The function is used to set the item image. 
     \param addData    The handle of image. 

 - DWORD (*\b getItemImage)(mItem *self);\n
   The function is used to get the item image. 
     \return The pointer of image, otherwise 0.

 - BOOL (*\b setItemString)(mItem *self, char* string);\n
   The function is used to set the item string. 
     \param string     The item text.
     \return TRUE on success, otherwise FALSE.

 - char* (*\b getItemString)(mItem *self); \n
   The function is used to get the item string.
     \return The item text, otherwise NULL. 

 - void (*\b setItemFlags)(mItem *self, DWORD flags);\n
   The function is used to set the item flags.
     \param flags    The item flags.

 - DWORD (*\b getItemFlags)(mItem *self);\n
   The function is used to get the item flags.

 - BOOL (*\b setItemHeight)(mItem *self, int height);\n
   The function is used to set the item height.
     \param height   The item height.
     \return TRUE on success, otherwise FALSE.

 - int (*\b getItemHeight)(mItem *self);\n
   The function is used to get the item height.

The documentation for this struct was generated from the following file: