Selection (Highilighting) a row in CListCtrlEx
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
I want to select a row in the CListCtrlEx through program. What method can help me.
-
I want to select a row in the CListCtrlEx through program. What method can help me.
use the macro ListView_SetItemState( hWnd, nIndex, LVIS_SELECTED , LVIS_SELECTED ); where hWnd is the handle to the listctrl and nIndex is the items to be selected Please note that u should set the focus to the listctrl before calling this macro Setfocus( hWnd ); nave
-
I want to select a row in the CListCtrlEx through program. What method can help me.
See the FAQ: 4.10 How do I programmatically select an item in a list view control?[^]
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ