Changeset 741 for trunk/src/user32/new/winaccel.cpp
- Timestamp:
- Aug 30, 1999, 2:00:12 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/winaccel.cpp
r342 r741 1 /* $Id: winaccel.cpp,v 1. 3 1999-07-20 07:42:36sandervl Exp $ */1 /* $Id: winaccel.cpp,v 1.4 1999-08-30 11:59:54 sandervl Exp $ */ 2 2 /* 3 3 * Win32 accelartor key functions for OS/2 … … 11 11 #include <os2win.h> 12 12 #include <misc.h> 13 #include <win32w nd.h>13 #include <win32wbase.h> 14 14 15 15 //****************************************************************************** … … 42 42 43 43 if(HIWORD(haccel) == 0) { 44 45 46 44 dprintf(("DestroyAcceleratorTable: invalid haccel %x", haccel)); 45 SetLastError(ERROR_INVALID_PARAMETER); 46 return FALSE; 47 47 } 48 48 dprintf(("DestroyAcceleratorTable %x\n", haccel)); … … 56 56 int WIN32API TranslateAcceleratorA(HWND hwnd, HACCEL haccel, LPMSG lpmsg) 57 57 { 58 Win32 Window *window;58 Win32BaseWindow *window; 59 59 60 window = Win32 Window::GetWindowFromHandle(hwnd);60 window = Win32BaseWindow::GetWindowFromHandle(hwnd); 61 61 if(!window) { 62 62 //Msg for (non-client) child of our frame window 63 // 64 63 // dprintf(("TranslateAcceleratorA, window %x not found", hwnd)); 64 return FALSE; 65 65 } 66 66 if(window->GetAccelTable() != haccel) { 67 68 67 dprintf(("TranslateAcceleratorA %X %X %X", hwnd, haccel, lpmsg->hwnd)); 68 window->SetAccelTable(haccel); 69 69 } 70 70
Note:
See TracChangeset
for help on using the changeset viewer.