X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a3bf7524f394af039efe196a186f7969cbabcc19..8183307507e8f19ddafa8c6e656dfa383e472678:/include/wx/msw/control.h diff --git a/include/wx/msw/control.h b/include/wx/msw/control.h index 512f308afa..2549f9b989 100644 --- a/include/wx/msw/control.h +++ b/include/wx/msw/control.h @@ -58,7 +58,7 @@ public: virtual bool MSWOnDraw(WXDRAWITEMSTRUCT *WXUNUSED(item)) { return FALSE; }; virtual bool MSWOnMeasure(WXMEASUREITEMSTRUCT *WXUNUSED(item)) { return FALSE; }; - wxArrayLong GetSubcontrols() { return m_subControls; } + const wxArrayLong& GetSubcontrols() const { return m_subControls; } void OnEraseBackground(wxEraseEvent& event); @@ -69,6 +69,7 @@ protected: // choose the default border for this window virtual wxBorder GetDefaultBorder() const; + // return default best size (doesn't really make any sense, override this) virtual wxSize DoGetBestSize() const; // create the control of the given Windows class: this is typically called