IPicture::set_hPal  13I5Y_M

Assigns a GDI palette to the picture contained in the picture object.

HRESULT set_hPal(

    OLE_HANDLE hpal

//Handle for GDI palette for the picture

   );

 

 

Parameters

hpal

[in] Handle to the GDI palette assigned to the picture.

 

Return Values

This method supports the standard return values E_FAIL, E_INVALIDARG, and E_OUTOFMEMORY, as well as the following:

S_OK

The palette was assigned successfully.

 

Remarks

Notes to Implementers

Ownership of the palette passed to this method depends on how the picture object was created, as specified by the fOwn parameter to OleCreatePictureIndirectK14E0.. OleLoadPictureBR7DJ0 forces fOwn to TRUE; if the object owns the picture, then it takes over ownership of this palette.