Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
Posted: Wed Jul 14, 2010 2:02 am Post subject:
bhpianist wrote:
Thanks.
Next, do you know how I could color the box partially?
Basically I saw a trainer where the HP bar was in a list-view and it colored the percentage of health remaining; it looked very cool.
Look into subclassing and drawing controls inside of other controls. You can use a progress bar to draw inside a Listviews table cells.
bhpianist wrote:
EDIT: Also, do you know how to change the text color? Neither of those articles covered that EDIT 2: I am raged. I hate owner-drawing.
Personally I have never done it, but if it is like other controls you will need to use the WM_COLORCTLxxxxxxx events. (Not sure if that's the exact name, but it should be similar to that for them.) Which you can find various information regarding how to use those. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum