support not-quite-owner-drawn mode when we draw only the bitmap and the system takes care of the rest
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -40,7 +40,7 @@ public:
|
||||
wxOwnerDrawn(const wxString& str = wxEmptyString,
|
||||
bool bCheckable = false,
|
||||
bool bMenuItem = false); // FIXME kludge for colors
|
||||
virtual ~wxOwnerDrawn() { }
|
||||
virtual ~wxOwnerDrawn();
|
||||
|
||||
// fix appearance
|
||||
void SetFont(const wxFont& font)
|
||||
@@ -142,6 +142,13 @@ public:
|
||||
virtual bool OnDrawItem(wxDC& dc, const wxRect& rc, wxODAction act, wxODStatus stat);
|
||||
|
||||
protected:
|
||||
// return true if this is a menu item
|
||||
bool IsMenuItem() const;
|
||||
|
||||
// get the font to use, whether m_font is set or not
|
||||
wxFont GetFontToUse() const;
|
||||
|
||||
|
||||
wxString m_strName, // label for a manu item
|
||||
m_strAccel; // the accel string ("Ctrl-F17") if any
|
||||
|
||||
|
Reference in New Issue
Block a user