SetClassLong(windowHandle, GCL_Hcursor, (DWORD)hCursor) HCURSOR hCursor = LoadCursorFromFile("Graphics/Cursors/Pointer_small.cur") I am however unable to apply the answer given in the link HWND windowHandle I found this LINK, which seems to be the same problem as mine. It does however immediately revert back to default windows mouse: HCURSOR hCursor = LoadCursorFromFile("path/filename.cur") So, I'm seeking the knowledge of the community, any ideas? The following compiles but makes no difference: HCURSOR hCursor = LoadCursor(NULL, "path/filename.png") I'm using a window created with SFML(2.1). I got an image file with the cursor I want (.png, should I change format?).Īll in all, I've been searching and trying to simply change the cursor, with no success.Īlso, as of now I'm looking for the most simple solution, with as few line of codes as possible. As of now, I'm only dealing with Windows. I'm trying to change the default OS cursor to a custom one.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |