From 261902fcae887249ffa03114e49afdef85fb4442 Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Tue, 1 Jan 2019 22:12:51 +0100 Subject: first try at combobox implementation --- alf/alf.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'alf/alf.h') diff --git a/alf/alf.h b/alf/alf.h index 6d36aff..c6a7b77 100644 --- a/alf/alf.h +++ b/alf/alf.h @@ -142,6 +142,37 @@ ALF_SetModalResult(HWND win, int result); int ALF_GetModalResult(HWND win); +// combo box + +HWND +ALF_AddEditableComboBox(HWND win, WORD id, UINT x, UINT y, const TCHAR *defaultText); + +HWND +ALF_AddSelectionOnlyComboBox(HWND win, WORD id, UINT x, UINT y); + +int /* index */ +ALF_ComboBoxAddString(HWND combo, const TCHAR *text); + +void +ALF_ComboBoxInsertString(HWND combo, int index, const TCHAR *text); + +void +ALF_ComboBoxRemoveString(HWND combo, int index); + +int +ALF_ComboBoxCurrentIndex(HWND combo); + +void +ALF_ComboBoxSetCurrentIndex(HWND combo); + +// NOTE: call HeapFree +TCHAR * +ALF_ComboBoxCurrentText(HWND combo); + +void +ALF_ComboBoxSetText(HWND combo, const TCHAR *text); + + #ifdef __cplusplus } // extern C #endif -- cgit v1.2.3