C/C++ 코딩 Archives - Page 2 of 10 - WEBSHARE

[카테고리:] C/C++ 코딩

  • [C/CPP] MFC 트리컨트롤, Expand / Collapse

    MFC Tree Control: How to expand/collapse a branch?Q: How to expand/collapse a branch?A: If you want to expand or collapse one only item useCode: m_tree.Expand(hItem, TVE_EXPAND); // or ‘TVE_COLLAPSE’   If you want to expand or collapse an item and all of its children use something like this:Code: void ExpandTreeItem(const CTreeCtrl &tree, HTREEITEM hItem, UINT…