(state PIState)
| 54 | } |
| 55 | |
| 56 | func (pi *ProgressIndicator) SetState(state PIState) error { |
| 57 | if hr := pi.taskbarList3.SetProgressState(pi.hwnd, (int)(state)); win.FAILED(hr) { |
| 58 | return errorFromHRESULT("ITaskbarList3.setprogressState", hr) |
| 59 | } |
| 60 | pi.state = state |
| 61 | return nil |
| 62 | } |
| 63 | |
| 64 | func (pi *ProgressIndicator) State() PIState { |
| 65 | return pi.state |
nothing calls this directly
no test coverage detected