File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/Files.App/Helpers/Application Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -236,10 +236,19 @@ public static void SaveSessionTabs()
236
236
. ToList ( ) ;
237
237
}
238
238
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>
239
250
public static unsafe void BringToForegroundEx ( Windows . Win32 . Foundation . HWND hWnd )
240
251
{
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
243
252
var hCurWnd = PInvoke . GetForegroundWindow ( ) ;
244
253
var dwMyID = PInvoke . GetCurrentThreadId ( ) ;
245
254
var dwCurID = PInvoke . GetWindowThreadProcessId ( hCurWnd ) ;
You can’t perform that action at this time.
0 commit comments