Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves a thumbnail representation of an IHTMLDocument2 document.
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 |