delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <047e01c25813$b18ce8e0$0100a8c0@sfdev3> |
Reply-To: | "Norman Vine" <nhv AT cape DOT com> |
From: | "Norman Vine" <nhv AT cape DOT com> |
To: | <cygwin AT cygwin DOT com> |
References: | <Pine DOT GSO DOT 4 DOT 44 DOT 0209091058510 DOT 1269-100000 AT slinky DOT cs DOT nyu DOT edu> |
Subject: | Re: Setup window size: a suggestion |
Date: | Mon, 9 Sep 2002 11:15:11 -0400 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
X-Virus-Scanned: | Cape.Com VirusScan, no known virus found |
Igor Pechtchanski writes: > I like that last one (detecting the video mode), and was going to suggest > it too, but then thought that some users might like more control over > their window size... However, on reflection, it does sound good. And for > the control freaks (like me), a command-line option wouldn't hurt, > either... ;-) #include <windows.h> DEVMODE dm; dm.dmSize = sizeof(DEVMODE); EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, &dm); Relevant bits are dm.dmPelsWidth // screen width dm.dmPelsHeight // screen height HTH Norman -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |