COccManager::PreCreateDialog
Called by the framework to process a dialog template for ActiveX controls before creating the actual dialog box.
virtual const DLGTEMPLATE* PreCreateDialog(
_AFX_OCC_DIALOG_INFO* pOccDialogInfo,
const DLGTEMPLATE* pOrigTemplate
);
Parameters
pOccDialogInfo
An _AFX_OCC_DIALOG_INFO structure containing information on the dialog template and any ActiveX controls hosted by the dialog.pOrigTemplate
A pointer to the dialog template to be used in creating the dialog box.
Return Value
A pointer to a dialog template structure used to create the dialog box.
Remarks
The default behavior makes a call to SplitDialogTemplate, determining if there are any ActiveX controls present and then returns the resultant dialog template.
Override this function to customize the process of creating a dialog box hosting ActiveX controls.
Requirements
Header: afxocc.h
See Also
Reference
COccManager::SplitDialogTemplate