Solved

How to know when user types in Rich Edit Control?

Posted on 2004-04-30
3
196 Views
Last Modified: 2013-11-20
I have a rich edit control in a dialog which may have some text already when dialog starts, I need to detect if user types inside this control, if user does, I want a hiding button  to show up. How to tell when user types something in control?

Thanks.
Hanqian
0
Comment
Question by:Hanqian
[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
  • 2
3 Comments
 
LVL 48

Expert Comment

by:AlexFM
ID: 10963669
Handle EN_CHANGE message in the dialog - it is send by edit control to parent window when text is changed.
0
 

Author Comment

by:Hanqian
ID: 10963707
I have tried EN_CHANGE before asking this question, it doesn't work.

Hanqian
0
 
LVL 48

Accepted Solution

by:
AlexFM earned 100 total points
ID: 10966019
To get this notification working add this line to OnInitDialog:

m_rich.SetEventMask(m_rich.GetEventMask() | ENM_CHANGE);   // m_rich is CRichEditCtrl class member
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CRON statement to run every 3 minutes except on Monday morning 12am to 2am 7 122
format the code in java 6 115
centeredAverage challenge 8 186
Example code 13 41
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.

739 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