상속: System.Windows.Interop.HwndHost
예제 #1
0
 private static void OnIsEnabledInvalidated(ActiveXHost axHost)
 {
     //Consider: ActiveX equivalent?
     //if (axHost != null)
     //{
     //    axHost.HostedControl.Enabled = axHost.IsEnabled;
     //}
 }
예제 #2
0
 internal ActiveXSite(ActiveXHost host) 
 {
     if (host == null) 
     {
         throw new ArgumentNullException("host");
     }
     _host = host;
 }
예제 #3
0
        private static void OnIsEnabledInvalidated(ActiveXHost axHost)
        {
            //




        }
예제 #4
0
 // Token: 0x06006198 RID: 24984 RVA: 0x001B5E20 File Offset: 0x001B4020
 private static void OnVisibilityInvalidated(ActiveXHost axHost)
 {
     if (axHost != null)
     {
         switch (axHost.Visibility)
         {
         }
     }
 }
예제 #5
0
        // Token: 0x06006199 RID: 24985 RVA: 0x001B5E4C File Offset: 0x001B404C
        private static void OnGotFocus(object sender, KeyboardFocusChangedEventArgs e)
        {
            ActiveXHost activeXHost = sender as ActiveXHost;

            if (activeXHost != null)
            {
                Invariant.Assert(activeXHost.ActiveXState >= ActiveXHelper.ActiveXState.InPlaceActive, "Should at least be InPlaceActive when getting focus");
                if (activeXHost.ActiveXState < ActiveXHelper.ActiveXState.UIActive)
                {
                    activeXHost.TransitionUpTo(ActiveXHelper.ActiveXState.UIActive);
                }
            }
        }
예제 #6
0
        // Token: 0x0600619A RID: 24986 RVA: 0x001B5E8C File Offset: 0x001B408C
        private static void OnLostFocus(object sender, KeyboardFocusChangedEventArgs e)
        {
            ActiveXHost activeXHost = sender as ActiveXHost;

            if (activeXHost != null)
            {
                Invariant.Assert(activeXHost.ActiveXState >= ActiveXHelper.ActiveXState.UIActive, "Should at least be UIActive when losing focus");
                bool flag = !activeXHost.IsKeyboardFocusWithin;
                if (flag)
                {
                    activeXHost.TransitionDownTo(ActiveXHelper.ActiveXState.InPlaceActive);
                }
            }
        }
예제 #7
0
        ///     This event handler forwards focus events to the hosted WF controls
        private static void OnLostFocus(object sender, KeyboardFocusChangedEventArgs e)
        {
            ActiveXHost axhost = sender as ActiveXHost;

            if (axhost != null)
            {
                // If the focus goes from our control window to one of the child windows,
                // we should not deactivate.
                //

                Invariant.Assert(axhost.ActiveXState >= ActiveXHelper.ActiveXState.UIActive, "Should at least be UIActive when losing focus");

                bool uiDeactivate = !axhost.IsKeyboardFocusWithin;

                if (uiDeactivate)
                {
                    axhost.TransitionDownTo(ActiveXHelper.ActiveXState.InPlaceActive);
                }
            }
        }
예제 #8
0
        private static void OnVisibilityInvalidated(ActiveXHost axHost)
        {
            if (axHost != null)
            {
                switch (axHost.Visibility)
                {
                    case Visibility.Visible:
                        //
                        break;
                    case Visibility.Collapsed:
                        //
                        break;
                    case Visibility.Hidden:
                        //



                        break;
                }
            }
        }
예제 #9
0
        private static void OnVisibilityInvalidated(ActiveXHost axHost)
        {
            if (axHost != null)
            {
                switch (axHost.Visibility)
                {
                case Visibility.Visible:
                    //Consider: axHost.HostedControl.Visible = true;
                    break;

                case Visibility.Collapsed:
                    //Consider: axHost.HostedControl.Visible = false;
                    break;

                case Visibility.Hidden:
                    //Consider:
                    //axHost._cachedSize = axHost.HostedControl.PreferredSize;
                    //axHost._hidden = true;
                    //axHost.HostedControl.Visible = false;
                    break;
                }
            }
        }
        internal ActiveXContainer(ActiveXHost host)
        {
            this._host = host;

            Invariant.Assert(_host != null);
        }
 internal void OnInPlaceDeactivate(ActiveXHost site)
 {
     //
     if (this.ActiveXHost == site)
     {
     }
 }
        internal void OnUIDeactivate(ActiveXHost site)
        {
#if DEBUG
            if (_siteUIActive != null) {
                //
                Debug.Assert(this.ActiveXHost == site, "deactivating when not active...");
            }
#endif // DEBUG

            //


            _siteUIActive = null;
        }
        internal void OnUIActivate(ActiveXHost site)
        {
            // The ShDocVw control repeatedly calls OnUIActivate() with the same
            // site. This causes the assert below to fire.
            //
            if (_siteUIActive == site)
                return;

            if (_siteUIActive != null )
            {
                //[....] WebOC also uses ActiveXHost instead of ActiveXSite.
                //Ideally it should have been the site but since its a 1-1 relationship
                //for hosting the webOC, it will work
                ActiveXHost tempSite = _siteUIActive;
                tempSite.ActiveXInPlaceObject.UIDeactivate();
            }
            Debug.Assert(_siteUIActive == null, "Object did not call OnUIDeactivate");
            _siteUIActive = site;

            //
        }
예제 #14
0
        private static void OnIsEnabledInvalidated(ActiveXHost axHost)
        {
            //
 

 
 
        }
예제 #15
0
        private static void OnVisibilityInvalidated(ActiveXHost axHost)
        {
            if (axHost != null)
            { 
                switch (axHost.Visibility)
                { 
                    case Visibility.Visible: 
                        //
                        break; 
                    case Visibility.Collapsed:
                        //
                        break;
                    case Visibility.Hidden: 
                        //
 
 

                        break; 
                }
            }
        }