Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Tue May 06, 2008 9:32 am Post subject: HOWTO : Use an ActiveX control for a custom view in the namespace extension |
|
|
To use an ActiveX control for a custom view in your namespace extension, use AfxEnableControlContainer(); in the InitInstance method of namespace extension project. This enables support for containment of OLE controls.
The code is as follows :
BOOL CFileSystemBrowserCustomViewApp::InitInstance()
{
OleInitialize(NULL);
COleObjectFactory::RegisterAll();
AfxEnableControlContainer();
return CWinApp::InitInstance();
} |
|