示例#1
0
// ****************************************************************************
//
//  Function Name:	RBorderView::Read( )
//
//  Description:		
//							
//  Returns:			Override of RGraphicView::Read() because we need to update
//							the border's thickness after its bounding rect has been
//							read in from storage.
//
//  Exceptions:		None
//
// ****************************************************************************
//
void RBorderView::Read( RChunkStorage& storage )
{	
	RGraphicView::Read( storage );
	
	// Look for a wide border flag chunk	
	RChunkStorage::RChunkSearcher rSearcher;
	rSearcher = storage.Start(kWideBorderFlagChunkId, !kRecursive);
	if (!rSearcher.End())
	{
		storage >> m_fWideBorder;
		storage.SelectParentChunk();
	}
void RBackdropSearchCollection::SeekToFirstIndexEntry()
{
	RSearchCollection::SeekToFirstIndexEntry();

	RChunkStorage::RChunkSearcher yIter =
		theChunkStorage->Start( 'ITBK', FALSE );
	if (yIter.End())
		throw kBadSeek;
	else
	{
		theChunkStorage->SeekAbsolute( 0 );
		*theChunkStorage >> theTotalEntries;
		*theChunkStorage >> theEntrySize;
		if (theEntrySize < 0)
			throw kBadSeek;
	}
}