From 0943ae89e869ded753e5fbc5b64dca458a8f31b8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 8 May 2021 18:18:34 +0300 Subject: CCtrlListView::MoveItem, CCtrlListView::SetCurSel, CCtrlCombo::SelectData - new useful methods (cherry picked from commit 9661e86b4d2e1280b6e5e562ffafb46d1b6c0817) --- protocols/Tox/src/tox_options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Tox/src') diff --git a/protocols/Tox/src/tox_options.cpp b/protocols/Tox/src/tox_options.cpp index 781c279d7e..1c3a463a6f 100644 --- a/protocols/Tox/src/tox_options.cpp +++ b/protocols/Tox/src/tox_options.cpp @@ -330,7 +330,7 @@ public: if (m_iItem == -1) { m_iItem = m_list->AddItem(ipv4, -1, NULL, 1); - m_list->SetItemState(m_iItem, LVIS_FOCUSED | LVIS_SELECTED, 0x000F); + m_list->SetCurSel(m_iItem); m_list->EnsureVisible(m_iItem, TRUE); } else -- cgit v1.2.3