Ignore:
Timestamp:
Jul 28, 2003, 1:35:32 PM (22 years ago)
Author:
sandervl
Message:

Updates

File:
1 edited

Legend:

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

    r10104 r10185  
    1 /* $Id: windowmsg.cpp,v 1.42 2003-05-16 10:59:28 sandervl Exp $ */
     1/* $Id: windowmsg.cpp,v 1.43 2003-07-28 11:27:50 sandervl Exp $ */
    22/*
    33 * Win32 window message APIs for OS/2
     
    105105        return FALSE;
    106106    }
    107  
     107
    108108    // only WM_KEYDOWN, WM_KEYUP, WM_SYSKEYDOWN, WM_SYSKEYUP
    109109    // can go into TranslateMessage
    110  
     110
    111111    return OSLibWinTranslateMessage((MSG *)msg);
    112112}
     
    140140{
    141141    BOOL fFoundMsg;
    142  
     142
    143143    dprintf2(("PeekMessageA %x %d-%d %d", hwndOwner, uMsgFilterMin, uMsgFilterMax, fuRemoveMsg));
    144144    fFoundMsg = OSLibWinPeekMsg(msg, hwndOwner, uMsgFilterMin, uMsgFilterMax,
     
    314314 *  when the WM_SETTEXT message has been used to set the icon
    315315 */
    316 INT WINPROC_MapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM wParam, LPARAM *plparam )
     316INT WINPROC_MapMsg32ATo32W( HWND hwnd, UINT msg, WPARAM *pwparam, LPARAM *plparam )
    317317{
    318318    switch(msg)
     
    321321        {
    322322            LPARAM *ptr = (LPARAM *)HeapAlloc( GetProcessHeap(), 0,
    323                                      wParam * sizeof(WCHAR) + sizeof(LPARAM) );
     323                                     *pwparam * sizeof(WCHAR) + sizeof(LPARAM) );
    324324            if (!ptr) return -1;
    325325            *ptr++ = *plparam;  /* Store previous lParam */
     
    431431        return 1;
    432432
     433    /* kso 2003-07-03: to make password field work, I took this from latest wine code. (winproc.c) */
     434    case EM_SETPASSWORDCHAR:
     435        {
     436            BYTE    ch = LOWORD(*pwparam);
     437            WCHAR   wch = 0;
     438            MultiByteToWideChar(CP_ACP, 0, (LPCSTR)&ch, 1, &wch, 1);
     439            *pwparam = MAKEWPARAM( wch, HIWORD(*pwparam) );
     440        }
     441        return 0;
     442
    433443    case WM_ASKCBFORMATNAME:
    434444    case WM_DEVMODECHANGE:
    435445    case WM_PAINTCLIPBOARD:
    436446    case WM_SIZECLIPBOARD:
    437     case EM_SETPASSWORDCHAR:
    438447        // FIXME_(msg)("message %s (0x%x) needs translation, please report\n", SPY_GetMsgName(msg), msg );
    439448        return -1;
     
    810819    LRESULT result;
    811820
    812     if (WINPROC_MapMsg32ATo32W( hwnd, msg, wParam, &lParam ) == -1) return 0;
     821    if (WINPROC_MapMsg32ATo32W( hwnd, msg, &wParam, &lParam ) == -1) return 0;
    813822    result = func( hwnd, msg, wParam, lParam );
    814823    WINPROC_UnmapMsg32ATo32W( hwnd, msg, wParam, lParam );
     
    911920              //TODO: Ignoring all messages could be dangerous. But processing them,
    912921              //while the app doesn't expect any, isn't safe either.
    913               if(PeekMessageA(&msg, NULL, 0, 0, PM_REMOVE)) 
     922              if(PeekMessageA(&msg, NULL, 0, 0, PM_REMOVE))
    914923              {
    915924                  if (msg.message == WM_QUIT) {
     
    965974                //TODO: Ignoring all messages could be dangerous. But processing them,
    966975                //while the app doesn't expect any, isn't safe either.
    967                 if(PeekMessageA(&msg, NULL, 0, 0, PM_REMOVE)) 
     976                if(PeekMessageA(&msg, NULL, 0, 0, PM_REMOVE))
    968977                {
    969978                    if (msg.message == WM_QUIT) {
     
    971980                         return WAIT_ABANDONED;
    972981                    }
    973    
     982
    974983                    /* otherwise dispatch it */
    975984                    DispatchMessageA(&msg);
     
    10361045        //TODO: Ignoring all messages could be dangerous. But processing them,
    10371046        //while the app doesn't expect any, isn't safe either.
    1038         if(PeekMessageA(&msg, NULL, 0, 0, PM_REMOVE)) 
     1047        if(PeekMessageA(&msg, NULL, 0, 0, PM_REMOVE))
    10391048        {
    10401049            if (msg.message == WM_QUIT) {
Note: See TracChangeset for help on using the changeset viewer.