(hwnd win.HWND)
| 207 | } |
| 208 | |
| 209 | func (tt *ToolTip) text(hwnd win.HWND) string { |
| 210 | ti := tt.toolInfo(hwnd) |
| 211 | if ti == nil { |
| 212 | return "" |
| 213 | } |
| 214 | |
| 215 | return win.UTF16PtrToString(ti.LpszText) |
| 216 | } |
| 217 | |
| 218 | func (tt *ToolTip) SetText(tool Widget, text string) error { |
| 219 | return tt.setText(tt.hwndForTool(tool), text) |
no test coverage detected