Logo Search packages:      
Sourcecode: xchm version File versions

bool CHMFile::IsValidCID ( const int  contextID  ) 

Checks whether or not the context ID is valid for the loaded file.

Parameters:
contextID The context-ID to check.
Returns:
TRUE if the context ID is valid. FALSE otherwise.

Definition at line 265 of file chmfile.cpp.

Referenced by CHMFrame::LoadContextID().

{
      if(_cidMap.empty())
            return FALSE;
      CHMIDMap::iterator itr = _cidMap.find( contextID );
      if( itr == _cidMap.end() )
            return FALSE;

      return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index