MCPcopy
hub / github.com/lxn/walk / removeTool

Method removeTool

tooltip.go:194–203  ·  view source on GitHub ↗
(hwnd win.HWND)

Source from the content-addressed store, hash-verified

192}
193
194func (tt *ToolTip) removeTool(hwnd win.HWND) error {
195 var ti win.TOOLINFO
196 ti.CbSize = uint32(unsafe.Sizeof(ti))
197 ti.Hwnd = hwnd
198 ti.UId = uintptr(hwnd)
199
200 tt.SendMessage(win.TTM_DELTOOL, 0, uintptr(unsafe.Pointer(&ti)))
201
202 return nil
203}
204
205func (tt *ToolTip) Text(tool Widget) string {
206 return tt.text(tt.hwndForTool(tool))

Callers 2

RemoveToolMethod · 0.95
DisposeMethod · 0.80

Calls 1

SendMessageMethod · 0.65

Tested by

no test coverage detected