Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: CTRL ALT DEL doesn't minimize full screen window  (Read 1088 times)

0 Members and 1 Guest are viewing this topic.

nairdaen

  • Newbie
  • *
  • Posts: 1
    • View Profile
CTRL ALT DEL doesn't minimize full screen window
« on: April 17, 2015, 05:11:22 am »
Hi,

I'm using SFML, setting up my game in full screen mode with:

//find computer's best resolution
RECT desktop;
const HWND hDesktop = GetDesktopWindow();
// Get the size of screen to the variable desktop
GetWindowRect(hDesktop, &desktop);
window = new sf::RenderWindow(sf::VideoMode(desktop.right, desktop.bottom), title, sf::Style::Fullscreen);

but it doesn't minimize the game when I hit CTRL ALT DEL and start the Task Manager. However, the behavior I expect is the window to be minimized if I start the Task Manager. How can I achieve this?

Thanks!         

dabbertorres

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • website/blog
Re: CTRL ALT DEL doesn't minimize full screen window
« Reply #1 on: April 17, 2015, 07:50:52 am »
First: There is a SFML way to get the desktop resolution, no need to use OS specific functions.
sf::VideoMode::getDesktopMode().

Second: Why do you expect this behavior when it isn't the way the OS behaves? Windows (for me at least, though I don't think this is a setting I changed at some point) does not minimize any windows when I press Ctrl-Alt-Del.
Though, if you want that behavior anyways, you'd have to check for those keys being pressed and do it yourself.