在TreeView控件中,当显示的内容不全,鼠标一放上就会出现一个黄色提示框,请问应该怎么把这个提示框去掉呢,我不想要这个提示框了..

解决方案 »

  1.   

    其实这类问题看看MSDN就可以解决了:)简单的说,只要为treeview附加TVS_NOTOOLTIPS风格即可实现你的要求,代码见:
    http://rainstormmaster.cnblogs.com/archive/2006/02/11/329085.html
      

  2.   

    我以前写程序 上司非要我去掉treeview的鼠标提示功能 我一直都觉得有这个挺方便的 但是上边说话我必须照办你可以这样做
    '屏蔽掉TreeView的鼠标提示功能
    Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long    L = GetWindowLong(userList.hwnd, GWL_STYLE)
        L = L Or TVS_NOTOOLTIPS
        Call SetWindowLong(userList.hwnd, GWL_STYLE, L)
      

  3.   

    请问 itcoco(无忧草) ,我应该将
      L = GetWindowLong(userList.hwnd, GWL_STYLE)
        L = L Or TVS_NOTOOLTIPS
        Call SetWindowLong(userList.hwnd, GWL_STYLE, L)
    这三句代码放在什么事件中呢.
      

  4.   

    谢谢各位,我明白了.感谢 rainstormmaster(暴风雨 v2.0)  itcoco(无忧草)