COleControl::OnSetData

This method is called by the framework to replace the control's data with the specified data. If the data is in the persistent property set format, the default implementation modifies the control's state accordingly. Otherwise, the default implementation does nothing. If bRelease is TRUE, then a call to ReleaseStgMedium is made; otherwise not.

At a Glance

Header file: Afxctl.h
Platforms: H/PC 2.0, H/PC Pro
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

virtual BOOL OnSetData( LPFORMATETC lpFormatEtc,
LPSTGMEDIUM
lpStgMedium, BOOL bRelease );

See Also

COleControl::DoPropExchange, FORMATETC, STGMEDIUM