Share via


CImage::LoadFromResource

Loads an image from a resource.

void LoadFromResource(
   HINSTANCE hInstance,
   LPCTSTR pszResourceName 
) throw( );
void LoadFromResource(
   HINSTANCE hInstance,
   UINT nIDResource 
) throw( );

Parameters

  • hInstance
    Handle to an instance of the module that contains the image to be loaded.

  • pszResourceName
    A pointer to the string containing the name of the resource containing the image to load.

  • nIDResource
    The ID of the resource to load.

Requirements

Header: atlimage.h

See Also

Concepts

CImage Class

CImage Members

CImage::Load