Changeset 9928 for trunk/src/user32


Ignore:
Timestamp:
Mar 20, 2003, 10:15:31 AM (23 years ago)
Author:
sandervl
Message:

WindowFromPoint: only send WM_NCHITTEST to windows belonging to the current thread

Location:
trunk/src/user32
Files:
3 edited

Legend:

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

    r9791 r9928  
    1 /* $Id: oslibmsg.cpp,v 1.65 2003-02-13 10:12:24 sandervl Exp $ */
     1/* $Id: oslibmsg.cpp,v 1.66 2003-03-20 09:15:31 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    3131#define  INCL_PM
    3232#define  INCL_DOSPROCESS
     33#define  INCL_WINMESSAGEMGR
     34#define  INCL_DOSSEMAPHORES
     35#define  INCL_DOSERRORS
    3336#include <os2wrap.h>
    3437#include <odinwrap.h>
  • trunk/src/user32/window.cpp

    r9791 r9928  
    1 /* $Id: window.cpp,v 1.131 2003-02-13 10:12:27 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.132 2003-03-20 09:15:31 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    17311731#endif
    17321732    {
     1733        DWORD dwThreadId = GetCurrentThreadId();
     1734
     1735        //Don't send WM_NCHITTEST if this window doesn't belong to the current thread
     1736        if(dwThreadId != GetWindowThreadProcessId(hwnd, NULL))
     1737        {
     1738            return TRUE;
     1739        }
    17331740        hittest = SendMessageA(hwnd, WM_NCHITTEST, 0, MAKELONG(point.x, point.y));
    17341741        if(hittest != HTTRANSPARENT) {
  • trunk/src/user32/windowmsg.cpp

    r9865 r9928  
    1 /* $Id: windowmsg.cpp,v 1.40 2003-02-27 14:22:22 sandervl Exp $ */
     1/* $Id: windowmsg.cpp,v 1.41 2003-03-20 09:15:31 sandervl Exp $ */
    22/*
    33 * Win32 window message APIs for OS/2
     
    169169BOOL WIN32API WaitMessage(void)
    170170{
    171     dprintf2(("USER32: WaitMessage"));
    172     return OSLibWinWaitMessage();
     171#ifdef DEBUG
     172    MSG msg;
     173
     174    if(PeekMessageA(&msg, 0, 0, 0, PM_NOREMOVE) == FALSE) {
     175          dprintf2(("USER32: WaitMessage %x", GetThreadHAB()));
     176    }
     177    else  dprintf2(("USER32: WaitMessage %x; message %x present", GetThreadHAB(), msg.message));
     178#endif
     179
     180    BOOL ret = OSLibWinWaitMessage();
     181#ifdef DEBUG
     182    if(PeekMessageA(&msg, 0, 0, 0, PM_NOREMOVE) == FALSE) {
     183          dprintf2(("USER32: WaitMessage returned with no message in the queue"));
     184    }
     185#endif
     186    return ret;
    173187}
    174188//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.