简体   繁体   中英

Is there a way to get the double click speed with the delphi Windows API?

The TPageControl Component in Delphi does not have a DoubleClick-Event so I made my own. Currently, my custom DoubleClick event gets called when i click twice within 300ms. But I was wondering if there's a way to get the double click speed value that's set in the Windows control panel.

Does anyone know of a way of accessing that value? It's not super crucial. I can just hardcode a value like 300ms, but I think it would be really cool if it was the actual value. Maybe with the Windows API?

Thanks!

It is easy to get this value using the Windows API. Simply use the GetDoubleClickTime function.

Notice that this particular system parameter value is special. Most others are obtained not using special functions, but using the GetSystemMetrics or the SystemParametersInfo function.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM