Docking Pane with CHtmlView repaint problem. |
Post Reply |
Author | |
sdancer75
Groupie Joined: 08 July 2008 Location: Greece Status: Offline Points: 70 |
Post Options
Thanks(0)
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 |
|
Just me!
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Did you try the latest version?
|
|
sdancer75
Groupie Joined: 08 July 2008 Location: Greece Status: Offline Points: 70 |
Post Options
Thanks(0)
|
Did you checked the project with the latest version and it solved the problem ? If no, what's the point ?
Regards, |
|
Just me!
|
|
sdancer75
Groupie Joined: 08 July 2008 Location: Greece Status: Offline Points: 70 |
Post Options
Thanks(0)
|
Hi, It does not work either with version 15.3.1. Regards, George
|
|
Just me!
|
|
sdancer75
Groupie Joined: 08 July 2008 Location: Greece Status: Offline Points: 70 |
Post Options
Thanks(0)
|
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); } |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |