trillo
asked on
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???
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???
It is normal behavior for Edit control.What's wrong?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thanks