Пример #1
0
void SaveObject( void )
{
    /* remember the previous object */
    OBJPTR  currobj;

    currobj = GetEditCurrObject();
    if( currobj != NULL ) {
        State->prevobject = GetObjptr( currobj );
    }
}
Пример #2
0
OBJPTR GetCurrObjptr( OBJPTR obj )
/********************************/
{
    OBJPTR      currobj;

    for( currobj = GetEditCurrObject(); currobj != NULL; currobj = GetNextEditCurrObject( currobj ) ) {
        if( GetObjptr( currobj ) == obj ) {
            return( currobj );
        }
    }
    return( NULL );
}
Пример #3
0
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() );
    }
}