How do I prevent Window resizing when the Workstation is Locked then Unlocked?

Posted by Terry on Stack Overflow See other posts from Stack Overflow or by Terry
Published on 2009-12-10T15:14:19Z Indexed on 2010/05/19 22:00 UTC
Read the original article Hit count: 169

Filed under:
|
|
|

We have an application that is run in multi-monitor environments. Users normally have the application dialog spread out to span multiple mointors.

If the user locks the workstation, and then unlocks it, our application is told to resize.

Our users find this behavior frustrating, as they then spend some time restoring the previous layout.

We're not yet sure whether it is the graphics driver requesting the resize or Windows. Hopefully through this question, it will become clearer which component is responsible,

Popular applications like (File) Explorer and Firefox behave the same way in this setup. To replicate just:

  1. open Explorer (Win+E)
  2. drag the Explorer window to being horizontally larger than 1 screen
  3. lock workstation (Win+L),
  4. unlock
  5. the application should now resize to being solely on 1 screen


How do I prevent Window resizing when the Workstation is Locked then Unlocked?
Will we need to code in checks for (un)locking?
Is there another mechanism we're not aware of?

© Stack Overflow or respective owner

Related posts about Windows

Related posts about display