/* -*-C-*-
-$Id: os2pm.c,v 1.22 1995/11/04 00:08:27 cph Exp $
+$Id: os2pm.c,v 1.23 1995/11/04 01:34:55 cph Exp $
Copyright (c) 1994-95 Massachusetts Institute of Technology
return (result);
}
\f
-/* Pointers */
+/* Pointers and Icons */
static HPOINTER
query_system_pointer (qid_t qid, HWND desktop, LONG id, BOOL copyp)
{
return (WinSetPointer (desktop, pointer));
}
+
+static HPOINTER
+window_load_pointer (window_t * window, HMODULE module, ULONG id)
+{
+ return (WinLoadPointer ((WINDOW_FRAME (window)), module, id));
+}
+
+static BOOL
+window_set_icon (window_t * window, HPOINTER icon)
+{
+ return (LONGFROMMR (WinSendMsg ((WINDOW_FRAME (window)), WM_SETICON,
+ (MPFROMLONG (icon)),
+ (MPFROMLONG (0)))));
+}
#| -*-Scheme-*-
-$Id: os2pm.scm,v 1.3 1995/11/04 00:08:40 cph Exp $
+$Id: os2pm.scm,v 1.4 1995/11/04 01:35:01 cph Exp $
Copyright (c) 1995 Massachusetts Institute of Technology
(value ("BOOL" successp))
(arguments qid ("HWND" desktop) ("HPOINTER" pointer)))
+(define-pm-procedure window_load_pointer
+ (value ("HPOINTER" pointer))
+ (arguments window ("HMODULE" module) (ulong id)))
+
+(define-pm-procedure window_set_icon
+ (value ("BOOL" successp))
+ (arguments window ("HPOINTER" icon)))
+
(write-all-files)
\ No newline at end of file