From 6bb048378e2b73c908f4512d9a925e736bd44fda Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 11 May 2021 13:26:56 +0300 Subject: CCtrlCombo::GetCurData = suitable helper for combo boxes --- include/m_gui.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/m_gui.h b/include/m_gui.h index 25bd775638..d5fd8ebf98 100644 --- a/include/m_gui.h +++ b/include/m_gui.h @@ -949,8 +949,11 @@ public: bool OnApply() override; void OnReset() override; + // returns item data associated with the selected item or -1 + LPARAM GetCurData() const; + // selects line with userdata passed. returns index of this line or -1 - int SelectData(LPARAM data); + int SelectData(LPARAM data); // Control interface int AddString(const wchar_t *text, LPARAM data = 0); -- cgit v1.2.3