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

Method toolInfo

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

Source from the content-addressed store, hash-verified

246}
247
248func (tt *ToolTip) toolInfo(hwnd win.HWND) *win.TOOLINFO {
249 var ti win.TOOLINFO
250 var buf [maxToolTipTextLen]uint16
251
252 ti.CbSize = uint32(unsafe.Sizeof(ti))
253 ti.Hwnd = hwnd
254 ti.UId = uintptr(hwnd)
255 ti.LpszText = &buf[0]
256
257 if win.FALSE == tt.SendMessage(win.TTM_GETTOOLINFO, 0, uintptr(unsafe.Pointer(&ti))) {
258 return nil
259 }
260
261 return &ti
262}
263
264func (*ToolTip) hwndForTool(tool Widget) win.HWND {
265 if hftt, ok := tool.(interface{ handleForToolTip() win.HWND }); ok {

Callers 4

trackMethod · 0.95
untrackMethod · 0.95
textMethod · 0.95
setTextMethod · 0.95

Calls 1

SendMessageMethod · 0.65

Tested by

no test coverage detected