示例#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
文件: User32.cs 项目: viticm/pap2
 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);
        }