private SystemParametersInfo ( SystemParametersInfoActions uAction, uint uParam, uint &lpvParam, uint fuWinIni ) : bool | ||
uAction | SystemParametersInfoActions | |
uParam | uint | |
lpvParam | uint | |
fuWinIni | uint | |
리턴 | bool |
private void SetTimerMouseTrack() { if (ActivePane == null || ActivePane.IsActivated || FlagDragging) { _timerMouseTrack.Enabled = false; return; } // start the timer uint hovertime = 0; User32.SystemParametersInfo(Win32.SystemParametersInfoActions.GetMouseHoverTime, 0, ref hovertime, 0); // assign a default value 400 in case of setting Timer.Interval invalid value exception if (((int)hovertime) <= 0) { hovertime = 400; } _timerMouseTrack.Interval = 2 * (int)hovertime; _timerMouseTrack.Enabled = true; }