[idd] helper: detect mode listbox selection change

This commit is contained in:
Quantum authored and Geoffrey McRae committed 2025-11-07 00:28:20 +11:00
1 parent e082acbe44
commit 1d7cb35de8
4 files changed
+24

No files matched your search

+10
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());
}