Jump to content
  • Advertisement
Sign in to follow this  
theOcelot

Solved: Cross-platform way to get specific client area [wxWidgets]

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

I'm programming with wxWidgets. I want to create windows which have a specific client area. On my windows computer, I can measure the discrepancy between the window size I specified and what the device context reports, and hard-code that into my window-creation, but this will obviously break on platforms with different-sized decorations. Further, it gives me a slightly nasty feeling inside. To make things more complicated, the windows which I would like to have with a specific size may be further nested in a wxNotebook. I realize I may just have to suck it up, or do something annoying like make an invisible window and measure it. Is there any hope for me? [Edited by - theOcelot on January 21, 2009 4:52:41 PM]

Share this post


Link to post
Share on other sites
Advertisement
I don't appear to have used this (doing a quick search on my code-base), but from its description in the docs it seems like it fits the bill: wxWindow::SetClientSize

Share this post


Link to post
Share on other sites
Shoulda known to look at wxWindow methods. I guess I was stuck in constructor mode. I'll see if it works when I get a chance. Thank you!

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.

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!