我以前写程序 上司非要我去掉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)
请问 itcoco(无忧草) ,我应该将 L = GetWindowLong(userList.hwnd, GWL_STYLE) L = L Or TVS_NOTOOLTIPS Call SetWindowLong(userList.hwnd, GWL_STYLE, L) 这三句代码放在什么事件中呢.
http://rainstormmaster.cnblogs.com/archive/2006/02/11/329085.html
'屏蔽掉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)
L = GetWindowLong(userList.hwnd, GWL_STYLE)
L = L Or TVS_NOTOOLTIPS
Call SetWindowLong(userList.hwnd, GWL_STYLE, L)
这三句代码放在什么事件中呢.