Beispiel #1
0
/*
 * ResizeRoot - change root to new size
 */
void ResizeRoot( void )
{
    RECT        rect;
    RECT        root_rect;
    int         height;
    HWND        bufHwnd;

    if( !EditFlags.WindowsStarted ) {
        return;
    }
    GetClientRect( Root, &root_rect );
    DefaultWindows( &root_rect, &rect );
    if( MessageWindow != NO_WINDOW ) {
        NewMessageWindow();
        if( MessageWindow != NO_WINDOW ) {
            InvalidateRect( MessageWindow, NULL, FALSE );
            SendMessage( MessageWindow, WM_PAINT, 0, 0L );
        }
    }
    if( StatusWindow != NO_WINDOW ) {
        NewStatusWindow();
        if( StatusWindow != NO_WINDOW ) {
            InvalidateRect( StatusWindow, NULL, FALSE );
            SendMessage( StatusWindow, WM_PAINT, 0, 0L );
        }
    }
    height = rect.bottom - rect.top;
    MoveWindow( EditContainer, rect.left, rect.top, rect.right - rect.left, height, TRUE );
    if( CurrentInfo ) {
        bufHwnd = CurrentInfo->CurrentWindow;
        if( IsWindow( bufHwnd ) && IsZoomed( bufHwnd ) ) {
            ShowWindow( bufHwnd, SW_SHOWMAXIMIZED );
        }
    }
    InvalidateRect( Root, NULL, TRUE );

} /* ResizeRoot */
Beispiel #2
0
/*
 * ResizeRoot - change root to new size
 */
void ResizeRoot( void )
{
    RECT        rect;
    RECT        root_rect;
    int         height;
    HWND        bufHwnd;

    if( !EditFlags.WindowsStarted ) {
        return;
    }
    GetClientRect( root_window_id, &root_rect );
    DefaultWindows( &root_rect, &rect );
    if( !BAD_ID( message_window_id ) ) {
        NewMessageWindow();
        if( !BAD_ID( message_window_id ) ) {
            InvalidateRect( message_window_id, NULL, FALSE );
            SendMessage( message_window_id, WM_PAINT, 0, 0L );
        }
    }
    if( !BAD_ID( status_window_id ) ) {
        NewStatusWindow();
        if( !BAD_ID( status_window_id ) ) {
            InvalidateRect( status_window_id, NULL, FALSE );
            SendMessage( status_window_id, WM_PAINT, 0, 0L );
        }
    }
    height = rect.bottom - rect.top;
    MoveWindow( edit_container_id, rect.left, rect.top, rect.right - rect.left, height, TRUE );
    if( CurrentInfo ) {
        bufHwnd = CurrentInfo->current_window_id;
        if( IsWindow( bufHwnd ) && IsZoomed( bufHwnd ) ) {
            ShowWindow( bufHwnd, SW_SHOWMAXIMIZED );
        }
    }
    InvalidateRect( root_window_id, NULL, TRUE );

} /* ResizeRoot */