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. keep text selected in richedit

keep text selected in richedit

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
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.
  • C Offline
    C Offline
    code_discuss
    wrote on last edited by
    #1

    I use a toolbar and a richedit control in a dialog to do some text edting. A common scenario is: the user select some text, then go to the toolbar to click some button. But my problem is that as soon as the user click the toolbar, the selection in richedit control disappear, which make the user puzzled. How can I keep the selection visible even if the focus is not in the rich edit?

    I 1 Reply Last reply
    0
    • C code_discuss

      I use a toolbar and a richedit control in a dialog to do some text edting. A common scenario is: the user select some text, then go to the toolbar to click some button. But my problem is that as soon as the user click the toolbar, the selection in richedit control disappear, which make the user puzzled. How can I keep the selection visible even if the focus is not in the rich edit?

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      The rich edit inherits most of its styles from normal edit. Try using the ES_NOHIDESEL style, and see if it helps. Iain.

      Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

      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