Changeset 21348 for trunk/src/user32/pmwindow.cpp
- Timestamp:
- Nov 9, 2009, 7:22:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r21347 r21348 23 23 #include <os2wrap.h> 24 24 #include <odinwrap.h> 25 #include <stdio.h> 25 26 #include <stdlib.h> 26 27 #include <string.h> … … 146 147 extern "C" ULONG OSLibImSetMsgQueueProperty( ULONG, ULONG ); 147 148 149 int cp2cp(char *cp1, char *cp2, char *src, char *dst, int len); 150 148 151 //****************************************************************************** 149 152 // Initialize PM; create hab, message queue and register special Win32 window classes … … 597 600 } 598 601 pWinMsg = &winMsg; 602 599 603 } 600 604 else { … … 940 944 { 941 945 MSG extramsg; 946 char cpfrom[10] = {0}; 947 char cpto[10] = {0}; 948 ULONG ulCpSize, ulCP; 949 950 942 951 memcpy(&extramsg, pWinMsg, sizeof(MSG)); 943 952 extramsg.message = WINWM_CHAR; 944 extramsg.wParam = (ULONG)mp2; 953 DosQueryCp(sizeof(ulCP), &ulCP, &ulCpSize); 954 sprintf(cpfrom,"IBM-%d\0", ulCP); 955 sprintf(cpto,"IBM-%d\0", GetDisplayCodepage()); 956 if (cp2cp(cpfrom, cpto, (char*)&mp2, (char*)&extramsg.wParam, 1)) 957 extramsg.wParam = (ULONG)mp2; 958 945 959 if(SHORT1FROMMP(mp1) & KC_DEADKEY) 946 960 { 947 961 extramsg.message++; //WM_DEADCHAR/WM_SYSDEADCHAR 948 962 } 949 963 950 964 win32wnd->MsgChar(&extramsg); 951 }952 965 goto RunDefWndProc; 966 } 953 967 break; 954 968
Note:
See TracChangeset
for help on using the changeset viewer.