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


COleControl::GetClientOffset

Retrieves the difference between the upper left corner of the control's rectangular area and the upper left corner of its client area.

virtual void GetClientOffset(
   long* pdxOffset,
      long* pdyOffset 
) const;

Параметры

  • pdxOffset
    Pointer to the horizontal offset of the OLE control's client area.

  • pdyOffset
    Pointer to the vertical offset of the OLE control's client area.

Заметки

The OLE control has a rectangular area within its container. The client area of the control is the control area excluding borders and scroll bars. The offset retrieved by GetClientOffset is the difference between the upper left corner of the control's rectangular area and the upper left corner of its client area. If your control has non-client elements other than the standard borders and scrollbars, override this member function to specify the offset.

Требования

Header: afxctl.h

См. также

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

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::ParentToClient

COleControl::ClientToParent