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
yangyanhui View Drop Down

Joined: 20 August 2020
Status: Offline
Points: 87
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?

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

This page was generated in 0.094 seconds.