1552971 ] Add flag for wxODComboBox::OnDrawItem to indicate selection

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-09-19 17:16:50 +00:00
parent e42667e599
commit ce22ac4592
4 changed files with 33 additions and 17 deletions

View File

@@ -264,8 +264,7 @@ public:
// If item is selected or even, or we are painting the
// combo control itself, use the default rendering.
if ( GetVListBoxComboPopup()->IsCurrent((size_t)item) ||
(flags & wxODCB_PAINTING_CONTROL) ||
if ( (flags & (wxODCB_PAINTING_CONTROL|wxODCB_PAINTING_SELECTED)) ||
(item & 1) == 0 )
{
wxOwnerDrawnComboBox::OnDrawBackground(dc,rect,item,flags);