Changeset 5935 for trunk/src/user32/winaccel.cpp
- Timestamp:
- Jun 9, 2001, 4:50:26 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/winaccel.cpp
r2846 r5935 1 /* $Id: winaccel.cpp,v 1. 7 2000-02-21 14:25:23sandervl Exp $ */1 /* $Id: winaccel.cpp,v 1.8 2001-06-09 14:50:24 sandervl Exp $ */ 2 2 /* 3 3 * Win32 accelerator key functions for OS/2 … … 85 85 else 86 86 { 87 Win32BaseWindow *window;87 Win32BaseWindow *window; 88 88 89 89 window = Win32BaseWindow::GetWindowFromHandle(hWnd); … … 123 123 mesg=WM_COMMAND; 124 124 } 125 RELEASE_WNDOBJ(window); 125 126 } 126 127 if ( mesg==WM_COMMAND || mesg==WM_SYSCOMMAND ) … … 165 166 /* YES, Accel16! */ 166 167 LPACCEL lpAccelTbl; 167 Win32BaseWindow *window;168 168 int i; 169 169 … … 181 181 return 0; 182 182 } 183 window = Win32BaseWindow::GetWindowFromHandle(hWnd); 184 if(!window) { 183 if(!IsWindow(hWnd)) { 185 184 dprintf(("TranslateAccelerator, window %x not found", hWnd)); 186 185 SetLastError(ERROR_INVALID_WINDOW_HANDLE); … … 233 232 } 234 233 235 mdichild = clientWnd->getActiveChild(); 236 if(!mdichild) { 234 hwndChild = clientWnd->getActiveChild(); 235 RELEASE_WNDOBJ(clientWnd); 236 if(!hwndChild) { 237 237 dprintf(("TranslateMDISysAccel NO active MDI child!!")); 238 238 return FALSE; 239 239 } 240 hwndChild = mdichild->getWindowHandle();241 240 242 241 if(IsWindow(hwndChild) && !(GetWindowLongA(hwndChild,GWL_STYLE) & WS_DISABLED) )
Note:
See TracChangeset
for help on using the changeset viewer.