应用程序的实例句柄保存在CWinApp::Im_hInstance 中,可以这么调用AfxGetInstancdHandle获得句柄。 例如:HANDLE hInstance=AfxGetInstanceHandle();