Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CWnd::accLocation
Collapse the table of content
Expand the table of content

CWnd::accLocation

Called by the framework to retrieve the specified object's current screen location.

virtual HRESULT accLocation( 
   long *pxLeft, 
   long *pyTop, 
   long *pcxWidth, 
   long *pcyHeight, 
   VARIANT varChild 
);

pxLeft

Receives x-coordinate of the object's upper-left corner (in screen units).

pyTop

Receives y-coordinate of the object's upper-left corner (in screen units).

pcxWidth

Receives width of the object (in screen units).

pcyHeight

Receives height of the object (in screen units).

varChild

Specifies whether the location to be retrieved is that of the object or one of the object's child elements. This parameter can be either CHILDID_SELF (to obtain information about the object) or a child ID (to obtain information about the object's child element).

Returns S_OK on success, a COM error code on failure. See Return Values in IAccessible::accLocation in the Windows SDK.

Override this function in your CWnd-derived class if you have nonwindowed user interface elements (other than windowless ActiveX controls, which MFC handles).

For more information, see IAccessible::accLocation in the Windows SDK.

Header: afxwin.h

Community Additions

ADD
Show:
© 2015 Microsoft