Поделиться через


COleControl::ClientToParent

Translates the coordinates of pPoint into parent coordinates.

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

Параметры

  • 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).

Заметки

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).

Требования

Header: afxctl.h

См. также

Основные понятия

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::ParentToClient

COleControl::GetClientOffset