Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone,

We have an issue with our dialog based MFC application where caret is not visible when focus switches from embedded IE control to a text edit field. When focus switches from other control, the caret is visible all right.

I had made a sample app with just MFC controls and the issue is still present, so it is not our app specific code.

The issue occurs under Win XP 32 bits and Win 7 64 bits.

I can post that app project here, but I can't find a way how.

Thanks,
vjudys
Posted

This is expected behavior of all carets in all controls using carets. In many cases, this is the only visual feedback for a control having keyboard focus. You should be worry about it or try change this behavior.

(Perhaps I did not understand you correctly; your question is not 100% clear to me. If I missed something, please explain.)

—SA
 
Share this answer
 
Thank you for replying.

I believe you did not understand me correctly.

There is NO caret in a text field when it receives focus from browser control. The browser control is holding to the caret and somehow prevents it from being displayed in the text control.
This is not a normal behavior of Windows controls.

Thanks,
vjudys
 
Share this answer
 
Here is the project with sources and executables: http://cid-d11cd926513b15f2.office.live.com/browse.aspx/.Public

It was build with Visual Studio 2005, but it should be convertable to any new versions.

Thanks to all who is looking into this. This is a really puzzling issue.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900