示例#1
0
		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);
		}
示例#2
0
		public static extern Boolean TrackMouseEvent(ref TRACKMOUSEEVENT eventTrack);
示例#3
0
 public static extern bool TrackMouseEvent(ref TRACKMOUSEEVENT eventTrack);