title: List<MyClass*> & array question
body: <p>Assuming a definition like this,</p>
  
  <pre><code>void CConfigTest::OnSelchangedTree(NMHDR* pNMHDR, LRESULT* pResult) 
  {
      NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;
      TVITEM item = pNMTreeView-&gt;itemNew;
      // find the session of the selected item
      if(item.hItem != NULL)
      {
          HTREEITEM root, parent, node;
          node = item.hItem;
          parent = m_treeSM.GetParentItem(item.hItem);
          root = m_treeSM.GetRootItem();
  
          while(parent != root &amp;&amp; parent != NULL)
          {
              node = parent;
              parent = m_treeSM.GetParentItem(parent); 
          }
  
          MyCommand* pCmd = (MyCommand*)(m_treeSM.GetItemData(node));
                  ....
                  ....
  </code></pre>
  
  <p>I tried these statements below, but failed.</p>
  
  <pre><code>pCmd-&gt;subList[2]
  (pCmd-&gt;subList)[2]
  </code></pre>
  
  <p>How can I get the array member values(such as subList[2]). I want to replace the value of subList[2] with other same type value. Thank you.</p>