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.
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.
http://sloat.bradsoft.net/?p=asm - Listbox (Owner Drawn) :)
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 :)
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 :)
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...
:rolleyes:
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...
:rolleyes:
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.
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)