private static void ResetHover(Control targetControl)
		{
			if (targetControl == null)
			{
				return;
			}

			TRACKMOUSEEVENT eventTrack = new TRACKMOUSEEVENT();
			eventTrack.dwFlags = WinUser.TME_QUERY;
			eventTrack.hwndTrack = targetControl.Handle.ToInt32();
			eventTrack.cbSize = Marshal.SizeOf(eventTrack);
			User32.TrackMouseEvent(ref eventTrack);
			eventTrack.dwFlags |= WinUser.TME_HOVER;
			User32.TrackMouseEvent(ref eventTrack);
		}
Exemple #2
0
		public static extern Boolean TrackMouseEvent(ref TRACKMOUSEEVENT eventTrack);
Exemple #3
0
 public static extern bool TrackMouseEvent(ref TRACKMOUSEEVENT eventTrack);