Handler for Switch User on Windows 7

Hello,

I am working on a 32 Bit Windows 7 application that uses open GL. We have ran into a problem where, when the user presses the windows key and selects 'switch users' on the windows 7 start menu and then logs in as the same user, our screen shifts about 50 pixels down. (Oddly this is about the exact same size as the windows 7 toolbar, and I'm not sure if this is a coincidence or not.)

Our program runs in full screen mode without any borders (glfwWindowHint( GLFW_DECORATED, 0 )) with the windows toolbar hidden behind the application.

I know of a few ways that this could be fixed but I have no idea how to do any of them:
- Have a handler that is called when the PC user is switched. (I have no idea what that handler is or if it even exists in plain c++ context).

- Close the Application when the user presses 'switch users'. (Not sure what kind of handler/method to use for that)

- or if anybody knows anything else that may be causing this problem.

Any help would be greatly appreciated as our code-freeze for this project is in about a day and half

using GLFW3 and boost lib 12.0
Last edited on
Topic archived. No new replies allowed.