Jump to content
  • Advertisement


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


client screen dimensions (win32 api)

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

Hi, I’m wondering if someone could explain how I can get the client area dimensions that im drawing to, as ive tried using
case WM_SIZE:
	WindowSizeX = LOWORD(lParam);
	WindowSizeY = HIWORD(lParam);
But it seems to create the dimensions including the title bar, I also have a menu and I don’t want this included. I did some searches earlier and it was suggested that you can use: GetSystemMetrics(SM_CXFULLSCREEN) GetSystemMetrics(SM_CYFULLSCREEN) But as my application is not always full screen I can’t see how that would work, Cheers for any help.

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
And if you want to make a window with specific client area dimensions, look into AdjustWindowRect.

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!