Пример #1
0
        /// <exclude/>
        protected override void OnMouseHover(EventArgs e)
        {
            base.OnMouseHover(e);

            IDockableWindow content = GetHitTest();

            if (content != null && DockPanel.ActiveAutoHideContent != content)
            {
                DockPanel.ActiveAutoHideContent = content;
            }

            // requires further tracking of mouse hover behavior,
            // call TrackMouseEvent
            Win32.TRACKMOUSEEVENTS tme = new Win32.TRACKMOUSEEVENTS(Win32.TRACKMOUSEEVENTS.TME_HOVER, Handle, Win32.TRACKMOUSEEVENTS.HOVER_DEFAULT);
            User32.TrackMouseEvent(ref tme);
        }
Пример #2
0
 public static extern bool TrackMouseEvent(ref TRACKMOUSEEVENTS tme);
Пример #3
0
        /// <exclude/>
        protected override void OnMouseHover(EventArgs e)
        {
            base.OnMouseHover(e);

            IDockableWindow content = GetHitTest();
            if (content != null && DockPanel.ActiveAutoHideContent != content)
                DockPanel.ActiveAutoHideContent = content;

            // requires further tracking of mouse hover behavior,
            // call TrackMouseEvent
            Win32.TRACKMOUSEEVENTS tme = new Win32.TRACKMOUSEEVENTS(Win32.TRACKMOUSEEVENTS.TME_HOVER, Handle, Win32.TRACKMOUSEEVENTS.HOVER_DEFAULT);
            User32.TrackMouseEvent(ref tme);
        }