PDA

Click to See Complete Forum and Search --> : Screen height and width


Nov 27th, 2000, 04:38 PM
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);

Nov 28th, 2000, 10:17 AM
Sorry, i meant dos.

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)