void SaveObject( void ) { /* remember the previous object */ OBJPTR currobj; currobj = GetEditCurrObject(); if( currobj != NULL ) { State->prevobject = GetObjptr( currobj ); } }
OBJPTR GetCurrObjptr( OBJPTR obj ) /********************************/ { OBJPTR currobj; for( currobj = GetEditCurrObject(); currobj != NULL; currobj = GetNextEditCurrObject( currobj ) ) { if( GetObjptr( currobj ) == obj ) { return( currobj ); } } return( NULL ); }
void FMEDITAPI ResetCurrObject( bool draw ) /*****************************************/ { /* reset the current object */ OBJPTR currobj; OBJPTR nextobj; for( currobj = GetEditCurrObject(); currobj != NULL; currobj = nextobj ) { nextobj = GetNextEditCurrObject( currobj ); if( draw ) { if( GetObjptr( currobj ) != GetMainObject() ) { ObjMark( currobj ); } } DeleteCurrObject( currobj ); } if( draw ) { UpdateWindow( GetAppWnd() ); } }