Guest_imported
New member
- Jan 1, 1970
- 0
Hello,
I put a CRichEditCtrl object in my dialog and used its LineScroll() method to scroll both vertically and horizontally to display my selection. It did scroll vertically, but sadly it didn't scroll horizontally as expexcted.
The call is like:
((CRichEditCtrl*)GetDlgItem(IDC_RICHEDIT1))->LineScroll(10, 50);
In MSDN, it says if ES_RIGHT or ES_CENTER are specified, it does not scroll horizontally. However, I didn't specify them. The control was specified as left align.
What's the reason of it? How can I scroll the line horizontally?
Thanks.
I put a CRichEditCtrl object in my dialog and used its LineScroll() method to scroll both vertically and horizontally to display my selection. It did scroll vertically, but sadly it didn't scroll horizontally as expexcted.
The call is like:
((CRichEditCtrl*)GetDlgItem(IDC_RICHEDIT1))->LineScroll(10, 50);
In MSDN, it says if ES_RIGHT or ES_CENTER are specified, it does not scroll horizontally. However, I didn't specify them. The control was specified as left align.
What's the reason of it? How can I scroll the line horizontally?
Thanks.