X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8614c467553e7dd8a5b9984683d73c89730b8ead..da2fd5acd884129f58a5b394994ace8c22b55b6d:/include/wx/msw/radiobox.h?ds=sidebyside diff --git a/include/wx/msw/radiobox.h b/include/wx/msw/radiobox.h index 3736dc4dcf..471ca12608 100644 --- a/include/wx/msw/radiobox.h +++ b/include/wx/msw/radiobox.h @@ -81,6 +81,8 @@ public: virtual bool SetFont(const wxFont& font); long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); + virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor, + WXUINT message, WXWPARAM wParam, WXLPARAM lParam); WXHWND *GetRadioButtons() const { return m_radioButtons; } bool ContainsHWND(WXHWND hWnd) const; void SendNotificationEvent(); @@ -98,8 +100,15 @@ public: #endif // WXWIN_COMPATIBILITY protected: + // subclass one radio button void SubclassRadioButton(WXHWND hWndBtn); + // get the max size of radio buttons + wxSize GetMaxButtonSize() const; + + // get the total size occupied by the radio box buttons + wxSize GetTotalButtonSize(const wxSize& sizeBtn) const; + WXHWND * m_radioButtons; int m_majorDim; int * m_radioWidth; // for bitmaps @@ -112,6 +121,7 @@ protected: virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); + virtual wxSize DoGetBestSize() const; }; #endif