mfc ctreectrl 节点精确选中

	//只有精确点到节点才能选中
 	if ((hItem != NULL) && (TVHT_ONITEM & uFlags))	
		pTree->SelectItem(hItem);

	//不点到节点,只要点到节点所在行就选择节点
	if (hItem != NULL)
		pTree->SelectItem(hItem);

猜你喜欢

转载自blog.csdn.net/xuepiaofei1/article/details/79746779
MFC