|
||
Changing the Mouser Cursor Shape |
||||||
In a DLL, there are two ways that you can change the shape of the mouse cursor. One way is to set the view window's class cursor to the handle of the cursor you want to use. The other is to set the view window's class cursor field to NULL, and trap the WM_MOUSEMOVE command in your subclassing window procedure, and calling SetCursor with the handle of your desired cursor there.
|
||||||
The following is an example of the first approach:
|
||||||
The following is an example of the second approach. First, set the view window's class cursor to NULL:
Then, in the subclassing window procedure:
You must remember that if you change the view window's class cursor, you must restore the original before returning to SilverScreen, otherwise the cursor will be left with an invalid resource id (one that references an unloaded DLL).
|