Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" From: "Norman Vine" To: References: Subject: Re: Setup window size: a suggestion Date: Mon, 9 Sep 2002 11:15:11 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 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/