Webbrowser repaint??
-
Dear Developer I'm developing webbrowser using CHtmlView. But i don't know handler that received WM_PAINT message. For example LRESULT CMainFrame::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) { // TODO: Add your specialized code here and/or call the base class if( message == WM_NOTIFY || message == WM_PAINT ) { // paint code here } } return CFrameWnd::WindowProc(message, wParam, lParam); } Above example does not repaint properly. For example "Scroll event" When i draw in my program and scroll the window then doesn't repaint. Please help. Thanks in advance dooly
-
Dear Developer I'm developing webbrowser using CHtmlView. But i don't know handler that received WM_PAINT message. For example LRESULT CMainFrame::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) { // TODO: Add your specialized code here and/or call the base class if( message == WM_NOTIFY || message == WM_PAINT ) { // paint code here } } return CFrameWnd::WindowProc(message, wParam, lParam); } Above example does not repaint properly. For example "Scroll event" When i draw in my program and scroll the window then doesn't repaint. Please help. Thanks in advance dooly
-
The CHtmlView is just a container for the WebBrowser control .To intercept the events you must connect to the events of the HTML document that is displayed in the control .Also , you can intercept some messages via WM_NOTIFY .
-
Hi Thanks for your reply. But i don't know how connect to the event. Have you some sample code? Or Have you method to catch scrollbar event? Thanks in advance again. dooly
check this address : http://msdn.microsoft.com/workshop/c-frame.htm?/workshop/browser/default.asp You can catch all the events for an DHTML object , so you can handle the scroll event also ( this event is received by the BODY element )