X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a96b4743ff1eb85279194a28f7c388dc5fcab648..23fbd31a9bfdb14fc7c3406b59fa8141ec68e370:/include/wx/msw/menu.h?ds=sidebyside diff --git a/include/wx/msw/menu.h b/include/wx/msw/menu.h index 55d7d5c786..15232791d0 100644 --- a/include/wx/msw/menu.h +++ b/include/wx/msw/menu.h @@ -47,9 +47,9 @@ public: virtual ~wxMenu(); // implement base class virtuals - virtual bool DoAppend(wxMenuItem *item); - virtual bool DoInsert(size_t pos, wxMenuItem *item); - virtual wxMenuItem *DoRemove(wxMenuItem *item); + virtual wxMenuItem* DoAppend(wxMenuItem *item); + virtual wxMenuItem* DoInsert(size_t pos, wxMenuItem *item); + virtual wxMenuItem* DoRemove(wxMenuItem *item); virtual void Break(); @@ -206,6 +206,9 @@ protected: WXHMENU m_hMenu; + // Return the MSW position for a wxMenu which is sometimes different from + // the wxWindows position. + int MSWPositionForWxMenu(wxMenu *menu, int wxpos); #if wxUSE_ACCEL // the accelerator table for all accelerators in all our menus wxAcceleratorTable m_accelTable;