DuiVision development tutorial (13)-DUI base class, duivision-dui
The basic classes of all DuiVision objects are cduiobjects, including control classes, dialogs, menus, and so on. There is no corresponding control name for this class. The main functions are described as follows:
| Function |
Virtual function? |
Description |
| IsClass |
Yes |
Determine whether or not |
| GetObjectClass |
Yes |
Get class name |
| BaseObjectClassName |
Yes |
Get base class name |
| GetID |
No |
Get Object ID |
| GetName |
No |
Get Object Name |
| IsThisObject |
No |
Determine whether this object is based on the ID or name. You can match either the ID or name. |
| RegisterHandler |
No |
Register event processing objects |
| GetDuiHandler |
No |
Get event processing object pointer |
| GetRect |
No |
Obtains the coordinates of the upper left corner and lower right corner of the control. |
| ParseDuiString |
No |
Parses the string and replaces the replacement content (defined by []). The replacement content is the string content defined in the resource. xml or string definition file. |
| ParseKeyCode |
No |
Obtain the corresponding keyboard code based on the input string. For example, CTRL + F1 is converted to 0x11, 0x70. |
DuiVision open source code (github): https://github.com/blueantst/DuiVision
Ant financial studio home page: http://www.blueantstudio.net
DuiVision QQ group: 325880743
Public Account: blueantstudio or search for blue ant Studio