COleControl::ParentToClient

virtual UINT ParentToClient( LPCRECT lprcBounds, LPPOINT pPoint, BOOL bHitTest = FALSE ) const;

Return Value

If bHitTest is FALSE, returns HTNOWHERE. If bHitTest is TRUE, returns the location in which the parent (container) point landed in the client area of the OLE control and is one of the following mouse hit-test values:

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 parent (container) point to be translated into the coordinates of the client area of the control.

bHitTest

Specifies whether or not hit testing is to be done on the point.

Remarks

Call this function to translate the coordinates of pPoint into client coordinates. On input pPoint is relative to the origin of the parent (upper left corner of the container). On output pPoint is relative to the origin of the client area of the OLE control (upper left corner of the client area of the control).

COleControl OverviewClass MembersHierarchy Chart

See Also   COleControl::ClientToParent, COleControl::GetClientOffset