[ 1524693 ] wxOwnerDrawnComboBox focus paint fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1041,7 +1041,8 @@ wxCoord wxOwnerDrawnComboBox::OnMeasureItemWidth( size_t WXUNUSED(item) ) const
|
||||
void wxOwnerDrawnComboBox::OnDrawBackground(wxDC& dc, const wxRect& rect, int item, int flags) const
|
||||
{
|
||||
// we need to render selected and current items differently
|
||||
if ( GetVListBoxComboPopup()->IsCurrent((size_t)item) )
|
||||
if ( GetVListBoxComboPopup()->IsCurrent((size_t)item) ||
|
||||
(flags & wxODCB_PAINTING_CONTROL) )
|
||||
{
|
||||
DrawFocusBackground(dc,
|
||||
rect,
|
||||
|
Reference in New Issue
Block a user