Selects a bitmap picture into a given device context, and returns the device context in which the picture was previously selected as well as the picture's GDI handle. This method works in conjunction with IPicture::get_CurDC.
HRESULT SelectPicture(
HDC hdcIn, //New device context
HDC* phdcOut,
//Receives a pointer to the previous device context
OLE_HANDLE* phbmpOut
//Receives a pointer to GDI handle of the picture
);
This method supports the standard return valuesE_FAIL, E_INVALIDARG, and E_OUTOFMEMORY, as well as the following:
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in ocidl.h.