Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - ScrollBar bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ScrollBar bug

 Post Reply Post Reply
Author
Message
serbius View Drop Down
Newbie
Newbie


Joined: 25 April 2007
Location: Belarus
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote serbius Quote  Post ReplyReply Direct Link To This Post Topic: ScrollBar bug
    Posted: 19 May 2008 at 9:04am
OS: WinXP
Theme: Royale
XTP: 11.2.2 and 12.0.0

Steps to reproduce:
1. Run ResourceEditor.exe and collapse all groups.
Now there is no scroll bar.




2. Expand one group.



Here we have a problem - Scroll bar is not themed.


3. Move mouse over Scroll bar.



This problem is not related to this application. I just used it for explanation.

Back to Top
AndyS View Drop Down
Groupie
Groupie


Joined: 15 December 2004
Location: United Kingdom
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndyS Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 2009 at 5:02am
I have the same issue a year later. Is this resolved?
Back to Top
AndyS View Drop Down
Groupie
Groupie


Joined: 15 December 2004
Location: United Kingdom
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndyS Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 2009 at 5:31am

After some more probing the problem only occurs when expanding content to require vertical scroll AND the previous display of the scroll bars had the same scroll bar position. So in the example above expand/collapse the same item would do it, expand/collapse different items would not. Same in my example here but caused by applying filters to the dispayed content.

My hacky fix is to overload the "AdjustScrollBars" virtual method of the report control and send an NC_PAINT message. I'll admit it's a hack and it's a sledgehammer but it works. Good enough.
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.203 seconds.