Print Page | Close Window

redraw scrollbar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=24082
Printed Date: 24 April 2024 at 9:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: redraw scrollbar
Posted By: yangyanhui
Subject: redraw scrollbar
Date Posted: 21 October 2020 at 1:59am
hi,I want to redraw scrollbar of XTPReportCtrl as the default scrollbar looks ugly. I had create scrollbar with the following code:
m_wndVScrollBar.Create(WS_CHILD | SBS_VERT, CRect(0, 0, 0, 0), this, 100);
m_wndHScrollBar.Create(WS_CHILD | SBS_HORZ, CRect(0, 0, 0, 0), this, 100);

m_pScrollBarVer = &m_wndVScrollBar;
m_pScrollBarHor = &m_wndHScrollBar;

where m_pScrollBarVer and m_pScrollBarHor are CScrollBar * ,m_wndVScrollBar and m_wndHScrollBar are CXTPScrollBarCtrl,
 
I use movewindow to put the new scrollbar onto the XTPReportCtrl but because it exceeds the client area the scrollbar is not shown.

How can I put it to the same position as default scrollbar?
thanks




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net