小弟想问几个TrackMousEvent的问题
当鼠标进入了窗口的时候,触发了WM_MOUSEMOVE事件,我调用了TrackMouseEvent之后,如果让窗口的
Eabled=false或者是Visible=false,那么TrackMouseEvent是不是还处于监听的状态呢>
因为触发了WM_MOUSEMOVE之后,调用TrackMouseEvent等于打开了计时器,如果这个时候我使用了Visible=false或者是Visible=false,那么这个计时器是否会自动停止呢???

解决方案 »

  1.   

    The mouse pointer is considered to be hovering when it stays within a specified rectangle for a specified period of time. Call SystemParametersInfo and use the values SPI_GETMOUSEHOVERWIDTH, SPI_GETMOUSEHOVERHEIGHT, and SPI_GETMOUSEHOVERTIME to retrieve the size of the rectangle and the time.Eabled=false或者是Visible=false
    只是窗口属性
    窗口rectangle还是本质存在的
    应该不会影响TrackMousEvent吧
      

  2.   

    我倒
    那么就是说
    他还是存在的吧
    这样就麻烦了
    那么到底使用自己的计时器好,还是TrackMouseEvent好呢????????????//