Deletes a GDI+ image obtained using LoadGDIPlusImageFromResource.
C
void WINAPI SftBox_FreeGDIPlusImageLoadedFromResource(LPVOID pGDIPlusImage);
C++
static void CSftBox::FreeGDIPlusImageLoadedFromResource(LPVOID pGDIPlusImage);
pGDIPlusImage
A Gdiplus::Image pointer to be deleted. This value is obtained from a preceding call to LoadGDIPlusImageFromResource. If NULL is specified, the function does nothing.
The FreeGDIPlusImageLoadedFromResource function deletes a GDI+ image obtained using LoadGDIPlusImageFromResource.
This function is mainly intended for applications written using C. Because GDI+ is C++ based, C applications don't readily have access to the Gdiplus::Image class and cannot use delete to free a GDI+ image object. Using LoadGDIPlusImageFromResource and FreeGDIPlusImageLoadedFromResource even C applications can use GDI+ images, without needing access to GDI+ itself.
The image must not be deleted while the combo box control still uses it.
See Also C/C++ API | Categories | Notifications