插入树形控件
void CNewDialogDlg::OnSelchangedTree1(NMHDR* pNMHDR, LRESULT* pResult)
{
NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;
// TODO: Add your control notification handler code here
HTREEITEM hCurrent=m_wndtree.GetSelectedItem ();
if(hCurrent)
((CPropertyPage*)m_wndtree.GetItemData (hCurrent))->ShowWindow (SW_SHOW);
*pResult = 0;
}
void CNewDialogDlg::OnSelchangingTree(NMHDR* pNMHDR, LRESULT* pResult)
{
NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;
// TODO: Add your control notification handler code here
HTREEITEM hCurrent=m_wndtree.GetSelectedItem ();
if(hCurrent)
((CPropertyPage*)m_wndtree.GetItemData (hCurrent))->ShowWindow (SW_HIDE);
*pResult = 0;
}