// Purpose: wxBitmapComboBox
// Author: Jaakko Salli
// Created: 2008-04-09
-// RCS-ID: $Id:$
// Copyright: (c) 2008 Jaakko Salli
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef WX_PRECOMP
#include "wx/log.h"
+ #include "wx/dc.h"
+ #include "wx/ctrlsub.h"
#endif
#include "wx/settings.h"
#include "wx/odcombo.h"
-const wxChar wxBitmapComboBoxNameStr[] = wxT("bitmapComboBox");
+const char wxBitmapComboBoxNameStr[] = "bitmapComboBox";
#if defined(wxBITMAPCOMBOBOX_OWNERDRAWN_BASED)
true);
}
- if ( text.length() )
+ if ( !text.empty() )
dc.DrawText(text,
rect.x + m_imgAreaWidth + 1,
rect.y + (rect.height-dc.GetCharHeight())/2);
int imgHeightArea = m_usedImgSize.y + 2;
return imgHeightArea > m_fontHeight ? imgHeightArea : m_fontHeight;
}
-
+
return wxBCB_DEFAULT_ITEM_HEIGHT;
}