Ignore:
Timestamp:
May 15, 2001, 4:31:40 PM (24 years ago)
Author:
sandervl
Message:

SetFocus fix

File:
1 edited

Legend:

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

    r5685 r5713  
    1 /* $Id: win32wbase.cpp,v 1.255 2001-05-11 08:39:45 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.256 2001-05-15 14:31:39 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    31383138 BOOL rc;
    31393139
    3140   dprintf(("Win32BaseWindow::EnableWindow %x %d", getWindowHandle(), fEnable));
    3141   //return true if previous state was disabled, else false (sdk docs)
    3142   rc = (getStyle() & WS_DISABLED) != 0;
    3143   if(rc && !fEnable) {
     3140    dprintf(("Win32BaseWindow::EnableWindow %x %d", getWindowHandle(), fEnable));
     3141    //return true if previous state was disabled, else false (sdk docs)
     3142    rc = (getStyle() & WS_DISABLED) != 0;
     3143    if(rc && !fEnable) {
    31443144        SendMessageA(WM_CANCELMODE, 0, 0);
    3145   }
    3146   OSLibWinEnableWindow(OS2HwndFrame, fEnable);
    3147   if(fEnable == FALSE) {
     3145    }
     3146    OSLibWinEnableWindow(OS2HwndFrame, fEnable);
     3147    if(fEnable == FALSE) {
    31483148        //SvL: No need to clear focus as PM already does this
    31493149        if(getWindowHandle() == GetCapture()) {
     
    31513151                dprintf(("Released capture for window %x that is being disabled", getWindowHandle()));
    31523152        }
    3153   }
    3154   return rc;
     3153    }
     3154    return rc;
    31553155}
    31563156//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.