View Full Version : window's size
Bra'Tac
03-30-2001, 05:08 AM
how to get the window's size (height and width) ?
lpVoid
03-30-2001, 05:16 AM
depends on your OS
in windows, you can use a number of functions for determining this:
GetWindowExtEx()
GetClientRect()
etc...
also, during a WM_SIZE message
width = LOWORD(lParam)
height = HIWORD(lParam)
chrisATI
03-30-2001, 06:23 AM
if you are using glut then you can set the initial window size with glutInitWindowSize and then use glutReshapeFunc to set up a reshape handler that will keep track of window reshape events.
Christopher Oat
ATI Research, Inc.
3D Application Research Group
[This message has been edited by chrisATI (edited 03-30-2001).]
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.