Use wxControl instead of wxControlWithItems with wxRTTI macros.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Jan 2011 14:13:29 +0000 (14:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Jan 2011 14:13:29 +0000 (14:13 +0000)
commit37788684ba0dfe52d3b4f67e5c2dae521893bfff
tree787d4e3ad4c142b9d9ffe0b08ad11bebb4878cd5
parentf638c257422bf1b5b234841133b7af50a7bb858a
Use wxControl instead of wxControlWithItems with wxRTTI macros.

wxControlWithItems is just a convenient combination of wxControl and
wxItemContainer mix-in and it is not useful to include it in wxRTTI classes
hierarchy. Also, using wxControlWithItems as the base class for wxChoice and
wxListBox but not for wxComboBox is inconsistent but wxControlWithItems can't
be used for the latter so resolve this by not using it at all.

Ideally we'd have a way of retrieving the list of supported interfaces (such
as wxItemContainer or wxTextEntry) via wxRTTI too.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/choiccmn.cpp
src/common/lboxcmn.cpp