RE: [GD-Windows] Messed up windows after fullscreen
Brought to you by:
vexxed72
From: Daniel V. <vo...@ep...> - 2001-09-28 01:31:22
|
> random window on top. I have no idea how to get around this -- I've > tried SetFocus() and all the various permutations of topmost window, > etc. and it still randomly gives the focus to another running when I > start to run. If I understood you correctly you want something like below: // Bring window to the top (including all Win32 mojo). HWND hWndForeground = ::GetForegroundWindow(); AttachThreadInput(GetWindowThreadProcessId(hWndForeground, NULL), GetCurrentThreadId(), true); SetForegroundWindow( Window->hWnd ); SetActiveWindow( Window->hWnd ); AttachThreadInput(GetWindowThreadProcessId(hWndForeground, NULL), GetCurrentThreadId(), false); - Daniel Vogel, Programmer, Epic Games Inc. |