Color of scrollbar of a listbox
-
Does anyone know how to set the color of the scrollbar of a listbox. I'm using win32. I've already tried several WM_CTLCOLOR... messages, but this did not work. Changing the colors of buttons and other controls works fine. Ward
-
Their is no way to change the color of scroll bar in a listbox. The scroll bar in it is Build in. u can either hide the default scroll bar and put urs Another method is http://www.codeproject.com/dialog/coolscroll.asp[^] nave
-
You can't (legally) use Detours in a commercial product - I don't even think you can use it in a free product (again, legally). I haven’t read the license in a while but from memory it’s quite restrictive – I think you can use it for “research” purposes. Also it doesn't work properly on Win95/98/ME (but who cares?!?). I'd be surprised if you couldn't use subclassing to change the colour of the scrollbars. Steve
-
You can't (legally) use Detours in a commercial product - I don't even think you can use it in a free product (again, legally). I haven’t read the license in a while but from memory it’s quite restrictive – I think you can use it for “research” purposes. Also it doesn't work properly on Win95/98/ME (but who cares?!?). I'd be surprised if you couldn't use subclassing to change the colour of the scrollbars. Steve
Stephen Hewitt wrote:
I'd be surprised if you couldn't use subclassing to change the colour of the scrollbars.
But we cannot take the handle of the default scrollbars. It is only a drawing, not a window, right? Further more the system paints it directly, in many cases( like thumb positioning, etc. ). So we cannot use the OnPaint also. That is why the detours is used. - NS -