(hwnd win.HWND, text string)
| 1235 | } |
| 1236 | |
| 1237 | func 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 | |
| 1245 | func (wb *WindowBase) RestoreState() (err error) { |
| 1246 | wb.ForEachDescendant(func(widget Widget) bool { |
no test coverage detected
searching dependent graphs…