client screen dimensions (win32 api)

Started by
1 comment, last by Emexus 20 years ago
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.
Advertisement
GetClientRect()
"When you die, if you get a choice between going to regular heaven or pie heaven, choose pie heaven. It might be a trick, but if it's not, mmmmmmm, boy."
How to Ask Questions the Smart Way.
And if you want to make a window with specific client area dimensions, look into AdjustWindowRect.

This topic is closed to new replies.

Advertisement