X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa4919edd16047bb9590658f7a9fbe50fc659bc1..8d43e8c68fd5d508a1628909c696fff938c9eb1e:/include/wx/msw/menuitem.h diff --git a/include/wx/msw/menuitem.h b/include/wx/msw/menuitem.h index e885b98019..21be80c38f 100644 --- a/include/wx/msw/menuitem.h +++ b/include/wx/msw/menuitem.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: menuitem.h +// Name: wx/msw/menuitem.h // Purpose: wxMenuItem class // Author: Vadim Zeitlin // Modified by: @@ -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; @@ -117,6 +120,10 @@ 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 private: