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. Using CRichEditView in Splitter window

Using CRichEditView in Splitter window

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

    Does anybody has experience in using CRichEditView in a Splitter window? The scroller of the rich edit view and the scroller of the splitter window are both visible. I can hide the scroller of the rich edit view (only the scroller of the splitter window is visible). If the rich edit view scrolls (by key up/down) I do not get the scrolling message from the rich edit to update the scroller of the splitter. Who has ever implemented a rich edit view in a dynamic splitter window? Does anybody know a sample application? :) Berlenz

    R 1 Reply Last reply
    0
    • B berlenz

      Does anybody has experience in using CRichEditView in a Splitter window? The scroller of the rich edit view and the scroller of the splitter window are both visible. I can hide the scroller of the rich edit view (only the scroller of the splitter window is visible). If the rich edit view scrolls (by key up/down) I do not get the scrolling message from the rich edit to update the scroller of the splitter. Who has ever implemented a rich edit view in a dynamic splitter window? Does anybody know a sample application? :) Berlenz

      R Offline
      R Offline
      Roman Fadeyev
      wrote on last edited by
      #2

      But why to not make it vice versa? Hide the scroll bar of slitter window, align your richedit control in all client area of splitter window and all will be pleased. :)

      B 1 Reply Last reply
      0
      • R Roman Fadeyev

        But why to not make it vice versa? Hide the scroll bar of slitter window, align your richedit control in all client area of splitter window and all will be pleased. :)

        B Offline
        B Offline
        berlenz
        wrote on last edited by
        #3

        I use a "dynamic splitter" window. For that reason I have to show the scroller of the splitter window because it shows the splitter boxes. Splitter Box: A small control at the top of the vertical scroll bars or to the left of the horizontal scroll bars in a dynamic CSplitterWnd. Used to create new rows or columns of panes. :~ Berlenz

        R 1 Reply Last reply
        0
        • B berlenz

          I use a "dynamic splitter" window. For that reason I have to show the scroller of the splitter window because it shows the splitter boxes. Splitter Box: A small control at the top of the vertical scroll bars or to the left of the horizontal scroll bars in a dynamic CSplitterWnd. Used to create new rows or columns of panes. :~ Berlenz

          R Offline
          R Offline
          Roman Fadeyev
          wrote on last edited by
          #4

          OK. Then you can use a notify message EN_SELCHANGE, which inform you about cursor position changing. You can find out current line by means of EM_GETSEL, EM_LINEFROMCHAR, EM_LINEINDEX messages. Then, knowing total count of lines in the edit and current line you can calculate vert. scrollbar's thumb position. Something similar is possible for horz. scrollbar too Is it convenient solving for you?

          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