GetFocus() private method

private GetFocus ( ) : IntPtr
return System.IntPtr
Beispiel #1
0
        private void SetActivePane()
        {
            DockPane value = GetPaneFromHandle(User32.GetFocus());

            if (m_activePane == value)
            {
                return;
            }

            if (m_activePane != null)
            {
                m_activePane.SetIsActivated(false);
            }

            m_activePane = value;

            if (m_activePane != null)
            {
                m_activePane.SetIsActivated(true);
            }
        }
Beispiel #2
0
        private void SetActiveDocument()
        {
            DockContent value = ActiveDocumentPane == null ? null : ActiveDocumentPane.ActiveContent;

            if (m_activeDocument == value)
            {
                return;
            }

            m_activeDocument = value;
            if (m_activeDocument != null)
            {
                if (m_activeDocument.HiddenMdiChild != null)
                {
                    IntPtr hWnd = User32.GetFocus();
                    m_activeDocument.HiddenMdiChild.Activate();
                    User32.SetFocus(hWnd);
                }
            }

            OnActiveDocumentChanged(EventArgs.Empty);
        }