--- np2/embed/menubase/menudlg.h 2003/11/21 06:51:10 1.1 +++ np2/embed/menubase/menudlg.h 2005/03/24 04:40:33 1.4 @@ -80,9 +80,9 @@ const void *arg; } MENUPRM; typedef struct { - UINT16 pos; - UINT16 icon; -const char *str; + UINT16 pos; + UINT16 icon; +const OEMCHAR *str; } ITEMEXPRM; #define SLIDERPOS(a, b) (((UINT16)a) | (((UINT16)b) << 16)) @@ -92,12 +92,12 @@ const char *str; extern "C" { #endif -BOOL menudlg_create(int width, int height, const char *str, +BRESULT menudlg_create(int width, int height, const OEMCHAR *str, int (*proc)(int msg, MENUID id, long param)); void menudlg_destroy(void); -BOOL menudlg_appends(const MENUPRM *res, int count); -BOOL menudlg_append(int type, MENUID id, MENUFLG flg, const void *arg, +BRESULT menudlg_appends(const MENUPRM *res, int count); +BRESULT menudlg_append(int type, MENUID id, MENUFLG flg, const void *arg, int posx, int posy, int width, int height); void menudlg_moving(int x, int y, int btn); @@ -125,6 +125,8 @@ void menudlg_disppagehidden(MENUID page, ((VRAMHDL)menudlg_msg(DMSG_SETVRAM, (id), (void *)(vram))) #define menudlg_settext(id, arg) \ menudlg_msg(DMSG_SETTEXT, (id), (void *)(arg)) +#define menudlg_seticon(id, val) \ + menudlg_msg(DMSG_SETICON, (id), (void *)(long)(val)) #define menudlg_itemappend(id, arg) \ menudlg_msg(DMSG_ITEMAPPEND, (id), (void *)(arg)) #define menudlg_itemreset(id) \