X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4af4dec65ff21d5fc107312bd8708562bff4a148..3c7789014106c9269b0f4ecc1a3071b14f351d3f:/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_