[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

rich edit events

Posted on 1998-10-03
2
Medium Priority
?
417 Views
Last Modified: 2013-11-20
how do i invoke a rich edit control's events... namely NM_CLICK.....thanks, it's pretty urgent.....
0
Comment
Question by:tillug
[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 Comments
 
LVL 8

Accepted Solution

by:
Answers2000 earned 100 total points
ID: 1322895
NM_CLICK is not an event you normally trigger.

Windows sends your app an NM_CLICK notification to your app when the user clicks on your app.

The NM_CLICK notification is sent to the parent window of the edit control when the user clicks on it.  This is sent in the form of a WM_NOTIFY message

You can catch these messages using ON_NOTIFY or ON_NOTIFY_REFLECT (sent to the control's class).  See TN061 and TN062.

When you want to cause the control to do stuff using the member functions of CRichEditCtrl.  

You can use SendMessage to send these events.  However you should be aware that this is not the same as these events actually happening: you are simply sending the notification that the event happened (even though it didn't) not really triggering the actual mouse click.  If you really want to simulate a mouse click use SendMessage to send WM_LBUTTONDOWN and then WM_LBUTTONUP to the control, the edit control will then respond as if it were really clicked on.
0
 

Author Comment

by:tillug
ID: 1322896
mmm... but has it got anything to do with the OnMsgFilter message... online help stated that you can catch this event by modifying the MSGFILTER structure and returning TRUE... how to do that?
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

649 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