Ignore:
Timestamp:
Oct 16, 2000, 1:02:50 PM (25 years ago)
Author:
sandervl
Message:

sendmessage + sc_close fixes

File:
1 edited

Legend:

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

    r4483 r4485  
    1 /* $Id: win32wbase.cpp,v 1.216 2000-10-11 23:07:40 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.217 2000-10-16 11:02:50 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    16071607            Win32BaseWindow *window = GetTopParent();
    16081608            if(window && !(window->getClass()->getStyle() & CS_NOCLOSE))
    1609                 PostMessageA(getWindowHandle(), WM_SYSCOMMAND, SC_CLOSE, 0);
     1609                PostMessageA(window->getWindowHandle(), WM_SYSCOMMAND, SC_CLOSE, 0);
    16101610            return 0;
    16111611        }
     
    16631663        if((HIWORD(lParam) & KEYDATA_ALT) && wParam)
    16641664        {
    1665                 if (wParam == VK_TAB || wParam == VK_ESCAPE)
     1665                if (wParam == VK_TAB || wParam == VK_ESCAPE || wParam == VK_F4)
    16661666                        break;
    16671667                if (wParam == VK_SPACE && (getStyle() & WS_CHILD)) {
     
    18521852 BOOL    fInternalMsgBackup = fInternalMsg;
    18531853
     1854  //if the destination window was created by this process & thread, call window proc directly
     1855  if(dwProcessId != currentProcessId || dwThreadId != GetCurrentThreadId()) {
     1856        dprintf(("SendMessages (inter-process) %x %x %x %x", getWindowHandle(), Msg, wParam, lParam));
     1857        return OSLibSendMessage(getOS2WindowHandle(), Msg, wParam, lParam, FALSE);
     1858  }
     1859
    18541860  DebugPrintMessage(getWindowHandle(), Msg, wParam, lParam, FALSE, TRUE);
    18551861
     
    19051911 LRESULT rc;
    19061912 BOOL    fInternalMsgBackup = fInternalMsg;
     1913
     1914  //if the destination window was created by this process & thread, call window proc directly
     1915  if(dwProcessId != currentProcessId || dwThreadId != GetCurrentThreadId()) {
     1916        dprintf(("SendMessages (inter-process) %x %x %x %x", getWindowHandle(), Msg, wParam, lParam));
     1917        return OSLibSendMessage(getOS2WindowHandle(), Msg, wParam, lParam, FALSE);
     1918  }
    19071919
    19081920  DebugPrintMessage(getWindowHandle(), Msg, wParam, lParam, TRUE, TRUE);
Note: See TracChangeset for help on using the changeset viewer.