コード例 #1
0
        internal void Attach(IHookedMdiWindow foreignWindow)
        {
            Contract.Requires(foreignWindow != null);

            this.AssertNotCreated();
            Surrogate = foreignWindow.CreateChild(Text, new Rectangle(SurrogateLocation, SurrogateSize), IsResizable, IsMovable, Proxy);
            if (IsHandleCreated)
            {
                this.SetParent(Surrogate.ContentPanelHandle);
            }
            else
            {
                this.CreateControl();
            }
            this.Size = Surrogate.Size;
        }
コード例 #2
0
 private void OnDestroy()
 {
     Surrogate = null;
 }