emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: x-display-pixel-width/height inconsistency


From: grischka
Subject: Re: x-display-pixel-width/height inconsistency
Date: Thu, 21 Mar 2013 02:09:53 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

YAMAMOTO Mitsuharu wrote:
On Thu, 21 Mar 2013 01:58:38 +0100, grischka <address@hidden> said:

The DC has nothing to do with monitors because monitors are just
different coordinates on the same (virtual) screen. (Obviously since
you can drag the window between monitors, even such that it's
partially on two monitors at the same time.)

It is the size of whole "(virtual) screen" that we want to know here,
rather than the size of a particular monitor.

Then use
        w = GetSystemMetrics(SM_CXVIRTUALSCREEN);
        h = GetSystemMetrics(SM_CYVIRTUALSCREEN);

--- gr

I tried to use CreateDC
because the reference says:

  If there are multiple monitors on the system, calling
  CreateDC(TEXT("DISPLAY"),NULL,NULL,NULL) will create a DC covering
  all the monitors.
  http://msdn.microsoft.com/ja-jp/library/dd183490.aspx

                                     YAMAMOTO Mitsuharu
                                address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]