Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Status Bar Size?

This topic is 6649 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

My program uses a status bar, but i need to know the size of it. (the height that is.) In any case, it says in the MSDN that the height is defined by the font, but how? i cannot find anything in the MSDN to get the height of the status bar. (I need to have a combo box fill up the rest of the screen but i don''t know where to tell it to stop in the MoveWindow calls) i.e. \------------------------- | Client Area ---- | |-i need this distance | \------------\------------- Status bar |-or this height -------------\-------

Share this post

Link to post
Share on other sites
GetSystemMetrics() won''t do the trick here...hmmm...
If I remember oke, I think it was 20 pixels. But you could use the GetWindowRect() to find out the exact size at run-time.

If you give the statusbar the CCS_NORESIZE style, you can resize it to whatever you like...

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!