Unexpected tooltip on separator

  • Thread starter Thread starter Yan Yang
  • Start date Start date
Y

Yan Yang

Guest
A strange tooltip is shown when hovering the mouse on the separator, and only one separator has the problem, all other separators don't have any tooltips.

The tooltips are retrieved from CMFCToolBar::OnToolHitTest(CPoint point, TOOLINFO* pTI).

The returned value of calling this function is -1, which is expected as the mouse points to a separator, and the pTI->lpszText is NULL, which is also right for no tooltip.

So I don't know how the tooltip is generated for the separator.

Any suggestion would be appreciated.

Continue reading...
 
Back
Top