대화상자 프로젝트에서 ActiveX 컨테이너 추가
///// VC++2019 대화상자 프로젝트에서 ActiveX 컨테이너 포함 방법.
// framework.h 파일에 추가.
#include <afxdisp.h> // MFC Automation classes ActiveX 컨트롤 컨테이너 포함시킬려고.
// App.cpp 파일의 InitInstance 바로 하단에 추가.
BOOL CTestFloswChartXApp::InitInstance()
{
CWinApp::InitInstance();
AfxEnableControlContainer(); // <-이것.ActiveX 컨테이너
...
}
관련추가정보.
댓글