CToolTipCtrl 提示如何立即提示,现在的是要等一会后才出现提示

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

------解决方案--------------------
CToolTipCtrl::SetDelayTime
void SetDelayTime( UINT nDelay );

void SetDelayTime( DWORD dwDuration, int iTime );

Parameters

nDelay

Specifies the new delay time, in milliseconds.

dwDuration

Flag that specifies which duration value will be retrieved. See CToolTipCtrl::GetDelayTime for a description of the valid values.

iTime

The specified delay time, in milliseconds.

Remarks

Call 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或试试看上述方法
------解决方案--------------------
::SendMessage(hWndTooltip,TTM_SETDELAYTIME,(WPARAM)(DWORD)TTDT_INITIAL,(LPARAM)(INT) MAKELONG(2500,0));//2.5秒够长么?

------解决方案--------------------
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.
------解决方案--------------------
m_toolTip.SetDelayTime(TTDT_INITIAL, 0);

设置第二个参数就可以,以毫秒为单位