Update the Windows Resource compiler (windres) to support the OWNERDRAW and BITMAP menuitem flags.

binutils* rclex.c: Add OWNERDRAW keyword.
	* rcparse.y: Add OWNERDRAW token.
	(menuitem_flag) Add BITMAP and OWNERDRAW entries.
	* resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
	BITMAP flags.
	* windres.c (extended_menuitems): Likewise.
	* testsuite/binutils-all/windres/menuitem_flags.rc: New test.
This commit is contained in:
Nick Clifton
2020-07-09 13:45:01 +01:00
parent e3fdc001d3
commit d90171dec1
6 changed files with 42 additions and 2 deletions

View File

@@ -2841,6 +2841,10 @@ write_rc_menuitems (FILE *e, const rc_menuitem *menuitems, int menuex,
fprintf (e, ", MENUBARBREAK");
if ((mi->type & MENUITEM_MENUBREAK) != 0)
fprintf (e, ", MENUBREAK");
if ((mi->type & MENUITEM_OWNERDRAW) != 0)
fprintf (e, ", OWNERDRAW");
if ((mi->type & MENUITEM_BITMAP) != 0)
fprintf (e, ", BITMAP");
}
else
{