the message-send returns.
/* -*-C-*-
-$Id: os2pm.c,v 1.21 1995/11/03 01:29:14 cph Exp $
+$Id: os2pm.c,v 1.22 1995/11/04 00:08:27 cph Exp $
Copyright (c) 1994-95 Massachusetts Institute of Technology
(MPFROMSHORT (mask)))));
}
-static void
+static BOOL
menu_set_item_attributes (qid_t qid, HWND menu, USHORT id, USHORT submenup,
USHORT mask, USHORT attributes)
{
- (void) WinSendMsg (menu, MM_SETITEMATTR,
- (MPFROM2SHORT (id, submenup)),
- (MPFROM2SHORT (mask, attributes)));
+ return (LONGFROMMR (WinSendMsg (menu, MM_SETITEMATTR,
+ (MPFROM2SHORT (id, submenup)),
+ (MPFROM2SHORT (mask, attributes)))));
}
static HWND
#| -*-Scheme-*-
-$Id: os2pm.scm,v 1.2 1995/11/03 01:29:45 cph Exp $
+$Id: os2pm.scm,v 1.3 1995/11/04 00:08:40 cph Exp $
Copyright (c) 1995 Massachusetts Institute of Technology
(ushort mask)))
(define-pm-procedure menu_set_item_attributes
+ (value ("BOOL" successp))
(arguments qid
("HWND" menu)
(ushort id)
/* -*-C-*-
-$Id: pros2pm.c,v 1.11 1995/11/03 01:30:21 cph Exp $
+$Id: pros2pm.c,v 1.12 1995/11/04 00:08:15 cph Exp $
Copyright (c) 1994-95 Massachusetts Institute of Technology
DEFINE_PRIMITIVE ("OS2MENU-SET-ITEM-ATTRIBUTES", Prim_OS2_menu_set_item_attributes, 5, 5, 0)
{
PRIMITIVE_HEADER (5);
- OS2_menu_set_item_attributes (pm_qid,
- (HWND_ARG (1)),
- (USHORT_ARG (2)),
- (BOOLEAN_ARG (3)),
- (USHORT_ARG (4)),
- (USHORT_ARG (5)));
- PRIMITIVE_RETURN (UNSPECIFIC);
+ PRIMITIVE_RETURN
+ (BOOLEAN_TO_OBJECT (OS2_menu_set_item_attributes (pm_qid,
+ (HWND_ARG (1)),
+ (USHORT_ARG (2)),
+ (BOOLEAN_ARG (3)),
+ (USHORT_ARG (4)),
+ (USHORT_ARG (5)))));
}
DEFINE_PRIMITIVE ("OS2WIN-LOAD-MENU", Prim_OS2_window_load_menu, 3, 3, 0)