bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Windres bug


From: Sergei Migdalsky
Subject: Windres bug
Date: Mon, 5 Nov 2001 14:21:08 +0200

Bug report on:

Windres.exe version 2.11.90 from MinGW-1.1 distribution.
GCC version 2.95.3-6


Sometimes DIALOG and DIALOGEX definitions (in *.rc files) are compiled
incorrectly.

When STYLE clause following DIALOG[EX] contains only WS_CHILD style, the
compiled dialog contains both WS_POPUP and WS_CHILD window styles.

It should compile WS_CHILD dialogs as child, not as popup.

Sample DIALOG definition that compiles styles incorrectly:

IDD_FOO DIALOG 0, 0, 259, 72
STYLE WS_CHILDWINDOW
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        1,2,2,40,14,ES_AUTOHSCROLL | ES_NUMBER
END

If you try to CreateDialog() from IDD_FOO resource, it will create a
popup dialog with both WS_POPUP and WS_CHILD styles set, instead of
creating a child dialog.

Workaround:

Compile the DIALOG[EX] resource with another resource compiler or
manually, then embed the compiled resource as binary resource and create
dialog with CreateDialogIndirect rather than CreateDialog. The binary
resource is compiled in without problems.

Sincerely,
Sergei Migdalskiy





reply via email to

[Prev in Thread] Current Thread [Next in Thread]