AfxSetResourceHandle
這可以用來設定HINSTANCE控點,以判斷應用程式的預設資源載入的位置。
void AFXAPI AfxSetResourceHandle(
HINSTANCE hInstResource
);
參數
- hInstResource
執行個體或模組控制代碼。要從中載入應用程式的資源的 EXE 或 DLL 檔案。
範例
// This code is taken from CMyApp::InitInstance
HINSTANCE hRes = NULL;
hRes = LoadLibrary(_T("Resource.dll"));
if(hRes)
AfxSetResourceHandle(hRes);
需求
標頭: afxwin.h