CToolTipCtrl 提示怎么立即提示,现在的是要等一会后才出现提示?

解决方案 »

  1.   

    CToolTipCtrl::SetDelayTime
    void SetDelayTime( UINT nDelay );void SetDelayTime( DWORD dwDuration, int iTime );ParametersnDelaySpecifies the new delay time, in milliseconds.dwDurationFlag that specifies which duration value will be retrieved. See CToolTipCtrl::GetDelayTime for a description of the valid values.iTimeThe specified delay time, in milliseconds.ResCall this function to set the delay time for a tool tip control. The delay time is the length of time the cursor must remain on a tool before the tool tip window appears. The default delay time is 500 milliseconds.默认是半秒,你可以自己写ToolTipCtrl或试试看上述方法
      

  2.   

    楼上的大哥,SetDelayTime怕是设置出显提示的停留时间吧
      

  3.   

    ::SendMessage(hWndTooltip,TTM_SETDELAYTIME,(WPARAM)(DWORD)TTDT_INITIAL,(LPARAM)(INT) MAKELONG(2500,0));//2.5秒够长么?
      

  4.   

    m_toolTip.SetDelayTime(TTDT_INITIAL, 0);TTDT_AUTOPOP   Retrieve the length of time the tool tip window remains visible if the pointer is stationary within a tool's bounding rectangle. 
    TTDT_INITIAL   Retrieve the length of time the pointer must remain stationary within a tool's bounding rectangle before the tool tip window appears. 
    TTDT_RESHOW   Retrieve the length of time it takes for subsequent tool tip windows to appear as the pointer moves from one tool to another.
      

  5.   

    m_toolTip.SetDelayTime(TTDT_INITIAL, 0);设置第二个参数就可以,以毫秒为单位