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.
class COleServerItem
CObject                                     Up Contents Index Back
──Microsoft Foundation OLE Classes──────────────────────────────────────────
 
  Description
 
  COleServerItem is the Microsoft Foundation Class Library base class for
  Object Linking and Embedding (OLE) server items. OLE items are the
  entities (graphs, pictures, text blocks, and so forth) that are passed
  between clients and servers.
 
  Note Windows 3.1 OLE documentation refers to client items as "objects."
  This reference uses the term "item" to differentiate the OLE entity from
  the corresponding C++ class object.
 
  #include <afxole.h>
 
  See Also
 
      COleServer, COleServerDoc
 
  Public Members
 
  Status
 
  GetDocument       Returns the server document that contains this
                      server item.
 
  GetMetafileData   Builds a Windows metafile that contains a picture of
                      the server item.
 
  GetNativeData     Calls CObject::Serialize to get native-format data
                      into a memory block.
 
  Operations
 
  NotifyClient    Notifies the client that this server item has
                    changed.
 
  NotifyChanged   Updates all clients with automatic link update.
 
  Protected Members
 
  Data Members
 
  m_hPalette     The client item color-scheme identifier.
 
  m_rectBounds   The most recent item size set by the client.
 
  Construction/Destruction
 
  COleServerItem   Constructs a COleServerItem object.
 
  ~COleServerItem   Destroys the object.
 
  Status
 
  IsConnected   Indicates whether the server item is currently attached
                  to an active client.
 
  Overridables (callbacks)
 
  OnShow              Called on the client's request to show this item.
 
  OnDraw              Called on the client's request to draw this item.
 
  OnRelease           Called on the client's request to delete the
                        server item.
 
  OnExtraVerb         Called to execute extra verbs.
 
  OnSetTargetDevice   Called to set the item's target device.
 
  OnSetBounds         Called to set the item size.
 
  OnGetTextData       Called to get item data as a text string.
 
  OnSetColorScheme    Called to set the item's color scheme.
 
  OnEnumFormats       Called to enumerate available data formats.
 
  OnSetData           Called to set item data.
 
  OnDoVerb            Calls the OnShow and (optionally) OnExtraVerb
                        member functions.
 
 
                                     -♦-