R
R
Recardo_Recoly2018-01-29 17:12:28
C++ / C#
Recardo_Recoly, 2018-01-29 17:12:28

How to hide or show the cursor in a window (not the console, but the program window)?

I tried to hide like this

ShowCursor(FALSE);
SetCursor(NULL);

And show like this
ShowCursor(TRUE);
HCURSOR hc = LoadCursor(NULL, IDC_ARROW);
SetCursor(hc);

But for some reason it doesn't work...
PS: I'm doing it from a DLL that I'm injecting into the program.
The program is a directx game.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2018-01-29
@SaNNy32

www.sources.ru/msdn/howto/q131991.shtml

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question