MSDN: https://msdn.microsof*****m/en-us/lib...(v=vs.85).aspx
Code:
HCURSOR hCURSOR = LoadCursor(INSTANCE, CURSOR);
Ex: HCURSOR hCURSOR = LoadCursor(NULL, IDC_WAIT); // Wait (https://prntscr.com/8lzpqd)
Example:
Code:
void MudarCursor(int i)
{
HCURSOR hCurs1 = LoadCursor(NULL, IDC_HAND); //Hand (https://prntscr.com/8lzpuw)
HCURSOR hCurs2 = LoadCursor(NULL, IDC_ARROW); //Arr (https://prntscr.com/8lzpzy)
if(i == 1)SetCursor(hCurs1);
else SetCursor(hCurs2);
}
void AddButton() // Example
{
DrawRect(1, 1, 200,200, Color.Red);
if(VerificarMouse(1,1,200,200) = true)
MudarCursor(1)
}
Effect Click in Button (I use for Menus D3D )