DeferWindowPos and SWP_SHOWWINDOW/SWP_HIDEWINDOW

Posted by Tom Bell on Stack Overflow See other posts from Stack Overflow or by Tom Bell
Published on 2010-05-19T14:04:43Z Indexed on 2010/05/19 14:40 UTC
Read the original article Hit count: 170

Filed under:
|
|
|

I am writing a virtual desktop application which utilises the DeferWindowPos API functions. The current method I am using is moving the windows off the screen if they're not on the current virtual desktop. However I know wish to also hide the windows that are off-screen so they do not appear on the task bar. I have attempted this by also passing SWP_SHOWWINDOW/SWP_HIDEWINDOW to the DeferWindowPos() calls. I have read a few sites regarding this and one of them suggested that if SWP_SHOWWINDOW/SWP_HIDEWINDOW are passed, then the window will only show or hide, and no reposition. Can anyone confirm this, or am I doing something wrong?

© Stack Overflow or respective owner

Related posts about Windows

Related posts about c++