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

redraw scrollbar

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


Joined: 20 August 2020
Status: Offline
Points: 131
Post Options Post Options   Thanks (0) Thanks(0)   Quote yangyanhui Quote  Post ReplyReply Direct Link To This Post Topic: redraw scrollbar
    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

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.

This page was generated in 0.080 seconds.