From d44dd8caf4f7cee320a096d8d80f4e1e85347681 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 4 Feb 2018 00:28:08 +0100 Subject: [PATCH] Document wxDataViewCtrl::GetMainWindow() This method can be useful, so make it part of the public API, similarly to e.g. wxGrid::GetGridWindow(). See #17786. --- interface/wx/dataview.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/interface/wx/dataview.h b/interface/wx/dataview.h index ed3a535159..8c2b303bdc 100644 --- a/interface/wx/dataview.h +++ b/interface/wx/dataview.h @@ -1442,6 +1442,16 @@ public: virtual wxRect GetItemRect(const wxDataViewItem& item, const wxDataViewColumn* col = NULL) const; + /** + Returns the window corresponding to the main area of the control. + + This is the window that actually shows the control items and may be + different from wxDataViewCtrl window itself in some ports (currently + this is only the case for the generic implementation used by default + under MSW). + */ + wxWindow* GetMainWindow(); + /** Returns pointer to the data model associated with the control (if any). */