Include wx/frame.h header instead of casting wxFrame to wxWindow using C style
cast. Although this does work now and probably will work later too it seems
better to not use the cast nevertheless.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64130
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/menu.h"
+ #include "wx/frame.h"
#endif
#include "wx/stockitem.h"
wxWindow *wxMenuBase::GetWindow() const
{
- return GetMenuBar() ? (wxWindow*)GetMenuBar()->GetFrame() : GetInvokingWindow();
+ return GetMenuBar() ? GetMenuBar()->GetFrame() : GetInvokingWindow();
}
// ----------------------------------------------------------------------------