(index int)
| 267 | } |
| 268 | |
| 269 | func (cb *ComboBox) insertItemAt(index int) error { |
| 270 | str := cb.itemString(index) |
| 271 | lp := uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(str))) |
| 272 | |
| 273 | if win.CB_ERR == cb.SendMessage(win.CB_INSERTSTRING, uintptr(index), lp) { |
| 274 | return newError("SendMessage(CB_INSERTSTRING)") |
| 275 | } |
| 276 | |
| 277 | return nil |
| 278 | } |
| 279 | |
| 280 | func (cb *ComboBox) removeItem(index int) error { |
| 281 | if win.CB_ERR == cb.SendMessage(win.CB_DELETESTRING, uintptr(index), 0) { |
no test coverage detected