From 283636bf22c2d9054bcaaa0b049ba43793968545 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 20 May 2014 03:16:22 +0000 Subject: [PATCH] Add Get/SetDisabledBitmap methods for msw git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/menuitem.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/interface/wx/menuitem.h b/interface/wx/menuitem.h index 4fd028cd07..8afae429c9 100644 --- a/interface/wx/menuitem.h +++ b/interface/wx/menuitem.h @@ -163,8 +163,15 @@ public: @onlyfor{wxmsw} */ - virtual const wxBitmap& GetBitmap() const; + virtual const wxBitmap& GetBitmap(bool checked = true) const; + /** + Returns the bitmap to be used for disabled items. + + @onlyfor{wxmsw} + */ + virtual const wxBitmap& GetDisabledBitmap() const; + /** Returns the font associated with the menu item. @@ -369,6 +376,14 @@ public: void SetBitmaps(const wxBitmap& checked, const wxBitmap& unchecked = wxNullBitmap); + /** + Sets the to be used for disabled menu items. + + @onlyfor{wxmsw} + */ + void SetDisabledBitmap(const wxBitmap& disabled); + + /** Sets the font associated with the menu item.