View Full Version : getting screen rez?

12-08-2002, 06:35 AM
i know that `GetSystemMetrics(SM_CXSCREEN) and `GetSystemMetrics(SM_CYSCREEN)` gets the screens height and width from the 'windows.h' include file, but can you get this info from any other include files?, and whats the commands to get them plus the command to get the depth?.

12-08-2002, 08:47 AM
is this is DOS programming on purpose or by mistake?

12-08-2002, 12:12 PM
on purpose, i'm trying to make the program as small as posable using the least amount of include files, plus i find it easyer to understand DOS programming. i just thought some of the smaller libarys would have commands to get the info, and this would be the best place to ask.

12-08-2002, 12:37 PM
this should have been in windows programming but...

it's declard in winuser.h...windows.h just includes a bunch of other files, if this is the only windows function you're using then just include this file to save space like you want.

12-08-2002, 01:50 PM
thanks thats just what i'm after,:) does anyone know the command to get the screen depth.?