Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Scroll bars and CXTPControlGalleryItem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Scroll bars and CXTPControlGalleryItem

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


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Topic: Scroll bars and CXTPControlGalleryItem
    Posted: 19 May 2008 at 6:05am

We have an override for CXTPControlGalleryItem and in the Draw handler we want to check if the scroll bar is shown or hidden.  How do you do this please???

Thanks
Terry
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
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: 20 May 2008 at 12:46am

m_bShowScrollBar ? :)

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Posted: 20 May 2008 at 11:17am
Originally posted by oleg oleg wrote:

m_bShowScrollBar ? :)

 
Yes but m_bShowScrollBar is a private member and there is no function for this :(, we are doing pGallery->m_bShowScrollBar
 
Is there a public function??? or do I need to move and this will be fixed for 12.0.1
 
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Posted: 20 May 2008 at 11:36am
Actually I assume:
 
CRect rc = pGallery->GetBorders();
 
would give us the Rect we require eg. rc.Width() is width of scrollbar ???
 
Found this after reading source code to XTP
 
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
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: 20 May 2008 at 1:21pm
Hi,

use rc parameter passed in Draw method - it always have right rectangle to draw - already border/scrollbar adjusted.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Posted: 20 May 2008 at 5:44pm
Originally posted by oleg oleg wrote:

Hi,

use rc parameter passed in Draw method - it always have right rectangle to draw - already border/scrollbar adjusted.
 
This is not the case for our owner draw as it seems rc.Width() includes the scrollbar aswell
 
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
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.