C/C++ change mouse settings

Filip 831 Reputation points
2021-04-10T19:52:36.297+00:00

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.

Developer technologies C++
0 comments No comments
{count} votes

Accepted answer
  1. Jeanine Zhang-MSFT 11,356 Reputation points Microsoft External Staff
    2021-04-12T02:48:36.663+00:00

    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 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Castorix31 90,681 Reputation points
    2021-04-10T20:34:20.047+00:00

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

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.