Share via


CDocument::GetThumbnail

Creates a bitmap to be used by the thumbnail provider to display the thumbnail.

virtual BOOL GetThumbnail(
   UINT cx,
   HBITMAP* phbmp,
   DWORD* pdwAlpha
);

Parameters

  • cx
    Specifies the width and height of the bitmap.

  • phbmp
    Contains a handle to a bitmap, when the function returns successfully.

  • pdwAlpha
    Contains a DWORD specifying the alpha channel value, when the function returns successfully.

Return Value

Returns TRUE if a bitmap for the thumbnail was created successfully; otherwise FALSE.

Requirements

Header: afxwin.h

See Also

Reference

CDocument Class