How can I Owner drawn ScrollBar?

I need Change scroll bar appearance. PLS HELP ME!
xialmAsked:
Who is Participating?
 
Meir RivkinFull stack Software EngineerCommented:
create a CScrollBar derived class using the wizard and override WM_DRAWITEM of your CScrollBar class:

void CMyScrollBar::OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
{
//your code goes here
     
     CScrollBar::OnDrawItem(nIDCtl, lpDrawItemStruct);
}
0
 
NickAtBOMCommented:
I agree with sedwick, although if you are completly drawing the scroll bar yourself, there is no need to call CScrollBar::OnDrawItem
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.