Changeset 21529 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Dec 21, 2010, 1:40:08 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r21463 r21529 1287 1287 ULONG Win32BaseWindow::MsgChar(MSG *msg) 1288 1288 { 1289 return IsWindowUnicode() ? DispatchMsgW( msg ) : DispatchMsgA( msg ); 1289 if (IsWindowUnicode()) { 1290 // Unicode windows expect the character code in UTF-16 while we save it 1291 // in ascii format, so we need to convert before sending to the window 1292 if (msg->message == WINWM_CHAR) { 1293 CHAR charA; 1294 WCHAR charW; 1295 1296 charA = msg->wParam; 1297 MultiByteToWideChar(CP_ACP, 0, &charA, 1, &charW, 1); 1298 msg->wParam= charW; 1299 dprintf(("MsgChar: Convert to Unicode src=%x res=%x", charA, charW)); 1300 } 1301 return DispatchMsgW(msg); 1302 } 1303 return DispatchMsgA(msg); 1290 1304 } 1291 1305 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.