Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subclass Help

Status
Not open for further replies.

DarkMercenary44

Technical User
May 19, 2000
55
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top