摘要: 来自:https://blog.csdn.net/leichelle/article/details/20364271 最近在用win32写《visual C++经典游戏程序设计》中的扫雷游戏,在写到鼠标点击雷区的时候用到了SetCapture,和ReleaseCapture这对系统函数。 那么为什 阅读全文
posted @ 2021-02-20 13:38 宇宙之外 阅读(716) 评论(0) 推荐(0) 编辑
摘要: ClipCursor 函数功能:该函数把鼠标限制在屏幕上的一个矩形区域内,如果调用SetCursor或用鼠标设置的一个随后的鼠标位置在该矩形区域的外面,则系统自动调整该位置以保持鼠标在矩形区域之内。 函数原型:BOOL ClipCursor(CONST RECT * lpRect); 参数: IpR 阅读全文
posted @ 2021-02-20 11:11 宇宙之外 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 来自:https://blog.csdn.net/luojianshu1/article/details/44227425?utm_medium=distribute.pc_relevant_bbs_down.none-task-blog-baidujs-2.nonecase&depth_1-utm 阅读全文
posted @ 2021-02-20 10:08 宇宙之外 阅读(784) 评论(0) 推荐(1) 编辑