Print Page | Close Window

BUG: Scrollbar is rendered with wrong theme

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=17709
Printed Date: 29 September 2024 at 5:22am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG: Scrollbar is rendered with wrong theme
Posted By: flashk
Subject: BUG: Scrollbar is rendered with wrong theme
Date Posted: 20 December 2010 at 7:40pm
I've noticed this problem in my application on Windows XP and Windows 7. The vertical scrollbar of my report control is rendered in the old Windows 2000 theme. However, once the mouse is moved over the scroll bar, it switches to the native theme.

I'm able to reproduce this with your ResourceEditor sample program using the folllowing step:

  1. Start ResourceEditor.exe
  2. Open Scribble.ResourceDe.xml in the Translations directory
  3. Collapse all the group rows in the report control so that the vertical scrollbar disappears
  4. Open Scribble.ResourceJa.xml, the vertical scrollbar should be visible now
  5. Switch back to the Scribble.ResourceDe.xml tab
  6. Expand the group rows until the scrollbar is displayed
  7. The scrollbar is rendered incorrectly with the wrong theme
  8. Move the mouse over the scrollbar and it should render correctly



Replies:
Posted By: Oleg
Date Posted: 21 December 2010 at 4:58am
Hi,

Yes, OS theme thing appears because of WS_CLIPCHILDREN|WS_CLIPSIBLINGS style.

Comment line in CResourceEditorView::PreCreateWindow and it will disappear.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: flashk
Date Posted: 21 December 2010 at 11:32am
Thanks, that fixes the issue with the ResourceEditor example.

However, in my application the report control is attached to a docking pane. How can I control the WS_CLIPCHILDREN|WS_CLIPSIBLINGS style of the docking pane window?




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