Well I did change something and in some how it works, but not 100%
I delete the line in the WNDCLASSW
wc.hCursor = (HCURSOR)LoadImage(GetModuleHandle(NULL),
MAKEINTRESOURCE(IDC_CURSOR), IMAGE_CURSOR, 16, 16, 0);
And I declare in the global
HCURSOR redarrow = (HCURSOR)LoadImage(GetModuleHandle(NULL),
MAKEINTRESOURCE(IDC_CURSOR), IMAGE_CURSOR, 16, 16, 0);
case WM_SETCURSOR:
{
SetCursor(redarrow);
return 1;
}
return DefWindowProcW(hWnd, msg, wp, lp);
It's working, but I have like few other windows that popup like about or help window where the cursor changes to default window cursor the one from the system.