Ignore:
Timestamp:
Jan 27, 2000, 10:50:03 PM (26 years ago)
Author:
sandervl
Message:

fixed fs corruption; send WM_CHILDACTIVATE to child windows

File:
1 edited

Legend:

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

    r2469 r2533  
    1 /* $Id: win32wmdichild.cpp,v 1.19 2000-01-18 20:10:59 sandervl Exp $ */
     1/* $Id: win32wmdichild.cpp,v 1.20 2000-01-27 21:50:03 sandervl Exp $ */
    22/*
    33 * Win32 MDI Child Window Class for OS/2
     
    5757//******************************************************************************
    5858//******************************************************************************
    59 ULONG Win32MDIChildWindow::MsgActivate(BOOL fActivate, BOOL fMinimized, HWND hwnd, HWND hwndOS2Win)
    60 {
    61  ULONG rc, procidhwnd = -1, threadidhwnd = 0;
    62 
    63     //According to SDK docs, if app returns FALSE & window is being deactivated,
    64     //default processing is cancelled
    65     //TODO: According to Wine we should proceed anyway if window is sysmodal
    66 #if 0
    67     if(SendInternalMessageA(WM_NCACTIVATE, fActivate, 0) == FALSE && !fActivate)
    68     {
    69         return 0;
    70     }
    71 #endif
    72 
    73     if(fActivate)
    74     {
    75          rc = SendInternalMessageA(WM_CHILDACTIVATE, MAKELONG((fActivate) ? WA_ACTIVE : WA_INACTIVE, fMinimized), hwnd);
    76          if(hwndOS2Win) {
    77             threadidhwnd = O32_GetWindowThreadProcessId(hwndOS2Win, &procidhwnd);
    78          }
    79 
    80          if(fActivate) {
    81                 SendInternalMessageA(WM_ACTIVATEAPP, 1, dwThreadId);    //activate; specify window thread id
    82          }
    83          else   SendInternalMessageA(WM_ACTIVATEAPP, 0, threadidhwnd);  //deactivate; specify thread id of other process
    84          return rc;
    85     }
    86     else return 1;
    87 }
    88 //******************************************************************************
    89 //******************************************************************************
    9059BOOL Win32MDIChildWindow::isMDIChild()
    9160{
Note: See TracChangeset for help on using the changeset viewer.