[racket] paint-callback and dc

From: Justin Zamora (justin at zamora.com)
Date: Sat Dec 31 22:33:40 EST 2011

Is the dc% that is passed to the paint-callback for a canvas always
the same dc% returned by (send canvas get-dc)?  In other words, are
the following equivalent?

[paint-callback (lambda (canvas dc) (send dc clear))]
[paint-callback (lambda (canvas dc) (send (send canvas get-dc) clear))]

Justin


Posted on the users mailing list.