当焦点从IE切换时,插入符号在文本字段中丢失 [英] Caret is lost in text field when focus switched from IE

查看:100
本文介绍了当焦点从IE切换时,插入符号在文本字段中丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我们的基于对话框的MFC应用程序存在一个问题,当焦点从嵌入式IE控件切换到文本编辑字段时,插入符不可见.当焦点从其他控件切换时,插入符号可见.

我仅使用MFC控件制作了一个示例应用程序,但问题仍然存在,因此它不是我们应用程序专用的代码.

在Win XP 32位和Win 7 64位下会发生此问题.

我可以在此处发布该应用程序项目,但找不到方法.

谢谢,
vjudys

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

推荐答案

这是使用插入符号的所有控件中所有插入符号的预期行为.在许多情况下,这是具有键盘焦点的控件的唯一视觉反馈.您应该为此担心或尝试更改此行为.

(也许我对您的理解不正确;您的问题对我来说不是100%清楚.如果我错过了什么,请解释一下.)

—SA
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


感谢您的回复.

我相信您对我的理解不正确.

从浏览器控件获得焦点时,文本字段中没有尖号.浏览器控件一直按住插入号,并以某种方式阻止其在文本控件中显示.
这不是Windows控件的正常行为.

谢谢,
vjudys
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


这里是带有源代码和可执行文件的项目: http: //cid-d11cd926513b15f2.office.live.com/browse.aspx/.Public

它是使用Visual Studio 2005构建的,但是应该可以转换为任何新版本.

感谢所有正在研究此问题的人.这是一个令人费解的问题.
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.


这篇关于当焦点从IE切换时,插入符号在文本字段中丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆