+#if wxUSE_OWNER_DRAWN
+
+ int GetMaxAccelWidth()
+ {
+ if (m_maxAccelWidth == -1)
+ CalculateMaxAccelWidth();
+ return m_maxAccelWidth;
+ }
+
+ void ResetMaxAccelWidth()
+ {
+ m_maxAccelWidth = -1;
+ }
+
+ // get the menu with given handle (recursively)
+ wxMenu* MSWGetMenu(WXHMENU hMenu);
+
+private:
+ void CalculateMaxAccelWidth();
+
+#endif // wxUSE_OWNER_DRAWN
+
+protected:
+ virtual wxMenuItem* DoAppend(wxMenuItem *item);
+ virtual wxMenuItem* DoInsert(size_t pos, wxMenuItem *item);
+ virtual wxMenuItem* DoRemove(wxMenuItem *item);
+