DarkMercenary44
Technical User
Hi all,
I'm trying to skin the scroll bar in either a listbox or treeview, which ever is easier, I've gotten the messages captured via a subclass dll. They are captured from the listbox. I, based on info gotten from GetScrollInfo, have figured out how to calculate the scrollbars position, size, and value. With this information I can create the DC Image and bitblt it to the listbox. Oh, since the listbox doesn't have a hDC I'm using GetDC and ReleaseDC to bitblt to. I've captured WM_PAINT, and WM_DRAWITEM and then GetDC from the Listbox, and then apply my changes to the DC inmemory and then use ReleaseDC to apply the changes back to the listbox. But for some reason I can't get this to overdraw the ScrollBar. It's being redrawn underneath the scrollbar instead of overtop of it.
Can anyone tell me what I'm doing wrong, or am I going about it the wrong way or what?? DarkMercenary
darkmercenary44@earthlink.net
In the real world
As in dreams
Nothing is quite
What it seems
:Book of Counted Sorrows
I'm trying to skin the scroll bar in either a listbox or treeview, which ever is easier, I've gotten the messages captured via a subclass dll. They are captured from the listbox. I, based on info gotten from GetScrollInfo, have figured out how to calculate the scrollbars position, size, and value. With this information I can create the DC Image and bitblt it to the listbox. Oh, since the listbox doesn't have a hDC I'm using GetDC and ReleaseDC to bitblt to. I've captured WM_PAINT, and WM_DRAWITEM and then GetDC from the Listbox, and then apply my changes to the DC inmemory and then use ReleaseDC to apply the changes back to the listbox. But for some reason I can't get this to overdraw the ScrollBar. It's being redrawn underneath the scrollbar instead of overtop of it.
Can anyone tell me what I'm doing wrong, or am I going about it the wrong way or what?? DarkMercenary
darkmercenary44@earthlink.net
In the real world
As in dreams
Nothing is quite
What it seems
:Book of Counted Sorrows