Click here to Skip to main content
15,890,670 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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...
Posted

1 solution

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);
}
 
Share this answer
 
Comments
R. S. Verma 12-Oct-11 7:39am    
Hey venkatmakam
Thanks a lot.
Its solved my problem. :)

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