何必用api函数,用delphi的事件监测并转换就可以了

解决方案 »

  1.   

    systemparamterinfo() API,有一个swap mouse button的参数就可以了。
      

  2.   

    to kingron:  大哥,怎么不行呢,我在USES部分加入:shellapi
    然后调用,可是一运行就告诉我没有定义,是不是这个函数你写错了 ??
      

  3.   

    The SystemParametersInfo function queries or sets systemwide parameters. This function can also update the user profile while setting a parameter. BOOL SystemParametersInfo(
      UINT uiAction, // system parameter to query or set
      UINT uiParam,  // depends on action to be taken
      PVOID pvParam, // depends on action to be taken
      UINT fWinIni   // user profile update flag
    );
     
      

  4.   

    是 systemparameterinfo() api.
      

  5.   

    简单用SwapMouseButton这个API就OK记着给分