Click here to Skip to main content
15,889,200 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to set color of scrollbar in ownerdraw listbox?
It is possible?
Posted

1 solution

You will need to subclass[^] the scrollbar and provide an override for the WM_PAINT message.
 
Share this answer
 
Comments
Style-7 27-Jun-12 0:03am    
I know it, but how to get HWND for scroll bar of the listbox.
Richard MacCutchan 27-Jun-12 3:37am    
I assume you would need to enumerate the child windows of the ListBox and use GetClassInfo to check for the Scrollbar class.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900