![]() |
Win7 scrollbar animation draws over expanding pane |
Post Reply ![]() |
Author | |
MichaelN ![]() Senior Member ![]() Joined: 19 September 2006 Status: Offline Points: 112 |
![]() ![]() ![]() ![]() ![]() Posted: 26 January 2013 at 5:37pm |
In Windows 7, the CScrollView scrollbar animation conflicts with the pane animation when the pane is expanded from a tab. The scrollbar animation I'm describing is the animation that brightens it from gray to blue when the mouse passes over the bar and then dims it to gray after the mouse leaves the bar. This scrollbar animation draws the scrollbar over the expanding pane. If I mouse over the tab from outside the view (so that the mouse does not pass over the scrollbar) then the pane expands perfectly. But if I go inside the view and mouse over the scrollbar on the way to the reaching the tab, then the pane opens with the fading scrollbar drawn over top of it. What is the solution? Michael |
|
![]() |
|
MichaelN ![]() Senior Member ![]() Joined: 19 September 2006 Status: Offline Points: 112 |
![]() ![]() ![]() ![]() ![]() |
I found the solution: in CMyView::PreCreateWindow(), include
cs.style |= WS_CLIPSIBLINGS | WS_CLIPCHILDREN; Michael
|
|
![]() |
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 |