- int w = WidthDefault(size.x);
- int h = HeightDefault(size.y);
-
- m_nowpeer = wxNonOwnedWindowImpl::CreateNonOwnedWindow(this, parent, wxPoint(x,y) , wxSize(w,h) , style , GetExtraStyle(), name );
- wxAssociateWindowWithWXWindow( m_nowpeer->GetWXWindow() , this ) ;
+ // create frame.
+ m_nowpeer = wxNonOwnedWindowImpl::CreateNonOwnedWindow
+ (
+ this, parent,
+ pos , size,
+ style, GetExtraStyle(),
+ name
+ );
+ wxNonOwnedWindowImpl::Associate( m_nowpeer->GetWXWindow() , m_nowpeer ) ;