Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: IE7 Windows
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 31-May-11 7:07am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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.
  Permalink  
v2

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

  Print Answers RSS
0 OriginalGriff 240
1 Kamal Rocks 184
2 PIEBALDconsult 150
3 BillWoodruff 148
4 Jochen Arndt 135
0 OriginalGriff 5,695
1 DamithSL 4,506
2 Maciej Los 4,007
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 1 Jun 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100