#| -*-Scheme-*-
-$Id: os2graph.scm,v 1.10 1995/06/28 01:59:24 adams Exp $
+$Id: os2graph.scm,v 1.11 1995/11/04 02:33:56 cph Exp $
Copyright (c) 1995 Massachusetts Institute of Technology
(define image-list)
(define user-event-mask)
(define user-event-queue)
+(define graphics-window-icon)
;; This event mask contains just button events.
(define user-event-mask:default #x0001)
(define (finalize-pm-state!)
(if event-descriptor
(begin
+ (os2win-destroy-pointer graphics-window-icon)
+ (set! graphics-window-icon)
(do ((windows (protection-list-elements window-list) (cdr windows)))
((null? windows))
(close-window (car windows)))
(permanently-register-input-thread-event
event-descriptor
(current-thread)
- read-and-process-event))))
+ read-and-process-event))
+ (set! graphics-window-icon
+ (os2win-load-pointer HWND_DESKTOP NULLHANDLE IDI_GRAPHICS))))
(open-window descriptor->device
(if (default-object? width) 256 width)
(if (default-object? height) 256 height)))
(define (open-window descriptor->device width height)
(let ((wid (os2win-open event-descriptor "Scheme Graphics")))
+ (os2win-set-icon wid graphics-window-icon)
(os2win-show-cursor wid #f)
(os2win-show wid #t)
(os2win-set-size wid width height)
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.265 1995/10/28 01:12:35 cph Exp $
+$Id: runtime.pkg,v 14.266 1995/11/04 02:34:03 cph Exp $
Copyright (c) 1988-95 Massachusetts Institute of Technology
font-metrics/height
font-metrics/width
help-event/code
+ hwnd_desktop
+ idi_graphics
kc_alt
kc_char
kc_composite
ms_conditionalcascade
ms_titlebutton
ms_verticalflip
+ nullhandle
number-of-event-types
os2menu-create
os2menu-destroy
os2win-console-wid
os2win-desktop-height
os2win-desktop-width
+ os2win-destroy-pointer
os2win-event-ready?
os2win-focus?
os2win-frame-handle
os2win-get-pos
os2win-get-size
os2win-invalidate
+ os2win-load-pointer
os2win-move-cursor
os2win-open
os2win-open-event-qid
os2win-ps
os2win-scroll
os2win-set-grid
+ os2win-set-icon
os2win-set-pos
os2win-set-size
os2win-set-state