SetActiveWindow() private method

private SetActiveWindow ( IntPtr hWnd ) : IntPtr
hWnd System.IntPtr
return System.IntPtr
コード例 #1
0
ファイル: RibbonPopup.cs プロジェクト: ckimpel/FSE-2011-PDE
 internal void Activate()
 {
     if (hwndSource != null)
     {
         if (hwndSource.Handle != IntPtr.Zero)
         {
             NativeMethods.SetActiveWindow(hwndSource.Handle);
         }
     }
 }
コード例 #2
0
ファイル: RibbonPopup.cs プロジェクト: LeeMyGithub/pptEditIDE
        private static void Activate(Popup popup)
        {
            if (!openedHandlesByPopup.ContainsKey(popup))
            {
                return;
            }
            IntPtr handle = openedHandlesByPopup[popup];

            NativeMethods.SetActiveWindow(handle);
            NativeMethods.SetForegroundWindow(handle);
        }