ActiveX EDIT控件限制的字符长度 [英] ActiveX EDIT Control restricted character length

查看:83
本文介绍了ActiveX EDIT控件限制的字符长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Experts
我正在开发一个ActiveX Edit Box控件,该控件已成功开发,并将其安装在64位计算机上,并且运行成功
但是问题是,在此文本框中输入的内容不能超过其边框长度.基本上是在ActiveX的TextBox边框之前键入有限的文本.
请问有什么解决办法让我知道,以便我可以根据需要在此框中键入内容.
谢谢adv ...

Hi Experts
I am developing a activeX Edit Box Control which is developed successfully and i installed it on 64bit machine and it running successfully
But the problem is that am not able to type in this text box more then its border length. It is basically limited text typing till ActiveX''s TextBox border.
Is there any solution plz let me know so that i can type in this box as much i need.
Thanks in adv...

推荐答案

如果您用编辑框对Activex控件进行了子分类,请在COleControl派生类中更改PreCreateWindow函数,如下所示,

If you have sub classed the Activex control with edit box, change PreCreateWindow function as follows in COleControl derived class,

BOOL CEditActiveXCtrl::PreCreateWindow(CREATESTRUCT& cs)
{
    cs.style = cs.style | ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_MULTILINE; //for both horizontal and verical movement
    cs.lpszClass = _T("EDIT");
    return COleControl::PreCreateWindow(cs);
}


这篇关于ActiveX EDIT控件限制的字符长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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