+//----------------------------------------------------------------------------
+// wxCanvasCtrl
+//----------------------------------------------------------------------------
+
+wxCanvasControl::wxCanvasControl( wxWindow *control )
+ : wxCanvasObject( -1, -1, -1, -1 )
+{
+ m_control = control;
+ UpdateSize();
+}
+
+wxCanvasControl::~wxCanvasControl()
+{
+ m_control->Destroy();
+}
+
+void wxCanvasControl::Move( int x, int y )
+{
+ m_control->Move( x, y );
+}
+
+void wxCanvasControl::UpdateSize()
+{
+ m_control->GetSize( &m_area.width, &m_area.height );
+ m_control->GetPosition( &m_area.x, &m_area.y );
+}
+