注册 登录
编程论坛 C++教室

小恶搞的鼠标左右键转换 大家看下有没问题

smsand 发布于 2006-11-26 18:58, 661 次点击

#include<iostream>
#include<windows.h>
#include<stdio.h>
using namespace std;
int main()
{BOOL x;
x=SwapMouseButton(false);
while(1)
{
if(x==true)
x=SwapMouseButton(false);
else
x=SwapMouseButton(true);


Sleep(20);
}
return 0;

}批评是我前进的动力

3 回复
#2
Welton2006-11-28 13:16
挺有趣啊!呵呵
#3
yaleond2007-01-05 11:10
比较好玩!
#4
yuyunliuhen2007-01-05 12:22
很有趣啊,还真不习惯用..
1