![]() |
CXTPStatusBar redraw problems |
Post Reply ![]() |
Author | |
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() 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 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
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 |