forked from Imagelibrary/binutils-gdb
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:
@@ -124,7 +124,7 @@ static const rc_res_id res_null_text = { 1, {{0, &null_unichar}}};
|
||||
%token ICON
|
||||
%token ANICURSOR ANIICON DLGINCLUDE DLGINIT FONTDIR HTML MANIFEST PLUGPLAY VXD TOOLBAR BUTTON
|
||||
%token LANGUAGE CHARACTERISTICS VERSIONK
|
||||
%token MENU MENUEX MENUITEM SEPARATOR POPUP CHECKED GRAYED HELP INACTIVE
|
||||
%token MENU MENUEX MENUITEM SEPARATOR POPUP CHECKED GRAYED HELP INACTIVE OWNERDRAW
|
||||
%token MENUBARBREAK MENUBREAK
|
||||
%token MESSAGETABLE
|
||||
%token RCDATA
|
||||
@@ -1088,6 +1088,14 @@ menuitem_flag:
|
||||
{
|
||||
$$ = MENUITEM_MENUBREAK;
|
||||
}
|
||||
| BITMAP
|
||||
{
|
||||
$$ = MENUITEM_BITMAP;
|
||||
}
|
||||
| OWNERDRAW
|
||||
{
|
||||
$$ = MENUITEM_OWNERDRAW;
|
||||
}
|
||||
;
|
||||
|
||||
/* Menuex resources. */
|
||||
|
||||
Reference in New Issue
Block a user