September 3rd, 1999, 06:30 AM
I have a listctrl within my dialog box, yet have tried many times to highlight the first item in the list ( index 0 ).
I place the functions in the OnInitdialog part of my code,yet still i have had no success.
I have currently tried
m_List.SetItemState( 0, LVIS_SELECTED | LVIS_FOCUSED, LVIS_SELECTED | LVIS_FOCUSED);
m_List.EnsureVisible( 0, FALSE);
Someone please tell me what I am doing wrong.
I place the functions in the OnInitdialog part of my code,yet still i have had no success.
I have currently tried
m_List.SetItemState( 0, LVIS_SELECTED | LVIS_FOCUSED, LVIS_SELECTED | LVIS_FOCUSED);
m_List.EnsureVisible( 0, FALSE);
Someone please tell me what I am doing wrong.