I am writing a windows application which requires mouse pointer shape change notification. I have searched thoroughly but could not find a satisfactory solution. I want to receive a notification for cursor shape change as well as the type of cursor to which it has changed.
From the search I came to know that I will have to install a hook in every process and capture WM_SETCURSOR event but capturing this message does not give me full information. So please guide me if anybody can help
You can get the handle to the current cursor with
GetCursor
orGetCursorInfo
.The problem is to know which cursor the handle refers to. I don't think there's a "reverse find" function, so you would have to implement it by comparing your handle with the one returned by
LoadCursor
for the different possible values.Fortunately, the docs say this: