为什么以下这段去掉checkbox的代码在 OnInitDialog() 中不工作,但是放在 
OnClickTree1() 中就工作正常呢?    TVITEM tvItem;    tvItem.mask = TVIF_HANDLE | TVIF_STATE;
    tvItem.hItem = m_hItem;
    tvItem.stateMask = TVIS_STATEIMAGEMASK;    /*Image 1 in the tree view check box image list is the
    unchecked box. Image 2 is the checked box.*/
    
    tvItem.state = INDEXTOSTATEIMAGEMASK(2);    m_cTree.SetItem(&tvItem);