Print Page | Close Window

CXTPStatusBar redraw problems

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=5932
Printed Date: 04 October 2024 at 7:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPStatusBar redraw problems
Posted By: mgampi
Subject: CXTPStatusBar redraw problems
Date Posted: 28 December 2006 at 3:44pm
Hi;
When using controls inside CXTPStatusBar I run into redraw problems when sizing the parent of the statusbar.
I created a pane of type CXTPStatusBarIconPane as pane in middle of the whole statusbar - just right of the stretchable menu indicator pane.
When shrinking the parent of the statusbar to a size that is smaller than the extend of the main pane and icon pane (the icon pane is partially visible), the icon pane is not redrawn. I also set the WS_CLIPCHILDREN style of the statusbar to prevent flickering...
 
I checked the code and I found one possible problem, that after changing fixed my problem:
 
In CXTPStatusBarPaneWnd::Create() I changed the

CString wndClass = ::AfxRegisterWndClass(CS_BYTEALIGNCLIENT | CS_DBLCLKS);

to

CString wndClass = ::AfxRegisterWndClass(CS_BYTEALIGNCLIENT | CS_DBLCLKS | CS_HREDRAW);

Now all panes containing controls derived from CXTPStatusBarPaneWnd are always redrawn when any sizing occures.
Perhaps this could be changed in toolkit by codejock too???!!!????
 
BTW, why is the CS_BYTEALIGNCLIENT style set? Is this style required?
 


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



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