• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 394
  • Last Modified:

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???

0
trillo
Asked:
trillo
1 Solution
 
WynCommented:
It is normal behavior for Edit control.What's wrong?
0
 
westacottaCommented:
You need to change the the edit style to have ES_AUTOHSCROLL in the controls generated header.

0
 
trilloAuthor Commented:
Thanks
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now