CreateWindow size setting issue

hi,

using CreateWindow to create a window of a specific size seems to include the windows borders within the pixel size I specify? I guess I have to compensate, but if so I'm not sure how to discover the size of the borders (title bar, etc.) in order to add them to the width and height i pass in. Any ideas?

thanks,
tony
[348 byte] By [tonyw] at [2007-11-19 14:09:22]
# 1 Re: CreateWindow size setting issue
Use GetSystemMetrics API to get the values for widths of border, caption etc.
kirants at 2007-11-11 0:00:15 >
# 2 Re: CreateWindow size setting issue
Two solutions:
Use the GetSystemMetrics(...) to retrieve size of borders, captions, etc...
Or use CWnd::CalcWindowRect or AdjustWindowRectEx
Marc G at 2007-11-11 0:01:15 >
# 3 Re: CreateWindow size setting issue
thanks guys :)

tony
tonyw at 2007-11-11 0:02:19 >
# 4 Re: CreateWindow size setting issue
You are welcome .. good luck :wave:
kirants at 2007-11-11 0:03:25 >