Deletes a GDI+ image obtained using SftTabs_LoadGDIPlusImageFromResource.
C
void SftTabs_FreeGDIPlusImageLoadedFromResource(LPVOID pGDIPlusImage);
pGDIPlusImage
A Gdiplus::Image pointer to be deleted. This value is usually obtained from a preceding call to SftTabs_LoadGDIPlusImageFromResource.
Deletes a GDI+ image obtained using SftTabs_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 SftTabs_FreeGDIPlusImageLoadedFromResource even C applications can use GDI+ images, without needing access to GDI+ itself.
LPVOID m_lpGDIPlusLeft;
LPVOID m_lpGDIPlusRight;
static void FreeImage(LPVOID lpImage, BOOL fFromFile)
{
if (fFromFile)
SftTabs_FreeGDIPlusImageLoadedFromFile(lpImage);
else
SftTabs_FreeGDIPlusImageLoadedFromResource(lpImage);
}
/**********************************************************************/
/* Page 1 Dialog Proc */
/**********************************************************************/
void EnableThisTab(BOOL fEnable)See Also C/C++ API | C++ Classes | Notifications