Advertisement Jump to content
Sign in to follow this  
d000hg

Window hidden behind startbar

This topic is 5045 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

To make testing my Direct3D app easier I run it in a fullscreen window. However this window uses the whole screen, including the part underneath the startbar. So the bottom of my window is hidden. Can I easily find the window dimensions and position to use to exactly fill the whole screen apart from the startbar?

Share this post


Link to post
Share on other sites
Advertisement
There's two solutions to your problem. First, if you want to actually cover the task bar, you need to use CreateWindowEx and pass it the WS_EX_TOPMOST flag. This will make sure you're always on top of every other window.

The solution to your actual question - that is, how to get the "usable" desktop size - is to use SystemParametersInfo and passing it the SPI_GETWORKAREA flag.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!