Поделиться через


AfxFindResourceHandle

Use AfxFindResourceHandle to walk the resource chain and locate a specific resource by resource ID and resource type.

HINSTANCE AFXAPI AfxFindResourceHandle(
   LPCTSTR lpszName,
   LPCTSTR lpszType 
);

Параметры

  • lpszName
    A pointer to a string containing the resource ID.

  • lpszType
    A pointer to the type of resource. For a list of resource types, see FindResource in the Windows SDK.

Возвращаемое значение

A handle to the module that contains the resource.

Заметки

AfxFindResourceHandle finds the specific resource and returns a handle to the module that contains the resource. The resource might be in any extension DLL you have loaded. AfxFindResourceHandle tells you which one has the resource.

Требования

Header: afxwin.h

См. также

Основные понятия

MFC Macros and Globals

AfxGetResourceHandle