|
-
Nov 27th, 2000, 05:38 PM
#1
How do i get the screen height and width?
-
Nov 28th, 2000, 06:09 AM
#2
Frenzied Member
This will return the screen dimensions in pixels
Code:
long scrwidth = GetSystemMetrics(SM_CXSCREEN);
long scrheight = GetSystemMetrics(SM_CYSCREEN);
-
Nov 28th, 2000, 11:17 AM
#3
-
Nov 29th, 2000, 01:37 PM
#4
Monday Morning Lunatic
It depends...here's some useless information:
Address 0040:0044 contains the width (2 bytes) and total size (another 2 bytes) of the screen buffer.
But those are 16-bit (*cries* - my book didn't have any 32-bit stuff in it)
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|