void wxNonOwnedWindow::Init()
{
m_nowpeer = NULL;
+ m_isNativeWindowWrapper = false;
}
bool wxNonOwnedWindow::Create(wxWindow *parent,
long style,
const wxString& name)
{
- // init our fields
- Init();
-
m_windowStyle = style;
SetName( name );
return true;
}
+bool wxNonOwnedWindow::Create(wxWindow *parent, WXWindow nativeWindow)
+{
+ m_nowpeer = wxNonOwnedWindowImpl::CreateNonOwnedWindow(this, parent, nativeWindow );
+ m_isNativeWindowWrapper = true;
+ wxAssociateWindowWithWXWindow( m_nowpeer->GetWXWindow() , this ) ;
+ m_peer = wxWidgetImpl::CreateContentView(this);
+
+ if ( parent )
+ parent->AddChild(this);
+
+ return true;
+}
+
wxNonOwnedWindow::~wxNonOwnedWindow()
{
SendDestroyEvent();