internal void OnUIDeactivate(AxHost site)
 {
     this.siteUIActive = null;
     site.RemoveSelectionHandler();
     site.SetSelectionStyle(1);
     site.editMode = 0;
     if (site.GetSiteOwnsDeactivation())
     {
         ContainerControl containingControl = site.ContainingControl;
     }
 }
Exemplo n.º 2
0
            /// <devdoc>
            ///    <para>[To be supplied.]</para>
            /// </devdoc>
            internal void OnUIDeactivate(AxHost site) {
#if DEBUG
                if (siteUIActive != null)
                    Debug.Assert(siteUIActive == site, "deactivating when not active...");
#endif // DEBUG

                siteUIActive = null;
                site.RemoveSelectionHandler();
                site.SetSelectionStyle(1);
                site.editMode = EDITM_NONE;
                if (site.GetSiteOwnsDeactivation()) {
                    Debug.WriteLineIf(AxHTraceSwitch.TraceVerbose, " our site owns deactivation ");
                    ContainerControl f = site.ContainingControl;
                    Debug.Assert(f != null, "a control has to be on a ContainerControl...");
                    if (f != null) {
                        //    f.setActiveControl(null);
                    }
                }
            }
 internal void OnInPlaceDeactivate(AxHost site)
 {
     if (this.siteActive == site)
     {
         this.siteActive = null;
         if (site.GetSiteOwnsDeactivation())
         {
             this.parent.ActiveControl = null;
         }
     }
 }
Exemplo n.º 4
0
 /// <devdoc>
 ///    <para>[To be supplied.]</para>
 /// </devdoc>
 internal void OnInPlaceDeactivate(AxHost site) {
     if (siteActive == site) {
         siteActive = null;
         if (site.GetSiteOwnsDeactivation()) {
             parent.ActiveControl = null;
         }
         else {
             // we need to tell the form to switch activation to the next thingie...
             Debug.Fail("what pathological control is calling inplacedeactivate by itself?");
         }
     }
 }