width of window

Started by
4 comments, last by RegaRIP 21 years, 4 months ago
in a normal Win32 window how do I get the width and hiegth?
Advertisement
GetWindowRect
"GetClientRect()" if you want to know the width and
height of the wondow''s client

Kamikaze
Can't you also use GetSystemMetrics(SM_CXSCREEN) and GetSystemMetrics(SM_CYSCREEN)?? Or does that encompass the entire desktop? I have no idea

~del

[edited by - Del Snd of Thndr on December 6, 2002 12:46:15 PM]
~del
quote:Original post by Del Snd of Thndr
Can''t you also use GetSystemMetrics(SM_CXSCREEN) and GetSystemMetrics(SM_CYSCREEN)?? Or does that encompass the entire desktop?


Yes, that will give you the dimensions of the whole screen. Beer Hunter was correct.
Thx
~del

This topic is closed to new replies.

Advertisement