scrolling with SendMessage or PostMessage
Posted on 2001-06-29
I'm new to MFC and am making a simple CHtmlView based application which navigates to an HTML page with Navigate2(). The user can then click through to view other pages. I am trying to make it so that the application will automatically scroll down a page being shown every time a timer event triggers. I added a timer, and in CAppView::OnTimer I added the line:
However, this does nothing. (the timer works, it's not the problem)
I've tried other functions, including PostMessage (same effect as SendMessage) and ScrollWindow() (the window scrolled but in a very useless and strange way)
I think SendMessage or PostMessage is the way to go, but I seem to be doing something wrong. If you can provide any insight, or an alternative method, I'd really appreciate it.