Override the CScrollBar* CWnd::GetScrollBarCtrl( int nBar ) ; virtual function. And provide the scrollbar of your own.If you only wannt change the color,just provide a Scrollbar and handle the WM_CTLCOLOR message.For more information about this ,please refer to www.codeproject.com.There is an article named: "Colorizing the scroll bars of your window" which tells you the implementation detailed of programming.Or You could use flat scrollbar bar using InitializeFlatSB(...) or related functions.For fully customed scrollbars ,derives your scrollbar from "CButton" use owner-draw to get a picture-supporting Scrollbar.This solution is the ideal way.However, you should provide the handler for all the substantial message for scrolling. So far,I haven't tried it myself although I am expecting to.
CScrollBar* CWnd::GetScrollBarCtrl( int nBar ) ;
virtual function.
And provide the scrollbar of your own.If you only wannt change the color,just provide a Scrollbar and handle the
WM_CTLCOLOR message.For more information about this ,please refer to www.codeproject.com.There is an article named:
"Colorizing the scroll bars of your window"
which tells you the implementation detailed of programming.Or You could use flat scrollbar bar using InitializeFlatSB(...) or related functions.For fully customed scrollbars ,derives your scrollbar from "CButton" use owner-draw to get a picture-supporting Scrollbar.This solution is the ideal way.However,
you should provide the handler for all the substantial message for scrolling.
So far,I haven't tried it myself although I am expecting to.