Quote 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
You're right with both of your remarks. Almost.
I missed the word "without" in "wthout using MFC..." My fault.

If it's a non-MFC Windows application, I bet he knows wery well where the window class is registered because he must do it manually.
In this case my suggestion is the simplest because it only requires to remove the cursor handle form the already present structure.
But even for an MFC application is ok because the "much workaround" is only a copy/paste operation.

But I have to admit your solution is the best possible because it's the standard way to do it. I forgot about the WM_SETCURSOR. Thanks for remembering me.