Ignore:
Timestamp:
Feb 27, 2010, 4:33:12 PM (15 years ago)
Author:
vladest
Message:
  • Space character was not entered to lineedit. fixed
  • added mouse buttons handling
File:
1 edited

Legend:

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

    r21356 r21367  
    875875        }
    876876        if(win32wnd)
     877        {
     878            dprintf(("Mouse click: %x, msg: %x, mp1: %x, mp2: %x",
     879                 pWinMsg->hwnd, pWinMsg->message, pWinMsg->wParam, pWinMsg->lParam));
    877880            win32wnd->MsgButton(pWinMsg);
    878 
     881        }
    879882        rc = (MRESULT)TRUE;
    880883        break;
     
    940943        if (WINWM_KEYDOWN == pWinMsg->message &&
    941944            (((SHORT1FROMMP(mp1) & KC_CHAR) &&
    942              !(SHORT1FROMMP(mp1) & KC_VIRTUALKEY)) ||
    943             (SHORT1FROMMP(mp1) & KC_DEADKEY)))
     945              !(SHORT1FROMMP(mp1) & KC_VIRTUALKEY)) || (SHORT1FROMMP(mp1) & KC_DEADKEY)) ||
     946            (SHORT1FROMMP(mp2) == 0x20) //special case for space
     947           )
    944948        {
    945949            MSG extramsg;
    946950            char cpfrom[10] = {0};
    947951            char cpto[10] = {0};
    948             ULONG       ulCpSize, ulCP;
    949 
    950 
     952            ULONG  ulCpSize, ulCP, mp2l;
     953
     954            mp2l = (ULONG)mp2 & 0x0000FFFF;
    951955            memcpy(&extramsg, pWinMsg, sizeof(MSG));
    952956            extramsg.message = WINWM_CHAR;
     
    954958            sprintf(cpfrom,"IBM-%d\0", ulCP);
    955959            sprintf(cpto,"IBM-%d\0", GetDisplayCodepage());
    956             if (cp2cp(cpfrom, cpto, (char*)&mp2, (char*)&extramsg.wParam, 1))
    957                 extramsg.wParam = (ULONG)mp2;
     960            if (cp2cp(cpfrom, cpto, (char*)&mp2l, (char*)&extramsg.wParam, 1))
     961                extramsg.wParam = (ULONG)mp2l;
    958962
    959963            if(SHORT1FROMMP(mp1) & KC_DEADKEY)
Note: See TracChangeset for help on using the changeset viewer.