* rcparse.y (control): ICON controls take an id as the first

parameter, not an optional string.  Also, call new convenience
function that takes res_id's.
* resrc.c (define_control): missing text means zero-length string,
not zero ID.
(define_icon_control): New.
* windres.h: declare define_icon_control.
This commit is contained in:
DJ Delorie
2000-06-13 21:21:43 +00:00
parent 98ecb0a78b
commit 2104a50e3e
4 changed files with 65 additions and 38 deletions

View File

@ -812,6 +812,10 @@ extern struct dialog_control *define_control
PARAMS ((const char *, unsigned long, unsigned long, unsigned long,
unsigned long, unsigned long, unsigned long, unsigned long,
unsigned long));
extern struct dialog_control *define_icon_control
PARAMS ((struct res_id, unsigned long, unsigned long,
unsigned long, unsigned long, unsigned long, unsigned long,
struct rcdata_item *, struct dialog_ex *));
extern void define_font
PARAMS ((struct res_id, const struct res_res_info *, const char *));
extern void define_icon