X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/98fbab9e7bf70ee8af44a78ea2a1d2cbb406880a..e4c903b2ea42fe104ef50d0ea6028f14d8309dfa:/include/wx/msw/menuitem.h diff --git a/include/wx/msw/menuitem.h b/include/wx/msw/menuitem.h index 0671283cf0..4cfc3d058b 100644 --- a/include/wx/msw/menuitem.h +++ b/include/wx/msw/menuitem.h @@ -19,6 +19,8 @@ #if wxUSE_OWNER_DRAWN #include "wx/ownerdrw.h" #include "wx/bitmap.h" + + struct tagRECT; #endif // ---------------------------------------------------------------------------- @@ -107,6 +109,7 @@ public: const wxBitmap& GetDisabledBitmap() const { return m_bmpDisabled; } + int MeasureAccelWidth() const; // override wxOwnerDrawn base class virtuals virtual wxString GetName() const; @@ -115,6 +118,11 @@ public: protected: virtual void GetFontToUse(wxFont& font) const; + virtual void GetColourToUse(wxODStatus stat, wxColour& colText, wxColour& colBack) const; + +private: + // helper function for draw std menu check mark + void DrawStdCheckMark(WXHDC hdc, const tagRECT* rc, wxODStatus stat); #endif // wxUSE_OWNER_DRAWN @@ -140,11 +148,6 @@ private: wxBitmap m_bmpChecked, // bitmap to put near the item m_bmpUnchecked, // (checked is used also for 'uncheckable' items) m_bmpDisabled; - - // static variables for cache some system settings - static wxFont ms_systemMenuFont; - static size_t ms_systemMenuHeight; - static bool ms_alwaysShowCues; #endif // wxUSE_OWNER_DRAWN DECLARE_DYNAMIC_CLASS_NO_COPY(wxMenuItem)