Re: [GD-Windows] Alt+Tab in fullscreen with no other apps running
Brought to you by:
vexxed72
|
From: Alen L. <ale...@cr...> - 2007-09-04 16:03:14
|
Hi Oscar,
IIRC, we've always been doing something like
if( (msg.message==WM_ACTIVATE && (LOWORD(msg.wParam)==WA_INACTIVE || HIWORD(msg.wParam)))
|| msg.message==WM_CANCELMODE
|| msg.message==WM_KILLFOCUS
|| (msg.message==WM_ACTIVATEAPP && !msg.wParam)) {
if (bInFullScreen) {
PostMessage(NULL, WM_SYSCOMMAND, SC_MINIMIZE, 0);
}
That seems to work for us, YMMV.
HTH,
Alen
Oscar wrote:
> Hi,
> Does anyone know if there's something I have to do (or avoid doing) to make
> my game minimise when the player hits Alt+Tab whilst running in fullscreen
> with no other apps running?
> My game isn't minimising in pre-Vista versions of Windows, but other games
> seem to do so. Windows isn't sending me any WM_ACTIVATE or WM_ACTIVATEAPP
> messages. I am getting WM_NCACTIVATE and WM_CANCELMODE, and I'm passing
> these on to the default WndProc expecting it to handle any necessary
> plumbing.
> With other apps running the Alt+Tab behaviour is correct in fullscreen, but
> in this case Windows is sending me a completely different sequence of
> messages.
> Thanks in advance,
> Oscar Cooper
> Lead Programmer
> Frontier Developments Ltd
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Gamedevlists-windows mailing list
> Gam...@li...
> https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
> Archives:
> http://sourceforge.net/mailarchive/forum.php?forum_id=555
|