How do I lock the mouse for sample code sharing
- 2020-04-02 02:07:04
- OfStack
#include
#include
int main(int argc, char* argv[])
{
printf("n Don't be afraid 15 Then your mouse can be used ^_^n");
RECT rect;
rect.bottom=1;
rect.right=1;
ClipCursor(&rect);
::Sleep(15000);
ClipCursor(NULL);//The release of
return 0;
}