From: Włodzimierz Skiba Date: Fri, 19 Nov 2004 15:55:24 +0000 (+0000) Subject: Do not make bitmap buttons with standard width (like in wxComboBox drop down button). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/06aa40d92c4556a7a453bd14ab43d5cd9ae3c708?ds=sidebyside Do not make bitmap buttons with standard width (like in wxComboBox drop down button). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/univ/themes/win32.cpp b/src/univ/themes/win32.cpp index 8ac9609416..5e313e615d 100644 --- a/src/univ/themes/win32.cpp +++ b/src/univ/themes/win32.cpp @@ -4217,6 +4217,12 @@ void wxWin32Renderer::AdjustSize(wxSize *size, const wxWindow *window) } #endif // wxUSE_SCROLLBAR/!wxUSE_SCROLLBAR +#if wxUSE_BMPBUTTON + if ( wxDynamicCast(window, wxBitmapButton) ) + { + // do nothing + } else +#endif // wxUSE_BMPBUTTON #if wxUSE_BUTTON if ( wxDynamicCast(window, wxButton) ) {