SwapMouseButton切换鼠标左右键 int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // TODO: Place code here. BOOL bSwapped = ::GetSystemMetrics(SM_SWAPBUTTON); ::SwapMouseButton( ! bSwapped); return 0 ; }