]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/odcombo.cpp
Don't leak m_protocol in wxURL.
[wxWidgets.git] / src / generic / odcombo.cpp
index 83dc7cbb95bcbacbd954b03fd78209f31947b59a..e70047106d4b1c3202694400792f333de3ffb591 100644 (file)
@@ -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 );
     }