Changeset 5713 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- May 15, 2001, 4:31:40 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r5685 r5713 1 /* $Id: win32wbase.cpp,v 1.25 5 2001-05-11 08:39:45sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.256 2001-05-15 14:31:39 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 3138 3138 BOOL rc; 3139 3139 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) { 3144 3144 SendMessageA(WM_CANCELMODE, 0, 0); 3145 }3146 OSLibWinEnableWindow(OS2HwndFrame, fEnable);3147 if(fEnable == FALSE) {3145 } 3146 OSLibWinEnableWindow(OS2HwndFrame, fEnable); 3147 if(fEnable == FALSE) { 3148 3148 //SvL: No need to clear focus as PM already does this 3149 3149 if(getWindowHandle() == GetCapture()) { … … 3151 3151 dprintf(("Released capture for window %x that is being disabled", getWindowHandle())); 3152 3152 } 3153 }3154 return rc;3153 } 3154 return rc; 3155 3155 } 3156 3156 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.