Remove optimization in NC_HandleNCActivate.

This commit is contained in:
Dmitry Timoshkov 2001-06-04 02:49:22 +00:00 committed by Alexandre Julliard
parent 8a05b831de
commit d1e648f0d2
1 changed files with 5 additions and 6 deletions

View File

@ -1754,12 +1754,11 @@ LONG NC_HandleNCPaint( HWND hwnd , HRGN clip)
*/
LONG NC_HandleNCActivate( WND *wndPtr, WPARAM16 wParam )
{
WORD wStateChange;
if( wParam ) wStateChange = !(wndPtr->flags & WIN_NCACTIVATED);
else wStateChange = wndPtr->flags & WIN_NCACTIVATED;
if( wStateChange )
/* Lotus Notes draws menu descriptions in the caption of its main
* window. When it wants to restore original "system" view, it just
* sends WM_NCACTIVATE message to itself. Any optimizations here in
* attempt to minimize redrawings lead to a not restored caption.
*/
{
if (wParam) wndPtr->flags |= WIN_NCACTIVATED;
else wndPtr->flags &= ~WIN_NCACTIVATED;