18#include <wx/msw/private.h>
19#elif defined(__WXMAC__)
20#include <wx/osx/core/private.h>
21#include <wx/osx/cocoa/private.h>
22#elif defined(__WXGTK__)
40 bool Create(wxWindow* parent, WXWidget hwnd)
42 const wxRect r = wxRectFromRECT(wxGetWindowRect((HWND)hwnd));
46 if (!CreateBase(parent,
57 parent->AddChild(
this);
67#elif defined(__WXMAC__)
71 GetPeer()->RemoveFromParent();
75 bool Create(wxWindow* parent, WXWidget view)
79 if (!wxWindow::Create(parent, wxID_ANY))
84 SetPeer(
new wxWidgetCocoaImpl(
this, view));
89#elif defined(__WXGTK__)
95 bool Create(wxWindow* parent, WXWidget widget)
97 if (!CreateBase(parent, wxID_ANY))
103 g_object_ref(m_widget);
105 parent->DoAddChild(
this);
112 gtk_widget_size_request(widget, &req);
113 SetInitialSize(wxSize(req.width, req.height));
bool Create(wxWindow *parent, WXWidget hwnd)