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. EN_SELCHANGE Notification handling

EN_SELCHANGE Notification handling

Scheduled Pinned Locked Moved C / C++ / MFC
3 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.
  • M Offline
    M Offline
    Muhammad Ahmed 0
    wrote on last edited by
    #1

    hello: i am using following code in message map ON_NOTIFY(EN_SELCHANGE, IDC_RICHEDIT22, MyMethod) i want to capure the event as soon as the user selects the text or changes the selection in the CRichEditCtrl, but the message handler MyMethod is not called at all.. any suggestions for eliminating the possible cause... Regards Muhammad Ahmed ahmed

    D 1 Reply Last reply
    0
    • M Muhammad Ahmed 0

      hello: i am using following code in message map ON_NOTIFY(EN_SELCHANGE, IDC_RICHEDIT22, MyMethod) i want to capure the event as soon as the user selects the text or changes the selection in the CRichEditCtrl, but the message handler MyMethod is not called at all.. any suggestions for eliminating the possible cause... Regards Muhammad Ahmed ahmed

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Put the following in the dialog's OnInitDialog() method:

      m_edit.SetEventMask(m_edit.GetEventMask() | ENM_CHANGE);


      A rich person is not the one who has the most, but the one that needs the least.

      M 1 Reply Last reply
      0
      • D David Crow

        Put the following in the dialog's OnInitDialog() method:

        m_edit.SetEventMask(m_edit.GetEventMask() | ENM_CHANGE);


        A rich person is not the one who has the most, but the one that needs the least.

        M Offline
        M Offline
        Muhammad Ahmed 0
        wrote on last edited by
        #3

        thanks alot for solving the problem i had to change yr code a little like this m_Editor.SetEventMask(m_Editor.GetEventMask()|ENM_SELCHANGE); ahmed

        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