IAccPropServices::SetHmenuPropStr method

This method wraps SetPropValue, providing a more convenient entry point for callers who are annotating HMENU-based accessible elements.

Syntax

HRESULT SetHmenuPropStr(
  HMENU      hmenu,
  DWORD      idChild,
  MSAAPROPID idProp,
  LPCWSTR    str
);

Parameters

hmenu

Type: HMENU

Identifies the HMENU-based accessible element to be annotated.

idChild

Type: DWORD

Specifies the child ID of the accessible element.

idProp

Type: MSAAPROPID

Specifies which property of the accessible element is to be annotated.

str

Type: LPCWSTR

Specifies a new value for the idProp property.

Return Value

Type: HRESULT

If successful, returns S_OK.

May return other error codes under exceptional error conditions such as low memory.

Remarks

By using this method, the caller does not have to obtain an identity string; it can specify the hmenu, idObject, and idChild parameters directly.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header oleacc.h (include OleAcc.h Include Initguid.h first.)
DLL Oleacc.dll
Redistributable Active Accessibility 2.0 RDK on Windows NT 4.0 with SP6 and later and Windows 98

See Also

ClearHmenuProps

IAccPropServices

SetHmenuProp

SetHmenuPropServer

SetPropValue