为什么以下这段去掉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);
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);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货