diff options
| author | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2019-01-01 22:12:51 +0100 |
|---|---|---|
| committer | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2019-01-01 22:12:51 +0100 |
| commit | 261902fcae887249ffa03114e49afdef85fb4442 (patch) | |
| tree | fbc81a4581dc762d7194f7ee5b9b7b2790319dbf /alf/alf.h | |
| parent | dbd2fb78dec385f0abfe07fd4609dc8f444bdefd (diff) | |
first try at combobox implementation
Diffstat (limited to 'alf/alf.h')
| -rw-r--r-- | alf/alf.h | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -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 |
