Skip to content

Commit 56bfc8f

Browse files
committed
Added xml comment
1 parent b170f29 commit 56bfc8f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/Files.App/Helpers/Application/AppLifecycleHelper.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,19 @@ public static void SaveSessionTabs()
236236
.ToList();
237237
}
238238

239+
/// <summary>
240+
/// Brings the app window to foreground.
241+
/// </summary>
242+
/// <remarks>
243+
/// For more information, visit
244+
/// <br/>
245+
/// - <a href="https://stackoverflow.com/questions/1544179/what-are-the-differences-between-bringwindowtotop-setforegroundwindow-setwindo" />
246+
/// <br/>
247+
/// - <a href="https://stackoverflow.com/questions/916259/win32-bring-a-window-to-top" />
248+
/// </remarks>
249+
/// <param name="hWnd">The window handle to bring.</param>
239250
public static unsafe void BringToForegroundEx(Windows.Win32.Foundation.HWND hWnd)
240251
{
241-
// https://stackoverflow.com/questions/1544179/what-are-the-differences-between-bringwindowtotop-setforegroundwindow-setwindo
242-
// https://stackoverflow.com/questions/916259/win32-bring-a-window-to-top
243252
var hCurWnd = PInvoke.GetForegroundWindow();
244253
var dwMyID = PInvoke.GetCurrentThreadId();
245254
var dwCurID = PInvoke.GetWindowThreadProcessId(hCurWnd);

0 commit comments

Comments
 (0)