private SetActiveWindow ( |
||
hWnd | ||
return |
internal void Activate() { if (hwndSource != null) { if (hwndSource.Handle != IntPtr.Zero) { NativeMethods.SetActiveWindow(hwndSource.Handle); } } }
private static void Activate(Popup popup) { if (!openedHandlesByPopup.ContainsKey(popup)) { return; } IntPtr handle = openedHandlesByPopup[popup]; NativeMethods.SetActiveWindow(handle); NativeMethods.SetForegroundWindow(handle); }