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

Method setTheme

window.go:1981–1987  ·  view source on GitHub ↗
(appName string)

Source from the content-addressed store, hash-verified

1979}
1980
1981func (wb *WindowBase) setTheme(appName string) error {
1982 if hr := win.SetWindowTheme(wb.hWnd, syscall.StringToUTF16Ptr(appName), nil); win.FAILED(hr) {
1983 return errorFromHRESULT("SetWindowTheme", hr)
1984 }
1985
1986 return nil
1987}
1988
1989// KeyDown returns a *KeyEvent that you can attach to for handling key down
1990// events for the *WindowBase.

Callers 2

NewTreeViewFunction · 0.80
NewListBoxWithStyleFunction · 0.80

Calls 1

errorFromHRESULTFunction · 0.85

Tested by

no test coverage detected