Print Page | Close Window

Docking Pane with CHtmlView repaint problem.

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=20116
Printed Date: 29 April 2024 at 7:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Docking Pane with CHtmlView repaint problem.
Posted By: sdancer75
Subject: Docking Pane with CHtmlView repaint problem.
Date Posted: 09 September 2012 at 5:55am
Hi,

I am using a 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 ?

Tech specs :
Win7, Visual Studio 2008
Xtreme ToolKit Pro ver 15.0.1



uploads/4319/HtmlRepaintProblem.zip - uploads/4319/HtmlRepaintProblem.zip




-------------
Just me!



Replies:
Posted By: SuperMario
Date Posted: 14 September 2012 at 9:00am
Did you try the latest version?


Posted By: sdancer75
Date Posted: 15 September 2012 at 3:05am
Did you checked the project with the latest version and it solved the problem ? If no, what's the point ?

Regards,



-------------
Just me!


Posted By: sdancer75
Date Posted: 17 September 2012 at 5:05am
Hi,

It does not work either with version 15.3.1.

Regards,
George


-------------
Just me!


Posted By: sdancer75
Date Posted: 13 November 2012 at 9:03am
The solution was given from support 

Add the following code :

BOOL CHtmlRepaintView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.style |= WS_CLIPSIBLINGS | WS_CLIPCHILDREN;

return CHtmlView::PreCreateWindow(cs);
}



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net