MCPcopy Index your code
hub / github.com/lxn/walk / accSetPropertyStr

Method accSetPropertyStr

accessibility.go:201–214  ·  view source on GitHub ↗

accSetPropertyStr sets string window property for Dynamic Annotation.

(hwnd win.HWND, idProp *win.MSAAPROPID, event uint32, value string)

Source from the content-addressed store, hash-verified

199
200// accSetPropertyStr sets string window property for Dynamic Annotation.
201func (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}

Callers 8

SetAcceleratorMethod · 0.95
SetDefaultActionMethod · 0.95
SetDescriptionMethod · 0.95
SetHelpMethod · 0.95
SetNameMethod · 0.95
SetRoleMapMethod · 0.95
SetStateMapMethod · 0.95
SetValueMapMethod · 0.95

Calls 3

newErrorFunction · 0.85
errorFromHRESULTFunction · 0.85
accessibilityServicesMethod · 0.80

Tested by

no test coverage detected