Changeset 1236 for trunk/src


Ignore:
Timestamp:
Oct 9, 1999, 9:27:40 PM (26 years ago)
Author:
sandervl
Message:

MDI activate bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/win32wmdiclient.cpp

    r1226 r1236  
    1 /* $Id: win32wmdiclient.cpp,v 1.5 1999-10-09 15:09:15 achimha Exp $ */
     1/* $Id: win32wmdiclient.cpp,v 1.6 1999-10-09 19:27:40 sandervl Exp $ */
    22/*
    33 * Win32 MDI Client Window Class for OS/2
     
    126126
    127127    case WM_MDIACTIVATE:
    128         mdichild = 0;
    129         if(activeChild && activeChild->getWindowHandle() != (HWND)wParam)
    130            mdichild = (Win32MDIChildWindow*)GetWindowFromHandle((HWND)wParam);
    131 
    132         if (mdichild)
    133         {
    134           mdichild->SetWindowPos(0,0,0,0,0, SWP_NOSIZE | SWP_NOMOVE);
    135         }
     128        if( activeChild && activeChild->getWindowHandle() != (HWND)wParam )
     129        {
     130                mdichild = (Win32MDIChildWindow *)GetWindowFromHandle((HWND)wParam);
     131                if(mdichild) {
     132                    mdichild->SetWindowPos(0,0,0,0,0, SWP_NOSIZE | SWP_NOMOVE);
     133                }
     134        }
    136135        retvalue = 0;
    137136        goto END;
Note: See TracChangeset for help on using the changeset viewer.