next up previous contents
Next: Dynamic Loading Up: More Advanced Features Previous: Dynamic Link Libraries

Cursors

When the make-cursor function is used to load a cursor from a DLL it is given three arguments. The first is a symbol naming the cursor. The second is an integer representing a DLL handle (the DLL must have been loaded with load-dll). The third argument can be either an integer resource index or a string naming the cursor resource. If the DLL stick.dll contains a cursor resource defined by a resource file line like

Stick   CURSOR   STICK.CUR
then it can be loaded as a cursor named stick using the expressions
(setf stick-dll (load-dll "stick.dll"))
to load the library and
(make-cursor 'stick stick-dll "Stick")
to load the cursor.

The function msw-cursor-size returns a list of the width and height of a cursor on the graphics device. XLISP-STAT expands or truncates arrays supplied as arguments to make-cursor to this size.



Luke Tierney
Mon Aug 30 09:50:11 CDT 1999