delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/14/14:09:12

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
Date: Sat, 14 Feb 2004 13:08:57 -0600
From: Joshua Daniel Franklin <joshuadfranklin AT yahoo DOT com>
To: Dick Repasky <rrepasky AT lack DOT ucs DOT indiana DOT edu>, cygwin AT cygwin DOT com
Subject: Re: cygutils: mkshortcut patch - show window norm, min, max
Message-ID: <20040214130857.A27955@ns1.iocc.com>
References: <Pine DOT LNX DOT 4 DOT 58 DOT 0402132108310 DOT 3928 AT lack DOT ucs DOT indiana DOT edu>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <Pine.LNX.4.58.0402132108310.3928@lack.ucs.indiana.edu>; 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:

<http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/ifaces/ishelllink/SetShowCmd.asp>

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:

<http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarvbtips/html/msdn_msdn7.asp>

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019