MCPcopy Create free account
hub / github.com/lxn/walk / Form

Method Form

window.go:1282–1292  ·  view source on GitHub ↗

Form returns the Form of the Window.

()

Source from the content-addressed store, hash-verified

1280
1281// Form returns the Form of the Window.
1282func (wb *WindowBase) Form() Form {
1283 if wb.form == nil {
1284 if form, ok := wb.window.(Form); ok {
1285 wb.form = form
1286 } else {
1287 wb.form = ancestor(wb.window.(Widget))
1288 }
1289 }
1290
1291 return wb.form
1292}
1293
1294func forEachDescendant(hwnd win.HWND, lParam uintptr) uintptr {
1295 if window := windowFromHandle(hwnd); window == nil || forEachDescendantCallback(window.(Widget)) {

Callers 1

WndProcMethod · 0.95

Calls 1

ancestorFunction · 0.85

Tested by

no test coverage detected