Hi all- I have two splitters in the ChildFrame: one horizontal, and one vertical on the first half of the horizontal pane.
if (!m_wndHSplitter.CreateStatic(this, 2, 1) ||
!m_wndVSplitter.CreateStatic(&m_wndHSplitter, 1, 2) ||
!m_wndVSplitter.CreateView(0, 0, RUNTIME_CLASS(CMysqlQueryEditView), CSize(0, 0), pContext) ||
!m_wndVSplitter.CreateView(0, 1, RUNTIME_CLASS(CMysqlQueryTreeView), CSize(0, 0), pContext) ||
!m_wndHSplitter.CreateView(1, 0, RUNTIME_CLASS(CMysqlQueryListView), CSize(0, 0), pContext))
return FALSE;
I use a RichEditView in the left pane of the vertical splitter and cannot get the horizontal scroll work properly. I get the VSCROLL only. The control goes to a new line when reaching the end of the visible window.
What I have tried:
1/ I make sure the cs.style is set to
WS_HSCROLL | ES_AUTOHSCROLL | WS_VSCROLL | ES_AUTOVSCROLL | ES_MULTILINE;
on the view's PreCreateWindow;
2/ I've tried to set the style again before the view's OnCreate;
3/ I've tried to set the style in the OnInitialUpdate using ModifyStyle;
4/ And tried also to use the control
GetRichEditCtrl().SetOptions(ECOOP_SET, ECO_NOHIDESEL | ECO_SAVESEL | ECO_AUTOVSCROLL | ECO_AUTOHSCROLL | ECO_AUTOWORDSELECTION | ECO_WANTRETURN);
5/ Tried to replace CMyRichEditView by CEditView in the splitter pane creation and everything works fine, H & V scrolls.
Any idea? Thanks