Share via


CWnd::OnDrawIconicThumbnailOrLivePreview

Called by the framework when it needs to obtain a bitmap to be displayed on Windows 7 tab thumbnail, or on the client for application peek.

virtual void OnDrawIconicThumbnailOrLivePreview(
   CDC& dc,
   CRect rect,
   CSize szRequiredThumbnailSize,
   BOOL bIsThumbnail,
   BOOL& bAlphaChannelSet
);

Parameters

  • dc
    Specifies the device context.

  • rect
    Specifies the bounding rectangle of the area to render.

  • szRequiredThumbnailSize
    Specifies the size of the target thumbnail. Should be ignored if bIsThumbnail is FALSE.

  • bIsThumbnail
    Specifies whether this method is called for iconic thumbnail or live preview (peek).

  • bAlphaChannelSet
    [out] Set it to TRUE if your implementation initializes the alpha channel of a bitmap selected in dc.

Remarks

Override this method in a derived class and draw on the specified device context in order to customize thumbnail and peek. If bThumbnail is TRUE, szRequiredThumbnailSize can be ignored. In this case you should be aware that you draw full sized bitmap (that is, a bitmap that covers the whole client area). The device context (dc) comes with selected 32 bits bitmap. The default implementation sends WM_PRINT to this window with PRF_CLIENT, PRF_CHILDREN, and PRF_NONCLIENT flags.

Requirements

Header: afxwin.h

See Also

Reference

CWnd Class