Ignore:
Timestamp:
Jun 18, 2009, 12:04:13 PM (16 years ago)
Author:
ydario
Message:

User32 updates.

File:
1 edited

Legend:

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

    r10607 r21303  
    6161#include "user32api.h"
    6262#include <kbdhook.h>
    63 #include <heapstring.h>
    64 
    65 #include <os2im.h>
    66 #include <im32.h>
    6763
    6864#define DBG_LOCALLOG    DBG_pmwindow
     
    144140#endif
    145141
    146 extern "C" ULONG OSLibImSetMsgQueueProperty( ULONG, ULONG );
    147 
    148142//******************************************************************************
    149143// Initialize PM; create hab, message queue and register special Win32 window classes
     
    200194    BOOL rc = WinSetCp(hmq, GetDisplayCodepage());
    201195    dprintf(("InitPM: WinSetCP was %sOK", rc ? "" : "not "));
    202 
    203     /* IM instace is created per message queue, that is, thread */
    204     if( IsDBCSEnv())
    205         OSLibImSetMsgQueueProperty( hmq, MQP_INSTANCE_PERMQ );
    206196
    207197    //CD polling window class
     
    10141004        dprintf(("OS2: %s %x %x %x", (msg == WM_HSCROLL) ? "WM_HSCROLL" : "WM_VSCROLL", win32wnd->getWindowHandle(), mp1, mp2));
    10151005        win32wnd->DispatchMsgA(pWinMsg);
    1016         break;
    1017 
    1018     case WM_IMEREQUEST:
    1019     case WM_IMECONTROL:
    1020     case WM_IMENOTIFY:
    1021         if( pWinMsg->message )
    1022         {
    1023             win32wnd->DispatchMsgA( pWinMsg );
    1024 
    1025             if(( pWinMsg->message = WM_IME_NOTIFY_W ) &&
    1026                ( pWinMsg->wParam == IMN_SETOPENSTATUS_W ))
    1027             {
    1028                 MSG m;
    1029 
    1030                 m.message = WM_IME_NOTIFY_W;
    1031                 m.wParam = IMN_SETCONVERSIONMODE_W;
    1032                 m.lParam = 0;
    1033 
    1034                 win32wnd->DispatchMsgA( &m );
    1035             }
    1036         }
    1037         else
    1038             goto RunDefWndProc;
    10391006        break;
    10401007
     
    22432210        break;
    22442211
    2245     case WM_IMEREQUEST:
    2246     case WM_IMECONTROL:
    2247     case WM_IMENOTIFY:
    2248         if( pWinMsg->message )
    2249         {
    2250             dprintf(("Frame window received IME message"));
    2251             win32wnd->DispatchMsgA( pWinMsg );
    2252 
    2253             if(( pWinMsg->message = WM_IME_NOTIFY_W ) &&
    2254                ( pWinMsg->wParam == IMN_SETOPENSTATUS_W ))
    2255             {
    2256                 MSG m;
    2257 
    2258                 m.message = WM_IME_NOTIFY_W;
    2259                 m.wParam = IMN_SETCONVERSIONMODE_W;
    2260                 m.lParam = 0;
    2261 
    2262                 win32wnd->DispatchMsgA( &m );
    2263             }
    2264         }
    2265         else
    2266             goto RunDefWndProc;
    2267         break;
    2268 
    22692212#ifdef DEBUG
    22702213    case WM_DDE_INITIATE:
Note: See TracChangeset for help on using the changeset viewer.