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


COleControl::OnSetExtent

Called by the framework when the control's extent needs to be changed, as a result of a call to IOleObject::SetExtent.

virtual BOOL OnSetExtent(
   LPSIZEL lpSizeL 
);

Параметры

  • lpSizeL
    A pointer to the SIZEL structure that uses long integers to represent the width and height of the control, expressed in HIMETRIC units.

Возвращаемое значение

Nonzero if the size change was accepted; otherwise 0.

Заметки

The default implementation handles the resizing of the control's extent. If the control is in-place active, a call to the container's OnPosRectChanged is then made.

Override this function to alter the default resizing of your control.

Требования

Header: afxctl.h

См. также

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

COleControl Class

COleControl Members

Hierarchy Chart