Originally posted by: Shirad
I need to use that class for Pocket PC 2002!
P.S: I tried to use it on my device but the list shows as empty. When i remove any added line using the CListCtrlStyled methods, everything goes back to normal!
rgds,
Hi,
Is there an compatible version for that platform?
Shirad
Originally posted by: learnvc
I try to use this class in List view style,but error occur.
ReplyOriginally posted by: StandaK
Hi, it's great control. I use it in existing application. Everything works great but I cant get SetXSelectedXColor() functions working..I call them eg. in OnInitialUpdate this way:
// Selected style for Column 2
SetColSelectedBgColor(2,RGB(185,160,160),false);
SetColSelectedStyle(2,LIS_BGCOLOR);
but it has no effect. When I select some item in column 0, selected row has standard windows look (blue background, white text). Maybe some functions/windows message handlers in my class are causing this behaviour in way that they "override" this settings anyway, but I dont know which of them would do that..
Any suggestion helps a lot.
Thanks Standa.
Originally posted by: s_k
I dont know why but when I want to set background/text color eg. for column I have to set LIS_BOLD/STROKE/UNDERLINE style as well to have some effect.
When I call SetColTxtColor(0,LIS_TXTCOLOR), it has no effect, but when I call (SetColTxtColor(0,LIS_TXTCOLOR | LIS_BOLD), text color is set properly (along with bold font, of course).
The same problem is when I want to set column background color, I cant't just call SetColBgColor(0,LIS_BGCOLOR) but I have to add LIS_BOLD/LIS_STROKE/LIS_UNDERLINE styles to get desired effect..
Would somebody know what's the problem?
Originally posted by: Jan S. Yoder
I had to use this as soon as I found it! It is too cool for fools. I actually had a situation where I was using the first row of a list control as a header, and wanted to make it bold, but I didn't know how to do it. I was looking for information on double-clicking list controls when I ran across this code, and viola'! Instant gratification
My only negative comment is that when I first integrated it, my code blew out because I put a call to SetRowStyle(0,LIS_BOLD) in a place where it would get called on an empty list. Internally, the code was returning a pointer and dereferencing it without checking for null.
LS_item * lpLS_row = NULL;
lpLS_row = lpLS_item->row_style;<br>
Other than this petulant gripe I have nothing but admiration for S�bastien.
Great work!
Reply
Originally posted by: Geert
Anyone ?
ReplyOriginally posted by: shaazam
With a CLIstView you cannot initialize your CListCtrl in CListCtrlStyled. The only way to get CListCtrlStyled object is to use GetListCtrl function and cast the result. But it doesn't work when you try to initialize columns.
What can i do?
Thanks.
Originally posted by: Gunnar
So I activated NM_DLBCLICK to go into a funktion, but how can I get the coulnm_number of the click?
void CTestDlg::OnDblclkList(NMHDR* pNMHDR, LRESULT* pResult)
//how to get the selected (dbl_clicked) column here )?
*pResult = 0;
I like to get the column number when the user doubleclick on a column..
{
}
Originally posted by: Gunnar
Hi!
I'm new at cpp and also ListViews but maybe you can help me.
Your Class is realy great and all works fine - thanks alot!
I like to know how I can change the default size of each column. Also how I can use some sortfunktions, like if the user pressed columtop 2 - all lists will be sorted of the text in all columns 2 (hope you could understand my english - it's not my firstlanguage ;-).
Support will be great!
Thanks a lot
Gunnar
Originally posted by: Jane Larsen
This modification to the CListCtrl was just what I needed. I am making a file scan tool where I amongst other things wanted to highlight file names i the list control for easier navigation. This control does that and much more...