Microsoft Foundation OLE Classes (mfcole.hlp) (Topic list)
COleClientItem::Draw
COleClientItem                              Up Contents Index Back
──Microsoft Foundation OLE Classes──────────────────────────────────────────
 
  BOOL Draw( CDC* pDC, LPRECT lpBounds, LPRECT lpWBounds,
             CDC* pFormatDC );
 
  Parameter   Description
 
  <pDC>       A pointer to a CDC device context object on which to draw
              the item.
 
  <lpBounds>  A pointer to a CRect object or RECT structure that defines
              the bounding rectangle in which to draw the object (logical
              units determined by the device context).
 
  <lpWBounds> A pointer to a CRect object or RECT structure that defines
              the bounding rectangle for the metafile device context
              (logical units determined by the device context).
 
  <pFormatDC> A pointer to the target device context for which this item
              will be formatted.
 
  Remarks
 
  Draws a specified object into a bounding rectangle in a device context.
 
  When you use Draw with a screen display context (the usual case), both
  <pDC> and <pFormatDC> point to this context, and <lpWBounds> is ignored
  (use NULL as a parameter).
 
  When <pDC> specifies a metafile device context (an advanced use of
  Draw), the rectangle specified by <lpWBounds> contains the rectangle
  specified by <lpBounds>. The device context specified by <pFormatDC>
  must not be a metafile device context.
 
  The <lpBounds> parameter identifies the rectangle on the target device
  context (relative to its current mapping mode). Rendering may involve
  scaling the picture and can be used by client applications to impose a
  view scaling between the displayed view and the final printed image.
 
  Return Value
 
  TRUE if successful; otherwise FALSE.
 
  See Also
 
  COleClientItem::SetBounds
 
 
                                     -♦-