怎的获取 treeview 控件 中 复选框的选中状态

怎样获取 treeview 控件 中 复选框的选中状态RT,谢谢大家![解决办法]treeviewitem ltviif tv_1.getitem(al

怎样获取 treeview 控件 中 复选框的选中状态
RT,谢谢大家!
[解决办法]

treeviewitem ltvi
if tv_1.getitem(al_handle, ltvi) > 0 then
    return ltvi.statepictureIndex = 2 //2为checked, 1为unchecked
end if