Changeset 400 for trunk/Lucide


Ignore:
Timestamp:
Apr 16, 2010, 9:30:26 PM (12 years ago)
Author:
dmik
Message:

Fixed: Always set the title bar hilite state after adding it back to the frame when leaving fullscreen/presentation mode since PM doesn't do it on its own.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/gui/lucide.cpp

    r399 r400  
    811811        WinSetParent( hFrameMinMax,   hWndFrame, FALSE );
    812812        ulFrameStyle |= FS_SIZEBORDER;
     813
     814        // PM does not synchronize the title bar hilite state when it is added
     815        // to the frame window. Do it ourselves
     816        BOOL active = WinQueryActiveWindow( HWND_DESKTOP ) == hWndFrame;
     817        WinSendMsg( hFrameTitlebar, TBM_SETHILITE,
     818                    MPFROMSHORT( active ), MPVOID );
    813819    }
    814820    else if ( fullscreenState == On )
     
    11131119                             winPos.Swp.x, winPos.Swp.y, winPos.Swp.cx, winPos.Swp.cy,
    11141120                             SwpOptions );
    1115         } else {
    1116             // if we don't SWP_ACTIVATE now, then the title bar will keep the
    1117             // inactive state after the user switches from fullscreen/presentation
    1118             // (where the title bar is hidden) back to normal view later in this
    1119             // session. Looks like a PM bug too
    1120             WinSetWindowPos( hWndFrame, NULLHANDLE, 0, 0, 0, 0, SWP_ACTIVATE );
    11211121        }
    11221122
Note: See TracChangeset for help on using the changeset viewer.