newntui/discovermdi/src/simplifytree.cpp
//---------------------------------------------------------------------------------------
// This private function will return the node image index in our image list
// calculating it from the node type and status + action check.
//---------------------------------------------------------------------------------------
This private function will return the node image index in our image list
calculating it from the node type and status + action check.
This private function will return the node image index in our image list calculating it from the node type and status + action check .
int CSimplifyTree::FindNodeImage(CIncludeTreeNode* node) {
int index;
    if(node==NULL) {
	    index=0;
	} else {
		if(node->m_Marked!=0) {
			index=2;
		} else {
		    if(node->m_Status==FALSE) index=4;
		    else				      index=6;
		}
	}
	return index;
}
int CSimplifyTree :: FindNodeImage ( CIncludeTreeNode * node ) { int index ; if ( node == NULL ) { index = 0 ; } else { if ( node -> m_Marked != 0 ) { index = 2 ; } else { if ( node -> m_Status == FALSE ) index = 4 ; else index = 6 ; } } return index ; }
This private function will return the node image index in our image list
calculating it from the node type and status + action check.
This private function will return the node image index in our image list calculating it from the node type and status + action check .