X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7802da36fa043e7fdc162a70e97821754a2f2f14..e143fb636d50d5802dcc8c7c2e9e8e2944afa467:/include/wx/msw/menu.h?ds=sidebyside diff --git a/include/wx/msw/menu.h b/include/wx/msw/menu.h index 213c9d1675..60f660ccc7 100644 --- a/include/wx/msw/menu.h +++ b/include/wx/msw/menu.h @@ -75,8 +75,8 @@ public: #if wxUSE_ACCEL // called by wxMenuBar to build its accel table from the accels of all menus - bool HasAccels() const { return !m_accels.IsEmpty(); } - size_t GetAccelCount() const { return m_accels.GetCount(); } + bool HasAccels() const { return !m_accels.empty(); } + size_t GetAccelCount() const { return m_accels.size(); } size_t CopyAccels(wxAcceleratorEntry *accels) const; // called by wxMenuItem when its accels changes @@ -84,6 +84,11 @@ public: // helper used by wxMenu itself (returns the index in m_accels) int FindAccel(int id) const; + + // used only by wxMDIParentFrame currently but could be useful elsewhere: + // returns a new accelerator table with accelerators for just this menu + // (shouldn't be called if we don't have any accelerators) + wxAcceleratorTable *CreateAccelTable() const; #endif // wxUSE_ACCEL protected: