accSetPropertyStr sets string window property for Dynamic Annotation.
(hwnd win.HWND, idProp *win.MSAAPROPID, event uint32, value string)
| 199 | |
| 200 | // accSetPropertyStr sets string window property for Dynamic Annotation. |
| 201 | func (a *Accessibility) accSetPropertyStr(hwnd win.HWND, idProp *win.MSAAPROPID, event uint32, value string) error { |
| 202 | accPropServices := a.wb.group.accessibilityServices() |
| 203 | if accPropServices == nil { |
| 204 | return newError("Dynamic Annotation not available") |
| 205 | } |
| 206 | hr := accPropServices.SetHwndPropStr(hwnd, win.OBJID_CLIENT, win.CHILDID_SELF, idProp, value) |
| 207 | if win.FAILED(hr) { |
| 208 | return errorFromHRESULT("IAccPropServices.SetHwndPropStr", hr) |
| 209 | } |
| 210 | if win.EVENT_OBJECT_CREATE <= event && event <= win.EVENT_OBJECT_END { |
| 211 | win.NotifyWinEvent(event, hwnd, win.OBJID_CLIENT, win.CHILDID_SELF) |
| 212 | } |
| 213 | return nil |
| 214 | } |
no test coverage detected