Print Page | Close Window

Dockingpanes rpaint problem in Autohide

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1184
Printed Date: 06 November 2025 at 2:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Dockingpanes rpaint problem in Autohide
Posted By: stanimir
Subject: Dockingpanes rpaint problem in Autohide
Date Posted: 17 September 2004 at 1:58am
Hello guys. When I have some kind of painting which regularly change in a MDI window (like simple colorful rectangles) and a docking pane attached to this window in auto hide mode I get the following results:
At the moment when the pane expands (shows) by pressing the tab button the colored rectangles are drawn straight trough the pane and scrabbles it. The pane is not redrawn until it doesn't hide. Attached modified one of the original samples
uploads/stanimir/2004-09-17_015404_MDIPanes.zip - 2004-09-17_015404_MDIPanes.zip
Please help me to fix this problem?



Replies:
Posted By: xred
Date Posted: 17 September 2004 at 11:13pm

void CMDIPanesView::OnTimer(UINT nIDEvent)
{
 // TODO: Add your message handler code here and/or call default
 m_color = RGB(rand()%255, rand()%255, rand()%255);
 
 Invalidate(false);
}



Posted By: Oleg
Date Posted: 20 September 2004 at 3:40am

Add clip styles to your view:

BOOL CMDIPanesView::PreCreateWindow(CREATESTRUCT& cs)
{
 cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;

 return CView::PreCreateWindow(cs);
}



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: stanimir
Date Posted: 20 September 2004 at 7:05am
Thanks a lot for your help. It works ok now. I actually saw the same recommendation in another post and tried it but without success because i did not put the code on the right place.



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