Re: [GD-Windows] SetForegroundWindow failing?
Brought to you by:
vexxed72
From: Andrew G. <an...@ra...> - 2002-02-17 14:44:11
|
Only a foreground process can call SFW, this was introduced by MS in Win98 and later to stop applications stealing the focus. There are other criteria for SFW but this is probably the one that's tripping you up. try: ShowWindow(hWnd, SW_RESTORE); SetForegroundWindow(hWnd); // andrew ----- Original Message ----- From: "Brian Hook" <bri...@py...> To: <gam...@li...> Sent: Sunday, February 17, 2002 2:12 AM Subject: [GD-Windows] SetForegroundWindow failing? > My calls to SetForegroundWindow() are mysteriously failing. On Win2K > I'm getting GetLastError() of 0; on Win98, I get error 87 > (E_INVALIDPARMS). The hWnd is valid. > > Any ideas what might cause this? > > Thanks, > > Brian > > > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 > |