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

@@ -329,6 +329,10 @@ public: // utility functions not part of the API
virtual void OnInternalIdle() wxOVERRIDE;
#if wxUSE_ACCESSIBILITY
virtual wxAccessible* CreateAccessible() wxOVERRIDE;
#endif // wxUSE_ACCESSIBILITY
private:
virtual wxDataViewItem DoGetCurrentItem() const wxOVERRIDE;
virtual void DoSetCurrentItem(const wxDataViewItem& item) wxOVERRIDE;