Archived

This topic is now archived and is closed to further replies.

glutGet(GLUT_WINDOW_WIDTH) ->gl?

This topic is 5653 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

BOOL GetWindowRect(
HWND, // handle to window
LPRECT // Pointer to a RECT structure that receives the screen coordinates of the upper-left and lower-right corners of the window.
)

The GetWindowRect function retrieves the dimensions of the bounding rectangle of the specified window. The dimensions are given in screen coordinates that are relative to the upper-left corner of the screen.

You can then access the left and right members of the RECT struct and figure out the width of your window.


[edited by - Hawkeye3 on June 25, 2002 3:56:45 PM]

Share this post


Link to post
Share on other sites