Originally Posted by MikeAThon
It's not necessary to muck around with the registration of the window class. I would leave it alone, and instead, simply handle the WM_SETCURSOR message. Inside your WM_LBUTTONDOWN handler, set some sort of a flag indicating that a special cursor should be displayed (and clear this flag in the WM_LBUTTONUP handler). Inside the handler for WM_SETCURSOR, check this flag, and call SetCursor() if the flag is set.
Mike
PS to srelu: Your suggested code was given for MFC, but the OP specified no MFC