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
Return Values
This method supports the standard return values E_FAIL, E_INVALIDARG, and E_OUTOFMEMORY, as well as the following:
Remarks
Ownership of the palette passed to this method depends on how the picture object was created, as specified by the fOwn parameter to OleCreatePictureIndirect. OleLoadPicture forces fOwn to TRUE; if the object owns the picture, then it takes over ownership of this palette.