Add wxDataViewCtrl::GenericGetHeader() accessor

And show how to use it to increase the header size in the sample.
This commit is contained in:
Vadim Zeitlin
2016-04-22 01:12:21 +02:00
parent bed7d9fe74
commit bed710d9a7
4 changed files with 47 additions and 0 deletions

View File

@@ -30,6 +30,7 @@
class WXDLLIMPEXP_FWD_CORE wxImageList;
class WXDLLIMPEXP_FWD_CORE wxItemAttr;
class WXDLLIMPEXP_FWD_CORE wxHeaderCtrl;
#if !(defined(__WXGTK20__) || defined(__WXOSX__) ) || defined(__WXUNIVERSAL__)
// #if !(defined(__WXOSX__)) || defined(__WXUNIVERSAL__)

View File

@@ -263,6 +263,11 @@ public:
wxColour GetAlternateRowColour() const { return m_alternateRowColour; }
void SetAlternateRowColour(const wxColour& colour);
// The returned pointer is null if the control has wxDV_NO_HEADER style.
//
// This method is only available in the generic versions.
wxHeaderCtrl* GenericGetHeader() const;
protected:
void EnsureVisibleRowCol( int row, int column );