]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed wxComboCtrl::SetButtonPosition() on Vista/Win7 by marking the drop-down button...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 27 May 2010 14:51:07 +0000 (14:51 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 27 May 2010 14:51:07 +0000 (14:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
include/wx/combo.h
src/common/combocmn.cpp

index 1a5094794339ed761165e842eab1e434dca3eb34..97b68c46f1edcd6472549dc765c827cfbaef6f2c 100644 (file)
@@ -549,6 +549,7 @@ MSW:
 - Fix sending of wxEVT_COMMAND_LIST_COL_DRAGGING events in wxListCtrl.
 - Allow putting the UAC symbol on buttons (Chris Spencer).
 - Fix wxTaskBarIcon for older Windows systems (Daniel Wyatt).
+- Fixed wxComboCtrl::SetButtonPosition() on Vista/Win7.
 
 i18n:
 
index 0c31d0bb509660e1891b2421fa14c7d6c24d1b64..3aa8a32c56bc7fc5e97416f4153ee7e2f052ff24 100644 (file)
@@ -95,7 +95,8 @@ enum
     // Internal use: Skip popup animation.
     wxCC_IFLAG_DISABLE_POPUP_ANIM   = 0x2000,
     // Internal use: Drop-button is a bitmap button or has non-default size
-    // (but can still be on either side of the control).
+    // (but can still be on either side of the control), regardless whether
+    // specified by the platform or the application.
     wxCC_IFLAG_HAS_NONSTANDARD_BUTTON   = 0x4000
 };
 
index f037eb9dbd42caf8c065bd16b81057f9258ab0e9..c5304c88501b6cfc4d7c715e4fbb31e24f318b69 100644 (file)
@@ -2335,6 +2335,9 @@ void wxComboCtrlBase::SetButtonPosition( int width, int height,
     m_btnSide = side;
     m_btnSpacingX = spacingX;
 
+    if ( width > 0 || height > 0 || spacingX )
+        m_iFlags |= wxCC_IFLAG_HAS_NONSTANDARD_BUTTON;
+
     RecalcAndRefresh();
 }