Fixed wxComboCtrl::SetButtonPosition() on Vista/Win7 by marking the drop-down button as 'non-standard' when its size or position is changed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2010-05-27 14:51:07 +00:00
parent 9015d579c8
commit 735a300a96
3 changed files with 6 additions and 1 deletions

View 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();
}