@pymethod int|PyCComboBox|AddString|Adds a string to a combobox.
| 902 | } |
| 903 | // @pymethod int|PyCComboBox|AddString|Adds a string to a combobox. |
| 904 | static PyObject * |
| 905 | PyCComboBox_add_string(PyObject *self, PyObject *args) |
| 906 | { |
| 907 | CComboBox *pCB = GetCombo(self); |
| 908 | if (!pCB) |
| 909 | return NULL; |
| 910 | PyObject *ob; |
| 911 | if (!PyArg_ParseTuple(args, "O", &ob )) // @pyparm any|object||Any object. If not a string, __str__, __repr__ or a default repr() will be used |
| 912 | return NULL; |
| 913 | CString cstrRepr = GetReprText(ob); |
| 914 | GUI_BGN_SAVE; |
| 915 | int rc=pCB->AddString( cstrRepr ); |
| 916 | GUI_END_SAVE; |
| 917 | //@pyseemfc CComboBox|AddString |
| 918 | if (IS_CB_ERR(rc)) |
| 919 | RETURN_ERR("PyCComboBox.AddString failed"); |
| 920 | return Py_BuildValue("i", rc); |
| 921 | //@rdesc The zero based index of the new string. |
| 922 | } |
| 923 | // @pymethod int|PyCComboBox|DeleteString|Deletes an item from a combobox. |
| 924 | static PyObject * |
| 925 | PyCComboBox_delete_string(PyObject *self, PyObject *args) |
nothing calls this directly
no test coverage detected