Sets the parent window of the previewer window, as well as the area within the parent to be used for the previewer window.
HRESULT SetWindow( HWND hwnd, const RECT *prc );
A handle to the parent window.
Type: const RECT*
A pointer to a RECT defining the area for the previewer.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
The preview handler is responsible for painting the entire area defined by prc. If the previewer window has been created, the preview handler must associate the previewer window to the new parent hwnd and resize the previewer window to the area defined by prc. If the previewer window has not yet been created, the preview handler must remember this information for when the previewer window is created in IPreviewHandler::DoPreview.
|Minimum supported client||Windows Vista, Windows XP [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|
|Header||shobjidl_core.h (include Shobjidl.h)|
|Redistributable||Windows Search 4 or later|