您的位置:首页 > 编程语言

谁能帮我分析一段代码?

2006-03-17 19:31 295 查看
用vb语言

public declare function sendmessage lib "user32" alias "sendmessageA (byval hwnd as long ,byval wmsg as long ,byval wparam as long, byval lparam as any) as long.

public sub trichear( tr treeview)

dim x as integer

with tr

sendmessage .hwnd,&HB,0,0

for x=.nodes.count to 1 step -1

   .nodes.removed x

next x

sendmessage .hwnd,&HB,1,0

end with

end sub

上面的sendmessage函数是什么意思啊,它的各个参数是什么意思?还有那个hwnd属性,我是初手,还望大家帮忙.   
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  integer function vb 语言 user