i know This question has been posted several times on this board but i found
no answer until now. after i managed to owner draw my whole listview control
entirely including even the headers the only thing that is missing are those dumb
standard scrollbars... i tried everything, subclassing the listview's wm_paint,
wm_ctlscrollbarcolor, wm_notify... nothing works but i know for sure that a
member of this board posted a very nice example on how to do it but it seems
to be deleted... did anybody here saved the source-code? when i'm not mistaken
it was a simple listbox with custom colored lines and a full custom scrollbar.
or maybe someone knows some ways to do it? thank you.
Posted on 2002-08-30 01:05:39 by mob
http://sloat.bradsoft.net/?p=asm - Listbox (Owner Drawn) :)
Posted on 2002-08-30 02:17:07 by stryker
sorry but no, this is just a ownerdrawn listbox... nothing special
i need custom colored scrollbars or even better ownerdrawn scrollbars.
maybe i should post an example... it just looks ugly when everything
is custom-drawn except the scrollbars... there must be a way (i hope)
but thank you anyway :)
Posted on 2002-08-30 11:09:42 by mob
As far as I am aware, there are only two ways to this.

First one (which I consider easier) would be to create your own custom scroll bar
control from scratch.

The second method, which I have heard of (but never seen examples for), would
be to use a technique called binary-rewriting which hooks and intercepts all of the
standard scrollbar API calls inside USER32.DLL.

Either way, your looking at a decent amount of work...
Posted on 2002-08-30 13:08:31 by Graebel
my best bet aside from owner drawn scrollbars would be to handle the WM_NCPAINT on your subclassed listview control. Then try sending a CallWindowProc at the very first code of the WM_NCPAINT to let windows repaint the scrollbars then do the coloring stuff... Try this site http://freespace.virgin.net/james.brown7/tuts/coolscroll.htm there's some source code and probably would help a bit.
Posted on 2002-08-30 13:24:04 by stryker
Just something to mention, I have my screen resolution set quite high and I run you app I can see a different header (highlighted with yellow in the image)
Posted on 2002-08-30 16:53:11 by huh