Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - BUG: Scrollbar is rendered with wrong theme
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG: Scrollbar is rendered with wrong theme

 Post Reply Post Reply
Author
Message
flashk View Drop Down
Groupie
Groupie


Joined: 04 March 2008
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote flashk Quote  Post ReplyReply Direct Link To This Post Topic: BUG: Scrollbar is rendered with wrong theme
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
flashk View Drop Down
Groupie
Groupie


Joined: 04 March 2008
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote flashk Quote  Post ReplyReply Direct Link To This Post 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?

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.141 seconds.