List View Help!
-
Hi, im using a CListCtrl (report view) with two columns in my app. the left column displays text and the right column should display color fields. i've read some tutorials about the CListCtrl. All i want to know is how i can add simple color fields in the right column. i dont want to add icons from a bitmap resource. how can i manage this???? thanks for your help! :confused: :confused: bye b4ckup (:
-
Hi, im using a CListCtrl (report view) with two columns in my app. the left column displays text and the right column should display color fields. i've read some tutorials about the CListCtrl. All i want to know is how i can add simple color fields in the right column. i dont want to add icons from a bitmap resource. how can i manage this???? thanks for your help! :confused: :confused: bye b4ckup (:
I never did that, but if I need to do that, I must to try with GetItemRect, this function return to me the rect of each item, and I will try to paint each rectangle in the OnPaint event.... I hope to help. :bob: me too!!! Carlos Antollini.
-
I never did that, but if I need to do that, I must to try with GetItemRect, this function return to me the rect of each item, and I will try to paint each rectangle in the OnPaint event.... I hope to help. :bob: me too!!! Carlos Antollini.
Thanks for the answer! I´m working on a ColorPicker. That means for every color that should be displayed in the right column, i must create an rectangle and fill it with the rgb data... argh ;) is this idea working with the LV_ITEM structure? and how can i fill the rect ??? X| bye b4ckup (:
-
Thanks for the answer! I´m working on a ColorPicker. That means for every color that should be displayed in the right column, i must create an rectangle and fill it with the rgb data... argh ;) is this idea working with the LV_ITEM structure? and how can i fill the rect ??? X| bye b4ckup (:
You could try using custom draw. See http://codeproject.com/listctrl/lvcustomdraw.asp. /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com
-
Thanks for the answer! I´m working on a ColorPicker. That means for every color that should be displayed in the right column, i must create an rectangle and fill it with the rgb data... argh ;) is this idea working with the LV_ITEM structure? and how can i fill the rect ??? X| bye b4ckup (:
FYI, there are a bunch of nice color pickers available at http://codeproject.com/miscctrl/. /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com
-
FYI, there are a bunch of nice color pickers available at http://codeproject.com/miscctrl/. /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com