Scrollbar drawing bug |
Post Reply |
Author | |
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 657 |
Post Options
Thanks(0)
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
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Are you using CXTScrollBar? |
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 657 |
Post Options
Thanks(0)
|
No, it is just the standard CXTPReport control. I simply just can't get rid of it
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Maybe you have CSplitterWnd ? It can't be standard scrollbar of ReprotControl.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 657 |
Post Options
Thanks(0)
|
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
no, its fine.
Run Spy++ and check if this scrollbar has handle.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 657 |
Post Options
Thanks(0)
|
Already tried that, it is drawn on top of the Report window, after the last OnSize is called.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |