Docking Pane with CHtmlView repaint problem.
-
Hi, I am using the Codejock extreme toolkit pro library, to creare docking panes, but I am not sure if this concerns a problem of the mentioned library. So please read the description of the problem. I am using a simple SDI Doc/View architecture and as main view I am using the CHtmlView class. In this case if the panes are closed and you are trying to preview them without docking them, you have a repaint problem in the docking's space. This problem does not seem to appear in other CViews derrived classes. I am attaching a sample code as well an explanation video with the problem. Trying to solve this problem, I found out the the WM_PAINT message is not sent to the CHtmlView class except from the very beggining and the very endding. Any ideas ? Rapidshare link of the source code https://rapidshare.com/files/2839795607/HtmlRepaintProblem.zip[^] You tube video http://www.youtube.com/watch?v=qhTjzpceiqA[^]
sdancer75
-
Hi, I am using the Codejock extreme toolkit pro library, to creare docking panes, but I am not sure if this concerns a problem of the mentioned library. So please read the description of the problem. I am using a simple SDI Doc/View architecture and as main view I am using the CHtmlView class. In this case if the panes are closed and you are trying to preview them without docking them, you have a repaint problem in the docking's space. This problem does not seem to appear in other CViews derrived classes. I am attaching a sample code as well an explanation video with the problem. Trying to solve this problem, I found out the the WM_PAINT message is not sent to the CHtmlView class except from the very beggining and the very endding. Any ideas ? Rapidshare link of the source code https://rapidshare.com/files/2839795607/HtmlRepaintProblem.zip[^] You tube video http://www.youtube.com/watch?v=qhTjzpceiqA[^]
sdancer75
I use only VC6 environment, si I could not compile your project, but I have a similar problem when I use CHtmlView to show a .pdf file in it, and after few years, I solve the problem :
BOOL CHtmlRepaintView::OnEraseBkgnd(CDC* pDC)
{
// TODO: Add your message handler code here and/or call default
// return CHtmlView::OnEraseBkgnd(pDC);
return FALSE;
}I hope this help ...
-
I use only VC6 environment, si I could not compile your project, but I have a similar problem when I use CHtmlView to show a .pdf file in it, and after few years, I solve the problem :
BOOL CHtmlRepaintView::OnEraseBkgnd(CDC* pDC)
{
// TODO: Add your message handler code here and/or call default
// return CHtmlView::OnEraseBkgnd(pDC);
return FALSE;
}I hope this help ...