protected bool IsCursorOnDivider() { HD_HITTESTINFO hti = new HD_HITTESTINFO(); hti.pt.x = LastMousePosition.X; hti.pt.y = LastMousePosition.Y; WindowsAPI.SendMessage(hHeader, HeaderControlMessages.HDM_HITTEST, 0, ref hti); bool hit = (hti.flags == HeaderControlHitTestFlags.HHT_ONDIVIDER); return hit; }
public static extern void SendMessage(IntPtr hWnd, HeaderControlMessages msg, int wParam, ref HD_HITTESTINFO hti);