예제 #1
0
void EclRemoveWindow ( char *name )
{
    
    int index = EclGetWindowIndex(name);
    if ( index != -1 )
    {
    
        EclWindow *window = windows.GetData(index);

        if( strcmp( mouseDownWindow, name ) == 0 )
        {
            strcpy( mouseDownWindow, "None" );
        }

        if( strcmp( windowFocus, name ) == 0 )
        {
            strcpy( windowFocus, "None" );
        }

        window->Remove();

        windows.RemoveData(index);
        delete window;
    }
    else
    {
        AppDebugOut( "EclRemoveWindow failed on window %s\n", name );
    }
    
}
예제 #2
0
void EclSetWindowSize ( char *name, int w, int h )
{
    EclWindow *window = EclGetWindow(name);
    if ( window )
    {
        window->Remove();
        window->m_w = w;
        window->m_h = h;
        window->Create();
    }
    else
    {
        AppDebugOut( "EclSetWindowSize failed on window %s\n", name );
    }
}
void EclSetWindowSize ( char *name, int w, int h )
{
    EclWindow *window = EclGetWindow(name);
    if ( window )
    {
        window->Remove();
        EclDirtyWindow( window );
        EclDirtyRectangle( window->m_x, window->m_y, window->m_w, window->m_h );
        window->m_w = w;
        window->m_h = h;
        window->Create();
        EclDirtyRectangle( window->m_x, window->m_y, window->m_w, window->m_h );
    }
    else
    {
    }
}