question

Filip-2434 avatar image
0 Votes"
Filip-2434 asked JeanineZhang-MSFT commented

C/C++ change mouse settings

Hello.
I want change mause setting with C/C++. Is here some documentation for it?
I wan change cursor or speen or scrollin whell...
Thanks for help.

c++
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JeanineZhang-MSFT avatar image
1 Vote"
JeanineZhang-MSFT answered JeanineZhang-MSFT commented

Hi,

I suggest you could try to use SetCursor function. And if your project is MFC, I suggest you can refer to this document: Change the mouse pointer for a window in MFC by using Visual C++

Best Regards,

Jeanine



If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Filip-2434

May I know if you have got any chance to check my answer? I am glad to help if you have any other questions.

1 Vote 1 ·
Castorix31 avatar image
1 Vote"
Castorix31 answered Castorix31 edited

Mainly with SystemParametersInfo
(SPI_SETCURSORS, SPI_SETMOUSESPEED, SPI_SETWHEELSCROLLLINES, ...)
+
Registry for Cursor Pointers (HKEY_CURRENT_USER\Control Panel\Cursors)






5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.