- Timestamp:
- Nov 9, 2009, 7:22:05 PM (16 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/Makefile
r21342 r21348 114 114 $(OBJDIR)\oslibdnd.obj \ 115 115 $(OBJDIR)\oslibclipbrd.obj \ 116 $(OBJDIR)\cp_cvt.obj \ 116 117 !ifdef DEBUG 117 118 $(OBJDIR)\dbgwrap.obj \ … … 130 131 $(ODIN32_LIB)/wgss50.lib \ 131 132 $(ODIN32_LIB)/libuls.lib \ 133 $(ODIN32_LIB)/libconv.lib \ 132 134 $(ODIN32_LIB)/$(ODINCRT).lib \ 133 135 $(ODIN32_LIB)/imm32os2.lib \ -
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.