Link to home
Start Free TrialLog in
Avatar of chabaud
chabaud

asked on

Draw a scroll bar into non-client area

How can I draw a standard scrollbar in the non-client area of my CWnd derived class ?
I try to create a scrollbar child control but it is never refreshed.
I don't want to draw the entire scoll bar myself in the OnNcPaint handler...
Avatar of chensu
chensu
Flag of Canada image

What about calling Invalidate and UpdateWindow for the scrool bar in the OnNcPaint handler?
ASKER CERTIFIED SOLUTION
Avatar of danny_pav
danny_pav

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
Avatar of chabaud
chabaud

ASKER

Thanks a lot, it was my first participation to experts-exchange and not the last !
You might want to thank nietod, who gave the answer that I summarized.