How can I hide the mouse cursor?

后端 未结 2 749
别跟我提以往
别跟我提以往 2021-01-29 15:10

I wanna ask if someone can provide me a c++ code in which I can hide/show the pointer of the mouse when pressing a specific key.. I found several codes written for only TURBO C+

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-29 15:32

    If you look at the documentation for the SetCursor function, setting the cursor to a NULL handle (e.g SetCursor(NULL)) will remove the cursor from the screen.

提交回复
热议问题