[time-nuts] Lady Heather wants to know: How big is your tube?

David C. Partridge david.partridge at dsl.pipex.com
Thu Oct 15 13:43:46 UTC 2009

I already posted the simple code to do this assuming a single monitor where
the desktop resolution is the same as the monitor.

For multi-monitor setups, you are probably best to find out which monitor
the heather window is in (use MonitorFromWindow Api to get the handle of the
monitor the Heather application is running in), and then use

For more about this see:


-----Original Message-----
From: time-nuts-bounces at febo.com [mailto:time-nuts-bounces at febo.com] On
Behalf Of Dave Baxter
Sent: 15 October 2009 14:27
To: time-nuts at febo.com
Subject: Re: [time-nuts] Lady Heather wants to know: How big is your tube?

Am I missing something?

Why not just query the system, and ask it what it knows about the screen in

Other software tools and utils can do it, I even remember doing it in
QuickBasic back in the dark old DOS days, when you were seen as a minor
deity if you had anything larger than a 640x480 screen.

I'd be extremely surprised if there is no way to determine the screen
geometry by a query to some part of the OS, or even the BIOS, if it's the
native hardware resolution you need to know.

Or is there a reason why LH can't do that?   Is her whip not long enough
or something?


Dave B.

time-nuts mailing list -- time-nuts at febo.com To unsubscribe, go to
and follow the instructions there.

More information about the time-nuts mailing list