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

Function setWindowText

window.go:1237–1243  ·  view source on GitHub ↗
(hwnd win.HWND, text string)

Source from the content-addressed store, hash-verified

1235}
1236
1237func setWindowText(hwnd win.HWND, text string) error {
1238 if win.TRUE != win.SendMessage(hwnd, win.WM_SETTEXT, 0, uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(text)))) {
1239 return newError("WM_SETTEXT failed")
1240 }
1241
1242 return nil
1243}
1244
1245func (wb *WindowBase) RestoreState() (err error) {
1246 wb.ForEachDescendant(func(widget Widget) bool {

Callers 3

SetTitleMethod · 0.85
setTextMethod · 0.85
setTextMethod · 0.85

Calls 2

newErrorFunction · 0.85
SendMessageMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…