Changeset 387 for trunk/src


Ignore:
Timestamp:
Dec 5, 2009, 3:06:48 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui/kernel: A better temporary solution for the IME input box (lower left corner of the frame window instead of the screen).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qapplication_pm.cpp

    r379 r387  
    892892
    893893            case WM_QUERYCONVERTPOS: { // IME input box position request
    894                 // Ooops, how to get caret pos ?
    895                 /// @todo (r=dmik) we should make usage of the QIMEvent
    896                 //  to query widgets about IME data (see how/where this event
    897                 //  is used across the sources)
    898 
     894                // @todo the proper detection of the caret position in the
     895                // current widget requires implementing QInputContext. For now,
     896                // just send the IME box to the lower left corner of the
     897                // top-level window
    899898                PRECTL pcp = (PRECTL)mp1;
    900                 CURSORINFO ci;
    901 
    902                 WinQueryCursorInfo(HWND_DESKTOP, &ci);
    903 
    904899                memset(pcp, 0xFF, sizeof(RECTL));
    905 
    906                 pcp->xLeft = ci.x;
    907                 pcp->yBottom = ci.y;
    908                 WinMapWindowPoints(ci.hwnd, hwnd, (PPOINTL)pcp, 2);
    909 
     900                pcp->xLeft = 0;
     901                pcp->yBottom = 0;
    910902                return (MRESULT)QCP_CONVERT;
    911903            }
Note: See TracChangeset for help on using the changeset viewer.