AfxGetInstanceHandle、AfxSetResourceHandle

来源:互联网 发布:手机淘宝二手怎么进去 编辑:程序博客网 时间:2024/04/29 00:22

MSDN上的。

 

Visual Studio 2010 - Visual C++
AfxSetResourceHandle

 

Use this function to set the HINSTANCE handle that determines where the default resources of the application are loaded.

void AFXAPI AfxSetResourceHandle(   HINSTANCE hInstResource ); 
Parameters
hInstResource

The instance or module handle to an .EXE or DLL file from which the application's resources are loaded.

Example
// This code is taken from CMyApp::InitInstanceHINSTANCE hRes = NULL;hRes = LoadLibrary(_T("Resource.dll"));if(hRes)   AfxSetResourceHandle(hRes);
Requirements

Header: afxwin.h

See Also

Reference

AfxGetInstanceHandle
AfxGetResourceHandle

Concepts

MFC Macros and Globals

 

 

 

 


AfxGetResourceHandle用于获取当前资源模块句柄,而AfxSetResourceHandle则用于设置程序目前要使用的资源模块句柄。

原创粉丝点击