Click to See Complete Forum and Search --> : Screen height and width
How do i get the screen height and width?
Vlatko
Nov 28th, 2000, 05:09 AM
This will return the screen dimensions in pixels
long scrwidth = GetSystemMetrics(SM_CXSCREEN);
long scrheight = GetSystemMetrics(SM_CYSCREEN);
parksie
Nov 29th, 2000, 12:37 PM
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)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.