Activex control: subclassing Edit control

Scenario (If you test it, it will take less than 2 minutes):

1) Create a new App: MFC ActiveX AppWizard
2) Select to include only one control, which subclasses the Edit control
3) Select finish
4) Compile
5) Test (I did in VB), inserting the control in a container (VB form)

The problem is that the control seems to have a different behaviour than a control belonging to the "Edit" class. For example: When typing text, when the caret reaches the right edge of the control, you can't type anything more!!
Is this normal, or why does it not behave as a classic Edit control???

LVL 2
trilloAsked:
Who is Participating?
 
westacottaConnect With a Mentor Commented:
You need to change the the edit style to have ES_AUTOHSCROLL in the controls generated header.

0
 
WynCommented:
It is normal behavior for Edit control.What's wrong?
0
 
trilloAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.