Ignore:
Timestamp:
Jul 5, 2002, 8:15:11 PM (23 years ago)
Author:
sandervl
Message:

PF: SetFocus not allowed on invisible windows

File:
1 edited

Legend:

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

    r8027 r8842  
    1 /* $Id: window.cpp,v 1.122 2002-02-27 15:23:38 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.123 2002-07-05 18:15:11 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    734734 BOOL activate, ret;
    735735 TEB *teb;
    736 
     736   
    737737    teb = GetThreadTEB();
    738738    if(teb == NULL) {
    739739        DebugInt3();
     740        return 0;
     741    }
     742   
     743    if (!IsWindowVisible(hwnd))
     744    {
     745        dprintf(("SetFocus, %x not allowed on invisible window", hwnd));
     746        SetLastError(ERROR_INVALID_WINDOW_HANDLE);
    740747        return 0;
    741748    }
Note: See TracChangeset for help on using the changeset viewer.