Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RE: Multiple Monitor geometery

39 views
Skip to first unread message

JHaggerty

unread,
May 12, 2009, 8:48:01 PM5/12/09
to
The relative X & Y co-ords are signed numbers, and the upper-left of the
primary screen is always the origin of the desktop. When you move another
screen to the left of the primary, its RelativeX should be negative,
likewise, when a screen is above the primary, its RelativeX will be negative.
Some of your numbers make sense - 0xFFFFFC00 = 1024 decimal, for example, but
some of them are a little hard to parse. Are your screens different sizes and
not lined up edge-to-edge?

You didn't mention which OS you're using, but I think in all of them since
Win2K you can hover the mouse pointer over the screen icons in the Display
Properties / Settings page and a pop-up will pop up that tells you the
co-ordinates of each screen. You can see the negative values there.

--
JHaggerty


"jpatrcik" wrote:

> I have to back up and restore multiple monitor information, including the
> relative positions of the primary video device to the secondary (or extended)
> video device. Digging in he registry, I find the video GUIDs for the primary
> and secondary video devices, but I am perplexed at the settings on the
> secondary device. For instance, the Attach.RelativeX and the Attach.RelativeY
> for the secondary device positined to the right of the primary device is 1280
> and 0 respectively, just what you'd assume if the primary monitor had a 1280
> horizontal resolution. So far, so good. However, if I move the secondary
> video device (extended desktop) directly on top of the primary monitor, the
> results are Attach.RelativeX=0xfffff70 (4294967152) and
> Attach.RelativeY=0xffffC00 (4294966272). This is confusing, since I'd expect
> them to be Attach.RelativeX=768 (horizontal resolution of primary) and
> Attach.RelativeY=0.
> The same confusion reins when I move the secondary video device to the left
> of the primary monitor. In this case, Attach.RelativeX=0xfffff70 (4294966016)
> and Attach.RelativeY=0xffffff00(4294967040).
>
> Is there some sort of conversion to take into account that I am missing?

0 new messages