COleControl::ClientToParent

Translates the coordinates of pPoint into parent coordinates.

virtual void ClientToParent(
   LPCRECT lprcBounds,
      LPPOINT pPoint 
) const;

Parameters

  • lprcBounds
    Pointer to the bounds of the OLE control within the container. Not the client area but the area of the entire control including borders and scroll bars.

  • pPoint
    Pointer to the OLE client area point to be translated into the coordinates of the parent (container).

Remarks

On input pPoint is relative to the origin of the client area of the OLE control (upper left corner of the client area of the control). On output pPoint is relative to the origin of the parent (upper left corner of the container).

Requirements

Header: afxctl.h

See Also

Concepts

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::ParentToClient

COleControl::GetClientOffset