bvReadJpegFromResource
This helper function is used to read JPEG images from application's resources.
BESTVIEWAPI(HBITMAP) bvReadJpegFromResource(HINSTANCE hInstance,
LPCTSTR pszResourceType,LPCTSTR pszResourceID);
Parameters:
-
hInstance
- HINSTANCE of the application
-
pszResourceType
- the type of resource
-
pszResourceID - the identifier of the resource. It can be made
using MAKEINTRESOURCE() macro
Return value: HBITMAP of the loaded image or 0 in case of failure.