[idd] helper: detect mode listbox selection change

This commit is contained in:
Quantum
2025-10-04 03:01:27 -04:00
committed by Geoffrey McRae
parent e082acbe44
commit 1d7cb35de8
4 changed files with 24 additions and 0 deletions

View File

@@ -28,3 +28,13 @@ int CListBox::addItem(const std::wstring &display, LPARAM data)
ListBox_SetItemData(m_hwnd, result, data);
return result;
}
int CListBox::getSel()
{
return ListBox_GetCurSel(m_hwnd);
}
int CListBox::getSelData()
{
return ListBox_GetItemData(m_hwnd, getSel());
}