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