SwitchToThisWindow() private method

private SwitchToThisWindow ( IntPtr hWnd, bool fAltTab ) : void
hWnd System.IntPtr
fAltTab bool
return void
示例#1
0
        public void SwitchToLastVisibleActivePopup()
        {
            var lastActiveVisiblePopup = GetLastActiveVisiblePopup();

            WinApi.SwitchToThisWindow(lastActiveVisiblePopup, true);
        }
示例#2
0
 /// <summary>
 /// Sets the focus to this window and brings it to the foreground.
 /// </summary>
 public void SwitchTo()
 {
     // This function is deprecated, so should probably be replaced.
     WinApi.SwitchToThisWindow(HWnd, true);
 }