- Timestamp:
- Mar 16, 2000, 8:19:11 PM (25 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibmsgtranslate.cpp
r3108 r3127 1 /* $Id: oslibmsgtranslate.cpp,v 1.2 4 2000-03-14 15:01:00sandervl Exp $ */1 /* $Id: oslibmsgtranslate.cpp,v 1.25 2000-03-16 19:19:09 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 46 46 0x09, // VK_TAB VK_TAB 47 47 0x00, // VK_BACKTAB No equivalent! 48 0x0 A, // VK_NEWLINE 0x0A (no VK_* def)48 0x0D, // VK_NEWLINE VK_RETURN 49 49 0x10, // VK_SHIFT VK_SHIFT 50 50 0x11, // VK_CTRL VK_CONTROL … … 608 608 winMsg->lParam = repeatCount & 0x0FFFF; // bit 0-15, repeatcount 609 609 winMsg->lParam |= (scanCode & 0x0FF) << 16; // bit 16-23, scancode 610 win32wnd->setExtendedKey(virtualKey, (ULONG *)&winMsg->lParam); 610 611 //TODO: Is this correct and complete? (how does PM differentiate between 612 // i.e numeric pad pgdn & 'normal' pgdn??) 613 //Check if it's an extended key 614 switch(virtualKey) { 615 case VK_RETURN_W: 616 //The enter key on the numeric keypad is an extended key 617 if(SHORT2FROMMP(os2Msg->mp2) != VK_NEWLINE) 618 break; 619 //no break 620 case VK_LEFT_W: 621 case VK_RIGHT_W: 622 case VK_DOWN_W: 623 case VK_UP_W: 624 case VK_PRIOR_W: 625 case VK_NEXT_W: 626 case VK_END_W: 627 case VK_DIVIDE_W: 628 case VK_DELETE_W: 629 case VK_HOME_W: 630 case VK_INSERT_W: 631 case VK_RCONTROL_W: 632 case VK_RMENU_W: //is this the right alt??? 633 winMsg->lParam = winMsg->lParam | (1<<24); 634 break; 635 } 611 636 612 637 if(!(SHORT1FROMMP(os2Msg->mp1) & KC_ALT)) -
trunk/src/user32/win32wbase.cpp
r2956 r3127 1 /* $Id: win32wbase.cpp,v 1.17 1 2000-03-01 13:30:05sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.172 2000-03-16 19:19:10 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 857 857 } 858 858 //****************************************************************************** 859 //TODO: Is this correct and complete?860 //Add print screen, break & numlock861 //******************************************************************************862 void Win32BaseWindow::setExtendedKey(ULONG virtualkey, ULONG *lParam)863 {864 switch(virtualkey) {865 case VK_LEFT:866 case VK_RIGHT:867 case VK_DOWN:868 case VK_UP:869 case VK_PRIOR:870 case VK_NEXT:871 case VK_END:872 case VK_DIVIDE:873 case VK_DELETE:874 case VK_EXECUTE: //Numeric enter key?875 case VK_HOME:876 case VK_INSERT:877 case VK_RCONTROL:878 case VK_RMENU: //is this the right alt???879 *lParam = *lParam | (1<<24);880 }881 }882 //******************************************************************************883 859 //****************************************************************************** 884 860 ULONG Win32BaseWindow::DispatchMsgA(MSG *msg) -
trunk/src/user32/win32wbase.h
r3101 r3127 1 /* $Id: win32wbase.h,v 1.8 8 2000-03-13 13:10:48sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.89 2000-03-16 19:19:11 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 301 301 LRESULT SendInternalMessageW(ULONG msg, WPARAM wParam, LPARAM lParam); 302 302 void Init(); 303 void setExtendedKey(ULONG virtualkey, ULONG *lParam);304 303 305 304 HWND OS2Hwnd; -
trunk/src/user32/win32wndhandle.cpp
r2803 r3127 1 /* $Id: win32wndhandle.cpp,v 1. 5 2000-02-16 14:28:25sandervl Exp $ */1 /* $Id: win32wndhandle.cpp,v 1.6 2000-03-16 19:19:11 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Handle Management Code for OS/2 … … 40 40 //oops, out of handles 41 41 dprintf(("USER32: HwAllocateWindowHandle OUT OF WINDOW HANDLES!!")); 42 tableMutex.leave(); 42 43 DebugInt3(); 43 tableMutex.leave();44 44 return FALSE; 45 45 }
Note:
See TracChangeset
for help on using the changeset viewer.