Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Getting notification from CRichEditView

Getting notification from CRichEditView

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rp_suman
    wrote on last edited by
    #1

    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 1 Reply Last reply
    0
    • R rp_suman

      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 Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      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!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups