Home > Software engineering >  Sogou input method text prompt CEF3 (Chromium Embedded Framework) in the upper left corner
Sogou input method text prompt CEF3 (Chromium Embedded Framework) in the upper left corner

Time:10-01

CEF3 (Chromium Embedded Framework)

With great effort, and finally the CEF3 embedded into the MFC window, like the WebView effect.

But just found a strange problem, the use of im typing in the Web,

Input method went out in the upper left corner of the Web window, below the



This is a wonderful work of problem, I tried it on two CEF3 official Demo, found that they have the same problem.

Then, I tried it once CEF1 official Demo, and before I made of CEF1 example.

Results found CEF1 is normal.

Then start to the Internet, searching for answers. Baidu, Google keyboard knuckles rotten

Didn't find a related article!!!!!!!!!!!!!!

So to CSDN to find related experience of predecessors, and thighs.

Who can tell me, how do I climbed out of this pit?

CodePudding user response:

Haven't played CEF embedded MFC window,
Guess is caused by window properties? Whether there is a window size to zero?
You use spy++ CEF3 comparing to the (problem) and CEF1 (fine) window level, size, etc

CodePudding user response:

reference 1st floor skyxie response:
didn't played CEF embedded MFC window,
Guess is caused by window properties? Whether there is a window size to zero?
You use spy++ CEF3 comparing to the (problem) and CEF1 (fine) window level, size, and so on attribute


Yes, their window structure, CEF3 browser page has more window layer under a Static window

CodePudding user response:

Don't know the building Lord did solve, if solved, could you tell me solution?

CodePudding user response:

This bug the landlord to solve have no?

CodePudding user response:

http://blog.csdn.net/sunve_163/article/details/49994487

CodePudding user response:

I also am CEF3 embedded MFC window, didn't find this phenomenon

CodePudding user response:

SetCaretPos
The SetCaretPos function moves The caret to The specified coordinates. If The window that owns The caret was created with The CS_OWNDC class style, then The specified coordinates are subject to The mapping mode of The device context associated with that window.

BOOL SetCaretPos (
Int X,//horizontal position
Int Y//vertical position
);

The Parameters
X
Specifies the new x coordinate of the caret.
Y
Specifies the new - y coordinate of the caret.
The Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, callGetLastError.

Few
SetCaretPos moves the caret been or not the caret is hidden.

The system provides one caret per queue. A window should create A caret only when it has The The rid_device_info_keyboard focus or is active. The window should destroy The caret before losing The The rid_device_info_keyboard focus or becoming inactive. A window can set The caret position only if it owns The caret.

QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: the Requires version 1.0 or later.
Header: Declared in winuser. H.
The Import Library: Use user32. Lib.

See Also
Carets Overview, Caret Functions provides GetCaretPos, HideCaret, ShowCaret


  • Related