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

Scrollbar drawing bug

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: Scrollbar drawing bug
    Posted: 04 September 2008 at 4:17am
This problem really frustrates me. I have spend 2 days just finding the reason. I know it is a part of my implementation because it is not a common problem, but maybe someone recognize the problem and even better have a solution
 
 
As you can see a scrollbar is displayed inside the Report? I'm sure that the scrollbar corresponds to the scrollbar when I restore my window from maximized. So maybe the problem is due to having the app. maximized? The drawing of the scrollbar also comes very late in the drawing process. I have added a lot of RedrawControl and RedrawWindow etc. in OnSize and OnActivate but nothing helps  As soon as I click in the Report is disappears and everything is OK. I also played around with the Clipchildren and Siblings with no luck. I'm using Tabbed MDI, and if I click on the Tab it also disappears.
 
-cpede
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 08 September 2008 at 7:06am

Are you using CXTScrollBar?

Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 09 September 2008 at 3:33am
No, it is just the standard CXTPReport control. I simply just can't get rid of it  
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: 09 September 2008 at 5:30am
Hi,
 
Maybe you have CSplitterWnd ? It can't be standard scrollbar of ReprotControl.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 10 September 2008 at 7:13am
No scrollbar.
But maybe it has something to do with the way I select the active MDI child window. I'm using a MDI with a CXTPTabClientWnd, and the problem occurs when I want to select a given page in the MDI. I do the following:
 
((CMDIChildWnd*)pPage->GetParent())->MDIActivate();
 
This is probably not the correct way to select a page from the tabbed interface?
 
-cpede
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: 10 September 2008 at 9:28am
no, its fine.   
 
Run Spy++ and check if this scrollbar has handle.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 10 September 2008 at 9:31am
Already tried that, it is drawn on top of the Report window, after the last OnSize is called.
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.172 seconds.