Custom cursors over Window controls
Posted on 1998-11-24
I want to have a user selectable cursor displayed in my
windows, including over Window controls, menu bars, and
in dialog boxes ...
When I create a dialog box I call SetClassWord, passing
GCW_HCURSOR as a parameter, while processing the WM_INITDIALOG msg. The cursor reverts back to the arrow
when over the menu bar.
For window controls I create a window (invisible with no
width/height) for each predefined type - ie LISTBOX,
COMBOBOX, STATIC ...) and call SetClassWord. This is
done whenever a custom cursor is selected and at when
the main program terminates (to revert to the arrow cursor)
There are stil some spots when the arrow cursor shows up -
inside drop down lists and over some window controls in
common dialog boxes. I'm wondering what other methods
can be employed to get better results.