protected override IntPtr OnCreateChild() { m_windowUI = new System.Windows.Forms.Integration.ElementHost(); m_windowUI.Child = new DockableWindowDistanceAndDirection(); return m_windowUI.Handle; }