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::OnSelchangedProjectTree(NMHDR* pNMHDR, LRESULT* pResult)  {
CString query;
	NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;
	CProjectPath* fullPath = (CProjectPath*) pNMTreeView->itemNew.lParam;
	query.Format("global DiscoverScope; set DiscoverScope \"%s\"",fullPath->Name);
    EvaluateSync(query);
    FireNodeChanged(fullPath->Name);
	*pResult = 0;
}
void CProjectTreeCtrl :: OnSelchangedProjectTree ( NMHDR * pNMHDR , LRESULT * pResult ) { CString query ; NM_TREEVIEW * pNMTreeView = ( NM_TREEVIEW * ) pNMHDR ; CProjectPath * fullPath = ( CProjectPath * ) pNMTreeView -> itemNew . lParam ; query . Format ( " \" \" " , fullPath -> Name ) ; EvaluateSync ( query ) ; FireNodeChanged ( 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 // We will set the current project name in the variable called DiscoverScope // This variable is global anc can be used by any processing mode;