From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: grischka Newsgroups: gmane.emacs.devel Subject: Re: x-display-pixel-width/height inconsistency Date: Thu, 21 Mar 2013 02:09:53 +0100 Message-ID: <514A5DE1.10009@gmx.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1363828212 26578 80.91.229.3 (21 Mar 2013 01:10:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2013 01:10:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 21 02:10:38 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UIU1b-0000Gh-Tj for ged-emacs-devel@m.gmane.org; Thu, 21 Mar 2013 02:10:36 +0100 Original-Received: from localhost ([::1]:52375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIU1E-0005Jr-KM for ged-emacs-devel@m.gmane.org; Wed, 20 Mar 2013 21:10:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIU1A-0005Hu-GY for emacs-devel@gnu.org; Wed, 20 Mar 2013 21:10:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIU18-0004z5-0J for emacs-devel@gnu.org; Wed, 20 Mar 2013 21:10:08 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:49314) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIU17-0004x7-NE for emacs-devel@gnu.org; Wed, 20 Mar 2013 21:10:05 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.33]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MJqWY-1UJZwe3Xq0-001Azs for ; Thu, 21 Mar 2013 02:10:04 +0100 Original-Received: (qmail invoked by alias); 21 Mar 2013 01:10:03 -0000 Original-Received: from unknown (EHLO [10.58.104.20]) [82.113.98.20] by mail.gmx.net (mp033) with SMTP; 21 Mar 2013 02:10:03 +0100 X-Authenticated: #18588216 X-Provags-ID: V01U2FsdGVkX19QRZJABiNQGZndH766ORUwcGEU9uBRjU8DKuVp7X PM5FphWohNimaK User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.18 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158013 Archived-At: YAMAMOTO Mitsuharu wrote: >>>>>> On Thu, 21 Mar 2013 01:58:38 +0100, grischka 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 > mituharu@math.s.chiba-u.ac.jp >