uffe_thomassen
asked on
Mark an row in a ListView
I have made a listview, which is only used in Reportview with fullrowselect.
My problem is to mark a specific line, as if you had clicked on it. Box around the line and changing the background colors (bit like inverting the line).
Is there anyone who knows how do that.
Kind Regards
Uffe Thomassen
I dont have any than 75 points
My problem is to mark a specific line, as if you had clicked on it. Box around the line and changing the background colors (bit like inverting the line).
Is there anyone who knows how do that.
Kind Regards
Uffe Thomassen
I dont have any than 75 points
Do you want this row to be selected ?
If yes, try pMyListiew->SetItemState(i Item , LVIS_FOCUSED|LVIS_SELECTED ,LVIS_FOCU SED|LVIS_S ELECTED);
If you want your mark to be independant of the selection one(I don't really know what you intend to do) perhaps try the same function with LVIS_DROPHILITED rather then LVIS_SELECTED...
If yes, try pMyListiew->SetItemState(i
If you want your mark to be independant of the selection one(I don't really know what you intend to do) perhaps try the same function with LVIS_DROPHILITED rather then LVIS_SELECTED...
ListView_SetExtendedListVi ewStyleEx( hWin,LVS_E X_FULLROWS ELECT,LVS_ EX_FULLROW SELECT);
But this only works if IE3.0 is installed, that is comctl32.dll has version 4.70.
But this only works if IE3.0 is installed, that is comctl32.dll has version 4.70.
ASKER
Hi Nick, degarn
Degarn has found the right function, which I have tried before, but I have found out, it was becase I didn't had focus on the ListView, Stupid me.
I think it most fair that degarn gets my points so please send an answer.
Degarn has found the right function, which I have tried before, but I have found out, it was becase I didn't had focus on the ListView, Stupid me.
I think it most fair that degarn gets my points so please send an answer.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks degarn,
it was just the flag I nedded. It thats kind that, make life easy.
it was just the flag I nedded. It thats kind that, make life easy.
ASKER