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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Problem in Rich Text box using VC++

Problem in Rich Text box using VC++

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
3 Posts 3 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
    maniram
    wrote on last edited by
    #1

    :confused:hello, I am using the RTF control in vc++ for my simple text document purpose. I get the problem using Pressing the Esc key and i can't get the Keycode from on Keyup and Keydown events. Any one can solve this send to me. Thank you, Bye

    M H 2 Replies Last reply
    0
    • M maniram

      :confused:hello, I am using the RTF control in vc++ for my simple text document purpose. I get the problem using Pressing the Esc key and i can't get the Keycode from on Keyup and Keydown events. Any one can solve this send to me. Thank you, Bye

      M Offline
      M Offline
      Manfred Staiger
      wrote on last edited by
      #2

      You need to call to call the member funktion SetEventMask to specify which notification messages the CRichEditCtrl object sends to its parent window. For example, to get notified about mouse and keyboard events: CRichEditCtrl m_rich; m_rich.SetEventMask(ENM_MOUSEEVENTS|ENM_KEYEVENTS); Hope this helps.

      MS

      1 Reply Last reply
      0
      • M maniram

        :confused:hello, I am using the RTF control in vc++ for my simple text document purpose. I get the problem using Pressing the Esc key and i can't get the Keycode from on Keyup and Keydown events. Any one can solve this send to me. Thank you, Bye

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        See this article its not for keyup or keydwon but its good for SetEventMask(set event mask for RichEditCtrl) Setting selected text to read-only[^]

        _**


        **_

        WhiteSky


        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