void AddType(WXTYPE newType, WXTYPE parentType, char *name)
Adds a type to the hierarchy. newType is the type being registered, parentType is the parent type, and name is an identifier (which can used in error messages). The top (root) type is wxTYPE_ANY.
Example:
wxAllTypes.AddType(wxTYPE_WINDOW, wxTYPE_ANY, "window"); wxAllTypes.AddType(wxTYPE_PANEL, wxTYPE_WINDOW, "panel"); wxAllTypes.AddType(wxTYPE_CANVAS, wxTYPE_WINDOW, "canvas");