Inheritance: System.Windows.Interop.HwndHost
コード例 #1
0
ファイル: ActiveXHost.cs プロジェクト: notfarfromorion/wpf
 private static void OnIsEnabledInvalidated(ActiveXHost axHost)
 {
     //Consider: ActiveX equivalent?
     //if (axHost != null)
     //{
     //    axHost.HostedControl.Enabled = axHost.IsEnabled;
     //}
 }
コード例 #2
0
ファイル: ActiveXSite.cs プロジェクト: JianwenSun/cc
 internal ActiveXSite(ActiveXHost host) 
 {
     if (host == null) 
     {
         throw new ArgumentNullException("host");
     }
     _host = host;
 }
コード例 #3
0
ファイル: ActiveXHost.cs プロジェクト: dox0/DotNet471RS3
        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
ファイル: ActiveXHost.cs プロジェクト: notfarfromorion/wpf
        ///     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
ファイル: ActiveXHost.cs プロジェクト: dox0/DotNet471RS3
        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
ファイル: ActiveXHost.cs プロジェクト: notfarfromorion/wpf
        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;
                }
            }
        }
コード例 #10
0
        internal ActiveXContainer(ActiveXHost host)
        {
            this._host = host;

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

            //


            _siteUIActive = null;
        }
コード例 #13
0
        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
ファイル: ActiveXHost.cs プロジェクト: sjyanxin/WPFSource
        private static void OnIsEnabledInvalidated(ActiveXHost axHost)
        {
            //
 

 
 
        }
コード例 #15
0
ファイル: ActiveXHost.cs プロジェクト: sjyanxin/WPFSource
        private static void OnVisibilityInvalidated(ActiveXHost axHost)
        {
            if (axHost != null)
            { 
                switch (axHost.Visibility)
                { 
                    case Visibility.Visible: 
                        //
                        break; 
                    case Visibility.Collapsed:
                        //
                        break;
                    case Visibility.Hidden: 
                        //
 
 

                        break; 
                }
            }
        }