>>Hi to all,
>>
>>I want to give to my forms a more user friendly interface, I want to enabled my forms to change position to controls when the user is left-handed, because I think that with a left-handed mouse it's more difficult to click on some position than with a right-handed mouse. So how can I know if the user have setted in control panel the left-handed mouse ?
>>
>>TIA
>Hi Renato,
>
>As Michael mentioned the value is stored in the registry. An easy way to retrieve the value is:
>#DEFINE SM_SWAPBUTTON 23
>DECLARE INTEGER GetSystemMetrics IN Win32API;
> INTEGER nIndex
>lnresult = GetSystemMetrics(SM_SWAPBUTTON)
>? lnresult
>hth,
PMFJI, but I have to ask: Isn't this a function of the OS? If I go to the Control Panel and tell Win95 to swap mouse buttons (switch from right-handed to left-handed) can an application tell the difference? That is, if I've switched to left-handed mode and left-click a button, doesn't it show up as a plain 'click' to the app?
Paul M.
MCSE/MCSA/MCT/MCP+I, A+, Network+, I-Net+
Nil carborundum illegitimi.