X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c670c85582ca995105f14a6c62b54c580582f624..48c8439fdb5bbacf457f3a825bb5a73fe10dd8e7:/include/wx/msw/radiobox.h diff --git a/include/wx/msw/radiobox.h b/include/wx/msw/radiobox.h index f3cd4d8331..a301eba172 100644 --- a/include/wx/msw/radiobox.h +++ b/include/wx/msw/radiobox.h @@ -123,9 +123,6 @@ protected: // common part of all ctors void Init(); - // we can't compute our best size before the items are added to the control - virtual void SetInitialBestSize(const wxSize& WXUNUSED(size)) { } - // subclass one radio button void SubclassRadioButton(WXHWND hWndBtn); @@ -144,6 +141,16 @@ protected: virtual void DoSetItemToolTip(unsigned int n, wxToolTip * tooltip); #endif + virtual int GetItemFromPoint(const wxPoint& pt) const; + +#if wxUSE_HELP + // override virtual function with a platform-independent implementation + virtual wxString GetHelpTextAtPoint(const wxPoint & pt, wxHelpEvent::Origin origin) const + { + return wxRadioBoxBase::DoGetHelpTextAtPoint( this, pt, origin ); + } +#endif // wxUSE_HELP + #ifndef __WXWINCE__ virtual WXHRGN MSWGetRegionWithoutChildren(); #endif // __WXWINCE__