Exemple #1
0
        protected bool IsCursorOnDivider()
        {
            HD_HITTESTINFO hti = new HD_HITTESTINFO();

            hti.pt.x = LastMousePosition.X;
            hti.pt.y = LastMousePosition.Y;
            WindowsAPI.SendMessage(hHeader, (int)HeaderControlMessages.HDM_HITTEST, 0, ref hti);
            bool hit = (hti.flags == (int)HeaderControlHitTestFlags.HHT_ONDIVIDER);

            return(hit);
        }
 public static extern void SendMessage(IntPtr hWnd, HDM msg, int wParam, ref HD_HITTESTINFO hti);