git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23427
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// ------------------------------------------------------------------------
public:
virtual wxMenuBar* GetAppMenuBar() { return GetMenuBar(); }
+ // Returns the NSView for non-client drawing
+ virtual WX_NSView GetNonClientNSView();
protected:
virtual void CocoaSetWxWindowSize(int width, int height);
WX_NSView GetNSViewForSuperview() const;
// Returns the NSView that may be hidden/is being hidden
WX_NSView GetNSViewForHiding() const;
+ // Returns the NSView for non-client drawing
+ virtual WX_NSView GetNonClientNSView() { return GetNSViewForSuperview(); }
+ // Add/remove children
void CocoaAddChild(wxWindowCocoa *child);
void CocoaRemoveFromParent(void);
protected:
wxTopLevelWindow::CocoaSetWxWindowSize(width,height);
}
+WX_NSView wxFrame::GetNonClientNSView()
+{
+ if(m_frameNSView)
+ return m_frameNSView;
+ return GetNSViewForSuperview();
+}
+
void wxFrame::CocoaReplaceView(WX_NSView oldView, WX_NSView newView)
{
// If we have the additional toolbar/statbar view, then the