newntui/activex/projecttree/src/projecttreectl.cpp
//---------------------------------------------------------------------------------------------------------
// This message processing function will be called every time the selected tree node changed. It will fire
// NodeChanged event with full project nams specified as parameter.
//---------------------------------------------------------------------------------------------------------
This message processing function will be called every time the selected tree node changed. It will fire
NodeChanged event with full project nams specified as parameter.
This message processing function will be called every time the selected tree node changed . It will fire NodeChanged event with full project nams specified as parameter .
void CProjectTreeCtrl::OnExpandProjectTree(NMHDR* pNMHDR, LRESULT* pResult)  {
	NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;
	CProjectPath* fullPath = (CProjectPath*) pNMTreeView->itemNew.lParam;
	if(pNMTreeView->action==TVE_EXPAND)    FireNodeExpanded(fullPath->Name);
	if(pNMTreeView->action==TVE_COLLAPSE)  FireNodeCollapsed(fullPath->Name);
	*pResult = 0;
}
void CProjectTreeCtrl :: OnExpandProjectTree ( NMHDR * pNMHDR , LRESULT * pResult ) { NM_TREEVIEW * pNMTreeView = ( NM_TREEVIEW * ) pNMHDR ; CProjectPath * fullPath = ( CProjectPath * ) pNMTreeView -> itemNew . lParam ; if ( pNMTreeView -> action == TVE_EXPAND ) FireNodeExpanded ( fullPath -> Name ) ; if ( pNMTreeView -> action == TVE_COLLAPSE ) FireNodeCollapsed ( fullPath -> Name ) ; * pResult = 0 ; }
This message processing function will be called every time the selected tree node changed.
This message processing function will be called every time the selected tree node changed .
// TODO: Add your control notification handler code here