none
给遍历时获取的树控件中的节点发送一个鼠标左键单击消息. RRS feed

  • 问题

  • 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);
    }

    这是源码,给这其中的hChild发送消息。

    2014年7月30日 9:09

全部回复

  • 您好,从你的描述中,这应该不是VS 安装的问题,请问你用的什么开发语言, VC++ 或者VC#?请提供详细的信息,我将帮你找到对应的开发论坛。谢谢你的合作!

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2014年7月31日 11:10
    版主
  • NMTREEVIEW item;
      item.itemNew.hItem = hChild;
      item.hdr.code = NM_CLICK;
      item.hdr.hwndFrom = m_tree.GetSafeHwnd();
      item.hdr.idFrom = m_tree.GetDlgCtrlID();
      item.xxx = xxxx;
      item.xxx = xxxxx;
      ....
      SendMessage(WM_NOTIFY, m_tree.GetDlgCtrlID(), (LPARAM)&item);


    Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.

    2014年8月1日 2:38