X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a44c4abe5e4382ad377e3e152bb99d31823789a5..62f6be4448a1a8ba6b3ddc920df7c0957b7b1f31:/src/generic/odcombo.cpp diff --git a/src/generic/odcombo.cpp b/src/generic/odcombo.cpp index 83dc7cbb95..e70047106d 100644 --- a/src/generic/odcombo.cpp +++ b/src/generic/odcombo.cpp @@ -1089,7 +1089,20 @@ void wxOwnerDrawnComboBox::OnDrawItem( wxDC& dc, { if ( flags & wxODCB_PAINTING_CONTROL ) { - dc.DrawText( GetValue(), + wxString text; + + if ( !ShouldUseHintText() ) + { + text = GetValue(); + } + else + { + text = GetHint(); + wxColour col = wxSystemSettings::GetColour(wxSYS_COLOUR_GRAYTEXT); + dc.SetTextForeground(col); + } + + dc.DrawText( text, rect.x + GetMargins().x, (rect.height-dc.GetCharHeight())/2 + rect.y ); }