HeaderPane
Main
Hide

SftTree/DLL 8.0 - Tree Control

Share Link
Print

FreeGDIPlusImageLoadedFromResource

Deletes a GDI+ image obtained using SftTree_LoadGDIPlusImageFromResource.

C

void SftTree_FreeGDIPlusImageLoadedFromResource(LPVOID pGDIPlusImage);

Parameters

pGDIPlusImage

A Gdiplus::Image pointer to be deleted. This value is usually obtained from a preceding call to SftTree_LoadGDIPlusImageFromResource.

Comments

Deletes a GDI+ image obtained using SftTree_LoadGDIPlusImageFromResource.

This function is mainly intended for applications written using C. Because Gdiplus 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 SftTree_FreeGDIPlusImageLoadedFromResource even C applications can use GDI+ images, without needing access to GDI+ itself.

Examples

C

        SftTree_SetDarkMode(g_hwndTree, SFTTREE_DARKMODE_AUTO);

        return 0;
     }
    case WM_DESTROY:
        KillTimer(hwnd, TIMERID);

        if (m_ButtonExpanded)
            SftTree_FreeGDIPlusImageLoadedFromResource(m_ButtonExpanded);
        if (m_ButtonExpandedHot)
            SftTree_FreeGDIPlusImageLoadedFromResource(m_ButtonExpandedHot);
        if (m_ButtonCollapsed)
            SftTree_FreeGDIPlusImageLoadedFromResource(m_ButtonCollapsed);
        if (m_ButtonCollapsedHot)
            SftTree_FreeGDIPlusImageLoadedFromResource(m_ButtonCollapsedHot);
        if (m_FolderClosed)

See Also C/C++ API | Categories | Notifications