Solved

Activex control: subclassing Edit control

Posted on 2000-03-16
3
378 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 5

Expert Comment

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

Accepted Solution

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

0
 
LVL 2

Author Comment

by:trillo
ID: 2629925
Thanks
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 48
ASCII Non-Printable characters/codes and their HTML equivalents 6 143
Sed question 2 125
How do I get Window Title of all opened process? 4 40
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

697 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