Skip to content

Commit

Permalink
Ensure selection visible after auto-select
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Oct 22, 2010
1 parent 86c9be5 commit f296766
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dialogs/world_prefs/genpropertypage.cpp
Expand Up @@ -1093,7 +1093,9 @@ void CGenPropertyPage::LoadList (void)

if (* ((CString *) m_ctlList->GetItemData (nItem)) == m_strSelectedItem)
{
m_ctlList->SetItemState (nItem, TVIS_SELECTED, TVIS_SELECTED);
m_ctlList->SetItemState (nItem, LVIS_FOCUSED | LVIS_SELECTED,
LVIS_FOCUSED | LVIS_SELECTED);
m_ctlList->EnsureVisible (nItem, FALSE);
break;
}

Expand Down

0 comments on commit f296766

Please sign in to comment.