Home > Net >  The cursor in the game design change to do? Is there a solution?
The cursor in the game design change to do? Is there a solution?

Time:01-01

The small white to ask:
Recent want to add the cursor changes to enhance project interactive feedback,
Intended to use Cursor. SetCursor (sp, hotspot, CursorMode. Auto); To do

But occasionally find on a computer with the mouse on the software of change is follow Windows

1. Is there a windowsAPI provides the cursor change solution?

CodePudding user response:

 
Case WM_SETCURSOR:

//If the window is minimized, the draw the hCurs3 cursor.
//If the window is not minimized, the draw the default
//the cursor (class cursor).

If (IsIconic (HWND))
{
SetCursor (hCurs3);
break;
}
  •  Tags:  
  • C#
  • Related