extract button size calculation from button label size to a separate function to allow reusing it elsewhere
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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_
|
||||
|
Reference in New Issue
Block a user