Ignore:
Timestamp:
Oct 6, 2009, 1:01:18 PM (16 years ago)
Author:
vladest
Message:
  1. Character input implemented
  2. Correct HAND icon added
File:
1 edited

Legend:

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

    r21341 r21344  
    923923
    924924    case WM_CHAR:
    925         dprintf(("OS2: WM_CHAR %x %x %x, %x %x focus wnd %x", win32wnd->getWindowHandle(), mp1, mp2, pWinMsg->wParam, pWinMsg->lParam, WinQueryFocus(HWND_DESKTOP)));
     925        dprintf(("OS2: WM_CHAR %x %x %x, %x %x msg: %x focus wnd %x", win32wnd->getWindowHandle(), mp1, mp2, pWinMsg->wParam, pWinMsg->lParam, pWinMsg->message, WinQueryFocus(HWND_DESKTOP)));
    926926        win32wnd->MsgChar(pWinMsg);
     927        /*
     928         * now, we need to send WM_CHAR message
     929         * to inform Win32 window that an char was input
     930         * We ignoring wm_char sending in case of Ctrl or Alt pressed
     931         * Also we
     932         */
     933        /* sending only after WINWM_KEYDOWN */
     934        /* checking for alphanum chars and number. did I miss something?
     935         */
     936        if (WINWM_KEYDOWN == pWinMsg->message &&
     937            (SHORT1FROMMP(mp1) & KC_CHAR) &&
     938            (pWinMsg->wParam >= 0x30 && pWinMsg->wParam <= 0x5A) ||
     939            pWinMsg->wParam == 0x20)
     940        {
     941            MSG extramsg;
     942            memcpy(&extramsg, pWinMsg, sizeof(MSG));
     943            extramsg.message = WINWM_CHAR;
     944            extramsg.wParam = (ULONG)mp2;
     945            win32wnd->MsgChar(&extramsg);
     946        }
     947
    927948        break;
    928949
     
    14401461        break;
    14411462    }
    1442        
     1463
    14431464        case WM_CHAR:
    14441465                {
Note: See TracChangeset for help on using the changeset viewer.