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

Function setWindowVisible

window.go:1376–1384  ·  view source on GitHub ↗
(hwnd win.HWND, visible bool)

Source from the content-addressed store, hash-verified

1374}
1375
1376func setWindowVisible(hwnd win.HWND, visible bool) {
1377 var cmd int32
1378 if visible {
1379 cmd = win.SW_SHOWNA
1380 } else {
1381 cmd = win.SW_HIDE
1382 }
1383 win.ShowWindow(hwnd, cmd)
1384}
1385
1386// BringToTop moves the *WindowBase to the top of the keyboard focus order.
1387func (wb *WindowBase) BringToTop() error {

Callers 2

NewGroupBoxFunction · 0.85
SetVisibleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…