请问 TVHT_OnItemStateIcon 是什么意思?
(偶知道这是HitTest 的Flag之一)
以下为MSDN原文,但还是不明白,何时能用到该值?
On the state icon for a tree-view item that is in a user-defined state. 能否请各位举几个实际例子说明一下,谢谢!

解决方案 »

  1.   

    就是鼠标落在了node的checkbox上的时候http://vbnet.mvps.org/index.html?code/comctl/tvcheckbox.htm
      

  2.   

    原来如此啊,谢谢还想请问老大,如何在VB Common 5.0现有的TreeView控件上捕捉 Expand 事件?
    当然,我知道 控件本身有 Expand 事件的,
    我只是想问下,如何用自己的SubClass捕捉?偶试了下:
    m_hWnd=From1.TreeView1.hWnd此时的uHDR.hWndFrom 总是不等于 m_hWnd (idFrom 到等于 m_hWnd)
    不知为何?难道一定要自建的控件才行吗?
    所以,下面的过程总是捉不到事件,诶Select Case uMsg
      Case WM_NOTIFY
        CopyMemory uHDR, ByVal lParam, Len(uHDR)
        If uHDR.hWndFrom <> m_hWnd Then
          Exit Sub
        End If
        Select Case uHDR.Code
          Case TVN_ItemExpanding
            CopyMemory uNmTV, ByVal lParam, LenB(uNmTV)
      

  3.   

    还有 请解释一下,谢谢!
    HHT_ONDIVOPEN
    The point is on the divider of an item that has a width of zero. Dragging the divider reveals the item instead of resizing the item to the left of the divider.
      

  4.   

    WM_NOTIFY消息是发给treeview的父窗口的,你要子类的话也要子类放 treeview的窗口,然后等着TVN_ITEMEXPANDING,TVN_ITEMEXPANDED发生
      

  5.   

    哦,老大,偶是子类现有窗体上的TreeView控件的,
    那就是说WM_NOTIFY 要 SubClass TreeView1.Parent.hWnd ?然后,才能在 CopyMemory uHDR, ByVal lParam, Len(uHDR)
        If uHDR.hWndFrom <> m_hWnd Then
          Exit Sub
        End If
        Select Case uHDR.Code
    中 求得正确的 Code ?