Solved

How to know when user types in Rich Edit Control?

Posted on 2004-04-30
3
195 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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

763 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