IExtendPropertySheet2::GetWatermarks method (mmc.h)
The IExtendPropertySheet2::GetWatermarks method gets the watermark bitmap and header bitmap for wizard sheets implemented as Wizard 97-style wizards.
Syntax
HRESULT GetWatermarks(
[in] LPDATAOBJECT lpIDataObject,
[out] HBITMAP *lphWatermark,
[out] HBITMAP *lphHeader,
[out] HPALETTE *lphPalette,
[out] BOOL *bStretch
);
Parameters
[in] lpIDataObject
A pointer to the IDataObject interface on the object that contains context information about the scope or result item.
[out] lphWatermark
A pointer to the handle to a bitmap that serves as the watermark for Wizard 97 pages. If the handle to the bitmap is NULL, no watermark is displayed for the wizard. If this value is not NULL, then the snap-in, for compatibility, should manage the lifetime of the watermark resource. The snap-in is responsible for freeing the watermark resource.
[out] lphHeader
A pointer to the handle to a bitmap that serves as the header for Wizard 97 pages. If the handle to the bitmap is NULL, no bitmap will be displayed in the header for wizard pages. If this value is not NULL, then the snap-in, for compatibility, should manage the lifetime of the header resource. The snap-in is responsible for freeing the header resource.
[out] lphPalette
A pointer to the handle to a palette that should be used for the bitmaps specified by lphWatermark and lphHeader. The palette is NULL by default. If a palette is not returned, the palette is NULL. If this value is not NULL, then the snap-in, for compatibility, should manage the lifetime of the palette resource. The snap-in is responsible for freeing the palette resource.
[out] bStretch
A value that specifies whether the watermark and header bitmaps should be stretched — instead of tiled — to fit the background or header area of the property sheet. TRUE specifies that the watermark and header bitmaps should be stretched; FALSE specifies that the watermark and header bitmaps should maintain their size and be tiled. This parameter is FALSE by default. If a bStretch value is not returned, bStretch is FALSE.
Return value
This method can return one of these values.
Remarks
MMC calls this method only when:
- The type parameter of IPropertySheetProvider::CreatePropertySheet is set to FALSE (for wizard sheet) and that the dwOptions parameter is set to MMC_PSO_NEWWIZARDTYPE (for Wizard 97 style).
- The snap-in passes a pointer to its IComponentData or IComponent interface as the first parameter in calls to the IPropertySheetProvider::AddPrimaryPages method.
To prevent distortion of the image, it is recommended that the watermark and header bitmaps have the following dimensions (in pixels) with bStretch set to FALSE.
Bitmap | Dimensions |
---|---|
lphWatermark | 164w x 628h |
lphHeader | 49w x 49h |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | mmc.h |
See also
Adding Property Pages and Wizard Pages