redraw scrollbar |
Post Reply |
Author | |
yangyanhui
Senior Member Joined: 20 August 2020 Status: Offline Points: 131 |
Post Options
Thanks(0)
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 |
|
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 |