Create wxAccessible object on demand in wxDVC

Create wxAccessible objects only in response to calls to GetOrCreateAccessible() to save resources.
This commit is contained in:
Artur Wieczorek
2016-10-16 23:48:27 +02:00
parent 90e1769569
commit cfe0eaa7f2
4 changed files with 56 additions and 23 deletions

View File

@@ -1386,6 +1386,10 @@ public:
void OnCollapsed( wxDataViewEvent &event );
void OnSize( wxSizeEvent &event );
#if wxUSE_ACCESSIBILITY
virtual wxAccessible* CreateAccessible() wxOVERRIDE;
#endif // wxUSE_ACCESSIBILITY
private:
wxDECLARE_EVENT_TABLE();
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxDataViewTreeCtrl);