newntui/discovermdi/src/simplifytree.cpp
//------------------------------------------------------------------------------------------
// This will inspect the include file tree and will tell simplify not comment the files
// marked by user
//------------------------------------------------------------------------------------------
This will inspect the include file tree and will tell simplify not comment the files
marked by user
This will inspect the include file tree and will tell simplify not comment the files marked by user
void CSimplifyTree::DisableMarkedExclusions(HTREEITEM item) {
CIncludeTreeNode* node;
CString query;
CString status;
    if(item==NULL) return;
 	node=(CIncludeTreeNode *)m_Tree.GetItemData(item);
	if(node) {
		if(node->m_Marked==0) {
			if(node->m_Status==TRUE) {
                 CString query;
                 BSTR sysQuery;
                 query.Format("tell_simplify %d",node->m_ID);
                 sysQuery=query.AllocSysString();
                 DataSourceAccessSync(&sysQuery);
	             SysFreeString(sysQuery); 
			}
		}
	}
    HTREEITEM child   = m_Tree.GetChildItem(item);
	if(child!=NULL)  DisableMarkedExclusions(child);
    HTREEITEM sibling = m_Tree.GetNextSiblingItem(item);
	if(sibling!=NULL)  DisableMarkedExclusions(sibling);
}
void CSimplifyTree :: DisableMarkedExclusions ( HTREEITEM item ) { CIncludeTreeNode * node ; CString query ; CString status ; if ( item == NULL ) return ; node = ( CIncludeTreeNode * ) m_Tree . GetItemData ( item ) ; if ( node ) { if ( node -> m_Marked == 0 ) { if ( node -> m_Status == TRUE ) { CString query ; BSTR sysQuery ; query . Format ( " " , node -> m_ID ) ; sysQuery = query . AllocSysString ( ) ; DataSourceAccessSync ( & sysQuery ) ; SysFreeString ( sysQuery ) ; } } } HTREEITEM child = m_Tree . GetChildItem ( item ) ; if ( child != NULL ) DisableMarkedExclusions ( child ) ; HTREEITEM sibling = m_Tree . GetNextSiblingItem ( item ) ; if ( sibling != NULL ) DisableMarkedExclusions ( sibling ) ; }
This will inspect the include file tree and will tell simplify not comment the files
marked by user
This will inspect the include file tree and will tell simplify not comment the files marked by user
// We need a pointer to the user structure attached to the UI element. // For all include files which we want to be included we will send command to the simplify