When I am populating my CTreectrl with nodes (which is done from the MyCFormView::OnInitialUpdate()) - right after I do InsertItem - I then do SetCheck - yet this doesn't show the item checked when the application goes up. Note that right after a SetCheck I do a GetCheck to see that it was checked and it shows that it is. Does anyone know why??


HTREEITEM moduleItem=m_TreeCtrl->InsertItem(&insertStr);
m_TreeCtrl->SetCheck(moduleItem,TRUE );