Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Docking Pane with CHtmlView repaint problem.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Docking Pane with CHtmlView repaint problem.

 Post Reply Post Reply
Author
Message
sdancer75 View Drop Down
Groupie
Groupie
Avatar

Joined: 08 July 2008
Location: Greece
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote sdancer75 Quote  Post ReplyReply Direct Link To This Post Topic: Docking Pane with CHtmlView repaint problem.
    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!
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 14 September 2012 at 9:00am
Did you try the latest version?
Back to Top
sdancer75 View Drop Down
Groupie
Groupie
Avatar

Joined: 08 July 2008
Location: Greece
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote sdancer75 Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
sdancer75 View Drop Down
Groupie
Groupie
Avatar

Joined: 08 July 2008
Location: Greece
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote sdancer75 Quote  Post ReplyReply Direct Link To This Post Posted: 17 September 2012 at 5:05am
Hi,

It does not work either with version 15.3.1.

Regards,
George
Just me!
Back to Top
sdancer75 View Drop Down
Groupie
Groupie
Avatar

Joined: 08 July 2008
Location: Greece
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote sdancer75 Quote  Post ReplyReply Direct Link To This Post 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);
}
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.