Ignore:
Timestamp:
Dec 24, 1999, 7:42:46 PM (26 years ago)
Author:
sandervl
Message:

Message handling rewrite

File:
1 edited

Legend:

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

    r2114 r2200  
    1 /* $Id: window.cpp,v 1.43 1999-12-18 16:31:52 cbratschi Exp $ */
     1/* $Id: window.cpp,v 1.44 1999-12-24 18:39:13 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    532532    if(!window) {
    533533        dprintf(("IsWindow, window %x not found", hwnd));
     534        SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    534535        return FALSE;
    535536    }
     
    546547    if(!window) {
    547548        dprintf(("IsWindowEnabled, window %x not found", hwnd));
     549        SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    548550        return 0;
    549551    }
     
    11831185HWND WIN32API ChildWindowFromPointEx (HWND hwndParent, POINT pt, UINT uFlags)
    11841186{
    1185         RECT rect;
    1186         HWND hWnd;
    1187         POINT framePt;
     1187  RECT rect;
     1188  HWND hWnd;
    11881189
    11891190        dprintf(("ChildWindowFromPointEx(%08xh,%08xh,%08xh).\n",
     
    11961197        }
    11971198
    1198         MapWindowPoints(hwndParent,GetParent(hwndParent),&framePt,1);
    1199         if (PtInRect (&rect, framePt) == 0) {
     1199        ClientToScreen(hwndParent, &pt);
     1200        if (PtInRect (&rect, pt) == 0) {
    12001201                // point is outside window
    12011202                return NULL;
Note: See TracChangeset for help on using the changeset viewer.