Ignore:
Timestamp:
Aug 6, 2003, 1:00:45 PM (22 years ago)
Author:
sandervl
Message:

cleaned up Get/PeekMessage; do proper WM_CHAR conversion in those 4 functions

File:
1 edited

Legend:

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

    r10190 r10212  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.113 2003-07-31 15:56:44 sandervl Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.114 2003-08-06 11:00:45 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    6262//                                 by GetMessage & PeekMessage
    6363//
    64 // NOTE: Automatically converts ascii character code to UTF-16 if the target
    65 //       window is unicode.
     64// NOTE: WM_CHAR message always in ascii format
    6665//
    6766//******************************************************************************
     
    7271    // there's still an already translated message to be processed
    7372    return FALSE;
    74 
    75   //Unicode windows expect the character code in UTF-16
    76   if(IsWindowUnicode(pExtraMsg->hwnd))
    77   {
    78       CHAR  charA;
    79       WCHAR charW;
    80 
    81       charA = pExtraMsg->wParam;
    82       MultiByteToWideChar(CP_ACP, 0, &charA, 1, &charW, 1);
    83       pExtraMsg->wParam= charW;
    84       dprintf(("setThreadQueueExtraCharMessage: Convert to Unicode src=%x res=%x", charA, charW ));
    85   }
    8673
    8774  teb->o.odin.fTranslated = TRUE;
Note: See TracChangeset for help on using the changeset viewer.