Solved

Activex control: subclassing Edit control

Posted on 2000-03-16
3
346 Views
Last Modified: 2013-11-20
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
Comment
Question by:trillo
3 Comments
 
LVL 5

Expert Comment

by:Wyn
Comment Utility
It is normal behavior for Edit control.What's wrong?
0
 

Accepted Solution

by:
westacotta earned 20 total points
Comment Utility
You need to change the the edit style to have ES_AUTOHSCROLL in the controls generated header.

0
 
LVL 2

Author Comment

by:trillo
Comment Utility
Thanks
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Perl Awk Need Help 3 94
Macro to save highlighted rows as a separate file 5 38
substring method in java 1 79
changeXy challenge 13 56
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now