Ignore:
Timestamp:
Apr 15, 2000, 5:11:14 PM (25 years ago)
Author:
sandervl
Message:

EnableWindow fixes & don't send mouse messages to disabled windows

File:
1 edited

Legend:

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

    r3365 r3388  
    1 /* $Id: win32wbase.cpp,v 1.178 2000-04-10 19:40:45 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.179 2000-04-15 15:11:14 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    25982598BOOL Win32BaseWindow::EnableWindow(BOOL fEnable)
    25992599{
    2600   return OSLibWinEnableWindow(OS2HwndFrame, fEnable);
     2600 BOOL rc;
     2601
     2602  //return true if previous state was disabled, else false (sdk docs)
     2603  rc = (getStyle() & WS_DISABLED) != 0;
     2604  if(rc && !fEnable) {
     2605        SendMessageA(WM_CANCELMODE, 0, 0);
     2606  }
     2607  OSLibWinEnableWindow(OS2HwndFrame, fEnable);
     2608  return rc;
    26012609}
    26022610//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.