(appName string)
| 1979 | } |
| 1980 | |
| 1981 | func (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. |
no test coverage detected