diff options
Diffstat (limited to 'src/w32dlib/combobox.h')
-rw-r--r-- | src/w32dlib/combobox.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/w32dlib/combobox.h b/src/w32dlib/combobox.h index dae30a0..9dfa50a 100644 --- a/src/w32dlib/combobox.h +++ b/src/w32dlib/combobox.h @@ -47,7 +47,7 @@ namespace W32DLib /// \brief Sets a callback for when selection changes. /// - /// \param owner The class the callback reside in. + /// \param owner The class the callback resides in. /// \param callback The callback. /// void OnSelection(Window *owner, @@ -99,11 +99,26 @@ namespace W32DLib /// \brief Adds a string to the combo box. /// /// \param text The string to add. + /// \return The index of the added string, or CB_ERR or CB_ERRSPACE. + /// + int AddString(const std::string& text); + + /// \brief Adds a string to the combo box. + /// + /// \param text The string to add. /// \param index The index to insert in front of /// \return The index of the added string, or CB_ERR or CB_ERRSPACE. /// int AddString(const char *text,int index); + /// \brief Adds a string to the combo box. + /// + /// \param text The string to add. + /// \param index The index to insert in front of + /// \return The index of the added string, or CB_ERR or CB_ERRSPACE. + /// + int AddString(const std::string& text,int index); + /// \brief Removes a string from the combo box. /// /// \param index The index of the string to remove. |