Changeset 2533 for trunk/src


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

fixed fs corruption; send WM_CHILDACTIVATE to child windows

Location:
trunk/src/user32
Files:
8 edited

Legend:

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

    r2469 r2533  
    1 /* $Id: oslibmsg.cpp,v 1.26 2000-01-18 20:10:40 sandervl Exp $ */
     1/* $Id: oslibmsg.cpp,v 1.27 2000-01-27 21:50:01 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    441441    packet->wParam = wParam;
    442442    packet->lParam = lParam;
    443     return _O32_PostThreadMessage(threadid, WIN32APP_POSTMSG-OPEN32_MSGDIFF, ((fUnicode) ? WIN32MSG_MAGICW : WIN32MSG_MAGICA), (LPARAM)packet);
    444 }
    445 //******************************************************************************
    446 //******************************************************************************
    447 
     443    return O32_PostThreadMessage(threadid, WIN32APP_POSTMSG-OPEN32_MSGDIFF, ((fUnicode) ? WIN32MSG_MAGICW : WIN32MSG_MAGICA), (LPARAM)packet);
     444}
     445//******************************************************************************
     446//******************************************************************************
     447
  • trunk/src/user32/pmframe.cpp

    r2521 r2533  
    1 /* $Id: pmframe.cpp,v 1.39 2000-01-26 18:02:35 cbratschi Exp $ */
     1/* $Id: pmframe.cpp,v 1.40 2000-01-27 21:50:01 sandervl Exp $ */
    22/*
    33 * Win32 Frame Managment Code for OS/2
     
    1313#define INCL_GPI
    1414
    15 #include <os2.h>                        /* PM header file               */
    1615#include <os2wrap.h>
    1716#include <stdlib.h>
  • trunk/src/user32/pmwindow.cpp

    r2489 r2533  
    1 /* $Id: pmwindow.cpp,v 1.81 2000-01-21 13:30:34 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.82 2000-01-27 21:50:01 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    287287
    288288    case WM_CALCVALIDRECTS:
    289 #if 1
     289#if 0
    290290    {
    291291      PRECTL oldRect = (PRECTL)mp1,newRect = oldRect+1;
  • trunk/src/user32/win32wbase.cpp

    r2529 r2533  
    1 /* $Id: win32wbase.cpp,v 1.146 2000-01-27 17:21:09 cbratschi Exp $ */
     1/* $Id: win32wbase.cpp,v 1.147 2000-01-27 21:50:01 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    820820    }
    821821#endif
     822    /* child windows get WM_CHILDACTIVATE message */
     823    if((getStyle() & (WS_CHILD | WS_POPUP)) == WS_CHILD )
     824    {
     825        SendInternalMessageA(WM_CHILDACTIVATE, 0, 0L);
     826        return 0;
     827    }
     828
    822829    rc = SendInternalMessageA(WM_ACTIVATE, MAKELONG((fActivate) ? WA_ACTIVE : WA_INACTIVE, fMinimized), hwnd);
    823830
  • trunk/src/user32/win32wbase.h

    r2529 r2533  
    1 /* $Id: win32wbase.h,v 1.75 2000-01-27 17:21:09 cbratschi Exp $ */
     1/* $Id: win32wbase.h,v 1.76 2000-01-27 21:50:02 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    106106         ULONG  MsgPosChanging(LPARAM lp);
    107107         ULONG  MsgPosChanged(LPARAM lp);
    108 virtual ULONG  MsgActivate(BOOL fActivate, BOOL fMinimized, HWND hwnd, HWND hwndOS2Win);
     108        ULONG  MsgActivate(BOOL fActivate, BOOL fMinimized, HWND hwnd, HWND hwndOS2Win);
    109109         ULONG  MsgSetFocus(HWND hwnd);
    110110         ULONG  MsgKillFocus(HWND hwnd);
  • 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{
  • trunk/src/user32/win32wmdichild.h

    r2469 r2533  
    1 /* $Id: win32wmdichild.h,v 1.6 2000-01-18 20:08:17 sandervl Exp $ */
     1/* $Id: win32wmdichild.h,v 1.7 2000-01-27 21:50:03 sandervl Exp $ */
    22/*
    33 * Win32 MDI Client Window Class for OS/2
     
    2424virtual        ~Win32MDIChildWindow();
    2525
    26 virtual  ULONG  MsgActivate(BOOL fActivate, BOOL fMinimized, HWND hwnd, HWND hwndOS2Win);
    27 
    2826   static HWND  createChild(Win32MDIClientWindow *client, LPMDICREATESTRUCTA cs);
    2927           void childGetMinMaxInfo(MINMAXINFO* lpMinMax);
  • trunk/src/user32/wndmsg.cpp

    r2469 r2533  
    1 /* $Id: wndmsg.cpp,v 1.10 2000-01-18 20:11:25 sandervl Exp $ */
     1/* $Id: wndmsg.cpp,v 1.11 2000-01-27 21:50:03 sandervl Exp $ */
    22/*
    33 * Win32 window message text function for OS/2
     
    712712        if(PostSpyMessage(hwnd, Msg, wParam, lParam) == FALSE)
    713713        {
     714#if 1
     715            if(!CheckCurFS()) {
     716                dprintf(("FS CORRUPT!!!!"));
     717            }
     718#endif
    714719            if(fInternalMsg) {
    715720                    dprintf(("SendInternalMessage%c %s for %x %x %x", unicode, GetMsgText(Msg), hwnd, wParam, lParam));
Note: See TracChangeset for help on using the changeset viewer.