Link to home
Start Free TrialLog in
Avatar of xialm
xialm

asked on

How can I Owner drawn ScrollBar?

I need Change scroll bar appearance. PLS HELP ME!
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

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);
}
Avatar of NickAtBOM
NickAtBOM

I agree with sedwick, although if you are completly drawing the scroll bar yourself, there is no need to call CScrollBar::OnDrawItem
ASKER CERTIFIED SOLUTION
Avatar of SteveGTR
SteveGTR
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial