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. Horizontal Scrolling CRichEditView

Horizontal Scrolling CRichEditView

Scheduled Pinned Locked Moved C / C++ / MFC
wpfhelpquestion
2 Posts 1 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
    RobJones
    wrote on last edited by
    #1

    Hello, I posted this problem yesterday and it didn't get any responses so I figured I would try it on more time... I have a MDI type app where one of my views was derived from CView and then converted into CRichEditView... Anyway everything works fine except I want to turn horizontal scrolling on and I would like to disable word wrapping. I have tried to change the window styles in PreCreateWindow but this doesn't seem to have any effect on horizontal scrolling. Any ideas? Has anyone had similar experiences? Thanks, Rob Whoever said nothing's impossible never tried slamming a revolving door!

    R 1 Reply Last reply
    0
    • R RobJones

      Hello, I posted this problem yesterday and it didn't get any responses so I figured I would try it on more time... I have a MDI type app where one of my views was derived from CView and then converted into CRichEditView... Anyway everything works fine except I want to turn horizontal scrolling on and I would like to disable word wrapping. I have tried to change the window styles in PreCreateWindow but this doesn't seem to have any effect on horizontal scrolling. Any ideas? Has anyone had similar experiences? Thanks, Rob Whoever said nothing's impossible never tried slamming a revolving door!

      R Offline
      R Offline
      RobJones
      wrote on last edited by
      #2

      I just figured it out.. Incase anyone else runs into this.... Inside OnInitialUpdate()

      // Turn on the horizontal scroll bar
      m_nWordWrap = WrapNone;
      WrapChanged();

      Inside PreCreateWindow

      cs.style += ES_MULTILINE | WS_VSCROLL | ES_AUTOVSCROLL | ES_LEFT | ES_AUTOHSCROLL | WS_HSCROLL;

      Whoever said nothing's impossible never tried slamming a revolving door!

      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