• Advertisement


This topic is now archived and is closed to further replies.

Custom Cursors for Common Controls?

This topic is 5445 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've been using C++ to create a Win32 application. I have a main window which two child controls at the moment. One of those is a custom class window which is acting as a frame and the other is a Common Control ListBox. I've been able to set up a custom cursor for both the Main Window and the Frame when I registered their classes - like this: WNDCLASSEX wc; wc....... (all the other parameters) wc.hCursor = LoadCursor(hInstance, MAKEINTRESOURCE(IDC_SWORD)); And that worked. However since the Listbox is a common control I can't assign it a custom cursor the same way because it is pre-registered. A friend suggested using "SetClassLong()" but I haven't got that working (it compiles ok but it doesn't work). And I thought of passing WM_SETCURSOR but I haven't figured out exactly how the parameters should be. Does anyone have any suggestions? [edited by - Ancalagon on March 25, 2003 8:27:19 AM]

Share this post

Link to post
Share on other sites

  • Advertisement