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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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) {
Note: See TracChangeset for help on using the changeset viewer.