Advertisement

width of window

Started by December 05, 2002 11:09 PM
4 comments, last by RegaRIP 21 years, 11 months ago
in a normal Win32 window how do I get the width and hiegth?
GetWindowRect
Advertisement
"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