Do anyone know how to find out what size a user monitor is at start up of your program....

I know how to get the resolution being used that can be founded in the Windows Reg at Deskop setting but i see no setting for screen size there.

Most users may have difference driver for their monitor so it seems hard to know what to search for if thats the only way it can be founded...

If not I'm wondering if you can get the screen size by opening a program such as Notepad at MAX and use FindWindow and get it screen size from that or may be, even better, the program desktop manager itself. If this is possible what steps to i have to take to get it...
Posted on 2002-02-16 20:51:13 by cmax
First Get the Device Context of the display
then use the GetDeviceCaps Function specifying HORZSIZE/VERTSIZE
invoke GetDC, NULL
mov hDC, eax
invoke GetDeviceCaps, hDC, HORZSIZE
Posted on 2002-02-16 23:01:48 by Quantum
width = invoke GetSystemMetrics, SM_CXSCREEN
height = invoke GetSystemMetrics, SM_CYSCREEN

Return Value: in EAX
Posted on 2002-02-16 23:12:03 by stryker
I didn't know it was that simple....I thought stuff like this was only for building your own windows or dialog....Going to work with this info right now.

Thanks Guys,
Posted on 2002-02-17 07:27:19 by cmax