The information in this article applies to:
SYMPTOMSWhen you try to select the hBitmap returned by ImageList_GetImageInfo() into a device context, the call to SelectObject() fails and returns NULL. CAUSE
Under the debug version of Windows 95, attempting to select the hBitmap
returned by ImageList_GetImageInfo() into a DC causes the GDI to output
the message "Bitmap already selected."
RESOLUTIONAn application can work around this in Windows 95 by calling CopyImage() on the hBitmap, as demonstrated in the following sample code. This API is new for Windows 95. Remember to delete the hBitmap copy when using this function. Sample Code
STATUSThis behavior is by design. Additional query words: unusable hDC Image Lists beta
Keywords : kbCtrl kbImgList kbWinOS2000 kbSDKWin32 kbGrpUser kbWinOS95 |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |