comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: How to get the screen size?
Date: Sun, 7 Apr 2013 12:00:24 +0200
Date: 2013-04-07T12:00:24+02:00	[thread overview]
Message-ID: <s4ek8484eh0j.7lt7ssnej321$.dlg@40tude.net> (raw)
In-Reply-To: 6b8c123d-e1fd-40a9-bc88-891241727409@googlegroups.com

On Sun, 7 Apr 2013 02:38:13 -0700 (PDT), tolkamp wrote:

> Op zaterdag 6 april 2013 19:35:54 UTC+2 schreef tolkamp het volgende:
>> To make my ada application program suitable for more monitor sizes, I need
>> the Screen Size. Where the size is the number of pixels.
>> 
>> Is there a function or procedure to get the screen width and height?
> 
> My ADA application program uses JEWL packages.
> The OS is Windows 7.

Does JEWL provide this information?

Anyway, if your application is limited to Windows already, there is no
reason not to use Win32Ada.

You call GetDesktopWindow from the package Win32.Winuser, which gives you a
handle to the desktop window. Then you call GetWindowRect on that window.
The rectangle returned is one of the desktop. For further information see
MSDN:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms633504%28v=vs.85%29.aspx

Note than Windows supports multiple monitors. You could wish to enumerate
them. See GetMonitorInfo in MSDN.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

      reply	other threads:[~2013-04-07 10:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-06 17:35 How to get the screen size? tolkamp
2013-04-06 17:56 ` tmoran
2013-04-06 18:04 ` Patrick
2013-04-07  9:38 ` tolkamp
2013-04-07 10:00   ` Dmitry A. Kazakov [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox