Getting notification from CRichEditView
-
I am writing some (rtf format)text in CRichEditView by using GetRichEditCtrl(). When clicking on the text I want to get the notification. Where I can get WM_LBUTTONDOWN message, the notification function is not called when clicking the text. How to get the notification? Any suggestion would be greatly appreciable..
-- "Programming is an art that fights back!"
-
I am writing some (rtf format)text in CRichEditView by using GetRichEditCtrl(). When clicking on the text I want to get the notification. Where I can get WM_LBUTTONDOWN message, the notification function is not called when clicking the text. How to get the notification? Any suggestion would be greatly appreciable..
-- "Programming is an art that fights back!"
Look for the documentation for EN_SELCHANGE. That is sent if you ask for it (read the page for details), and then you get notified when the selection changes. That was you handle the user clicking in different places, and update external stuff if you so wish. If you just want to know when your view is clicked on to wake it up, you can make a new view vlass inheriting from CRichEditView and handle override CView::OnActivateView. Good luck, Iain.
In the process of moving to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!