Επεξεργασία

Κοινή χρήση μέσω


IThumbnailCapture::CaptureThumbnail method (shlobj.h)

Retrieves a thumbnail representation of an IHTMLDocument2 document.

Note  This method is deprecated as of Windows 7. The feature it supported is no longer present in Windows.
 

Syntax

HRESULT CaptureThumbnail(
  [in]  const SIZE *pMaxSize,
  [in]  IUnknown   *pHTMLDoc2,
  [out] HBITMAP    *phbmThumbnail
);

Parameters

[in] pMaxSize

Type: const SIZE*

A pointer to a SIZE structure that specifies the maximum size of the bitmap, in pixels.

[in] pHTMLDoc2

Type: IUnknown*

A pointer to an IHTMLDocument2 interface's IUnknown interface.

[out] phbmThumbnail

Type: HBITMAP*

A handle to a bitmap that represents the document object.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shlobj.h
DLL Shimgvw.dll

See also

IHTMLDocument2

IThumbnailCapture