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