From 06aa40d92c4556a7a453bd14ab43d5cd9ae3c708 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Fri, 19 Nov 2004 15:55:24 +0000 Subject: [PATCH] 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 --- src/univ/themes/win32.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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) ) { -- 2.45.2