Print Page | Close Window

Win7 scrollbar animation draws over expanding pane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=20549
Printed Date: 29 April 2024 at 8:57am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Win7 scrollbar animation draws over expanding pane
Posted By: MichaelN
Subject: Win7 scrollbar animation draws over expanding pane
Date 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




Replies:
Posted By: MichaelN
Date Posted: 26 January 2013 at 5:52pm
I found the solution: in CMyView::PreCreateWindow(), include 

  cs.style |= WS_CLIPSIBLINGS | WS_CLIPCHILDREN;

Michael



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