Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Date: Thu, 28 Oct 1999 13:54:07 -0400 Message-Id: <199910281754.NAA24980@envy.delorie.com> From: DJ Delorie To: ian AT zembu DOT com CC: cygwin AT sourceware DOT cygnus DOT com In-reply-to: <19991028032226.10764.qmail@daffy.airs.com> (message from Ian Lance Taylor on 27 Oct 1999 23:22:26 -0400) Subject: Re: [kzmi AT ca2 DOT so-net DOT ne DOT jp: Re: windres cant make a child window resource ?] References: <19991028032226 DOT 10764 DOT qmail AT daffy DOT airs DOT com> I confirm it. Specifying a STYLE *overrides* the default in MSVC, it doesn't append to it. My opinion is: fix it. Yes, it won't be compatible with old cygwin-specific resource files, but better a small hit now than a big hit later. > Hi, I'm the GNU binutils maintainer. Can anybody on the cygwin list > confirm or deny this bug report about windres? Making the suggested > change would not be backward compatible, which concerns me. > > Ian > > ------- Start of forwarded message ------- > To: Ian Lance Taylor > CC: bug-gnu-utils AT gnu DOT org > Subject: Re: windres cant make a child window resource ? > Date: Thu, 28 Oct 1999 02:29:46 +0900 > From: Iwasa Kazmi > X-Dispatcher: imput version 980905(IM100) > > Ian Lance Taylor wrote: > > Date: Thu, 28 Oct 1999 00:58:18 +0900 > > From: Iwasa Kazmi > > > > Windres seems to be not able to make a dialog resource > > which have only WS_CHILD style. > > All dialogs will be added a popup-window style. > > > > AFAIS, rcparse.y have a problem. > > In the parsing time, if windres got a `DIALOG' or `DIALOGEX' > > section, it set a dialog style as (WS_POPUP|WS_BORDER|WS_SYSMENU). > > Then, if it got a `STYLE' line, it *add* the new styles > > to the dialog style. > > > > If this is a correct work, windres should be added > > an other way to set the dialog styles except WS_POPUP. > > > > You can remove the default styles by using NOT. For example, > > something like > > STYLE NOT WS_POPUP | NOT WS_BORDER > > Thank you. It works well for create a WS_CHILD dialog. > > > > > > I think this is compatible with Microsoft's rc program. > > > > Ian > > In VC++6, usually I'm using, IDE creates a simple STYLE line like this: > > STYLE WS_CHILD > > and RC creates a dialog resource which have only WS_CHILD style. > I don't know about old version. but I think default style should be > enabled only if STYLE line was omitted. > > - -- > Iwasa Kazmi > kzmi AT ca2 DOT so-net DOT ne DOT jp > ------- End of forwarded message ------- > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com