Microsoft Foundation OLE Classes (mfcole.hlp) (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
COleServerItem::OnSetData
COleServerItem                              Up Contents Index Back
──Microsoft Foundation OLE Classes──────────────────────────────────────────
  protected:
      virtual OLESTATUS
               OnSetData( OLECLIPFORMAT <nFormat>, HANDLE <hData> );
 
  Parameter   Description
 
  <nFormat>   Specifies the format of the data. This parameter can be one
              of the predefined Clipboard formats or the value returned by
              the native Windows RegisterClipboardFormat function.
 
  <hData>     Identifies a global Windows memory object that contains the
              data in the specified format.
 
  Remarks
 
  This virtual callback function is called in response to
  COleClientItem::SetData. Override this function to process nonnative
  formats. The default implementation handles the native data format
  through a call to the virtual CObject::Serialize function, which is
  responsible for determining the storage format of the data.
 
  Return Value
 
  See the COleException class for a list of return values. The value
  OLE_OK indicates that the function operated correctly.
 
  See Also
 
  COleClientItem::SetData
 
 
                                     -♦-