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 Date: Sat, 14 Feb 2004 13:08:57 -0600 From: Joshua Daniel Franklin To: Dick Repasky , cygwin AT cygwin DOT com Subject: Re: cygutils: mkshortcut patch - show window norm, min, max Message-ID: <20040214130857.A27955@ns1.iocc.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from rrepasky@lack.ucs.indiana.edu on Fri, Feb 13, 2004 at 09:12:59PM -0500 On Fri, Feb 13, 2004 at 09:12:59PM -0500, Dick Repasky wrote: > > Attached is a patch to mkshortcut in the cygutils package that adds > a commandline option for specifying how the new window for the launched > application should be appear - normal, minimized or maximized. > > The patch was made against cygutils version 1.2.4. I hope that it is > included in the next release of cygutils. Dick, Thanks very much for the patch (even for the man page, too)! I made two small changes. First, I put the -s option in alphanumeric order instead of at the end of --help output. Second, the normal and maximized modes work as expected on my Windows XP Pro box, but the minimized does not (tested with IE, notepad, and Explorer)... from a quick look at MSDN, it looks like MS now recommends SW_SHOWMINNOACTIVE (minimize and no focus), which I think is maybe what you really want anyway: Unfortunately XP is all I have now, so I can't make sure this works with all Windows versions, but I found this article from 1995 that lists it, so I think we're in good shape: So anyway I was going to commit the change into CVS, but it looks like I don't have write to the cygutils module of cygwin-apps... attached is the updated CVS diff. Cygutils is infrequently released, but the next version should have the change in it. Thanks again! -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/