Posted by Hal Bonnin on 2000-11-17
several options set up a PreTranslateMessage function and then catch all scroll keys and return them as done... you can also catch when the focus leaves the edit control and reset it to the edit control so that the person cant touch the richedit you can disable the richedit (makes it grey) and then the person cant touch it but you can still change it... you can use the command linescroll to scroll the text from within the program. i use listboxes for this type of displays.... :) ----- Original Message ----- From: "Sharvil Nanavati" <snrrrub@xxxxx.xxx> To: <triangle@xxxxxxx.xxx> Sent: Thursday, November 16, 2000 11:44 PM Subject: CRichEditCtrl and scrolling! :( > Hi, I'm having a little trouble with the CRichEditCtrl (MFC) class. I > have a dialog based application (written in VC++ 6) and I have a > RichEdit control and an Edit control. The rich edit control is > read-only. When the user types in a line in the Edit control, I want > that line to show up in the RichEdit control... but once it goes beyond > the rich edit window, I want the window to scroll without the user's > intervention. I have set the AutoVScroll and Vertical Scroll properties > to true, but that's not it... I looked at ScrollWindow and SetScrollPos > functions, but I've had no success with them. Is there an easier way or > can someone give me a code snippet that would do this? (if this made no > sense, don't mind me... I've been staring at this program for too many > hours %-\ Thanks! > > Cheers, > Sharvil Nanavati > > __________________________________________________ > Do You Yahoo!? > Yahoo! Calendar - Get organized for the holidays! > http://calendar.yahoo.com/ > > >
Previous post | Next post | Timeline | Home