How to disable list view items?
-
Hi everybody, I want to disable a list view item. I know that I should use SetItemState method, but I don't know how. thank you in advance.
Disabled how? You can set the
LVIS_CUT
style so icon is grayed, and use custom draw to change the text color to gray. If you mean disabled as in not selectable, that feature isn't built in to the control.--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ VB > soccer
-
Disabled how? You can set the
LVIS_CUT
style so icon is grayed, and use custom draw to change the text color to gray. If you mean disabled as in not selectable, that feature isn't built in to the control.--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ VB > soccer
-
Hi everybody, I want to disable a list view item. I know that I should use SetItemState method, but I don't know how. thank you in advance.
Roozbeh69 wrote:
I want to disable a list view item.
Disable or deselect? :confused:
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb