MFC给遍历时获取的树控件的节点发送一个鼠标左键单击消息。 20
HTREEITEMhChild=m_treeDeviceList.GetChildItem(hItem);while(hChild){m_treeDeviceList.S...
HTREEITEM hChild = m_treeDeviceList.GetChildItem(hItem);
while (hChild)
{
m_treeDeviceList.SelectItem(hChild);
HTREEITEM hGrandson = m_treeDeviceList.GetChildItem(hChild);
while (hGrandson)
{
hGrandson = m_treeDeviceList.GetNextSiblingItem(hGrandson);
}
hChild = m_treeDeviceList.GetNextSiblingItem(hChild);
}
这是遍历的源码。求大神帮忙。 展开
while (hChild)
{
m_treeDeviceList.SelectItem(hChild);
HTREEITEM hGrandson = m_treeDeviceList.GetChildItem(hChild);
while (hGrandson)
{
hGrandson = m_treeDeviceList.GetNextSiblingItem(hGrandson);
}
hChild = m_treeDeviceList.GetNextSiblingItem(hChild);
}
这是遍历的源码。求大神帮忙。 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询