コード例 #1
0
		/// <summary>
		/// Resets Hoover timer.
		/// </summary>
		protected virtual void ResetHover()
		{
			System.Windows.Forms.Control objCtrl=this.ContainerControl as System.Windows.Forms.Control;
			if(!IsHandleValid(objCtrl))
				return;
			// We need to reset hover thing since it is fired only first time mouse hovers inside the window and we need it for each of our items
			NativeFunctions.TRACKMOUSEEVENT tme=new NativeFunctions.TRACKMOUSEEVENT();
			tme.dwFlags=NativeFunctions.TME_QUERY;
			tme.hwndTrack=objCtrl.Handle;
			tme.cbSize=System.Runtime.InteropServices.Marshal.SizeOf(tme);
			NativeFunctions.TrackMouseEvent(ref tme);
			tme.dwFlags=tme.dwFlags | NativeFunctions.TME_HOVER;
			NativeFunctions.TrackMouseEvent(ref tme);
			objCtrl=null;
		}
コード例 #2
0
 /// <summary>
 /// Resets Hoover timer.
 /// </summary>
 private void ResetHover(Control c)
 {
     if (c==null || !BarFunctions.IsHandleValid(c))
         return;
     // We need to reset hover thing since it is fired only first time mouse hovers inside the window and we need it for each of our items
     NativeFunctions.TRACKMOUSEEVENT tme = new NativeFunctions.TRACKMOUSEEVENT();
     tme.dwFlags = NativeFunctions.TME_QUERY;
     tme.hwndTrack = c.Handle;
     tme.cbSize = System.Runtime.InteropServices.Marshal.SizeOf(tme);
     NativeFunctions.TrackMouseEvent(ref tme);
     tme.dwFlags = tme.dwFlags | NativeFunctions.TME_HOVER;
     NativeFunctions.TrackMouseEvent(ref tme);
 }
コード例 #3
0
		/// <summary>
		/// Resets Hoover timer.
		/// </summary>
		private void ResetHover()
		{
			NativeFunctions.TRACKMOUSEEVENT tme=new NativeFunctions.TRACKMOUSEEVENT();
			tme.dwFlags=NativeFunctions.TME_QUERY;
			tme.hwndTrack=this.Handle;
			tme.cbSize=Marshal.SizeOf(tme);
			NativeFunctions.TrackMouseEvent(ref tme);
			tme.dwFlags=tme.dwFlags | NativeFunctions.TME_HOVER;
			NativeFunctions.TrackMouseEvent(ref tme);
		}