Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPStatusBar redraw problems
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPStatusBar redraw problems

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: CXTPStatusBar redraw problems
    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
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.172 seconds.