How do i get the screen height and width?
Printable View
How do i get the screen height and width?
This will return the screen dimensions in pixels
Code:long scrwidth = GetSystemMetrics(SM_CXSCREEN);
long scrheight = GetSystemMetrics(SM_CYSCREEN);
Sorry, i meant dos.
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)