HeaderPane
Main
Hide
Share Link
Print

FreeGDIPlusImageLoadedFromFile

Deletes a GDI+ image obtained using LoadGDIPlusImageFromFile.

C

void WINAPI SftBox_FreeGDIPlusImageLoadedFromFile(LPVOID pGDIPlusImage);

C++

static void CSftBox::FreeGDIPlusImageLoadedFromFile(LPVOID pGDIPlusImage);

Parameters

pGDIPlusImage

A Gdiplus::Image pointer to be deleted. This value is obtained from a preceding call to LoadGDIPlusImageFromFile. If NULL is specified, the function does nothing.

Comments

The FreeGDIPlusImageLoadedFromFile function deletes a GDI+ image obtained using LoadGDIPlusImageFromFile.

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 LoadGDIPlusImageFromFile and FreeGDIPlusImageLoadedFromFile 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


Last Updated 11/21/2026 - (email)
© 2026 Softel vdm, Inc.