X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4af4dec65ff21d5fc107312bd8708562bff4a148..0b632977d75f403b7bc043d48a1c15e7394c546c:/include/wx/msw/private/button.h diff --git a/include/wx/msw/private/button.h b/include/wx/msw/private/button.h index c50aa5a311..f279c3e089 100644 --- a/include/wx/msw/private/button.h +++ b/include/wx/msw/private/button.h @@ -49,6 +49,10 @@ void UpdateMultilineStyle(HWND hwnd, const wxString& label); // (implemented in src/msw/button.cpp) wxSize ComputeBestSize(wxControl *btn); +// compute the button size (as if wxBU_EXACTFIT were specified, i.e. without +// adjusting it to be of default size if it's smaller) for the given label size +wxSize GetFittingSize(wxWindow *win, const wxSize& sizeLabel); + } // namespace wxMSWButton #endif // _WX_MSW_PRIVATE_BUTTON_H_